在我自己的 gem 中,我有一个Gemfile
基本上是这样的:
source 'https://my.gemserver.com'
source 'https://rubygems.org'
gemspec
我.gemspec
的所有依赖项都列为add_dependency
和add_development_dependency
。
从 Bundler 1.8 开始,我收到警告:
Warning: this Gemfile contains multiple primary sources. Using `source` more than
once without a block is a security risk, and may result in installing unexpected gems.
To resolve this warning, use a block to indicate which gems should come from the
secondary source. To upgrade this warning to an error,
run `bundle config disable_multisource true`.
有没有办法解决这个警告(不通过捆绑配置静音)?我在 Rubygems 规范中找不到任何关于源选项的信息。