Gitlab PUSH Gemfile语法错误:(Bundler :: GemfileError)

时间:2016-08-18 17:47:11

标签: ruby-on-rails ruby git rubygems gitlab

继续之前提出的问题: Gitlab PUSH syntax error, unexpected ':', expecting $end

我使用目前的设置工作了大约一年半。最近没有升级任何东西,但我在尝试推送时突然看到了这个错误:

remote: /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler  /dsl.rb:33:in `eval_gemfile': Gemfile syntax error: (Bundler::GemfileError)
remote: /home/git/gitlab/Gemfile:14: syntax error, unexpected ':',   expecting $end
remote: gem "mysql2", group: :mysql
remote:                     ^
remote:     from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib  /bundler/dsl.rb:9:in `evaluate'
remote:     from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/definition.rb:19:in `build'
remote:     from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib /bundler.rb:148:in `definition'
remote:     from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler.rb:116:in `setup'
remote:     from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib /bundler/setup.rb:17
remote: error: hook declined to update refs/heads/develop

我已经安装了rvm和最新的ruby

ruby --version
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15]

解决方案用户' An Phan'不得不这是手动删除系统版本的红宝石。当我使用Mac并且知道其他应用程序可以依赖于此时,我希望找到解决此问题的另一种方法。

谢谢!

编辑:服务器由我公司的另一个团队管理,所有同事也使用它。他们没有问题推动。

0 个答案:

没有答案