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
7d87eec4
Commit
7d87eec4
authored
Sep 01, 2017
by
Tim Hockin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure GOPATH/bin is in PATH
parent
7f574783
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
golang.sh
hack/lib/golang.sh
+4
-1
No files found.
hack/lib/golang.sh
View file @
7d87eec4
...
...
@@ -366,13 +366,16 @@ kube::golang::setup_env() {
kube::golang::create_gopath_tree
export
GOPATH
=
${
KUBE_GOPATH
}
export
GOPATH
=
"
${
KUBE_GOPATH
}
"
# Append KUBE_EXTRA_GOPATH to the GOPATH if it is defined.
if
[[
-n
${
KUBE_EXTRA_GOPATH
:-}
]]
;
then
GOPATH
=
"
${
GOPATH
}
:
${
KUBE_EXTRA_GOPATH
}
"
fi
# Make sure our own Go binaries are in PATH.
export
PATH
=
"
${
KUBE_GOPATH
}
/bin:
${
PATH
}
"
# Change directories so that we are within the GOPATH. Some tools get really
# upset if this is not true. We use a whole fake GOPATH here to collect the
# resultant binaries. Go will not let us use GOBIN with `go install` and
...
...
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