Prakhar Roy
11/10/2023, 11:54 AMYousaf Nabi (pactflow.io)
Our CICD jobs have a dynamic variable for version that changes every time the job is run.It should only change, when your code changes. Are you suggesting you could retrigger the job, and it would publish with a new version number?
How can we publish the pact only when there is actual changes in the contract?You would have to build tooling to pull down the contents of all verified contracts, check the contents of the pact file you have, against the contents of the remote pact files, and if there is a delta publish it. It doesn’t sound like you are using Pact in the intended way, and therefore seeing issues you are trying to solve problems for, that if you follow the recommended flow, you wouldn’t have
Matt (pactflow.io / pact-js / pact-go)
Prakhar Roy
11/14/2023, 5:25 AMMatt (pactflow.io / pact-js / pact-go)
Prakhar Roy
11/14/2023, 7:20 AMMatt (pactflow.io / pact-js / pact-go)
Prakhar Roy
11/14/2023, 10:04 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Prakhar Roy
11/14/2023, 10:42 AMMatt (pactflow.io / pact-js / pact-go)