@@ -217,6 +217,7 @@ def missing_specs?
217217 rescue BundlerError => e
218218 @resolve = nil
219219 @resolver = nil
220+ @resolution_packages = nil
220221 @specs = nil
221222 @gem_version_promoter = nil
222223
@@ -361,10 +362,8 @@ def ensure_equivalent_gemfile_and_lockfile(explicit_flag = false)
361362 "updated #{ Bundler . default_lockfile . relative_path_from ( SharedHelpers . pwd ) } to version control."
362363
363364 unless explicit_flag
364- suggested_command = if Bundler . settings . locations ( "frozen" ) . keys . &( [ :global , :local ] ) . any?
365- "bundle config unset frozen"
366- elsif Bundler . settings . locations ( "deployment" ) . keys . &( [ :global , :local ] ) . any?
367- "bundle config unset deployment"
365+ suggested_command = unless Bundler . settings . locations ( "frozen" ) . keys . include? ( :env )
366+ "bundle config set frozen false"
368367 end
369368 msg << "\n \n If this is a development machine, remove the #{ Bundler . default_gemfile } " \
370369 "freeze \n by running `#{ suggested_command } `." if suggested_command
@@ -886,7 +885,8 @@ def lockfiles_equal?(current, proposed, preserve_unknown_sections)
886885 if preserve_unknown_sections
887886 sections_to_ignore = LockfileParser . sections_to_ignore ( @locked_bundler_version )
888887 sections_to_ignore += LockfileParser . unknown_sections_in_lockfile ( current )
889- sections_to_ignore += LockfileParser ::ENVIRONMENT_VERSION_SECTIONS
888+ sections_to_ignore << LockfileParser ::RUBY
889+ sections_to_ignore << LockfileParser ::BUNDLED unless @unlocking_bundler
890890 pattern = /#{ Regexp . union ( sections_to_ignore ) } \n (\s {2,}.*\n )+/
891891 whitespace_cleanup = /\n {2,}/
892892 current = current . gsub ( pattern , "\n " ) . gsub ( whitespace_cleanup , "\n \n " ) . strip
0 commit comments