Skip to content

Commit 34549b8

Browse files
committed
just install the thing
1 parent 9ebea3b commit 34549b8

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

Makefile

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,4 @@ test:
2727

2828
MOCKGEN := mockgen
2929
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
30+
go get github.com/golang/mock/mockgen; go install github.com/golang/mock/mockgen;

0 commit comments

Comments
 (0)