2015-02-09 73 views
0

我的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修改?

回答

0

也許在舊版本捆綁的一個bug,嘗試更新它:

gem update bundler