From 4129d8ebcd60893416fe878ffb111c74baf1fcff Mon Sep 17 00:00:00 2001 From: mitchell amihod Date: Wed, 6 Sep 2023 23:47:38 +0100 Subject: [PATCH] fix: Add the GOPATH to the go-to-protobuf command (#3022) Add the GOPATH to the go-to-protobuf command Signed-off-by: mitchell amihod <4623+meeech@users.noreply.github.com> Signed-off-by: Philip Clark --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 638498ff85..a5f77cc568 100644 --- a/Makefile +++ b/Makefile @@ -111,7 +111,7 @@ gen-proto: k8s-proto api-proto ui-proto # generates the .proto files affected by changes to types.go .PHONY: k8s-proto k8s-proto: go-mod-vendor $(TYPES) ## generate kubernetes protobuf files - PATH=${DIST_DIR}:$$PATH go-to-protobuf \ + PATH=${DIST_DIR}:$$PATH GOPATH=${GOPATH} go-to-protobuf \ --go-header-file=./hack/custom-boilerplate.go.txt \ --packages=github.com/argoproj/argo-rollouts/pkg/apis/rollouts/v1alpha1 \ --apimachinery-packages=${APIMACHINERY_PKGS} \