good time of the day everybody ! I’m having some ...
# pact-go
v
good time of the day everybody ! I’m having some troubles launching Provider tests on golang, specifically, I’m getting a message that my Pact CLI is out of date:
Copy code
2022/11/07 08:46:42 [INFO] checking pact-mock-service within range >= 3.5.0, < 4.0.0
2022/11/07 08:46:42 [ERROR] CLI tools are out of date, please upgrade before continuing
from my `go.mod`:
Copy code
<http://github.com/pact-foundation/pact-go|github.com/pact-foundation/pact-go> v1.7.0
I’m seeing that 2.x.x version is still in beta, so want to try Pact with a stable version first before doing a transition to 2.x.x.
m
Hello! 👋 Have you installed the latest CLI tools?
v
I’m launching PactFlow tests on PR creation / pushed via CircleCI, here’s the dependency installation step form Makefile:
Copy code
pact-dependencies:
	echo "--- 🛠 Installing Pact CLI dependencies";\
	curl -fsSL <https://raw.githubusercontent.com/pact-foundation/pact-ruby-standalone/master/install.sh> | bash;
	export PATH=$(PATH):/opt/pact/bin
m
Is that step running from the
/opt/
folder?
That
install.sh
script doesn’t put the files in
/opt/pact/bin
it extracts the files into the current working directory. So you would end up with
/<cwd>/pact/bin
at the end of it.
so you could simply change the last line (that exports the PATH) to use
$PWD
in place of
/opt
v
okay okay, thank you, let me try and update these steps on my side thankyou
🙌 1
m
no worries!