-
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
Bazel 6.0.0 prefixes target label with "@" (at symbol)" #17069
Comments
This is expected as part of #15916 (the |
Thank you @brentleyjones ! |
Reopening, as I noticed an inconsistency, that should probably be also covered by this flag. In BEP logs, the labels are not |
As a heads, this also seems to be inconsistent with aquery/query (on rolling), which still uses the old form. [Happened across this, which is good, because a consistent change would have broken a tool I maintain. We'd been assuming the @ prefix of the canonical form of stringified labels could be used to distinguish external workspaces; I've now added code to remove that assumption, still assuming that @// prefixes the canonical label for targets in the main workspace.] |
@Wyverald can say more here, but my understanding is that without The need for this arose as a The fact that the empty repository name ( |
Sweet. Thanks for being helpful as always @fmeum :) |
Description of the bug:
In aspects, the
label
field of a target is now prefixed with@//
, while in 5.4.0 it was prefixed with just//
. Both prefixes are correct, but this is a behavior change, which may break some tools. I'm submitting it, because I don't know whether it was intentional.What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
RESULT:
Bazel 6.0.0 prints
@//
-prefixed labels, while 5.4.0 just//
-prefixedWhich operating system are you running Bazel on?
No response
What is the output of
bazel info release
?No response
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse master; git rev-parse HEAD
?No response
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: