Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
06047953
Unverified
Commit
06047953
authored
May 16, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
May 16, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #77910 from adisky/patch-1
fix hack/lib/golang.sh for bash 4.3
parents
dfcc60d4
38b7f212
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
golang.sh
hack/lib/golang.sh
+9
-4
No files found.
hack/lib/golang.sh
View file @
06047953
...
@@ -163,6 +163,8 @@ kube::golang::dedup() {
...
@@ -163,6 +163,8 @@ kube::golang::dedup() {
# to readonly.
# to readonly.
# The configured vars will only contain platforms allowed by the
# The configured vars will only contain platforms allowed by the
# KUBE_SUPPORTED* vars at the top of this file.
# KUBE_SUPPORTED* vars at the top of this file.
declare
-a
-g
KUBE_SERVER_PLATFORMS
declare
-a
-g
KUBE_CLIENT_PLATFORMS
kube::golang::setup_platforms
()
{
kube::golang::setup_platforms
()
{
if
[[
-n
"
${
KUBE_BUILD_PLATFORMS
:-}
"
]]
;
then
if
[[
-n
"
${
KUBE_BUILD_PLATFORMS
:-}
"
]]
;
then
# KUBE_BUILD_PLATFORMS needs to be read into an array before the next
# KUBE_BUILD_PLATFORMS needs to be read into an array before the next
...
@@ -202,20 +204,23 @@ kube::golang::setup_platforms() {
...
@@ -202,20 +204,23 @@ kube::golang::setup_platforms() {
readonly
KUBE_CLIENT_PLATFORMS
readonly
KUBE_CLIENT_PLATFORMS
elif
[[
"
${
KUBE_FASTBUILD
:-}
"
==
"true"
]]
;
then
elif
[[
"
${
KUBE_FASTBUILD
:-}
"
==
"true"
]]
;
then
readonly
KUBE_SERVER_PLATFORMS
=(
linux/amd64
)
KUBE_SERVER_PLATFORMS
=(
linux/amd64
)
readonly
KUBE_SERVER_PLATFORMS
readonly
KUBE_NODE_PLATFORMS
=(
linux/amd64
)
readonly
KUBE_NODE_PLATFORMS
=(
linux/amd64
)
if
[[
"
${
KUBE_BUILDER_OS
:-}
"
==
"darwin"
*
]]
;
then
if
[[
"
${
KUBE_BUILDER_OS
:-}
"
==
"darwin"
*
]]
;
then
readonly
KUBE_TEST_PLATFORMS
=(
readonly
KUBE_TEST_PLATFORMS
=(
darwin/amd64
darwin/amd64
linux/amd64
linux/amd64
)
)
readonly
KUBE_CLIENT_PLATFORMS
=(
KUBE_CLIENT_PLATFORMS
=(
darwin/amd64
darwin/amd64
linux/amd64
linux/amd64
)
)
readonly
KUBE_CLIENT_PLATFORMS
else
else
readonly
KUBE_TEST_PLATFORMS
=(
linux/amd64
)
readonly
KUBE_TEST_PLATFORMS
=(
linux/amd64
)
readonly
KUBE_CLIENT_PLATFORMS
=(
linux/amd64
)
KUBE_CLIENT_PLATFORMS
=(
linux/amd64
)
readonly
KUBE_CLIENT_PLATFORMS
fi
fi
else
else
KUBE_SERVER_PLATFORMS
=(
"
${
KUBE_SUPPORTED_SERVER_PLATFORMS
[@]
}
"
)
KUBE_SERVER_PLATFORMS
=(
"
${
KUBE_SUPPORTED_SERVER_PLATFORMS
[@]
}
"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment