@@ -52,9 +52,23 @@ if [[ -d Godeps ]]; then
52
52
mv Godeps " ${BACKUP} /Godeps"
53
53
fi
54
54
55
+ # # Workaround "httplex" was dropped from golang.org/x/net repo and the code
56
+ # # was moved to the "golang.org/x/net/http/httpguts" directory, we do not use
57
+ # # this directly, however many packages we vendor are still using the older
58
+ # # golang.org/x/net and we need to keep this until all those dependencies
59
+ # # are switched to newer golang.org/x/net.
60
+ IGNORED_PACKAGES=(
61
+ " golang.org/x/net/lex/httplex"
62
+ )
63
+ REQUIRED_BINS=(
64
+ " golang.org/x/net/internal/nettest"
65
+ " golang.org/x/net/internal/socks"
66
+ " golang.org/x/net/internal/sockstest"
67
+ )
68
+
55
69
# Some things we want in godeps aren't code dependencies, so ./...
56
70
# won't pick them up.
57
- REQUIRED_BINS=(
71
+ REQUIRED_BINS+ =(
58
72
" github.com/bazelbuild/bazel-gazelle/cmd/gazelle"
59
73
" github.com/bazelbuild/buildtools/buildozer"
60
74
" github.com/cespare/prettybench"
@@ -74,7 +88,7 @@ kube::log::status "Running godep save - this might take a while"
74
88
# This uses $(pwd) rather than ${KUBE_ROOT} because KUBE_ROOT will be
75
89
# realpath'ed, and godep barfs ("... is not using a known version control
76
90
# system") on our staging dirs.
77
- GOPATH=" ${GOPATH} :$( pwd) /staging" ${KUBE_GODEP:? } save " ${REQUIRED_BINS[@]} "
91
+ GOPATH=" ${GOPATH} :$( pwd) /staging" ${KUBE_GODEP:? } save -i $( IFS=, ; echo " ${IGNORED_PACKAGES[*]} " ) " ${REQUIRED_BINS[@]} "
78
92
79
93
# create a symlink in vendor directory pointing to the staging client. This
80
94
# let other packages use the staging client as if it were vendored.
0 commit comments