Replies: 2 comments
-
In
Regarding primary/implicit terminology, we're definitely not consistent here, so I guess this is an oportunity to unify terminology. Personally I think "direct"/"indirect" is the most clear, but I many times use "transitive" for "indirect/implicit" dependencies. I never use "primary" for direct dependencies, though.
I would add it straight up! |
Beta Was this translation helpful? Give feedback.
-
Good idea, I think it makes a lot of sense for these two commands to match.
I think we should probably match the formatting between the two commands, so we'd have a table without borders for update as well. Something like:
The Perhaps there could be an option to change the sorting but I think this is pretty good as-is... unless someone strongly feels like it should be filterable or sortable, I think I will leave it like this, those options could always be added later if people need it.
I noticed that the
I agree it would be good to unify the terminology across Bundler but I think that's a much broader scope than this feature. For now I propose using "explicit" and "implicit" here (which matches One other thing: I think this summary output should also be displayed by |
Beta Was this translation helpful? Give feedback.
-
Summary
Feature proposal: Additional output from
bundle update
that provides a useful summary of which gems were updated, categorised between major and non-major, and top level and implicit dependencies.Describe the problem as clearly as you can
When you run
bundle update
it isn't very obvious from the output which gems updated, because the update messages are mixed in with the install messages:Scrolling a long list to try to see all the updated ones can be quite tiresome, and doesn't really aid the user in what tasks they are likely trying to do. Possible tasks they may be trying to accomplish:
The other approach is to diff the Gemfile.lock, but that has a lot of repetition:
And also doesn't help with extracting higher-level information out of the data such as whether gems are top-level, or highlighting major version bumps.
I think from a flexibility and tooling perspective, a machine-readable output from
bundle install
will be the most useful thing. But I think for the 90% use-case where users are doing a bundle update themselves, directly on a terminal, a lot of value could be delivered by the relatively simpler feature of adding a human-readable summary to the output.I think the highest value is to highlight just which gems changed, but I think it's also extremely valuable to separately highlight major version bumps. I think it may also be useful to distinguish between top-level and implicit dependencies.
Here is the output from a PoC I have made:
Open questions
bundle update
straight-up, or behind a new option flag?Beta Was this translation helpful? Give feedback.
All reactions