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
54f2c1de
Commit
54f2c1de
authored
Dec 23, 2017
by
Tim Hockin
Committed by
Jeff Grafton
Jun 08, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove kube::util::go_install_from_commit
parent
1fee7b15
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
17 deletions
+0
-17
util.sh
hack/lib/util.sh
+0
-17
No files found.
hack/lib/util.sh
View file @
54f2c1de
...
@@ -469,23 +469,6 @@ kube::util::ensure_no_staging_repos_in_gopath() {
...
@@ -469,23 +469,6 @@ kube::util::ensure_no_staging_repos_in_gopath() {
fi
fi
}
}
# Installs the specified go package at a particular commit.
kube::util::go_install_from_commit
()
{
local
-r
pkg
=
$1
local
-r
commit
=
$2
kube::util::ensure-temp-dir
mkdir
-p
"
${
KUBE_TEMP
}
/go/src"
GOPATH
=
"
${
KUBE_TEMP
}
/go"
go get
-d
-u
"
${
pkg
}
"
(
cd
"
${
KUBE_TEMP
}
/go/src/
${
pkg
}
"
git checkout
-q
"
${
commit
}
"
GOPATH
=
"
${
KUBE_TEMP
}
/go"
go
install
"
${
pkg
}
"
)
PATH
=
"
${
KUBE_TEMP
}
/go/bin:
${
PATH
}
"
hash
-r
# force bash to clear PATH cache
}
# Checks that the GOPATH is simple, i.e. consists only of one directory, not multiple.
# Checks that the GOPATH is simple, i.e. consists only of one directory, not multiple.
kube::util::ensure_single_dir_gopath
()
{
kube::util::ensure_single_dir_gopath
()
{
if
[[
"
${
GOPATH
}
"
==
*
:
*
]]
;
then
if
[[
"
${
GOPATH
}
"
==
*
:
*
]]
;
then
...
...
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