-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Closed
Labels
P2We'll consider working on this in future. (Assignee optional)We'll consider working on this in future. (Assignee optional)area-BzlmodBzlmod-specific PRs, issues, and feature requestsBzlmod-specific PRs, issues, and feature requeststeam-ExternalDepsExternal dependency handling, remote repositiories, WORKSPACE file.External dependency handling, remote repositiories, WORKSPACE file.type: feature request
Description
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:
- 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 ause_repocall on a module extension proxy created withdev_dependency = True. - 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?
Any other information, logs, or outputs that you want to share?
No response
Metadata
Metadata
Assignees
Labels
P2We'll consider working on this in future. (Assignee optional)We'll consider working on this in future. (Assignee optional)area-BzlmodBzlmod-specific PRs, issues, and feature requestsBzlmod-specific PRs, issues, and feature requeststeam-ExternalDepsExternal dependency handling, remote repositiories, WORKSPACE file.External dependency handling, remote repositiories, WORKSPACE file.type: feature request