From 9701cc6454f119b890e02c3c945c4f454d7de87a Mon Sep 17 00:00:00 2001 From: gy95 Date: Fri, 4 Jun 2021 11:46:10 +0800 Subject: [PATCH] fix make verify cmd generated codes output package is ./ Signed-off-by: gy95 --- hack/update-codegen.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/update-codegen.sh b/hack/update-codegen.sh index 62c36633f..302850054 100755 --- a/hack/update-codegen.sh +++ b/hack/update-codegen.sh @@ -10,7 +10,7 @@ cd "${REPO_ROOT}" echo "Generating with deepcopy-gen" GO111MODULE=on go install k8s.io/code-generator/cmd/deepcopy-gen -GOPATH=$(go env GOPATH | awk -F ':' '{print $1}') +export GOPATH=$(go env GOPATH | awk -F ':' '{print $1}') export PATH=$PATH:$GOPATH/bin deepcopy-gen \