Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix unbound variable build/lib/release.sh bash 4.3 #77985

Merged
merged 1 commit into from
May 17, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 8 additions & 3 deletions hack/lib/golang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ kube::golang::dedup() {
# KUBE_SUPPORTED* vars at the top of this file.
declare -a -g KUBE_SERVER_PLATFORMS
declare -a -g KUBE_CLIENT_PLATFORMS
declare -a -g KUBE_NODE_PLATFORMS
declare -a -g KUBE_TEST_PLATFORMS
kube::golang::setup_platforms() {
if [[ -n "${KUBE_BUILD_PLATFORMS:-}" ]]; then
# KUBE_BUILD_PLATFORMS needs to be read into an array before the next
Expand Down Expand Up @@ -206,19 +208,22 @@ kube::golang::setup_platforms() {
elif [[ "${KUBE_FASTBUILD:-}" == "true" ]]; then
KUBE_SERVER_PLATFORMS=(linux/amd64)
readonly KUBE_SERVER_PLATFORMS
readonly KUBE_NODE_PLATFORMS=(linux/amd64)
KUBE_NODE_PLATFORMS=(linux/amd64)
readonly KUBE_NODE_PLATFORMS
if [[ "${KUBE_BUILDER_OS:-}" == "darwin"* ]]; then
readonly KUBE_TEST_PLATFORMS=(
KUBE_TEST_PLATFORMS=(
darwin/amd64
linux/amd64
)
readonly KUBE_TEST_PLATFORMS
KUBE_CLIENT_PLATFORMS=(
darwin/amd64
linux/amd64
)
readonly KUBE_CLIENT_PLATFORMS
else
readonly KUBE_TEST_PLATFORMS=(linux/amd64)
KUBE_TEST_PLATFORMS=(linux/amd64)
readonly KUBE_TEST_PLATFORMS
KUBE_CLIENT_PLATFORMS=(linux/amd64)
readonly KUBE_CLIENT_PLATFORMS
fi
Expand Down