Skip to content

Commit ef5d034

Browse files
authored
Fix main_class error in java_fuzz_test (#236)
In certain situations, `java_fuzz_test`s failed with ``` ERROR: Projects/fuzz-sample/BUILD:3:15: in java_binary rule //:JavaFuzzTest_metadata_: need at least one of 'main_class' or Java source files ERROR: Projects/fuzz-sample/BUILD:3:15: in java_binary rule //:JavaFuzzTest_metadata_: main_class was not provided and cannot be inferred: source path doesn't include a known root (java, javatests, src, testsrc) ERROR: Projects/fuzz-sample/BUILD:3:15: Analysis of target '//:JavaFuzzTest_metadata_' failed ``` This is fixed by marking the metadata jar as non-executable.
1 parent ec40a7b commit ef5d034

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

fuzzing/private/fuzz_test.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ def java_fuzz_test(
292292

293293
native.java_binary(
294294
name = metadata_binary_name,
295+
create_executable = False,
295296
deploy_manifest_lines = [target_class_manifest_line],
296297
tags = ["manual"],
297298
)

0 commit comments

Comments
 (0)