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

Add command bundle why, similar to yarn why #6583

Open
wscourge opened this issue Apr 5, 2023 · 0 comments
Open

Add command bundle why, similar to yarn why #6583

wscourge opened this issue Apr 5, 2023 · 0 comments
Labels

Comments

@wscourge
Copy link

wscourge commented Apr 5, 2023

It'd be nice to simply run bundle why gem_name and learn why the dependency is used - especially paired with bundle outdated.

Yarn does that with the yarn why pkg_name already. Here's an example output:

$ yarn why @ampproject/remapping

yarn why v1.22.19
[1/4] Why do we have the module "@ampproject/remapping"...?
[2/4] Initialising dependency graph...
[3/4] Finding dependency...
[4/4] Calculating file sizes...
=> Found "@ampproject/remapping@2.2.0"
info Reasons this module exists
   - "@babel#core" depends on it
   - Hoisted from "@babel#core#@ampproject#remapping"
info Disk size without dependencies: "92KB"
info Disk size with unique dependencies: "372KB"
info Disk size with transitive dependencies: "572KB"
info Number of shared dependencies: 4
Done in 0.95s.

image

Cheers, and keep up the good work.

@rubygems rubygems deleted a comment from kimoKimo77 Apr 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant