每次以不同的顺序在Gemfile.lock中存储Git仓库
问题描述:
我的rails项目Gemfile中有一些来自git仓库的gem。当我做“捆绑安装”时,它们以Gemfile.lock的顺序保存。每次以不同的顺序在Gemfile.lock中存储Git仓库
例子:
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)
当我运行该项目,或做“包安装”后,它似乎什么这些宝石都保存在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)
宝石修订是相同的,但它们在Gemfile.lock的顺序是不同的。 Gemfile.lock在版本控制下,并且非常频繁地将其标记为“修改”。有没有办法解决这个问题,以避免永久Gemfile.lock修改?
答
也许在旧版本捆绑的一个bug,尝试更新它:
gem update bundler