Skip to content

Commit

Permalink
Merge rubygems/rubygems HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Jun 14, 2023
1 parent 827d662 commit c2f4b41
Show file tree
Hide file tree
Showing 7 changed files with 71 additions and 46 deletions.
13 changes: 9 additions & 4 deletions lib/bundler/vendor/pub_grub/lib/pub_grub/version_solver.rb
Expand Up @@ -162,7 +162,7 @@ def choose_package_version
def resolve_conflict(incompatibility)
logger.info { "conflict: #{incompatibility}" }

new_incompatibility = false
new_incompatibility = nil

while !incompatibility.failure?
most_recent_term = nil
Expand Down Expand Up @@ -204,7 +204,7 @@ def resolve_conflict(incompatibility)
solution.backtrack(previous_level)

if new_incompatibility
add_incompatibility(incompatibility)
add_incompatibility(new_incompatibility)
end

return incompatibility
Expand All @@ -219,9 +219,14 @@ def resolve_conflict(incompatibility)
new_terms << difference.invert
end

incompatibility = Incompatibility.new(new_terms, cause: Incompatibility::ConflictCause.new(incompatibility, most_recent_satisfier.cause))
new_incompatibility = Incompatibility.new(new_terms, cause: Incompatibility::ConflictCause.new(incompatibility, most_recent_satisfier.cause))

new_incompatibility = true
if incompatibility.to_s == new_incompatibility.to_s
logger.info { "!! failed to resolve conflicts, this shouldn't have happened" }
break
end

incompatibility = new_incompatibility

partially = difference ? " partially" : ""
logger.info { "! #{most_recent_term} is#{partially} satisfied by #{most_recent_satisfier.term}" }
Expand Down
5 changes: 3 additions & 2 deletions tool/bundler/dev_gems.rb.lock
Expand Up @@ -10,7 +10,7 @@ GEM
parallel
power_assert (2.0.3)
rake (13.0.6)
rb_sys (0.9.78)
rb_sys (0.9.79)
rdiscount (2.2.7)
ronn (0.7.3)
hpricot (>= 0.8.2)
Expand All @@ -29,7 +29,7 @@ GEM
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-support (3.12.0)
test-unit (3.5.9)
test-unit (3.6.0)
power_assert
turbo_tests (2.1.0)
bundler (>= 2.1)
Expand All @@ -40,6 +40,7 @@ GEM

PLATFORMS
arm64-darwin-22
arm64-darwin-23
java
universal-java-11
universal-java-18
Expand Down
2 changes: 1 addition & 1 deletion tool/bundler/rubocop_gems.rb
Expand Up @@ -2,7 +2,7 @@

source "https://rubygems.org"

gem "rubocop", "~> 1.7"
gem "rubocop", ">= 1.52.1", "< 2"

gem "minitest"
gem "rake"
Expand Down
38 changes: 21 additions & 17 deletions tool/bundler/rubocop_gems.rb.lock
Expand Up @@ -5,17 +5,20 @@ GEM
diff-lcs (1.5.0)
json (2.6.3)
json (2.6.3-java)
minitest (5.16.3)
parallel (1.22.1)
parser (3.1.3.0)
minitest (5.18.0)
parallel (1.23.0)
parser (3.2.2.3)
ast (~> 2.4.1)
power_assert (2.0.2)
racc
power_assert (2.0.3)
racc (1.7.1)
racc (1.7.1-java)
rainbow (3.1.1)
rake (13.0.6)
rake-compiler (1.2.0)
rake-compiler (1.2.3)
rake
rb_sys (0.9.63)
regexp_parser (2.6.1)
rb_sys (0.9.79)
regexp_parser (2.8.1)
rexml (3.2.5)
rspec (3.12.0)
rspec-core (~> 3.12.0)
Expand All @@ -30,28 +33,29 @@ GEM
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-support (3.12.0)
rubocop (1.40.0)
rubocop (1.52.1)
json (~> 2.3)
parallel (~> 1.10)
parser (>= 3.1.2.1)
parser (>= 3.2.2.3)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.23.0, < 2.0)
rubocop-ast (>= 1.28.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 3.0)
rubocop-ast (1.24.0)
parser (>= 3.1.1.0)
ruby-progressbar (1.11.0)
test-unit (3.5.5)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.29.0)
parser (>= 3.2.1.0)
ruby-progressbar (1.13.0)
test-unit (3.6.0)
power_assert
unicode-display_width (2.3.0)
unicode-display_width (2.4.2)

PLATFORMS
aarch64-linux
arm64-darwin-20
arm64-darwin-21
arm64-darwin-22
arm64-darwin-23
universal-java-11
universal-java-18
x64-mingw-ucrt
Expand All @@ -66,7 +70,7 @@ DEPENDENCIES
rake-compiler
rb_sys
rspec
rubocop (~> 1.7)
rubocop (>= 1.52.1, < 2)
test-unit

BUNDLED WITH
Expand Down
54 changes: 33 additions & 21 deletions tool/bundler/standard_gems.rb.lock
Expand Up @@ -5,18 +5,22 @@ GEM
diff-lcs (1.5.0)
json (2.6.3)
json (2.6.3-java)
language_server-protocol (3.17.0.2)
minitest (5.16.3)
parallel (1.22.1)
parser (3.1.3.0)
language_server-protocol (3.17.0.3)
lint_roller (1.0.0)
minitest (5.18.0)
parallel (1.23.0)
parser (3.2.2.3)
ast (~> 2.4.1)
power_assert (2.0.2)
racc
power_assert (2.0.3)
racc (1.7.1)
racc (1.7.1-java)
rainbow (3.1.1)
rake (13.0.6)
rake-compiler (1.2.0)
rake-compiler (1.2.3)
rake
rb_sys (0.9.63)
regexp_parser (2.6.1)
rb_sys (0.9.79)
regexp_parser (2.8.1)
rexml (3.2.5)
rspec (3.12.0)
rspec-core (~> 3.12.0)
Expand All @@ -31,35 +35,43 @@ GEM
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-support (3.12.0)
rubocop (1.39.0)
rubocop (1.52.1)
json (~> 2.3)
parallel (~> 1.10)
parser (>= 3.1.2.1)
parser (>= 3.2.2.3)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.23.0, < 2.0)
rubocop-ast (>= 1.28.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 3.0)
rubocop-ast (1.24.0)
parser (>= 3.1.1.0)
rubocop-performance (1.15.1)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.29.0)
parser (>= 3.2.1.0)
rubocop-performance (1.18.0)
rubocop (>= 1.7.0, < 2.0)
rubocop-ast (>= 0.4.0)
ruby-progressbar (1.11.0)
standard (1.19.1)
ruby-progressbar (1.13.0)
standard (1.29.0)
language_server-protocol (~> 3.17.0.2)
rubocop (= 1.39.0)
rubocop-performance (= 1.15.1)
test-unit (3.5.5)
lint_roller (~> 1.0)
rubocop (~> 1.52.0)
standard-custom (~> 1.0.0)
standard-performance (~> 1.1.0)
standard-custom (1.0.1)
lint_roller (~> 1.0)
standard-performance (1.1.0)
lint_roller (~> 1.0)
rubocop-performance (~> 1.18.0)
test-unit (3.6.0)
power_assert
unicode-display_width (2.3.0)
unicode-display_width (2.4.2)

PLATFORMS
aarch64-linux
arm64-darwin-20
arm64-darwin-21
arm64-darwin-22
arm64-darwin-23
universal-java-11
universal-java-18
x64-mingw-ucrt
Expand Down
2 changes: 2 additions & 0 deletions tool/bundler/test_gems.rb
Expand Up @@ -7,6 +7,8 @@
gem "rack-test", "~> 1.1"
gem "compact_index", "~> 0.13.0"
gem "sinatra", "~> 2.0"
# for Ruby 2.6. bundler/spec/install/gemfile/sources_spec.rb is failed with sinatra-2.0.8.1 and tilt-2.2.0.
gem "tilt", "~> 2.0.11"
gem "rake", "13.0.1"
gem "builder", "~> 3.2"
gem "rb_sys"
3 changes: 2 additions & 1 deletion tool/bundler/test_gems.rb.lock
Expand Up @@ -11,7 +11,7 @@ GEM
rack-test (1.1.0)
rack (>= 1.0, < 3)
rake (13.0.1)
rb_sys (0.9.63)
rb_sys (0.9.79)
ruby2_keywords (0.0.5)
sinatra (2.0.8.1)
mustermann (~> 1.0)
Expand Down Expand Up @@ -39,6 +39,7 @@ DEPENDENCIES
rake (= 13.0.1)
rb_sys
sinatra (~> 2.0)
tilt (~> 2.0.11)
webrick (= 1.7.0)

BUNDLED WITH
Expand Down

0 comments on commit c2f4b41

Please sign in to comment.