Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: find orphaned dependencies #512

Open
icanhazstring opened this issue May 12, 2023 Discussed in #75 · 0 comments
Open

Feature request: find orphaned dependencies #512

icanhazstring opened this issue May 12, 2023 Discussed in #75 · 0 comments
Labels
enhancement New feature or request

Comments

@icanhazstring
Copy link
Member

Discussed in #75

Originally posted by BackEndTea February 11, 2020

Is your feature request related to a problem? Please describe

As described here: https://twitter.com/icanhazstring/status/1227190874855165953

I require package A. A has a dependency on package B.
Later i remove package A, but B remains in my composer.lock. This can be due to manually editing the composer.lock, merge conflicts, or other reasons.

B is now an orphaned dependency, and using composer why for it even says its not installed.

Describe the solution you'd like

I would like composer unused to find these dependencies, maybe with another command.

Describe alternatives you've considered

I wrote my own 'quick and dirty' implementation right here, which make a graph of the dependencies, and does a (rather unoptimized) DFS to check what dependencies aren't part of the main graph.

Teachability, Documentation, Adoption, Migration Strategy

This should probably be a new command.

@icanhazstring icanhazstring added the enhancement New feature or request label May 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant