How to handle different pacts being published with the same version number #481
Closed
bethesque
started this conversation in
New Features
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Background
The problem I'm about to describe already exists, but had been more clearly highlighted as I've tried to work through design options for supporting branches as a first class concept in the broker.
While we advise that the application version number used to publish pacts to the broker is unique per commit, many users still publish pacts with a semi-hardcoded version number (eg. the semantic version number from the json package file which only gets updated on release). This means that the pact content for what is considered the application version
1.2.3
changes over time. When pacts are published from different branches with the same version number, and the tags are set from the branches, a single pacticipant version may appear to the broker to have been built by multiple different branches, and to have had it's pact content revised multiple times.eg.
main
andfeat/x
, and the content from thefeat/x
branch.feat/x
and so fails as feat/x has not been implemented.TODO finish this.
Beta Was this translation helpful? Give feedback.
All reactions