Hello, I'm hoping someone can help me. Something I...
# pact-broker
t
Hello, I'm hoping someone can help me. Something I'm struggling to understand is how the provider version is updated. Whether I need to update it or the broker should be updating it. Both my consumer and providers have a master branch configured. When I merge PRs into the master branch in the consumer I can see the consumer version changing (even though the actual contract isn't). However in the provider the version only changes if there is a contract change. I thought the version would update similar to how it does in the consumer. What causes the provider version to be updated? Image version: 2.112.0-pactbroker2.107.1
y
Have you read https://docs.pact.io/getting_started/versioning_in_the_pact_broker the provider version is set in your pact verification task, and provider versions are associated with verification results for a contract. There are also two verification tasks. one triggered by a consumer pact change, which may trigger multiple provider verifications against different versions (latest on main branch / any deployed or released provider). this would be one consumer version verified against many provider versions one triggered by provider changes, which will dynamically fetch contracts from the broker (any consumer pacts on main branch and any deployed or released) - these would be many consumer versions verified against one provider version.