goflags must be after subcommand

parent 55f13b57
...@@ -662,7 +662,7 @@ kube::golang::build_binaries() { ...@@ -662,7 +662,7 @@ kube::golang::build_binaries() {
# Only try to generate bindata if the file exists, since in some cases # Only try to generate bindata if the file exists, since in some cases
# one-off builds of individual directories may exclude some files. # one-off builds of individual directories may exclude some files.
if [[ -f "${KUBE_ROOT}/${bindata}" ]]; then if [[ -f "${KUBE_ROOT}/${bindata}" ]]; then
go "${goflags[@]:+${goflags[@]}}" generate "${KUBE_ROOT}/${bindata}" go generate "${goflags[@]:+${goflags[@]}}" "${KUBE_ROOT}/${bindata}"
fi fi
done done
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment