From 36d5afc4f6177fe46fa69da0db759f44c1b71194 Mon Sep 17 00:00:00 2001 From: Armando Montanez Date: Fri, 9 May 2025 10:12:17 -0700 Subject: [PATCH] Update Bazel pin, ignore build-* directories Updates the Bazel pin to 8.1.0 so that build-* directories can be properly ignored. --- .bazelignore | 4 ---- .bazelrc | 4 ++++ .bazelversion | 2 +- REPO.bazel | 10 ++++++++++ 4 files changed, 15 insertions(+), 5 deletions(-) delete mode 100644 .bazelignore create mode 100644 REPO.bazel diff --git a/.bazelignore b/.bazelignore deleted file mode 100644 index a086fff4b..000000000 --- a/.bazelignore +++ /dev/null @@ -1,4 +0,0 @@ -# Don't accidentally pick up external CMake deps with Bazel build files. -build -# Don't treat submodules as part of this project. -lib diff --git a/.bazelrc b/.bazelrc index 96b4eca24..8eae3bc20 100644 --- a/.bazelrc +++ b/.bazelrc @@ -4,3 +4,7 @@ common --host_per_file_copt=external/.*@-w # Produce useful output when the build fails. common --verbose_failures + +# Silence warnings about old bazel_dep pins. Bazel 8 brings along newer ones, +# but we can support Bazel 7 (for now). +common --check_direct_dependencies=off diff --git a/.bazelversion b/.bazelversion index b26a34e47..8104cabd3 100644 --- a/.bazelversion +++ b/.bazelversion @@ -1 +1 @@ -7.2.1 +8.1.0 diff --git a/REPO.bazel b/REPO.bazel new file mode 100644 index 000000000..031d5dd9d --- /dev/null +++ b/REPO.bazel @@ -0,0 +1,10 @@ +ignore_directories( + [ + # Don't accidentally pick up external CMake deps with Bazel build files. + "cmake-*", + "build", + "build-*", + # Don't treat submodules as part of this project. + "lib", + ], +)