Running bundle or rspec adds line to Gemfile.lock
问题 After running various commands (bundle and rspec for example) in a Ruby project, Gemfile.lock is updated and x86_64-darwin-17 is added to the PLATFORMS heading. Why is this happening? How can I prevent it? Running gem env gives this interesting context: ○ → gem env RubyGems Environment: - RUBYGEMS VERSION: 2.7.6 - RUBY VERSION: 2.5.1 (2018-03-29 patchlevel 57) [x86_64-darwin17] #...etc - RUBYGEMS PLATFORMS: - ruby - x86_64-darwin-17 回答1: This was caused by global bundler config. Setting to