bundler-multilock 1.3.2 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/bundler/multilock/version.rb +1 -1
- data/lib/bundler/multilock.rb +19 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba0cab59258e277e546634302417061f583bccb384c48d2573ac5565c23d436b
|
4
|
+
data.tar.gz: f0571eef5788f3299324cc39c8ca6bdeb742d7296b2a564d5511e5118e72e94c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92aa36d22778ef5073846af9eae61c1046be24ca103edd3b6ad4efc2ad2d99e0463e6b0750c74dc24174a16414aae64356465c957a1e85f4c214c4e42c49b3ad
|
7
|
+
data.tar.gz: 4b420871866b9be6de5e33671e63ad9741ddb17909a9899c8ed86ebe2c8b011e3e89366c99dc8c044323697636edbd9a048f8173572f5218100f3024300ff662
|
data/lib/bundler/multilock.rb
CHANGED
@@ -260,6 +260,9 @@ module Bundler
|
|
260
260
|
spec_precedences[spec.name] = precedence || :parent
|
261
261
|
end
|
262
262
|
|
263
|
+
lockfile.sources.map! do |source|
|
264
|
+
parent_lockfile.sources.find { |s| s == source } || source
|
265
|
+
end
|
263
266
|
# replace any duplicate specs with what's in the parent lockfile
|
264
267
|
lockfile.specs.map! do |spec|
|
265
268
|
parent_spec = cache.find_matching_spec(parent_specs, spec)
|
@@ -268,9 +271,7 @@ module Bundler
|
|
268
271
|
|
269
272
|
dependency_changes ||= spec != parent_spec
|
270
273
|
|
271
|
-
|
272
|
-
new_spec.source = spec.source
|
273
|
-
new_spec
|
274
|
+
parent_spec
|
274
275
|
end
|
275
276
|
|
276
277
|
lockfile.platforms.replace(parent_lockfile.platforms).uniq!
|
@@ -483,6 +484,13 @@ module Bundler
|
|
483
484
|
# from someone else
|
484
485
|
if current_lockfile.exist? && install
|
485
486
|
Bundler.settings.temporary(frozen: true) do
|
487
|
+
# it keeps the same sources as the builder, which now shares with
|
488
|
+
# `definition` above; give it its own copy to avoid stomping on it
|
489
|
+
builder.instance_variable_set(
|
490
|
+
:@sources,
|
491
|
+
builder.instance_variable_get(:@sources).dup
|
492
|
+
)
|
493
|
+
|
486
494
|
current_definition = builder.to_definition(current_lockfile, {})
|
487
495
|
# if something has changed, we skip this step; it's unlocking anyway
|
488
496
|
next unless current_definition.no_resolve_needed?
|
@@ -504,6 +512,14 @@ module Bundler
|
|
504
512
|
previous_ui_level = Bundler.ui.level
|
505
513
|
Bundler.ui.level = "warn"
|
506
514
|
begin
|
515
|
+
# force a remote resolution if intermediate gems are missing
|
516
|
+
if definition.instance_variable_get(:@locked_spec_with_missing_deps) ||
|
517
|
+
definition.instance_variable_get(:@locked_spec_with_invalid_deps) ||
|
518
|
+
definition.instance_variable_get(:@missing_lockfile_dep) ||
|
519
|
+
definition.instance_variable_get(:@invalid_lockfile_dep)
|
520
|
+
raise SolveFailure
|
521
|
+
end
|
522
|
+
|
507
523
|
# this is a horrible hack, to fix what I consider to be a Bundler bug.
|
508
524
|
# basically, if you have multiple platform specific gems in your
|
509
525
|
# lockfile, and that gem gets unlocked, Bundler will only search
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bundler-multilock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Instructure
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-06-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -114,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
114
114
|
- !ruby/object:Gem::Version
|
115
115
|
version: '0'
|
116
116
|
requirements: []
|
117
|
-
rubygems_version: 3.5.
|
117
|
+
rubygems_version: 3.5.14
|
118
118
|
signing_key:
|
119
119
|
specification_version: 4
|
120
120
|
summary: Support Multiple Lockfiles
|