bundler-multilock 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bundler/multilock/check.rb +13 -8
- data/lib/bundler/multilock/version.rb +1 -1
- data/lib/bundler/multilock.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3acaa706bf6ffde2f5fb070a729895371cfbebf2dbe2c97d249acbb698a0b6c0
|
4
|
+
data.tar.gz: 416ddd8252d1254472dfe5ee60b2cb7eb54e88b0ea25f58d2f34888dbe6b6f2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7adc856fa4149e2f814d7aac9181addc3a7ad378a44b9d1f9855d277e84ef58e56d59aab99d81a59f0ad539a6735c1a233e58be86fe7f887d01bb6cf4d60c1fb
|
7
|
+
data.tar.gz: 60f364edd123e881827ab24c9bf18cb6e2bccad0156b8346096a8ed221ed4f8409ce5bab2a8752e2aedc1cc6a0d8c9ca5035490ccb41a014242c57817c92dc64
|
@@ -19,13 +19,14 @@ module Bundler
|
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
22
|
-
def run
|
22
|
+
def run(skip_base_checks: false)
|
23
23
|
return true unless Bundler.default_lockfile.exist?
|
24
24
|
|
25
25
|
success = true
|
26
|
-
|
27
|
-
|
28
|
-
|
26
|
+
unless skip_base_checks
|
27
|
+
missing_specs = base_check({ gemfile: Bundler.default_gemfile, lockfile: Bundler.default_lockfile },
|
28
|
+
return_missing: true).to_set
|
29
|
+
end
|
29
30
|
Multilock.lockfile_definitions.each do |lockfile_definition|
|
30
31
|
next if lockfile_definition[:lockfile] == Bundler.default_lockfile
|
31
32
|
|
@@ -34,9 +35,11 @@ module Bundler
|
|
34
35
|
success = false
|
35
36
|
end
|
36
37
|
|
37
|
-
|
38
|
-
|
39
|
-
|
38
|
+
unless skip_base_checks
|
39
|
+
new_missing = base_check(lockfile_definition, log_missing: missing_specs, return_missing: true)
|
40
|
+
success = false unless new_missing.empty?
|
41
|
+
missing_specs.merge(new_missing)
|
42
|
+
end
|
40
43
|
success = false unless check(lockfile_definition)
|
41
44
|
end
|
42
45
|
success
|
@@ -53,7 +56,9 @@ module Bundler
|
|
53
56
|
|
54
57
|
begin
|
55
58
|
definition.validate_runtime!
|
56
|
-
|
59
|
+
Bundler.ui.silence do
|
60
|
+
definition.resolve_only_locally!
|
61
|
+
end
|
57
62
|
not_installed = definition.missing_specs
|
58
63
|
rescue RubyVersionMismatch, GemNotFound, SolveFailure
|
59
64
|
return return_missing ? [] : false
|
data/lib/bundler/multilock.rb
CHANGED
@@ -152,6 +152,7 @@ module Bundler
|
|
152
152
|
attempts = 1
|
153
153
|
|
154
154
|
checker = Check.new
|
155
|
+
synced_any = false
|
155
156
|
Bundler.settings.temporary(cache_all_platforms: true, suppress_install_using_messages: true) do
|
156
157
|
lockfile_definitions.each do |lockfile_definition|
|
157
158
|
# we already wrote the default lockfile
|
@@ -188,6 +189,7 @@ module Bundler
|
|
188
189
|
write_lockfile(lockfile_definition, lockfile_definition[:lockfile], install: install)
|
189
190
|
else
|
190
191
|
Bundler.ui.info("Syncing to #{relative_lockfile}...") if attempts == 1
|
192
|
+
synced_any = true
|
191
193
|
|
192
194
|
# adjust locked paths from the default lockfile to be relative to _this_ gemfile
|
193
195
|
adjusted_default_lockfile_contents =
|
@@ -272,7 +274,7 @@ module Bundler
|
|
272
274
|
end
|
273
275
|
end
|
274
276
|
|
275
|
-
exit 1 unless checker.run
|
277
|
+
exit 1 unless checker.run(skip_base_checks: !synced_any)
|
276
278
|
ensure
|
277
279
|
@recursive = previous_recursive
|
278
280
|
end
|
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.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Instructure
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-09-
|
11
|
+
date: 2023-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|