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
f8287029
Commit
f8287029
authored
Mar 20, 2019
by
aaa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix shellcheck failures in godep-save.sh and godep-restore.sh
update pull request update pull request
parent
b1829dff
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
.shellcheck_failures
hack/.shellcheck_failures
+0
-2
godep-restore.sh
hack/godep-restore.sh
+1
-1
godep-save.sh
hack/godep-save.sh
+4
-3
No files found.
hack/.shellcheck_failures
View file @
f8287029
...
...
@@ -26,8 +26,6 @@
./cluster/validate-cluster.sh
./hack/cherry_pick_pull.sh
./hack/ginkgo-e2e.sh
./hack/godep-restore.sh
./hack/godep-save.sh
./hack/grab-profiles.sh
./hack/jenkins/benchmark-dockerized.sh
./hack/jenkins/build.sh
...
...
hack/godep-restore.sh
View file @
f8287029
...
...
@@ -18,7 +18,7 @@ set -o errexit
set
-o
nounset
set
-o
pipefail
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
/..
source
"
${
KUBE_ROOT
}
/hack/lib/init.sh"
kube::log::status
"Restoring kubernetes godeps"
...
...
hack/godep-save.sh
View file @
f8287029
...
...
@@ -18,7 +18,7 @@ set -o errexit
set
-o
nounset
set
-o
pipefail
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
/..
source
"
${
KUBE_ROOT
}
/hack/lib/init.sh"
kube::log::status
"Ensuring prereqs"
...
...
@@ -88,11 +88,12 @@ kube::log::status "Running godep save - this might take a while"
# This uses $(pwd) rather than ${KUBE_ROOT} because KUBE_ROOT will be
# realpath'ed, and godep barfs ("... is not using a known version control
# system") on our staging dirs.
GOPATH
=
"
${
GOPATH
}
:
$(
pwd
)
/staging"
${
KUBE_GODEP
:?
}
save
-i
$(
IFS
=
,
;
echo
"
${
IGNORED_PACKAGES
[*]
}
"
)
"
${
REQUIRED_BINS
[@]
}
"
GOPATH
=
"
${
GOPATH
}
:
$(
pwd
)
/staging"
"
${
KUBE_GODEP
:?
}
"
save
-i
"
$(
IFS
=
,
;
echo
"
${
IGNORED_PACKAGES
[*]
}
"
)
"
"
${
REQUIRED_BINS
[@]
}
"
# create a symlink in vendor directory pointing to the staging client. This
# let other packages use the staging client as if it were vendored.
for
repo
in
$(
ls
staging/src/k8s.io
)
;
do
for
repo
in
staging/src/k8s.io/
*
;
do
repo
=
"
${
repo
#staging/src/k8s.io/
}
"
if
[
!
-e
"vendor/k8s.io/
${
repo
}
"
]
;
then
ln
-s
"../../staging/src/k8s.io/
${
repo
}
"
"vendor/k8s.io/
${
repo
}
"
fi
...
...
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