We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ebea3b commit 34549b8Copy full SHA for 34549b8
Makefile
@@ -27,17 +27,4 @@ test:
27
28
MOCKGEN := mockgen
29
mockgen: ## Download conversion-gen locally if necessary.
30
- $(call go-get-tool,$(MOCKGEN),github.com/golang/mock/mockgen)
31
-
32
-PROJECT_DIR := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST))))
33
-define go-get-tool
34
-[ -f $(1) ] || { \
35
-set -e ;\
36
-TMP_DIR=$$(mktemp -d) ;\
37
-cd $$TMP_DIR ;\
38
-go mod init tmp ;\
39
-echo "Downloading $(2)" ;\
40
-GOBIN=$(PROJECT_DIR)/bin go get $(2) ;\
41
-rm -rf $$TMP_DIR ;\
42
-}
43
-endef
+ go get github.com/golang/mock/mockgen; go install github.com/golang/mock/mockgen;
0 commit comments