Ben Eyres
04/06/2022, 6:08 AMmvn pact:publish -Dpact.publish.consumer.version=0.2-SNAPSHOT
export PACT_PUBLISH_CONSUMER_VERSION=0.2-SNAPSHOT
Neither seem to work. Im getting the following error from the plugin when running mvn pact:publish
Cannot change the content of the pact for Producer version 0.1-SNAPSHOT and provider Producer, as race conditions will cause unreliable results for can-i-deploy. Each pact must be published with a unique consumer version number
Can anyone tell me how i can increment the consumer version of the pact?uglyog
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Ben Eyres
04/06/2022, 4:50 PM0.1-SNAPSHOT
and 0.2-SNAPSHOT
?Ben Eyres
04/06/2022, 4:56 PMEach pact must be published with a unique consumer version number
This is what i thought I was doing by giving a newer versionMatt (pactflow.io / pact-js / pact-go)
-D
sets the system property as expected.
The env var looks wrong though (and is exported after the publish command so would have no effect)
it should be PACT_PUBLISH_CONSUMER_VERSION
it seemsBen Eyres
04/07/2022, 2:30 AMMatt (pactflow.io / pact-js / pact-go)