Skip to content

Commit c73beb5

Browse files
Makefile: pick mockgen from env
go install github.com/golang/mock/[email protected] export PATH=$PATH:$(go env GOPATH)/bin Signed-off-by: Rohit Yadav <[email protected]>
1 parent 5ef455a commit c73beb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ mocks:
2525
test:
2626
go test -v github.com/apache/cloudstack-go/v2/test
2727

28-
MOCKGEN ?= $(shell pwd)/bin/mockgen
28+
MOCKGEN := mockgen
2929
mockgen: ## Download conversion-gen locally if necessary.
3030
$(call go-get-tool,$(MOCKGEN),github.com/golang/mock/mockgen)
3131

0 commit comments

Comments
 (0)