Skip to content

bazel_dep allows missing version with poor error #17126

@keith

Description

@keith

Description of the bug:

If you specify this in your MODULE.bazel:

bazel_dep(
    name = "apple_support",
)

bazel errors with:

ERROR: Error computing the main repository mapping: module not found in registries: apple_support@_

I imagine omitting a version is supported for overrides(?), but i think ideally the error would hint to the user that they are missing the version.

What is the output of bazel info release?

release 6.0.0rc4

Metadata

Metadata

Assignees

Labels

P3We're not considering working on this, but happy to review a PR. (No assignee)area-BzlmodBzlmod-specific PRs, issues, and feature requestsnot staleIssues or PRs that are inactive but not considered staleteam-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