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

Make TargetPatternParsing repository renaming aware so that platforms and toolchains get remapped #7902

Closed
wants to merge 5 commits into from

Conversation

dkelmer
Copy link
Contributor

@dkelmer dkelmer commented Mar 29, 2019

do not submit yet!

@gregestren
Copy link
Contributor

Submit!

@dkelmer dkelmer changed the title gahhh Make TargetPatternParsing repository renaming aware so that platforms and toolchains get remapped Apr 30, 2019
@bazel-io bazel-io closed this in 771cb7a May 1, 2019
bazel-io pushed a commit that referenced this pull request May 3, 2019
*** Reason for rollback ***

Breaks bazel-skylib

See #8227 for details.

*** Original change description ***

Make target pattern parsing repository-renaming aware.

Platform and toolchain resolution rely on the target pattern parsing code to turn target pattern strings into Labels. Since most of the target pattern parsing codepaths turn target patterns that originated from the command line, they don't need to pass along the repository renaming map. But instances that affect platform and toolchain target patterns, we need to pass the map.

This allows us to turn on the --incompatible_remap_main_repo flag on by default in Bazel.

Closes #7902.
Fixes #7755, #7773, #7654.

RELNOTES: None
PiperOrigin-RevId: 246546091
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants