Skip to content

Commit

Permalink
update bazelrcs to have bazel7 config name
Browse files Browse the repository at this point in the history
  • Loading branch information
rickeylev committed Oct 22, 2024
1 parent f8a0caa commit 2bdf982
Show file tree
Hide file tree
Showing 15 changed files with 14 additions and 17 deletions.
3 changes: 0 additions & 3 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,4 @@ build:rtd --enable_bzlmod

common:bazel7.x --incompatible_python_disallow_native_rules

# Intentionally empty; used by CI
common:bazel6.x

build --lockfile_mode=update
2 changes: 1 addition & 1 deletion examples/build_file_generation/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ build --enable_runfiles
# Once WORKSPACE support is dropped, this example can be entirely deleted.
build --experimental_enable_bzlmod=false

common --incompatible_python_disallow_native_rules
common:bazel7.x --incompatible_python_disallow_native_rules
2 changes: 1 addition & 1 deletion examples/bzlmod/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ test --test_output=errors --enable_runfiles

# Windows requires these for multi-python support:
build --enable_runfiles
common --incompatible_python_disallow_native_rules
common:bazel7.x --incompatible_python_disallow_native_rules
2 changes: 1 addition & 1 deletion examples/bzlmod_build_file_generation/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ build --enable_runfiles
common --experimental_enable_bzlmod

coverage --java_runtime_version=remotejdk_11
common --incompatible_python_disallow_native_rules
common:bazel7.x --incompatible_python_disallow_native_rules
2 changes: 1 addition & 1 deletion examples/multi_python_versions/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ test --test_output=errors
build --enable_runfiles

coverage --java_runtime_version=remotejdk_11
common --incompatible_python_disallow_native_rules
common:bazel7.x --incompatible_python_disallow_native_rules
2 changes: 1 addition & 1 deletion examples/pip_parse_vendored/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ build --enable_runfiles
# Vendoring requirements.bzl files isn't necessary under bzlmod
# When workspace support is dropped, this example can be removed.
build --noexperimental_enable_bzlmod
common --incompatible_python_disallow_native_rules
common:bazel7.x --incompatible_python_disallow_native_rules
2 changes: 1 addition & 1 deletion examples/pip_repository_annotations/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ try-import %workspace%/user.bazelrc
# This example is WORKSPACE specific. The equivalent functionality
# is in examples/bzlmod as the `whl_mods` feature.
build --experimental_enable_bzlmod=false
common --incompatible_python_disallow_native_rules
common:bazel7.x --incompatible_python_disallow_native_rules
2 changes: 1 addition & 1 deletion examples/py_proto_library/.bazelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# The equivalent bzlmod behavior is covered by examples/bzlmod/py_proto_library
common --noenable_bzlmod
common --incompatible_python_disallow_native_rules
common:bazel7.x --incompatible_python_disallow_native_rules
2 changes: 1 addition & 1 deletion gazelle/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ build --incompatible_default_to_explicit_init_py
# Windows makes use of runfiles for some rules
build --enable_runfiles

common --incompatible_python_disallow_native_rules
common:bazel7.x --incompatible_python_disallow_native_rules
2 changes: 1 addition & 1 deletion tests/integration/compile_pip_requirements/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ test --test_output=errors

# Windows requires these for multi-python support:
build --enable_runfiles
common --incompatible_python_disallow_native_rules
common:bazel7.x --incompatible_python_disallow_native_rules
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
test --test_output=errors
common --incompatible_python_disallow_native_rules
common:bazel7.x --incompatible_python_disallow_native_rules
2 changes: 1 addition & 1 deletion tests/integration/ignore_root_user_error/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ test --test_output=errors

# Windows requires these for multi-python support:
build --enable_runfiles
common --incompatible_python_disallow_native_rules
common:bazel7.x --incompatible_python_disallow_native_rules
2 changes: 1 addition & 1 deletion tests/integration/local_toolchains/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ common --lockfile_mode=off
test --test_output=errors
# Windows requires these for multi-python support:
build --enable_runfiles
common --incompatible_python_disallow_native_rules
common:bazel7.x --incompatible_python_disallow_native_rules
2 changes: 1 addition & 1 deletion tests/integration/pip_parse/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ build --enable_runfiles
# https://docs.bazel.build/versions/main/best-practices.html#using-the-bazelrc-file
try-import %workspace%/user.bazelrc

common --incompatible_python_disallow_native_rules
common:bazel7.x --incompatible_python_disallow_native_rules
2 changes: 1 addition & 1 deletion tests/integration/py_cc_toolchain_registered/.bazelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# This aids debugging on failure
build --toolchain_resolution_debug=python
common --incompatible_python_disallow_native_rules
common:bazel7.x --incompatible_python_disallow_native_rules

0 comments on commit 2bdf982

Please sign in to comment.