我的 Rails 项目 Gemfile 中有一些来自 git 存储库的 gem。当我执行“捆绑安装”时,它们以某种顺序保存在 Gemfile.lock 中。
例子:
GIT
remote: git://github.com/wr0ngway/graylog2_exceptions.git
revision: 797924acd1aa89852605230812d8cfd27da90969
specs:
graylog2_exceptions (1.3.0)
gelf (~> 1.3)
GIT
remote: git://github.com/EppO/rolify.git
revision: 45de8cf4bf51e60accddee3385829a2266709cb0
ref: 45de8cf
specs:
rolify (3.3.0.rc5)
当我稍后运行项目或执行“捆绑安装”时,这些 gem 似乎以另一种顺序保存在 Gemfile.lock 中。
例子:
GIT
remote: git://github.com/EppO/rolify.git
revision: 45de8cf4bf51e60accddee3385829a2266709cb0
ref: 45de8cf
specs:
rolify (3.3.0.rc5)
GIT
remote: git://github.com/wr0ngway/graylog2_exceptions.git
revision: 797924acd1aa89852605230812d8cfd27da90969
specs:
graylog2_exceptions (1.3.0)
gelf (~> 1.3)
Gems 版本相同,但它们在 Gemfile.lock 中的顺序不同。Gemfile.lock 处于版本控制之下,并且经常将其标记为“已修改”。有没有办法解决这个问题以避免永久修改 Gemfile.lock ?