From 312986896dafdbf2475601be8fa0a2faefc40b2f Mon Sep 17 00:00:00 2001 From: Protobuf Team Bot Date: Thu, 12 Oct 2023 08:55:44 -0700 Subject: [PATCH] Disable Bzlmod explicitly in .bazelrc This will help make sure [Bazel Downstream Pipeline](https://github.com/bazelbuild/continuous-integration/blob/master/docs/downstream-testing.md) is green after enabling Bzlmod at Bazel@HEAD See https://github.com/bazelbuild/bazel/issues/18958#issuecomment-1749058780 Related https://github.com/protocolbuffers/protobuf/issues/14313 Closes: https://github.com/protocolbuffers/protobuf/pull/14314 PiperOrigin-RevId: 572920528 --- .bazelrc | 4 ++++ MODULE.bazel | 2 ++ 2 files changed, 6 insertions(+) create mode 100644 MODULE.bazel diff --git a/.bazelrc b/.bazelrc index c27594d51b..eba2a89fb0 100644 --- a/.bazelrc +++ b/.bazelrc @@ -26,3 +26,7 @@ build:ubsan --copt=-DUNDEFINED_SANITIZER=1 # Workaround for the fact that Bazel links with $CC, not $CXX # https://github.com/bazelbuild/bazel/issues/11122#issuecomment-613746748 build:ubsan --copt=-fno-sanitize=function --copt=-fno-sanitize=vptr + +# TODO: migrate all dependencies from WORKSPACE to MODULE.bazel +# https://github.com/protocolbuffers/protobuf/issues/14313 +common --noenable_bzlmod diff --git a/MODULE.bazel b/MODULE.bazel new file mode 100644 index 0000000000..2d43e46dfe --- /dev/null +++ b/MODULE.bazel @@ -0,0 +1,2 @@ +# TODO: migrate all dependencies from WORKSPACE to MODULE.bazel +# https://github.com/protocolbuffers/protobuf/issues/14313