freebsd-ports/devel/rubygem-pdk/files/patch-lib_pdk_util_bundler.rb
Romain Tartière 4303a6c8bf devel/rubygem-pdk: Update to 2.2.0
With hat:	puppet
2021-08-08 11:22:02 -10:00

24 lines
842 B
Ruby

--- lib/pdk/util/bundler.rb.orig 2021-08-08 21:11:44 UTC
+++ lib/pdk/util/bundler.rb
@@ -21,12 +21,7 @@ module PDK
return
end
- unless bundle.locked?
- # Generate initial default Gemfile.lock, either from package cache or
- # by invoking `bundle lock`
- bundle.lock!
- end
-
+ if bundle.locked?
# Check if all dependencies will be available once we update the lockfile.
begin
original_lockfile = bundle.gemfile_lock
@@ -40,6 +35,7 @@ module PDK
end
bundle.update_lock!(with: gem_overrides, local: all_deps_available)
+ end
# If there are missing dependencies after updating the lockfile, let `bundle install`
# go out and get them. If the specified puppet gem version points to a remote location