pactflow / example-bi-directional-provider-dredd

bi-directional contracts provider example with OAS, using a BYO testing tool (Dredd)
MIT License
7 stars 63 forks source link

Publish & Can-i-deploy use different absolute versions #18

Closed ColdFire87 closed 5 months ago

ColdFire87 commented 2 years ago

npm publish uses --provider-app-version $(npx -y absolute-version). This generates a version like baa5bb-master+baa5bb.

npm can-i-deploy (& npm deploy) uses npx @pact-foundation/absolute-version. This generates a version like baa5bb-master+baa5bb.SNAPSHOT.ubuntu.

The 2 versions are hence different & can-i-deploy fails. I encountered this problem while doing the Pactflow Bi-directional tutorial at https://killercoda.com/pactflow/scenario/pactflow-bi-directional-contracts-intro

YOU54F commented 2 years ago

Hey thanks for the report @ColdFire87, I've updated that now.