跳过不需要的 gropus 的捆绑器身份验证

时间:2021-06-24 11:22:40

标签: ruby bundler

我有一个 Gemfile 看起来像

source 'https://rubygems.org'
...

group :production do
  ...
  source 'https://rubygems.pkg.github.com/org' do
    ...
  end
end

group :development do
  ...
end

group :development, :test do
  ...
end

group :test do
  ...
end

在我的 test 环境中,我试图通过运行来安装绝对必要的 gem

bundle config set --local without 'development production'
bundle install

但是,Bundler 失败并出现以下错误:Authentication is required for rubygems.pkg.github.com.

有没有办法在不提供任何身份验证凭据的情况下仍然安装 gems(无需生产)?

我也尝试将 :production 组标记为 optional,但我仍然遇到相同的错误。

0 个答案:

没有答案
相关问题