lib/rbs/collection/config/lockfile_generator.rb in rbs-3.3.0 vs lib/rbs/collection/config/lockfile_generator.rb in rbs-3.3.1
- old
+ new
@@ -81,10 +81,10 @@
end
private def validate_gemfile_lock_path!(lock:, gemfile_lock_path:)
return unless lock
return unless lock.gemfile_lock_fullpath
- unless lock.gemfile_lock_fullpath == gemfile_lock_path
+ unless File.realpath(lock.gemfile_lock_fullpath) == File.realpath(gemfile_lock_path)
raise GemfileLockMismatchError.new(expected: lock.gemfile_lock_fullpath, actual: gemfile_lock_path)
end
end
private def assign_gem(name:, version:, skip: false)