goflags must be after subcommand

This commit is contained in:
Morgan Bauer
2016-12-05 12:23:00 -08:00
parent 55f13b5729
commit 3114920d46

View File

@@ -662,7 +662,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