From 5fd6b0a980ae8531d539c8aace8e2e33a0a0fcdd Mon Sep 17 00:00:00 2001 From: Davanum Srinivas Date: Sun, 25 Sep 2022 15:52:46 -0400 Subject: [PATCH] Update instructions to install cfssl Use the newer "go install" variant as we are above go 1.18 Signed-off-by: Davanum Srinivas --- hack/lib/util.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hack/lib/util.sh b/hack/lib/util.sh index 67454132c99..b4de9b30b12 100755 --- a/hack/lib/util.sh +++ b/hack/lib/util.sh @@ -670,7 +670,7 @@ function kube::util::ensure-cfssl { if [[ "${host_arch}" != "amd64" ]]; then echo "Cannot download cfssl on non-amd64 hosts and cfssl does not appear to be installed." echo "Please install cfssl and cfssljson and verify they are in \$PATH." - echo "Hint: export PATH=\$PATH:\$GOPATH/bin; go get -u github.com/cloudflare/cfssl/cmd/..." + echo "Hint: export PATH=\$PATH:\$GOPATH/bin; go install github.com/cloudflare/cfssl/cmd/...@latest" exit 1 fi @@ -708,7 +708,7 @@ function kube::util::ensure-cfssl { CFSSLJSON_BIN="${cfssldir}/cfssljson" if [[ ! -x ${CFSSL_BIN} || ! -x ${CFSSLJSON_BIN} ]]; then echo "Failed to download 'cfssl'. Please install cfssl and cfssljson and verify they are in \$PATH." - echo "Hint: export PATH=\$PATH:\$GOPATH/bin; go get -u github.com/cloudflare/cfssl/cmd/..." + echo "Hint: export PATH=\$PATH:\$GOPATH/bin; go install github.com/cloudflare/cfssl/cmd/...@latest" exit 1 fi popd > /dev/null || return 1