From 2052e334b6427bb3327b60806a547c02983e04e4 Mon Sep 17 00:00:00 2001 From: Tim Hockin Date: Fri, 5 Feb 2016 13:11:26 -0800 Subject: [PATCH] mkdir in build when the output dir is needed --- hack/lib/golang.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/hack/lib/golang.sh b/hack/lib/golang.sh index 43a1f68ff8c..bf881caf380 100755 --- a/hack/lib/golang.sh +++ b/hack/lib/golang.sh @@ -409,6 +409,7 @@ kube::golang::build_binaries_for_platform() { # Go 1.4 added -o to control where the binary is saved, but Go 1.3 doesn't # have this flag. Whenever we deprecate go 1.3, update to use -o instead of # changing into the output directory. + mkdir -p "$(dirname ${outfile})" pushd "$(dirname ${outfile})" >/dev/null go test -c \ "${goflags[@]:+${goflags[@]}}" \