Srinivas Nali
06/06/2023, 1:39 PM14:05:57 2023/06/06 13:05:57 [INFO] checking pact-broker within range >= 1.22.3
14:05:57 2023/06/06 13:05:57 [ERROR] CLI tools are out of date, please upgrade before continuing
Yousaf Nabi (pactflow.io)
Srinivas Nali
06/06/2023, 2:04 PMinstall:
@if [ ! -d pact/bin ]; then\
echo "--- 🐿 Installing Pact CLI dependencies"; \
curl -fsSL <https://raw.githubusercontent.com/pact-foundation/pact-ruby-standalone/master/install.sh> | bash -x; \
fi
Srinivas Nali
06/06/2023, 2:05 PM14:53:42 + make install test-unit
14:53:42 --- ���� Installing Pact CLI dependencies
14:53:59 === RUN TestHandler_ModelMandatoryCheck
14:53:59 2023/06/06 13:53:59 [INFO] checking pact-mock-service within range >= 3.5.0, < 4.0.0
14:53:59 2023/06/06 13:53:59 [ERROR] CLI tools are out of date, please upgrade before continuing
Yousaf Nabi (pactflow.io)
pact/bin
folder wherever it is locatedYousaf Nabi (pactflow.io)
pact-mock-service --help
or do you need to specify the full path to the executable, pact-go expects the tools to be on the PATH
as per the docs.
You could also try v2 which uses the pact-rust core via the FFI library instead, and doesn't need to download the CLI tools, but I believe adding to your path should resolveSrinivas Nali
06/06/2023, 3:11 PMSrinivas Nali
06/06/2023, 3:11 PMlatest PATH value is : /usr/sbin:/usr/bin:/sbin:/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin:/usr/local/go/bin:/root/go/bin:/usr/bin:/usr/local/bin:/usr/local/go/bin:/root/pact/bin
Srinivas Nali
06/06/2023, 3:12 PMYousaf Nabi (pactflow.io)
pact/bin
relative to your project folder, not the rootSrinivas Nali
06/06/2023, 4:19 PM17:13:33 + echo 'pact-ruby-standalone v2.0.1 installed to /workspace/ntract-testing-poc-consumer_PR-6/pact'
17:13:33 pact-ruby-standalone v2.0.1 installed to /workspace/ntract-testing-poc-consumer_PR-6/pact
Srinivas Nali
06/06/2023, 4:20 PMYousaf Nabi (pactflow.io)
Srinivas Nali
06/07/2023, 6:37 AMSrinivas Nali
06/07/2023, 6:44 AM#Install Pact CLI
install-pact-cli:
@if [ ! -d pact/bin ]; then\
echo "--- Installing Pact CLI dependencies"; \
curl -fsSL <https://raw.githubusercontent.com/pact-foundation/pact-ruby-standalone/master/install.sh> | bash -x; \
fi
update-path:
@echo "adding pact-cli to the PATH..."
PATH:=$(PATH):$(PWD)/pact/bin
Srinivas Nali
06/07/2023, 6:45 AMSrinivas Nali
06/07/2023, 6:45 AMSrinivas Nali
06/07/2023, 6:45 AMYousaf Nabi (pactflow.io)