Skip to content

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

Open
criemen wants to merge 1 commit intomarcohu:masterfrom
criemen:master
Open

Provide a unique output dir per set of source files.#23
criemen wants to merge 1 commit intomarcohu:masterfrom
criemen:master

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