Alan Boshier
06/15/2024, 1:46 PMMatt (pactflow.io / pact-js / pact-go)
Alan Boshier
06/17/2024, 9:51 AMpom.xml
that gets checked out.
I can think of 2 possible ways around this...
1. Override Dependencies in the Build
In that particular case I guess it might be possible to override the pact dependencies from the commandline if you can spot you are dealing with an older version e.g.
mvn test -Dversion:io.quarkiverse.pact:quarkus-pact-consumer=1.3.0 -Dversion:io.quarkiverse.pact:quarkus-pact-provider=1.3.0 ...
However, there might be issues with this if e.g. the old provider is on a JVM version earlier than the new pact dependencies.
2. Intercept and modify pact
This approach would require some kind of pact pre-verify hook that could declared outside of code; knowing the problematic changes in the pact JSON, one could write a simple e.g. regexp that ran on a downloaded pact prior to verification. The new pact could then be "downgraded" to an equivalent that induce a false negative verification result.Matt (pactflow.io / pact-js / pact-go)