Skip to content

Commit

Permalink
mkdir in build when the output dir is needed
Browse files Browse the repository at this point in the history
  • Loading branch information
thockin committed Feb 7, 2016
1 parent 9e1d764 commit 2052e33
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hack/lib/golang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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[@]}}" \
Expand Down

0 comments on commit 2052e33

Please sign in to comment.