Hi all, I just noticed that on Pact V4 every time...
# pact-go
n
Hi all, I just noticed that on Pact V4 every time you run a test a new interaction key is generated, which if I am not mistaken means that the contract content will be different every time you run the test, thus preventing you from publishing the contract unless the provider version changes.
Copy code
...
  "interactions": [
    {
      "description": "My description",
      "key": "32761b74ddf11016",  <====
...
👋 1
y
Hey @Nuno Frias I think it is related to this issue https://github.com/pact-foundation/pact-reference/issues/264 https://github.com/pact-foundation/pact-reference/issues/264#issuecomment-1530809990
I'm going to remove the key generation, it is causing too may issues. This was meant to be a user supplied key (See pact-foundation/pact-specification#72) and the idea was to auto-calculate it if it was not supplied by a user.
n
Thank you @Yousaf Nabi (pactflow.io)
That seems to be exactly the case.
y
ty, would you mind posting on there and just note you will be expecting it in a pact-go release, and would be willing to help test (if you are)
n
I am indeed
y
also may be useful just to note your pact-go version as well 🙂
thanks Nuno! you are a star!
🤩 1
n