Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
truenas-rk3588
k3s
Commits
f70ee4ad
Commit
f70ee4ad
authored
6 years ago
by
Darren Shepherd
Committed by
Erik Wilson
5 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Add script to update vendor
parent
f305ce22
k3s-v1.14.5
v1.14.5-k3s.1
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
deps.sh
+32
-0
deps.sh
with
32 additions
and
0 deletions
+32
-0
deps.sh
0 → 100755
View file @
f70ee4ad
#!/bin/bash
set
-e
git
rm
-rf
test
find
-name
'*_test.go'
-exec
git
rm
{}
\;
find
-depth
-name
testdata
-type
d
-exec
git
rm
-rf
{}
\;
find
-depth
-name
testing
-type
d
-exec
git
rm
-rf
{}
\;
cat
<<
EOF
| sed -E 's!^([^/]+/[^/]+/[^/]+)(/[^ ]+) (.*)!
\1
\3
!g' | sed -E 's!^((google|[ckv])[^/]+/[^/]+)(/[^ ]+) (.*)!
\1
\4
!g' > vendor.conf
package=k8s.io/kubernetes
package=k8s.io/kubernetes/cmd/hyperkube
$(
cat
./Godeps/Godeps.json | jq
-r
'(.Deps | .[] | "\(.ImportPath) \(.Comment) \(.Rev)\n")'
|
sed
's/null//'
|
awk
'{print $1 " " $2}'
|
grep
-Ev
'github.com/opencontainers/selinux|github.com/opencontainers/runc|bitbucket.org/ww/goautoneg|github.com/google/cadvisor'
|
sort
-k2
,1 |
uniq
-f1
)
bitbucket.org/ww/goautoneg a547fc61f48d567d5b4ec6f8aee5573d8efce11d https://github.com/rancher/goautoneg.git
github.com/ibuildthecloud/kvsql 0e798b1475327aadf3b8da5d2d1f99bb93dfd667
github.com/google/cadvisor v0.33.1-k3s.1 https://github.com/ibuildthecloud/cadvisor.git
github.com/opencontainers/runc 69ae5da6afdcaaf38285a10b36f362e41cb298d6
github.com/checkpoint-restore/go-criu v3.11
github.com/opencontainers/selinux v1.2
EOF
trash
git
rm
-rf
Godeps
rm
trash.lock
cd
vendor/k8s.io
ln
-s
../../staging/src/k8s.io/
*
.
cd
../..
git add vendor vendor.conf
for
i
in
./cmd/
*
/
*
.go
;
do
echo
Building
$(
dirname
$i
)
go build
$(
dirname
$i
)
done
git commit
-m
"Update vendor"
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help