question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Malformed version number string 9bb9d91 (ArgumentError)

See original GitHub issue

version: pact-python (v 1.3.0)

use case: Using pact-python to publish a consumer test to a pactflow broker.

Reading the docs, it suggests using the commit SHA or something unique for the versioning. When passing other than a string in the format “x.x.x” I get the below error.

example

pact = Consumer(
    "example",
    tag_with_git_branch=True,
    tags=[prod_tag_flag]
).has_pact_with(
    Provider("exampleName"),
    host_name=mock_host,
    port=mock_port,
    publish_to_broker=True,
    broker_base_url=pact_broker_url,
    broker_token=pact_token,
    version="1.0.0" <---- ideally this would be dynamic and unique.
)

error

Malformed version number string 9bb9d91 (ArgumentError)

Am I misunderstanding the use of the version property here? Or, is this where in fact I should be passing a string of the commit SHA for publication?

I have posted this into the pact slack channel also.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
elliottmurraycommented, Feb 27, 2021

The example e2e uses this flag. I’m not going to put a broken example in to prove it! I think the unit tests cover it.

0reactions
mefellowscommented, Feb 27, 2021

Hi @elliottmurray, apologies, I did see this but forgot to come back to it. It looks OK to my eye, but will need confirmation of somebody actually running the publish step this way. Thanks for fixing!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Malformed version number string $(inherited) · Issue #6634
What did you do? I run pod install on my podfile : `# Uncomment this line to define a global platform for your...
Read more >
malformed version number string data (ArgumentError) - Stack ...
I added a new folder ./data inside boxes\ubuntu-xenial64\ and edited the Vagrantfile by uncommenting this line: config.vm.synced_folder ".
Read more >
Malformed version number string ["5.1", "5.0"] - Unity Forum
When trying to use the command "pod install" in the terminal on MacOS for a Unity build that uses Facebook SDK, cocoapods, and...
Read more >
Malformed version number string compass - Google Groups
Hi I've started getting the above error when trying to start either console or webbrick - but only on my host (railsplayground.net).
Read more >
Malformed version number string Yarn v0.1.1 2011 Jesper ...
I have webpacker gem and yarn gem.. and I'm stuck with this error: (help please :)) # console $ bin/rails webpacker:install rails ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found