mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 03:11:40 +00:00
autotag vendor as manual in update-bazel
This commit is contained in:
parent
e070d9fd67
commit
cb68f3edf9
@ -26,6 +26,7 @@ PATH="${GOBIN}:${PATH}"
|
||||
|
||||
# Install tools we need, but only from vendor/...
|
||||
go install k8s.io/kubernetes/vendor/github.com/bazelbuild/bazel-gazelle/cmd/gazelle
|
||||
go install k8s.io/kubernetes/vendor/github.com/bazelbuild/buildtools/buildozer
|
||||
go install k8s.io/kubernetes/vendor/k8s.io/repo-infra/kazel
|
||||
|
||||
touch "${KUBE_ROOT}/vendor/BUILD"
|
||||
@ -43,3 +44,11 @@ gazelle fix \
|
||||
"${KUBE_ROOT}"
|
||||
|
||||
kazel
|
||||
|
||||
# make targets in vendor manual
|
||||
# buildozer exits 3 when no changes are made ¯\_(ツ)_/¯
|
||||
# https://github.com/bazelbuild/buildtools/tree/master/buildozer#error-code
|
||||
buildozer -quiet 'add tags manual' '//vendor/...:%go_binary' '//vendor/...:%go_test' && ret=$? || ret=$?
|
||||
if [[ $ret != 0 && $ret != 3 ]]; then
|
||||
exit 1
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user