From 42cd2ae4bc04695999c7b34456d58e208e74e31c Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Wed, 2 Nov 2022 11:57:22 -0400 Subject: [PATCH] fix: switch to go install from go get This no longer works as of go 1.18: https://go.dev/doc/go-get-install-deprecation --- tests.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests.mk b/tests.mk index 67c189068..f99e8783b 100644 --- a/tests.mk +++ b/tests.mk @@ -144,7 +144,9 @@ ci-go-coverage-plugin: -w $(GO_REPO_ROOT) \ $(BUILD_IMAGE) \ bash -c "cd plugins/$(PLUGIN_NAME) && \ - go get github.com/onsi/gomega github.com/schrej/godacov github.com/haya14busa/goverage && \ + go get github.com/onsi/gomega && \ + go install github.com/schrej/godacov && \ + go install github.com/haya14busa/goverage && \ goverage -v -coverprofile=./../../test-results/coverage/$(PLUGIN_NAME).out && \ (godacov -r ./../../test-results/coverage/$(PLUGIN_NAME).out -c $$CIRCLE_SHA1 -t $$CODACY_TOKEN || true)" || exit $$?