Hey Pact folks, and happy new year! I’ve followed ...
# pact-go
w
Hey Pact folks, and happy new year! I’ve followed the README for pact-go that talks about installing the standalone CLI tools, and adding their location to the PATH var. I’ve also cloned the
pact-workshop-go
repo, and if i run
make consumer
in there, everything runs okay, and the contract is generated, but I’ve tried doing the same thing for one of our own services, and whenever I try to run the consumer test there, I get an error saying that the CLI tools are out of date. Currently running on an M1 Mac. I’ve since tried using the
pactfoundation/pact-cli
docker image, and that seems to at least read the test, but just wondering if there’s anything obvious I’ve missed from the standalone CLI installation, or what the recommended setup would be for an M1 Mac.
👋 1
m
Hi Will, happy new year to you too!
First up, I'd recommend jumping straight to the 2.x.x release. It's close to stable now and has more features and better support
The fact the workshop project works tells me it's likely you haven't got the tools properly added to the path and the runtime is unable to find the binaries. But with 2.x.x there is no dependency on the standalone (which won't natively run on M1 outside of Rosetta, btw). The docker image can then be used for publishing etc (albeit really that's a CI only thing anyway)
w
Thanks a lot Matt, appreciate your help, will take a gander at the 2.x.x releases and see where I get to.
👍 1