summaryrefslogtreecommitdiff
path: root/lib/bundler/definition.rb
diff options
context:
space:
mode:
authorMartin Emde <martin.emde@gmail.com>2023-12-11 17:16:37 -0800
committergit <svn-admin@ruby-lang.org>2023-12-12 02:39:57 +0000
commit1e5c8afb151c0121e83657fb6061d0e3805d30f6 (patch)
tree3d915678fe086e4ff61e4d385aba535f12e65ec9 /lib/bundler/definition.rb
parent6b3abcf4622c6ae39ddfd5b21c2387f177f82e0d (diff)
[rubygems/rubygems] Ensure that the lockfile mtime is not altered on frozen install
https://github.com/rubygems/rubygems/commit/6847709ee0
Diffstat (limited to 'lib/bundler/definition.rb')
-rw-r--r--lib/bundler/definition.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bundler/definition.rb b/lib/bundler/definition.rb
index 1de9a72932..5dc711ffde 100644
--- a/lib/bundler/definition.rb
+++ b/lib/bundler/definition.rb
@@ -343,7 +343,8 @@ module Bundler
preserve_unknown_sections ||= !updating_major && (Bundler.frozen_bundle? || !(unlocking? || @unlocking_bundler))
if file && File.exist?(file) && lockfiles_equal?(@lockfile_contents, contents, preserve_unknown_sections)
- SharedHelpers.filesystem_access(file) {|p| FileUtils.touch(p) }
+ return if Bundler.frozen_bundle?
+ SharedHelpers.filesystem_access(file) { FileUtils.touch(file) }
return
end