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

Support path mapping #1664

Open
jadenPete opened this issue Dec 9, 2024 · 0 comments
Open

Support path mapping #1664

jadenPete opened this issue Dec 9, 2024 · 0 comments

Comments

@jadenPete
Copy link

This issue is part of a broader proposal to merge some of the features in lucidsoftware/rules_scala into this ruleset.

The tracking issue for this effort

The relevant proposal section.

Path mapping should prevent issues with targets from being built multiple times in multi-toolchain repositories. These issues are discussed in more detail in the proposal, but the gist is that if a target is depended on under different configurations, it may be built multiple times, even if the difference in configuration doesn't affect how the target is built. This is because what toolchain is used to build a Scala target depends on Bazel builds targets under different output directories, depending on the configuration. Path mapping attempts to solve this by "[rewriting] paths in action command lines with the aim of making them more likely to be disk or remote cache hits", and it's solved this issue for us over at lucidsoftware/rules_scala.

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