Skip to content

fetch no longer works for targets ending in ... #21728

@jfirebaugh

Description

@jfirebaugh

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.

$ bazel fetch @go_sdk//...  
INFO: Analyzed 59 targets (0 packages loaded, 0 targets configured).
INFO: Found 59 targets...
ERROR: Error doing post analysis query: Evaluation failed: Unable to load package '[/private/var/tmp/_bazel_john/67beefda950d56283b98d96980e6e332/external/go_sdk]/[]' because package is not in scope. Check that all target patterns in query expression are within the --universe_scope of this query.
INFO: Elapsed time: 0.543s, Critical Path: 0.00s
INFO: 0 processes.
ERROR: Build did NOT complete successfully
ERROR: Fetching some target dependencies for deps(@go_sdk//...) failed, but --keep_going specified.  Ignoring errors

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 returns development 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 ?

n/a

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

Metadata

Metadata

Assignees

Labels

P1I'll work on this now. (Assignee required)team-ExternalDepsExternal dependency handling, remote repositiories, WORKSPACE file.type: bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions