You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ro...@apache.org on 2022/10/07 06:10:01 UTC

[cloudstack-go] branch main updated: Makefile: pick mockgen from env

This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack-go.git


The following commit(s) were added to refs/heads/main by this push:
     new c73beb5  Makefile: pick mockgen from env
c73beb5 is described below

commit c73beb5838082704d6d9e9346b97373f528a5bc0
Author: Rohit Yadav <ro...@shapeblue.com>
AuthorDate: Fri Oct 7 11:39:09 2022 +0530

    Makefile: pick mockgen from env
    
            go install github.com/golang/mock/mockgen@v1.6.0
            export PATH=$PATH:$(go env GOPATH)/bin
    
    Signed-off-by: Rohit Yadav <ro...@shapeblue.com>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 6911430..f69f7c3 100644
--- a/Makefile
+++ b/Makefile
@@ -25,7 +25,7 @@ mocks:
 test:
 	go test -v github.com/apache/cloudstack-go/v2/test
 
-MOCKGEN ?= $(shell pwd)/bin/mockgen
+MOCKGEN := mockgen
 mockgen: ## Download conversion-gen locally if necessary.
 	$(call go-get-tool,$(MOCKGEN),github.com/golang/mock/mockgen)