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
798d9c2e
Commit
798d9c2e
authored
Mar 08, 2017
by
Dr. Stefan Schimanski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unify godep code in hack/*-godep*.sh
parent
cf732613
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
10 deletions
+21
-10
godep-restore.sh
hack/godep-restore.sh
+4
-3
godep-save.sh
hack/godep-save.sh
+4
-4
update-all.sh
hack/update-all.sh
+13
-3
No files found.
hack/godep-restore.sh
View file @
798d9c2e
...
...
@@ -20,9 +20,10 @@ set -o pipefail
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
source
"
${
KUBE_ROOT
}
/hack/lib/init.sh"
export
GOPATH
=
${
GOPATH
}
:
${
KUBE_ROOT
}
/staging
GODEP
=
"
${
GODEP
:-
godep
}
"
source
"
${
KUBE_ROOT
}
/hack/lib/util.sh"
kube::util::ensure_godep_version v74
echo
"Starting to download all kubernetes godeps. This takes a while"
"
${
GODEP
}
"
restore
"
$@
"
GOPATH
=
${
GOPATH
}
:
${
KUBE_ROOT
}
/staging godep
restore
"
$@
"
echo
"Download finished"
hack/godep-save.sh
View file @
798d9c2e
...
...
@@ -20,9 +20,9 @@ set -o pipefail
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
source
"
${
KUBE_ROOT
}
/hack/lib/init.sh"
export
GOPATH
=
${
GOPATH
}
:
${
KUBE_ROOT
}
/staging
GODEP
=
"
${
GODEP
:-
godep
}
"
source
"
${
KUBE_ROOT
}
/hack/lib/util.sh"
kube::util::ensure_godep_version v74
# Some things we want in godeps aren't code dependencies, so ./...
# won't pick them up.
...
...
@@ -34,8 +34,8 @@ REQUIRED_BINS=(
)
pushd
"
${
KUBE_ROOT
}
"
>
/dev/null
"
${
GODEP
}
"
version
GO15VENDOREXPERIMENT
=
1
${
GODEP
}
save
"
${
REQUIRED_BINS
[@]
}
"
GOPATH
=
${
GOPATH
}
:
${
KUBE_ROOT
}
/staging godep save
"
${
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.
if
[
!
-e
"vendor/k8s.io/client-go"
]
;
then
...
...
hack/update-all.sh
View file @
798d9c2e
...
...
@@ -20,10 +20,13 @@ set -o nounset
set
-o
pipefail
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
source
"
${
KUBE_ROOT
}
/hack/lib/init.sh"
source
"
${
KUBE_ROOT
}
/hack/lib/util.sh"
source
"
${
KUBE_ROOT
}
/cluster/lib/util.sh"
SILENT
=
true
ALL
=
false
V
=
""
while
getopts
":va"
opt
;
do
case
$opt
in
...
...
@@ -32,6 +35,7 @@ while getopts ":va" opt; do
;;
v
)
SILENT
=
false
V
=
"-v"
;;
\?
)
echo
"Invalid flag: -
$OPTARG
"
>
&2
...
...
@@ -50,6 +54,13 @@ if ! $ALL ; then
echo
"Running in short-circuit mode; run with -a to force all scripts to run."
fi
kube::util::ensure_godep_version v74
if
!
kube::util::godep_restored 2>&1 |
sed
's/^/ /'
;
then
echo
"Running godep restore"
"
${
KUBE_ROOT
}
/hack/godep-restore.sh"
${
V
}
fi
BASH_TARGETS
=
"
update-generated-protobuf
update-codegen
...
...
@@ -64,9 +75,8 @@ BASH_TARGETS="
update-staging-godeps
update-bazel"
for
t
in
$BASH_TARGETS
do
echo
-e
"
${
color_yellow
}
Running
$t
${
color_norm
}
"
for
t
in
$BASH_TARGETS
;
do
echo
-e
"
${
color_yellow
}
Updating
$t
${
color_norm
}
"
if
$SILENT
;
then
if
!
bash
"
$KUBE_ROOT
/hack/
$t
.sh"
1> /dev/null
;
then
echo
-e
"
${
color_red
}
Running
$t
FAILED
${
color_norm
}
"
...
...
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