Skip to content

Commit dd32204

Browse files
committed
set flag in other bazelrc files
1 parent 7cdda20 commit dd32204

File tree

15 files changed

+16
-7
lines changed

15 files changed

+16
-7
lines changed

examples/build_file_generation/.bazelrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ build --enable_runfiles
66
# The bzlmod version of this example is in examples/bzlmod_build_file_generation
77
# Once WORKSPACE support is dropped, this example can be entirely deleted.
88
build --experimental_enable_bzlmod=false
9+
10+
common --incompatible_python_disallow_native_rules

examples/bzlmod/.bazelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ test --test_output=errors --enable_runfiles
77

88
# Windows requires these for multi-python support:
99
build --enable_runfiles
10+
common --incompatible_python_disallow_native_rules

examples/bzlmod_build_file_generation/.bazelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ build --enable_runfiles
66
common --experimental_enable_bzlmod
77

88
coverage --java_runtime_version=remotejdk_11
9+
common --incompatible_python_disallow_native_rules

examples/multi_python_versions/.bazelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ test --test_output=errors
44
build --enable_runfiles
55

66
coverage --java_runtime_version=remotejdk_11
7+
common --incompatible_python_disallow_native_rules

examples/pip_parse/.bazelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# https://docs.bazel.build/versions/main/best-practices.html#using-the-bazelrc-file
22
try-import %workspace%/user.bazelrc
3+
common --incompatible_python_disallow_native_rules

examples/pip_parse_vendored/.bazelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ build --enable_runfiles
66
# Vendoring requirements.bzl files isn't necessary under bzlmod
77
# When workspace support is dropped, this example can be removed.
88
build --noexperimental_enable_bzlmod
9+
common --incompatible_python_disallow_native_rules

examples/pip_repository_annotations/.bazelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ try-import %workspace%/user.bazelrc
44
# This example is WORKSPACE specific. The equivalent functionality
55
# is in examples/bzlmod as the `whl_mods` feature.
66
build --experimental_enable_bzlmod=false
7+
common --incompatible_python_disallow_native_rules

examples/py_proto_library/.bazelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# The equivalent bzlmod behavior is covered by examples/bzlmod/py_proto_library
22
common --noenable_bzlmod
3+
common --incompatible_python_disallow_native_rules

gazelle/.bazelrc

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,4 @@ build --incompatible_default_to_explicit_init_py
1111
# Windows makes use of runfiles for some rules
1212
build --enable_runfiles
1313

14-
# Do NOT implicitly create empty __init__.py files in the runfiles tree.
15-
# By default, these are created in every directory containing Python source code
16-
# or shared libraries, and every parent directory of those directories,
17-
# excluding the repo root directory. With this flag set, we are responsible for
18-
# creating (possibly empty) __init__.py files and adding them to the srcs of
19-
# Python targets as required.
20-
build --incompatible_default_to_explicit_init_py
14+
common --incompatible_python_disallow_native_rules

tests/integration/compile_pip_requirements/.bazelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ test --test_output=errors
22

33
# Windows requires these for multi-python support:
44
build --enable_runfiles
5+
common --incompatible_python_disallow_native_rules

0 commit comments

Comments
 (0)