diff --git a/build/root/BUILD.root b/build/root/BUILD.root index 2de430729aa13..38e89c12e904a 100644 --- a/build/root/BUILD.root +++ b/build/root/BUILD.root @@ -4,6 +4,10 @@ # gazelle:exclude _tmp # gazelle:prefix k8s.io/kubernetes +# Disable proto rules, since the Go sources are currently generated by +# hack/update-generated-protobuf.sh and checked into the repo. +# gazelle:proto disable + package(default_visibility = ["//visibility:public"]) load("@io_bazel_rules_go//go:def.bzl", "go_prefix") diff --git a/hack/update-bazel.sh b/hack/update-bazel.sh index cce18c0aa9786..14d57eff4be44 100755 --- a/hack/update-bazel.sh +++ b/hack/update-bazel.sh @@ -40,7 +40,6 @@ touch "${KUBE_ROOT}/vendor/BUILD" gazelle fix \ -build_file_name=BUILD,BUILD.bazel \ -external=vendored \ - -proto=legacy \ -mode=fix # gazelle gets confused by our staging/ directory, prepending an extra # "k8s.io/kubernetes/staging/src" to the import path.