Hi here, What's the best way to handle a provider ...
# pact-js
e
Hi here, What's the best way to handle a provider which has no consumers yet, but you still want to implement the pact flow into the ci? It will return saying
Could not load pacts
(which can be turned into a warning) or it will say
No pacts or verifications have been published for version ... of ...
Thread in Slack Conversation
t
A provider with no consumers should pass can-i-deploy, yes?
r
I would say yes, because your deployment will not break others
e
I think it should pass too
m
yes it should. My guess is that you aren’t creating the version in advance. See https://docs.pact.io/pact_nirvana/notes_1
If you are using a shared standard pipeline, the easiest way to make sure every application can be deployed without having to do checks to determine if Pact is or isn’t being used for this particular application is to register every application version in the Pact Broker at the start of the pipeline, using the create-or-update-version command from the Pact Broker Client CLI.
e
thank you! That did the trick indeed
🎉 1