Jun Yi
07/02/2025, 8:17 AMcan-i-deploy
fails?
I'm exploring the following workaround — is this a valid approach?
1. create-version
2. publish-pact
/ verify-pact
3. can-i-deploy
(fails)
4. force deploy anyway (with override flag or manual trigger)
5. record-deployment
Are there any risks or better alternatives to this flow?Yousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
can-i-deploy
failsJun Yi
07/02/2025, 8:33 AMYousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
after which the consumer will be responsible for updating their implementation to align with the new provider contract.how do you know the consumer needs to update here, it may have been a genuine failure from the providing team. they may have removed a field that only that consumer requires
Jun Yi
07/02/2025, 8:50 AMconsumer_v1
has always worked with provider_v1.0
(e.g., /api/v1/*
), along with many other consumers.
The provider now needs to deprecate and eventually remove a specific API endpoint — but must continue using the /api/v1/*
path structure (due to versioning constraints or compatibility policies). Most consumers have already migrated to alternative endpoints, except for consumer_v1
.
As a result, the provider needs to upgrade to provider_v1.1
, which removes the deprecated API, and proceed with deployment despite consumer_v1
not being compatible.
What’s the recommended way to handle this kind of situation?Yousaf Nabi (pactflow.io)
Jun Yi
07/02/2025, 9:25 AM