Changed the flags in anonymous repos' `.bazelrc` to common so they apply to all bazel commands. (#2181)
When creating [anonymous test
repos](https://github.com/bazelbuild/bazel-central-registry/blob/00b9bfe8053208dc8983378ac3749f8d0fa1c3be/docs/README.md#reproduce-presubmit-builds-locally)
for testing BCR changes, it's useful to sometimes do `bazel query` to
verify available targets.
diff --git a/buildkite/bazel-central-registry/bcr_presubmit.py b/buildkite/bazel-central-registry/bcr_presubmit.py
index 28a2da9..2bdf942 100755
--- a/buildkite/bazel-central-registry/bcr_presubmit.py
+++ b/buildkite/bazel-central-registry/bcr_presubmit.py
@@ -168,8 +168,8 @@
scratch_file(root, "BUILD")
scratch_file(root, "MODULE.bazel", ["bazel_dep(name = '%s', version = '%s')" % (module_name, module_version)])
scratch_file(root, ".bazelrc", [
- "build --enable_bzlmod",
- "build --registry=%s" % BCR_REPO_DIR.as_uri(),
+ "common --enable_bzlmod",
+ "common --registry=%s" % BCR_REPO_DIR.as_uri(),
])
return root