mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
Merge pull request #38135 from MHBauer/go-generate-flag-location
Automatic merge from submit-queue goflags must be after subcommand **What this PR does / why we need it**: if GOFLAGS is set when calling make, kubernetes will fail to build as an example, I often have `GOFLAGS=-v` so I can have some idea of progress during compilation **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: no known issue **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
This commit is contained in:
commit
74de0fdb63
@ -672,7 +672,7 @@ kube::golang::build_binaries() {
|
||||
# Only try to generate bindata if the file exists, since in some cases
|
||||
# one-off builds of individual directories may exclude some files.
|
||||
if [[ -f "${KUBE_ROOT}/${bindata}" ]]; then
|
||||
go "${goflags[@]:+${goflags[@]}}" generate "${KUBE_ROOT}/${bindata}"
|
||||
go generate "${goflags[@]:+${goflags[@]}}" "${KUBE_ROOT}/${bindata}"
|
||||
fi
|
||||
done
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user