goflags must be after subcommand
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user