Hello, I'm having the same problem as described in...
# pact-go
c
Hello, I'm having the same problem as described in this conversation, but I'm on Windows: https://pact-foundation.slack.com/archives/C9UTHTFFB/p1686058771769559 in my environment variables I have the GOPATH to \Users\myUser\go and in the PATH I have %USERPROFILE%\go\bin but when I try to run a test I get this error message:
2023/08/23 00:23:26 [INFO] checking pact-mock-service within range >= 3.5.0, < 4.0.0
2023/08/23 00:23:26 [ERROR] CLI tools are out of date, please upgrade before continuing
this link explains how to install the standalone, but I don't find it very clear: https://github.com/pact-foundation/pact-ruby-standalone/releases once I've downloaded the right version for windows and unzipped it, I get a pact folder with two folders in it, but in the link it just says to extract the /pact/bin and change what's inside to .bat. But when I extract the folder there is a bin subfolder and a lib subfolder in the pact folder. Should I put the pact folder in my go directory (the one in my GOPATH), or should I copy the inside of the folders and put them somewhere else? Because if I put the pact folder in my go folder, I always get the error message. Thank you for your help
m
The files inside
bin
need to be on the
PATH
environment variable. The files inside
bin
also need the
.bat
extension, apparently.
Should I put the pact folder in my go directory (the one in my GOPATH)
No, they can go anywhere you like on your system
If you put them in
\Users\myUser\pact
then you would add the following to the
PATH
variable:
Copy code
\Users\myUser\pact\bin
There is nothing special about Pact here. This is just the same as you would do for any program - for it to be available on the system for other apps to discover, it needs to be on the path
c
Ok thanks, but still not working, PATH is \Users\myUser\go\bin and all the file are inside with .bat and I have the same result
m
If you go into a shell and type
pact-broker
what happens? If it doesn't print out a help message, the PATH is incorrectly set
c
it tell me is not recognised, same for mock-service
I'm searching but for me it look like correct the path for the bin C:\Users\chris\go\bin with everything inside My user variable seems also correct and inside my environnement varaible the PATH seems also correct
ok thanks for the help, seems to be fix, the pact folder need to be in the bin folder and un the variable I need to had the path for it
👍 1