Skip to content

Commit

Permalink
omit go version control information (buildvcs)
Browse files Browse the repository at this point in the history
Omit go version control information (buildvcs), otherwise
go command fails to obtain vcs status as shown below:

error obtaining VCS status: exit status 128
	Use -buildvcs=false to disable VCS stamping.

Signed-off-by: Muyassarov, Feruzjon <[email protected]>
  • Loading branch information
fmuyassarov committed Mar 10, 2023
1 parent 4a028c2 commit 5027527
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hack/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5027527

Please sign in to comment.