-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Conversation
Only reports newer versions that match dependency requirements
@@ -416,6 +416,8 @@ def binstubs(*gems) | |||
method_option "source", :type => :array, :banner => "Check against a specific source" | |||
method_option "local", :type => :boolean, :banner => | |||
"Do not attempt to fetch gems remotely and use the gem cache instead" | |||
method_option "strict", :type => :boolean, :banner => | |||
"Only list newer versions that match requirements" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it makes more sense to explain this as "Only list newer versions allowed by your Gemfile requirements".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was struggling with how to explain it succinctly. I like your wording. Should I make the change or will you do it when you merge the patch in?
Thanks for accepting the patch.
This seems useful. Thanks for the patch! |
Great! |
This addition is amazing, however the output is still noisy / not actionable in the following case: I can't estimate how difficult it would be to implement the strict command like this, but it would make the output even more useful. |
Yes, and it's basically impossible. We might be able to switch to a nested list, showing which gems are child dependencies of other gems. But it's not possible to magically know which strict deps "don't count". |
Too bad, that would've been amazing. Thanks for taking the time to answer! |
I am revisiting this and would like to achieve something similar to @fschwahn's request. After looking at it more, I think I can actually achieve this fairly easily by harnessing the great job already done by the resolver and comparing current_specs with resolved_specs @indirect: Do you think it is ok to make that change? |
Yeah, I think so. Sounds good. :) On Thu, Jan 23, 2014 at 11:21 AM, David Blondeau [email protected]
|
I have a project with several ~> or exact version requirements because more recent versions are not compatible (rack, mysql2, tzinfo...) but still maintained on a stable branch.
I want to know if a maintenance/security fix version was released but bundle outdated does not enforce dependency requirements by default so its results are not actionable / noisy.
The --strict option only reports newer versions that match dependency requirements.
I am not sure how the command is used by others but it might even be that this should be the default behavior.