Skip to content

Allow module extensions to check whether a tag is a dev dependency #17101

@fmeum

Description

@fmeum

Description of the feature request:

With Bzlmod, a module extension should be able to check whether the extension proxy that was used to add a given module tag had dev_dependency = True or not.

What underlying problem are you trying to solve with this feature?

While this information isn't directly required to resolve dependencies, the distinction in prod and dev dependencies becomes important in a umber of situations:

  1. A module extension may want to emit a list of repos the root module should bring into scope with use_repo, but dev dependencies have to be brought into scope with a use_repo call on a module extension proxy created with dev_dependency = True.
  2. Module extensions wrapping external package managers may want to use this information when associating license metadata with packages.

Which operating system are you running Bazel on?

Any

What is the output of bazel info release?

6.0.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 master; git rev-parse HEAD ?

No response

Have you found anything relevant by searching the web?

#17048

Any other information, logs, or outputs that you want to share?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2We'll consider working on this in future. (Assignee optional)area-BzlmodBzlmod-specific PRs, issues, and feature requeststeam-ExternalDepsExternal dependency handling, remote repositiories, WORKSPACE file.type: feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions