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
a3d53671
Commit
a3d53671
authored
May 27, 2015
by
Tim Hockin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8765 from eparis/hack-test-failure
Fix build with --use_go_build (e2e.test failure)
parents
f69eb0af
d8187e26
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
golang.sh
hack/lib/golang.sh
+14
-14
No files found.
hack/lib/golang.sh
View file @
a3d53671
...
@@ -329,20 +329,20 @@ kube::golang::build_binaries_for_platform() {
...
@@ -329,20 +329,20 @@ kube::golang::build_binaries_for_platform() {
if
[[
-n
${
use_go_build
:-}
]]
;
then
if
[[
-n
${
use_go_build
:-}
]]
;
then
kube::log::progress
" "
kube::log::progress
" "
for
binary
in
"
${
binaries
[@]
}
"
;
do
for
binary
in
"
${
statics
[@]
:+
${
statics
[@]
}
}
"
;
do
local
outfile
=
$(
kube::golang::output_filename_for_binary
"
${
binary
}
"
\
local
outfile
=
$(
kube::golang::output_filename_for_binary
"
${
binary
}
"
"
${
platform
}
"
)
"
${
platform
}
"
)
CGO_ENABLED
=
0 go build
-o
"
${
outfile
}
"
\
if
kube::golang::is_statically_linked_library
"
${
binary
}
"
;
then
"
${
goflags
[@]
:+
${
goflags
[@]
}}
"
\
CGO_ENABLED
=
0 go build
-o
"
${
outfile
}
"
\
-ldflags
"
${
version_ldflags
}
"
\
"
${
goflags
[@]
:+
${
goflags
[@]
}}
"
\
"
${
binary
}
"
-ldflags
"
${
version_ldflags
}
"
\
kube::log::progress
"*"
"
${
binary
}
"
done
else
for
binary
in
"
${
nonstatics
[@]
:+
${
nonstatics
[@]
}}
"
;
do
go build
-o
"
${
outfile
}
"
\
local
outfile
=
$(
kube::golang::output_filename_for_binary
"
${
binary
}
"
"
${
platform
}
"
)
"
${
goflags
[@]
:+
${
goflags
[@]
}
}
"
\
go build
-o
"
${
outfile
}
"
\
-ldflags
"
${
version_ldflags
}
"
\
"
${
goflags
[@]
:+
${
goflags
[@]
}
}
"
\
"
${
binary
}
"
-ldflags
"
${
version_ldflags
}
"
\
fi
"
${
binary
}
"
kube::log::progress
"*"
kube::log::progress
"*"
done
done
kube::log::progress
"
\n
"
kube::log::progress
"
\n
"
...
...
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