-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
--use_top_level_targets_for_symlinks
doesn't apply through alias()
targets
#14602
Comments
Reassigning to Janak who added |
Looks like this was actually added by the configurability team (I just moved the flag around). Passing over. |
This seems to be that the logic in //src/main/java/com/google/devtools/build/lib/buildtool/ExecutionTool.java is not sophisticated enough to consider 'look-through' aliases when doing the filtering. (Really technically, by default, alias is treated as a rule that forwards all the providers of the aliased rule. In this case, the alias isn't experiencing the self-transition, its target is so the alias has an untransitioned top-level configuration. Consumers, like the logic handling |
I've submitted #15316 which appears to fix this |
With this BUILD file:
Building the CI directly with
--use_top_level_targets_for_symlinks
correctly results in a top level symlink:But building the alias target still uses the transition path:
repro project: aliasrepro.zip
What operating system are you running Bazel on?
macOS
What's the output of
bazel info release
?release 5.0.0 (not a regression, also repros on 4.2.2)
The text was updated successfully, but these errors were encountered: