File tree Expand file tree Collapse file tree 12 files changed +48
-34
lines changed Expand file tree Collapse file tree 12 files changed +48
-34
lines changed Original file line number Diff line number Diff line change @@ -42,17 +42,6 @@ test --incompatible_exclusive_test_sandboxed
4242# Docs: https://bazel.build/reference/command-line-reference#flag--incompatible_strict_action_env
4343build --incompatible_strict_action_env
4444
45- # Propagate tags from a target declaration to the actions' execution requirements.
46- # Ensures that tags applied in your BUILD file, like `tags=["no-remote"]`
47- # get propagated to actions created by the rule.
48- # Without this option, you rely on rules authors to manually check the tags you passed
49- # and apply relevant ones to the actions they create.
50- # See https://github.com/bazelbuild/bazel/issues/8830 for details.
51- # Docs: https://bazel.build/reference/command-line-reference#flag--experimental_allow_tags_propagation
52- build --experimental_allow_tags_propagation
53- fetch --experimental_allow_tags_propagation
54- query --experimental_allow_tags_propagation
55-
5645# Do not automatically create `__init__.py` files in the runfiles of Python targets. Fixes the wrong
5746# default that comes from Google's internal monorepo by using `__init__.py` to delimit a Python
5847# package. Precisely, when a `py_binary` or `py_test` target has `legacy_create_init` set to `auto (the
Original file line number Diff line number Diff line change 55# Docs: https://bazel.build/reference/command-line-reference#flag--reuse_sandbox_directories
66build --experimental_reuse_sandbox_directories
77
8- # Do not build runfiles symlink forests for external repositories under
9- # `.runfiles/wsname/external/repo` (in addition to `.runfiles/repo`). This reduces runfiles &
10- # sandbox creation times & prevents accidentally depending on this feature which may flip to off by
11- # default in the future. Note, some rules may fail under this flag, please file issues with the rule
12- # author.
13- # Docs: https://bazel.build/reference/command-line-reference#flag--legacy_external_runfiles
14- build --nolegacy_external_runfiles
15-
168# Avoid creating a runfiles tree for binaries or tests until it is needed.
179# Docs: https://bazel.build/reference/command-line-reference#flag--build_runfile_links
1810# See https://github.com/bazelbuild/bazel/issues/6627
Original file line number Diff line number Diff line change @@ -14,11 +14,6 @@ common --@aspect_rules_ts//ts:default_to_tsc_transpiler
1414# opt-in to flag that is on by default in Bazel 8
1515common --incompatible_disallow_empty_glob
1616
17- # Never Compile protoc Again
18- common --incompatible_enable_proto_toolchain_resolution
19- common --per_file_copt=external/.*protobuf.*@--PROTOBUF_WAS_NOT_SUPPOSED_TO_BE_BUILT
20- common --host_per_file_copt=external/.*protobuf.*@--PROTOBUF_WAS_NOT_SUPPOSED_TO_BE_BUILT
21-
2217# verbose
2318common:verbose --@aspect_rules_ts//ts:verbose --worker_verbose
2419
Original file line number Diff line number Diff line change @@ -6,5 +6,6 @@ write_aspect_bazelrc_presets(
66 # Modified from upstream
77 # "bazel6",
88 "bazel7" ,
9+ "bazel8" ,
910 ],
1011)
Original file line number Diff line number Diff line change @@ -34,5 +34,24 @@ query --noexperimental_check_output_files
3434# in Bazel 8.
3535build --incompatible_remote_results_ignore_disk
3636
37+ # Propagate tags from a target declaration to the actions' execution requirements.
38+ # Ensures that tags applied in your BUILD file, like `tags=["no-remote"]`
39+ # get propagated to actions created by the rule.
40+ # Without this option, you rely on rules authors to manually check the tags you passed
41+ # and apply relevant ones to the actions they create.
42+ # See https://github.com/bazelbuild/bazel/issues/8830 for details.
43+ # Docs: https://bazel.build/reference/command-line-reference#flag--experimental_allow_tags_propagation
44+ build --experimental_allow_tags_propagation
45+ fetch --experimental_allow_tags_propagation
46+ query --experimental_allow_tags_propagation
47+
48+ # Do not build runfiles symlink forests for external repositories under
49+ # `.runfiles/wsname/external/repo` (in addition to `.runfiles/repo`). This reduces runfiles &
50+ # sandbox creation times & prevents accidentally depending on this feature which may flip to off by
51+ # default in the future. Note, some rules may fail under this flag, please file issues with the rule
52+ # author.
53+ # Docs: https://bazel.build/reference/command-line-reference#flag--legacy_external_runfiles
54+ build --nolegacy_external_runfiles
55+
3756# Added in 6.4.0, see https://github.com/bazelbuild/bazel/pull/19319
3857build --incompatible_merge_fixed_and_default_shell_env
Original file line number Diff line number Diff line change @@ -13,3 +13,11 @@ common --check_direct_dependencies=off
1313# build.
1414# Docs: https://bazel.build/reference/command-line-reference#flag--reuse_sandbox_directories
1515build --reuse_sandbox_directories
16+
17+ # Do not build runfiles symlink forests for external repositories under
18+ # `.runfiles/wsname/external/repo` (in addition to `.runfiles/repo`). This reduces runfiles &
19+ # sandbox creation times & prevents accidentally depending on this feature which may flip to off by
20+ # default in the future. Note, some rules may fail under this flag, please file issues with the rule
21+ # author.
22+ # Docs: https://bazel.build/reference/command-line-reference#flag--legacy_external_runfiles
23+ build --nolegacy_external_runfiles
Original file line number Diff line number Diff line change 1+ # No Bazel 8 specific flag presets yet.
Original file line number Diff line number Diff line change 3030 m=${v::1}
3131 a=(
3232 "major:$m, version:\"$v\""
33+ "major:8, version:\"8.3.1\""
3334 "major:6, version:\"6.5.0\""
3435 )
3536 printf -v j '{%s},' "${a[@]}"
9394 - bazel-version :
9495 major : 6
9596 bzlmod : 0
97+ # Don't run tests with Bazel 8 by default
98+ - bazel-version :
99+ major : 8
96100 # Don't test root workspace with non-bzlmod
97101 - bzlmod : 0
98102 folder : .
@@ -113,6 +117,14 @@ jobs:
113117 bzlmod : 1
114118 folder : docs
115119 os : ubuntu
120+
121+ # Include only unit tests with bazel8
122+ - bazel-version :
123+ major : 8
124+ bzlmod : 1
125+ folder : .
126+ os : ubuntu
127+
116128 # Steps represent a sequence of tasks that will be executed as part of the job
117129 steps :
118130 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
@@ -179,6 +191,8 @@ jobs:
179191 exclude :
180192 - bazel-version :
181193 major : 6
194+ - bazel-version :
195+ major : 8
182196 steps :
183197 - uses : actions/checkout@v4
184198
Original file line number Diff line number Diff line change 77)
88
99# Lower-bounds (minimum) versions for direct runtime dependencies
10- bazel_dep (name = "aspect_bazel_lib" , version = "2.9.3 " )
10+ bazel_dep (name = "aspect_bazel_lib" , version = "2.14.0 " )
1111bazel_dep (name = "aspect_rules_js" , version = "2.0.0" )
1212bazel_dep (name = "bazel_skylib" , version = "1.8.1" )
1313bazel_dep (name = "platforms" , version = "0.0.5" )
Original file line number Diff line number Diff line change 1- # Never Compile protoc Again
2- # Don't build protoc from the cc_binary, it's slow and spammy when cache miss
3- common --per_file_copt=external/.*protobuf.*@--PROTOBUF_WAS_NOT_SUPPOSED_TO_BE_BUILT
4- common --host_per_file_copt=external/.*protobuf.*@--PROTOBUF_WAS_NOT_SUPPOSED_TO_BE_BUILT
5- common --java_runtime_version=remotejdk_11
You can’t perform that action at this time.
0 commit comments