diff --git a/hack/generate.sh b/hack/generate.sh index 0d5c165d61..e851a5d5c6 100755 --- a/hack/generate.sh +++ b/hack/generate.sh @@ -3,6 +3,9 @@ set -o pipefail # Default path for code-generator repo K8S_CODE_GENERATOR=${K8S_CODE_GENERATOR:-../code-generator} +# Omit version control information (buildvcs) +export GOENV="/go/env" +go env -w GOFLAGS="-buildvcs=false" go mod vendor