Skip to content

Commit

Permalink
Merge pull request #5950 from dependabot/deivid-rodriguez/faster-dry-run
Browse files Browse the repository at this point in the history
Make dry-run script twice as fast
  • Loading branch information
jeffwidman authored Oct 24, 2022
2 parents 0d76b55 + 94db1e1 commit 1b1f0ae
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bin/dry-run.rb
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,11 @@ def security_fix?(dependency)
next
end

if checker.up_to_date?
puts " (no update needed as it's already up-to-date)"
next
end

if checker.vulnerable?
if checker.lowest_security_fix_version
puts " => earliest available non-vulnerable version is " \
Expand All @@ -695,11 +700,6 @@ def security_fix?(dependency)
end
puts " => latest allowed version is #{latest_allowed_version || dep.version}"

if checker.up_to_date?
puts " (no update needed as it's already up-to-date)"
next
end

requirements_to_unlock =
if $options[:lockfile_only] || !checker.requirements_unlocked_or_can_be?
if checker.can_update?(requirements_to_unlock: :none) then :none
Expand Down

0 comments on commit 1b1f0ae

Please sign in to comment.