Joel Whalen
11/03/2023, 2:38 PMPact successfully published for flow-controller version v7 and provider normalizer.
View the published pact at <https://my-company.pactflow.io/pacts/provider/normalizer/consumer/flow-controller/version/v7>
Events detected: contract_published, contract_content_changed (first time any pact published for this consumer with consumer version tagged v7)Yousaf Nabi (pactflow.io)
it is correctly making the new contract, but when I go to publish, the older version is overwriting the new versionthe Pact Broker doesn’t allow you to overwrite published contract contents, which is why you need to publish against a new version. It isn’t overwriting anything
I’ve updated the consumer app version and the tag, and am getting this message:The recommendation is to publish with
branch not tag . or if you wish to use tags, use branch as well (so the Pact Broker knows if your pacts relate to the configured main branch)
The message is expected, what are you expecting?
The Pact Nirvana setup, would now have a webhook setup which would be triggered by the contract being published, this would trigger a provider verification task, where it would be provided the url of the contract to verify.
If you haven’t done the ci/cd workshop, it would be highly recommended as it teaches you these concepts 👍Joel Whalen
11/03/2023, 3:08 PMpublish against a new versionI thought I was doing this by updating the
--consumer-app-version tag. So you're saying I need to update the --branch version to get the new pact published?Yousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
Joel Whalen
11/03/2023, 3:12 PMJoel Whalen
11/03/2023, 3:12 PMJoel Whalen
11/03/2023, 3:13 PMYousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
pact-broker publish pact.json --consumer-app-version 1 --tag 1
3. Update contract with a new field foo
4. Publish pact again pact-broker publish pact.json --consumer-app-version 1 --tag 1
a. This published fine, overwriting the contents, and warning about content versioning.Joel Whalen
11/03/2023, 3:28 PMis this when viewing in the pact broker?This is when viewing the pact json file in my editor locally
same pact by version or tag?By branch name. I've updated both the tag and the version. This is my publish command (running in docker compose)
pact-broker publish pacts --consumer-app-version=v7 --branch=my-branch-name --tag=v7 --verbose
Running in the pactfoundation/pact-cli:latest containerYousaf Nabi (pactflow.io)
Joel Whalen
11/03/2023, 3:30 PMYousaf Nabi (pactflow.io)
Joel Whalen
11/03/2023, 3:30 PMJoel Whalen
11/03/2023, 3:31 PMJoel Whalen
11/03/2023, 3:33 PM--branch param to something else, it's still reverting back to the old versionYousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
Joel Whalen
11/03/2023, 3:44 PMJoel Whalen
11/03/2023, 3:45 PMYousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
Joel Whalen
11/03/2023, 3:48 PM