Skip to content

Commit b8481b6

Browse files
committed
Don't use declare -g in build
1 parent 314264a commit b8481b6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

hack/lib/golang.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,10 @@ kube::golang::dedup() {
163163
# to readonly.
164164
# The configured vars will only contain platforms allowed by the
165165
# KUBE_SUPPORTED* vars at the top of this file.
166-
declare -a -g KUBE_SERVER_PLATFORMS
167-
declare -a -g KUBE_CLIENT_PLATFORMS
168-
declare -a -g KUBE_NODE_PLATFORMS
169-
declare -a -g KUBE_TEST_PLATFORMS
166+
declare -a KUBE_SERVER_PLATFORMS
167+
declare -a KUBE_CLIENT_PLATFORMS
168+
declare -a KUBE_NODE_PLATFORMS
169+
declare -a KUBE_TEST_PLATFORMS
170170
kube::golang::setup_platforms() {
171171
if [[ -n "${KUBE_BUILD_PLATFORMS:-}" ]]; then
172172
# KUBE_BUILD_PLATFORMS needs to be read into an array before the next
@@ -219,7 +219,7 @@ kube::golang::setup_platforms() {
219219
KUBE_CLIENT_PLATFORMS=(
220220
darwin/amd64
221221
linux/amd64
222-
)
222+
)
223223
readonly KUBE_CLIENT_PLATFORMS
224224
else
225225
KUBE_TEST_PLATFORMS=(linux/amd64)

0 commit comments

Comments
 (0)