Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gen rule for re-exporting java_binary does not work with "worker" spawn_strategy #26

Open
adincebic opened this issue May 8, 2024 · 0 comments

Comments

@adincebic
Copy link
Collaborator

I am using following strategies in my .bazelrc file

common --spawn_strategy=remote,worker,local

however the gen rule than does not produce a valid output:

ERROR: /Users/adin.cebic/developer/myProject/BUILD.bazel:10:8: declared output 'coverage.launcher' was not created by genrule. This is probably because the genrule actually didn't create this output, or because the output was a directory and the genrule was run remotely (note that only the contents of declared file outputs are copied from genrules run remotely)
ERROR: /Users/adin.cebic/developer/myProject/BUILD.bazel:10:8: Executing genrule //:sonarqube_coverage_generator [for tool] failed: not all outputs were created or valid

If I modify my .bazelrc file to use "sandboxed" instead of "worker" strategy, than it works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant