Closed adamrodger closed 3 months ago
This does need to be fixed, but I recommend not using the fallback branch option, and I regret creating it. The reason is that it allows you to make backwards incompatible changes with the master branch. If you use two selectors, branch=master and branch={feature_branch}, the feature branch selector will just select nothing if there is no matching branch, and you'll still get master. If you're on master, then the pacts are deduplicated anyway, so there's no negative side effect.
If you use the fallback option, then you're either verifying the feature pact OR the master pact, and this can allow you to introduce changes that are not backwards compatible with master.
The
fallbackBranch
option on consumer version selectors is ignored, even though it's a valid property.If you run:
then the verifier submits the following:
This then retrieves no pacts if the consumers aren't using the same branch name, and so the provider test fails: