Skip to content

Add command to explain constraints for a dependency #4786

@Zekfad

Description

@Zekfad

There is a yarn why command in JS package manager Yarn that shows why project depends on a given package.
This is very helpful for exploring transitive dependencies.

In Dart there is dart pub outdated/flutter pub outdated which shows outdated packages, but there are no details for why any given package cannot be updated to latest.

It would be great to add a command that would explain dependency constraints, similar to how there is an error if you have unfeasible constraints during dart pub get.

Such a command would show all constraints (including transitive) applied to a given dependency.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions