mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 20:53:33 +00:00
mkdir in build when the output dir is needed
This commit is contained in:
parent
9e1d764524
commit
2052e334b6
@ -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
|
# 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
|
# have this flag. Whenever we deprecate go 1.3, update to use -o instead of
|
||||||
# changing into the output directory.
|
# changing into the output directory.
|
||||||
|
mkdir -p "$(dirname ${outfile})"
|
||||||
pushd "$(dirname ${outfile})" >/dev/null
|
pushd "$(dirname ${outfile})" >/dev/null
|
||||||
go test -c \
|
go test -c \
|
||||||
"${goflags[@]:+${goflags[@]}}" \
|
"${goflags[@]:+${goflags[@]}}" \
|
||||||
|
Loading…
Reference in New Issue
Block a user