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

Provide a unique output dir per set of source files. #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

criemen
Copy link

@criemen criemen commented Sep 6, 2023

This is an attempt to make multiple rules_antlr invocations work without sandboxing (eg on Windows, where there's no sandbox). Test with --spawn_strategy=local.

Before, the AntlrRules.java code would fail, as it'd find generated grammar files without sandboxing it didn't know about.
Fix this by providing a unique directory per grammar that's being compiled.
The code that throws the exception is https://github.com/marcohu/rules_antlr/blob/master/src/main/java/org/antlr/bazel/AntlrRules.java#L619.

This is an attempt to make multiple rules_antlr invocations work
without sandboxing (eg on Windows, where there's no sandbox).
Test with --spawn_strategy=local.
@albertocavalcante
Copy link

@criemen FYI it has been merged at albertocavalcante#28

@criemen
Copy link
Author

criemen commented Sep 28, 2024

@albertocavalcante Thanks for the ping! It's great to see some traction on this ruleset, it'd be awesome if it (eventually) would find its way to the BCR 🙏

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

Successfully merging this pull request may close these issues.

2 participants