【问题标题】:Specifying gem from github does not work从 github 指定 gem 不起作用
【发布时间】:2016-07-15 02:49:24
【问题描述】:

如果我把它写在我的 Gemfile 中

gem 'devise', github: 'plataformatec/devise', branch: 'master'

我收到以下错误:

SystemStackError: stack level too deep.
An error occurred while installing devise (4.0.0.rc2), and Bundler cannot continue.

但如果我在我的 Gemfile 中指定:

gem 'devise', '4.0.0.rc2'

它工作正常,知道为什么从 github 指定 gem 不能正常工作吗?我尝试过的所有 gem 都会发生这种情况,我需要从 github 指定另一个 gem,因为版本尚未更新。

【问题讨论】:

    标签: ruby-on-rails ruby rubygems bundle


    【解决方案1】:

    在您的Gemfile 中试试这个。然后运行bundle install

    gem 'devise', git: 'git@github.com:plataformatec/devise.git', branch: 'master'
    

    希望它会起作用。谢谢

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-04-02
      • 2013-10-10
      • 1970-01-01
      • 2017-10-29
      • 2017-06-06
      • 1970-01-01
      • 2011-06-17
      • 1970-01-01
      相关资源
      最近更新 更多