-
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
fetch no longer works for targets ending in ...
#21728
Comments
Context: 7.1.0 we switched cc @meteorcloudy; @haxorz (for |
@bazel-io fork 7.1.1 |
If this is nontrivial to fix, we might need to roll back the query->cquery change. It's had too many unforeseen backward incompatibilities. |
I think widening the scope of the query is the solution, but I am not sure making the default scope 'everything' is a good idea as it may make fetch very slow and would also fetch more than needed in other cases. I guess this issue is common with external repos? so maybe something like: if the target is external, add the repo to the query universe-scope? |
What is the default |
OK, I can reproduce with rules_go:
|
@meteorcloudy The default should be the targets parsed from the query expression, basically the same targets you're trying to fetch. |
I dug around a bit with help from @gregestren. It appears that In the interest of not blocking 7.1.1 further, I'm going to revert the original change in 7.1.0. |
…ery for … (#21735) …underlying implementation (#21567)" This reverts commit bbd608c. See #21728 (comment)
A fix for this issue has been included in Bazel 7.1.1 RC2. Please test out the release candidate and report any issues as soon as possible. |
I wonder why we have to use cquery? Can we implement |
Tried that and it seems to work :) |
@bazel-io flag |
@bazel-io fork 7.2.0 |
Using cquery for fetching targets caused some problems #21728 as cquery is not prepared to deal with targets including `...` Updated the logic to use build command with no-build option, which should operate the same and actually do less work than cquery PiperOrigin-RevId: 619540572 Change-Id: Id26a61229c13bd12373478fe17e67200f2760be2
Description of the bug:
Bazel 7.1.0 has a breaking change to
bazel fetch
. It's no longer possible to fetch target labels ending in...
.Which category does this issue belong to?
No response
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Which operating system are you running Bazel on?
macOS
What is the output of
bazel info release
?release 7.1.0
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 HEAD
?Is this a regression? If yes, please try to identify the Bazel commit where the bug was introduced.
Yes
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: