Skip to content

Commit 391beec

Browse files
committed
go 1.17 has deprecated installing executables with go get
use go install instead
1 parent e6fa01e commit 391beec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ envtest: ## Download envtest-setup locally if necessary.
161161

162162
MOCKGEN = $(shell pwd)/bin/mockgen
163163
mockgen: ## Download mockgen locally if necessary.
164-
$(call go-get-tool,$(MOCKGEN),github.com/golang/mock/mockgen)
164+
$(call go-get-tool,$(MOCKGEN),github.com/golang/mock/mockgen@latest)
165165

166166
GOLINT = $(shell pwd)/bin/golangci-lint
167167
golint: ## Download golangci-lint locally if necessary.
@@ -176,7 +176,7 @@ TMP_DIR=$$(mktemp -d) ;\
176176
cd $$TMP_DIR ;\
177177
go mod init tmp ;\
178178
echo "Downloading $(2)" ;\
179-
GOBIN=$(PROJECT_DIR)/bin go get $(2) ;\
179+
GOBIN=$(PROJECT_DIR)/bin go install $(2) ;\
180180
rm -rf $$TMP_DIR ;\
181181
}
182182
endef

0 commit comments

Comments
 (0)