From 3114920d464ea3e6fef8230790e1566617d0029f Mon Sep 17 00:00:00 2001 From: Morgan Bauer Date: Mon, 5 Dec 2016 12:23:00 -0800 Subject: [PATCH] goflags must be after subcommand --- hack/lib/golang.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/lib/golang.sh b/hack/lib/golang.sh index 79aeb546cb4..c620bb10f51 100755 --- a/hack/lib/golang.sh +++ b/hack/lib/golang.sh @@ -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