File tree Expand file tree Collapse file tree 4 files changed +24
-1
lines changed Expand file tree Collapse file tree 4 files changed +24
-1
lines changed 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
Original file line number Diff line number Diff line change @@ -6,3 +6,12 @@ local_path_override(
6
6
module_name = "aspect_rules_js" ,
7
7
path = ".." ,
8
8
)
9
+
10
+ http_jar = use_repo_rule ("@bazel_tools//tools/build_defs/repo:http.bzl" , "http_jar" )
11
+
12
+ http_jar (
13
+ name = "stardoc-prebuilt" ,
14
+ integrity = "sha256-jDi5ITmziwwiHCsfd8v0UOoraWXIAfICIll+wbpg/vE=" ,
15
+ # NB: version matches the stardoc load above
16
+ urls = ["https://github.com/alexeagle/stardoc-prebuilt/releases/download/v0.6.2/renderer_deploy.jar" ],
17
+ )
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ def stardoc_with_diff_test(name, **kwargs):
10
10
Wrapper around stardoc_with_diff_test that only runs the test if Bazel 7 or greater is being used.
11
11
"""
12
12
if is_bazel_7_or_greater ():
13
- _stardoc_with_diff_test (name , ** kwargs )
13
+ _stardoc_with_diff_test (name , renderer = "//tools:stardoc_renderer" , ** kwargs )
14
14
else :
15
15
# buildifier: disable=print
16
16
print ("WARNING: Skipping stardoc_with_diff_test for %s because it requires Bazel 7 or greater" % name )
Original file line number Diff line number Diff line change
1
+ load ("@rules_java//java:java_binary.bzl" , "java_binary" )
2
+
3
+ package (default_visibility = ["//visibility:public" ])
4
+
5
+ java_binary (
6
+ name = "stardoc_renderer" ,
7
+ main_class = "com/google/devtools/build/stardoc/renderer/RendererMain" ,
8
+ runtime_deps = ["@stardoc-prebuilt//jar" ],
9
+ )
You can’t perform that action at this time.
0 commit comments