From b445c65cfca3e6c91439c80bc0ab8732b5429e5a Mon Sep 17 00:00:00 2001 From: Grant Griffiths Date: Mon, 16 Oct 2023 18:25:12 +0000 Subject: [PATCH] Tooling: Fix mockgen to use go install Signed-off-by: Grant Griffiths --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 4232f102d..9a0fdb4fd 100644 --- a/Makefile +++ b/Makefile @@ -422,8 +422,8 @@ sdk-check-version: go run tools/sdkver/sdkver.go --check-major=0 --check-patch=0 mockgen: - GO111MODULE=off go get github.com/golang/mock/gomock - GO111MODULE=off go get github.com/golang/mock/mockgen + go install github.com/golang/mock/gomock + go install github.com/golang/mock/mockgen@v1.6.0 mockgen -destination=api/mock/mock_storagepool.go -package=mock github.com/libopenstorage/openstorage/api OpenStoragePoolServer,OpenStoragePoolClient mockgen -destination=api/mock/mock_cluster.go -package=mock github.com/libopenstorage/openstorage/api OpenStorageClusterServer,OpenStorageClusterClient mockgen -destination=api/mock/mock_node.go -package=mock github.com/libopenstorage/openstorage/api OpenStorageNodeServer,OpenStorageNodeClient