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

前端 未结 3 1242
粉色の甜心
粉色の甜心 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:56

    I don't think so, but maybe it's okay:

    As of 2.1.0, Ruby no longer has multiple patch level releases for a given version. See accepted answer on How do version numbers work for MRI Ruby?

    2.2.2p95 is the only patch level of 2.2.2 that will ever be released. 'p95' just means that there have been 95 commits since 2.2.0.

    Since your whole team will be on 2.2.2 anyway, it shouldn't cause problems to leave this in your Gemfile.lock. (As long as everyone updates Bundler to the version that does this, anyway. Otherwise there'll still be conflicts as the ruby version is added and removed.)

提交回复
热议问题