mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Also assume arguments starting with dashes are go flags in hack/build-go.sh
Tested: $ hack/build-go.sh cmd/kubelet -v github.com/GoogleCloudPlatform/kubernetes/pkg/... Signed-off-by: Filipe Brandenburger <filbranden@google.com>
This commit is contained in:
parent
8effbdc63f
commit
3d03b4b80f
@ -44,14 +44,19 @@ if [[ $# == 0 ]]; then
|
|||||||
plugin/cmd/scheduler
|
plugin/cmd/scheduler
|
||||||
fi
|
fi
|
||||||
|
|
||||||
binaries=()
|
|
||||||
for arg; do
|
|
||||||
binaries+=("${KUBE_GO_PACKAGE}/${arg}")
|
|
||||||
done
|
|
||||||
|
|
||||||
# Use eval to preserve embedded quoted strings.
|
# Use eval to preserve embedded quoted strings.
|
||||||
eval "goflags=(${GOFLAGS:-})"
|
eval "goflags=(${GOFLAGS:-})"
|
||||||
|
|
||||||
|
binaries=()
|
||||||
|
for arg; do
|
||||||
|
if [[ "${arg}" == -* ]]; then
|
||||||
|
# Assume arguments starting with a dash are flags to pass to go.
|
||||||
|
goflags+=("${arg}")
|
||||||
|
else
|
||||||
|
binaries+=("${KUBE_GO_PACKAGE}/${arg}")
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
# Note that the flags to 'go build' are duplicated in the salt build setup
|
# Note that the flags to 'go build' are duplicated in the salt build setup
|
||||||
# (release/build-release.sh) for our cluster deploy. If we add more command
|
# (release/build-release.sh) for our cluster deploy. If we add more command
|
||||||
# line options to our standard build we'll want to duplicate them there. As we
|
# line options to our standard build we'll want to duplicate them there. As we
|
||||||
|
Loading…
Reference in New Issue
Block a user