bundler-multilock 2.0.0.beta3 → 2.0.0.beta4
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 +16 -7
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 45718b8a0410e25b206212808dd21eb5530561297393c3f6fca54a14acd26e40
|
|
4
|
+
data.tar.gz: 35245c2fc0f936995c0cbc5be482bf20dc6767de70cc23b41fe1b89b63e179cd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2e069c0c770748ebdfe957fc1c795553ecaa7afdd7655a180e5c6ced84f0e31840bd7f9233dcd6d07b70ac765fbde244624b1976a15f2d5dc31adb1e1accadaf
|
|
7
|
+
data.tar.gz: c70adec856e83bb4520d3705e714bd2d1e99672d8c866faf1718928d65c1b3062b004c242e353037f7d7a0b35ea7bfb0675b2af20afd64416c1f8a14d03c7421
|
data/lib/bundler/multilock.rb
CHANGED
|
@@ -184,7 +184,12 @@ module Bundler
|
|
|
184
184
|
next
|
|
185
185
|
end
|
|
186
186
|
|
|
187
|
-
|
|
187
|
+
# a missing lockfile that enforces pinned additional dependencies has nothing
|
|
188
|
+
# to be out of sync with, so even a frozen bundle just generates it
|
|
189
|
+
generate_missing = Bundler.frozen_bundle? && !lockfile_name.exist? &&
|
|
190
|
+
lockfile_definition[:enforce_pinned_additional_dependencies]
|
|
191
|
+
|
|
192
|
+
if Bundler.frozen_bundle? && !generate_missing
|
|
188
193
|
# if we're frozen, you have to use the pre-existing lockfile
|
|
189
194
|
unless lockfile_name.exist?
|
|
190
195
|
Bundler.ui.error("The bundle is locked, but #{relative_lockfile} is missing. " \
|
|
@@ -294,12 +299,16 @@ module Bundler
|
|
|
294
299
|
temp_lockfile.write(new_contents)
|
|
295
300
|
temp_lockfile.flush
|
|
296
301
|
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
302
|
+
# Bundler refuses to write a lockfile when frozen, which we need to allow in the case
|
|
303
|
+
# of a missing lockfile that enforces pinned dependencies.
|
|
304
|
+
Bundler.settings.temporary(frozen: generate_missing ? false : Bundler.frozen_bundle?) do
|
|
305
|
+
had_changes ||= write_lockfile(lockfile_definition,
|
|
306
|
+
temp_lockfile.path,
|
|
307
|
+
cache,
|
|
308
|
+
install:,
|
|
309
|
+
dependency_changes:,
|
|
310
|
+
unlocking_bundler:)
|
|
311
|
+
end
|
|
303
312
|
end
|
|
304
313
|
cache.invalidate_lockfile(lockfile_name) if had_changes
|
|
305
314
|
|