Hello everyone, I have a question: Is there a way ...
# general
o
Hello everyone, I have a question: Is there a way to allow new consumer contrats to be deployed using can-i-deploy even if there is no provider code to support it at the exact time of deployement? The reason I'm asking is that I want to prevent merge hell, i.e. consomer code waiting in separate branch waiting for the provider code to be developped.
m
There is a “dry run” option and options to ignore specific pacticipants in the result.
run
pact-broker help can-i-deploy
to see the available options
can-i-deploy
is designed to prevent this situation, because it is inherently unsafe (how can you deploy a consumer if the provider is not there? Clearly, the consumer won’t work)
👍 1
If you know this is the case in advance, the best thing to do is just not call can-i-deploy. If you have the information in advance to know you want to skip can-i-deploy, just skip it
o
Thank you Matt, that answers my question!
🙌 1