File tree Expand file tree Collapse file tree 8 files changed +54
-20
lines changed Expand file tree Collapse file tree 8 files changed +54
-20
lines changed Original file line number Diff line number Diff line change @@ -42,17 +42,6 @@ test --incompatible_exclusive_test_sandboxed
42
42
# Docs: https://bazel.build/reference/command-line-reference#flag--incompatible_strict_action_env
43
43
build --incompatible_strict_action_env
44
44
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
-
56
45
# Do not automatically create `__init__.py` files in the runfiles of Python targets. Fixes the wrong
57
46
# default that comes from Google's internal monorepo by using `__init__.py` to delimit a Python
58
47
# 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 5
5
# Docs: https://bazel.build/reference/command-line-reference#flag--reuse_sandbox_directories
6
6
build --experimental_reuse_sandbox_directories
7
7
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
-
16
8
# Avoid creating a runfiles tree for binaries or tests until it is needed.
17
9
# Docs: https://bazel.build/reference/command-line-reference#flag--build_runfile_links
18
10
# See https://github.com/bazelbuild/bazel/issues/6627
Original file line number Diff line number Diff line change @@ -6,5 +6,6 @@ write_aspect_bazelrc_presets(
6
6
# Modified from upstream
7
7
# "bazel6",
8
8
"bazel7" ,
9
+ "bazel8" ,
9
10
],
10
11
)
Original file line number Diff line number Diff line change @@ -34,5 +34,24 @@ query --noexperimental_check_output_files
34
34
# in Bazel 8.
35
35
build --incompatible_remote_results_ignore_disk
36
36
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
+
37
56
# Added in 6.4.0, see https://github.com/bazelbuild/bazel/pull/19319
38
57
build --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
13
13
# build.
14
14
# Docs: https://bazel.build/reference/command-line-reference#flag--reuse_sandbox_directories
15
15
build --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 30
30
m=${v::1}
31
31
a=(
32
32
"major:$m, version:\"$v\""
33
+ "major:8, version:\"8.1.1\""
33
34
"major:6, version:\"6.5.0\""
34
35
)
35
36
printf -v j '{%s},' "${a[@]}"
89
90
- bazel-version :
90
91
major : 6
91
92
bzlmod : 0
93
+ # Don't run tests with Bazel 8 by default
94
+ - bazel-version :
95
+ major : 8
92
96
# Don't test root workspace with non-bzlmod
93
97
- bzlmod : 0
94
98
folder : .
@@ -115,6 +119,15 @@ jobs:
115
119
bzlmod : 1
116
120
folder : docs
117
121
os : ubuntu
122
+
123
+ # Include only unit tests with bazel8
124
+ - bazel-version :
125
+ major : 8
126
+ bzlmod : 1
127
+ folder : .
128
+ os : ubuntu
129
+ config : local
130
+
118
131
# Steps represent a sequence of tasks that will be executed as part of the job
119
132
steps :
120
133
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
@@ -181,6 +194,8 @@ jobs:
181
194
exclude :
182
195
- bazel-version :
183
196
major : 6
197
+ - bazel-version :
198
+ major : 8
184
199
steps :
185
200
- uses : actions/checkout@v4
186
201
Original file line number Diff line number Diff line change 7
7
)
8
8
9
9
# 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 " )
11
11
bazel_dep (name = "aspect_rules_js" , version = "2.0.0" )
12
12
bazel_dep (name = "bazel_skylib" , version = "1.5.0" )
13
13
bazel_dep (name = "platforms" , version = "0.0.5" )
@@ -49,3 +49,12 @@ use_repo(
49
49
go_sdk ,
50
50
go_sdk = "go_default_sdk" ,
51
51
)
52
+
53
+ # Needed for stardoc to compile from Java sources
54
+ http_jar = use_repo_rule ("@bazel_tools//tools/build_defs/repo:http.bzl" , "http_jar" )
55
+
56
+ http_jar (
57
+ name = "protobuf-java" ,
58
+ integrity = "sha256-kHLmD+Zs/11sDxGh3yHY8+Sym17ngrRcP8dfWfviuDk=" ,
59
+ urls = ["https://repo1.maven.org/maven2/com/google/protobuf/protobuf-java/4.27.0/protobuf-java-4.27.0.jar" ],
60
+ )
You can’t perform that action at this time.
0 commit comments