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
4543e68a
Unverified
Commit
4543e68a
authored
Apr 18, 2019
by
Christoph Blecker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix shellcheck in hack/lib/golang.sh
parent
fc545587
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
.shellcheck_failures
hack/.shellcheck_failures
+0
-1
golang.sh
hack/lib/golang.sh
+5
-1
No files found.
hack/.shellcheck_failures
View file @
4543e68a
...
@@ -27,7 +27,6 @@
...
@@ -27,7 +27,6 @@
./hack/cherry_pick_pull.sh
./hack/cherry_pick_pull.sh
./hack/ginkgo-e2e.sh
./hack/ginkgo-e2e.sh
./hack/grab-profiles.sh
./hack/grab-profiles.sh
./hack/lib/golang.sh
./hack/lib/init.sh
./hack/lib/init.sh
./hack/lib/swagger.sh
./hack/lib/swagger.sh
./hack/lib/test.sh
./hack/lib/test.sh
...
...
hack/lib/golang.sh
View file @
4543e68a
...
@@ -372,7 +372,7 @@ EOF
...
@@ -372,7 +372,7 @@ EOF
# Ensure the go tool exists and is a viable version.
# Ensure the go tool exists and is a viable version.
kube::golang::verify_go_version
()
{
kube::golang::verify_go_version
()
{
if
[[
-z
"
$(
which
go
)
"
]]
;
then
if
[[
-z
"
$(
command
-v
go
)
"
]]
;
then
kube::log::usage_from_stdin
<<
EOF
kube::log::usage_from_stdin
<<
EOF
Can't find 'go' in PATH, please fix and retry.
Can't find 'go' in PATH, please fix and retry.
See http://golang.org/doc/install for installation instructions.
See http://golang.org/doc/install for installation instructions.
...
@@ -693,6 +693,10 @@ kube::golang::build_binaries() {
...
@@ -693,6 +693,10 @@ kube::golang::build_binaries() {
host_platform
=
$(
kube::golang::host_platform
)
host_platform
=
$(
kube::golang::host_platform
)
local
goflags goldflags goasmflags gogcflags
local
goflags goldflags goasmflags gogcflags
# If GOLDFLAGS is unset, then set it to the a default of "-s -w".
# Disable SC2153 for this, as it will throw a warning that the local
# variable goldflags will exist, and it suggest changing it to this.
# shellcheck disable=SC2153
goldflags
=
"
${
GOLDFLAGS
=-s -w
}
$(
kube::version::ldflags
)
"
goldflags
=
"
${
GOLDFLAGS
=-s -w
}
$(
kube::version::ldflags
)
"
goasmflags
=
"-trimpath=
${
KUBE_ROOT
}
"
goasmflags
=
"-trimpath=
${
KUBE_ROOT
}
"
gogcflags
=
"
${
GOGCFLAGS
:-}
-trimpath=
${
KUBE_ROOT
}
"
gogcflags
=
"
${
GOGCFLAGS
:-}
-trimpath=
${
KUBE_ROOT
}
"
...
...
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