2

如标题所述,我收到错误消息。具体来说,这个:

Undefined local variable or method `git_source' for Gemfile
        from /var/www/canvas/Gemfile.d/_before.rb:53

我检查了捆绑器:

canvas$ bundler -v

返回:

Bundler version 1.13.6

相关的代码部分是:

git_source(:github) do |repo_name|
  repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include? ("/")
  "https://github.com/#{repo_name}.git"
end

我知道 'git_source' 是在 Bundler 1.6 中引入的。想法?

4

0 回答 0