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