Can I stop Bundler from adding RUBY VERSION to Gemfile.lock

前端 未结 3 1319
粉色の甜心
粉色の甜心 2021-01-17 11:21

Every time I run any gem command on the command line, Bundler insists on touching my Gemfile.lock file to add this line:

RUBY VERSION
   ruby 2.         


        
3条回答
  •  庸人自扰
    2021-01-17 11:49

    If you are using some sort of version control like Git you can add the Gemfile.lock to your .gitignore file.

    This way anytime you push up a new change you will not push up your Gemfile.lock. Especially since other developers do not need it - once they run bundle, bundle will create a new Gemfile.lock on completion.

提交回复
热议问题