【发布时间】:2021-04-03 04:46:32
【问题描述】:
CircleCI 安装依赖错误:
Your bundle is locked to my_cool_gem (0.7.2), but that version could not be
found in any of the sources listed in your Gemfile. If you haven't changed
sources, that means the author of my_cool_gem (0.7.2) has removed it. You'll
need to update your bundle to a version other than my_cool_gem (0.7.2) that
hasn't been removed in order to install.
CircleCI 输出截图:
CircleCI 找不到我发布到 GitHub Packages 的 gem,但我在本地开发中没有这样的问题。
我有 RubyGems 和 Bundler 的合格版本,根据 GitHub 的文档 - https://docs.github.com/en/free-pro-team@latest/packages/guides/configuring-rubygems-for-use-with-github-packages - 我相信我已按照说明发布和使用所述已发布的 gem...再次,使用工作 本地但在 CircleCI...
中失败RubyGems 版本:
-bash> gem --version
3.0.9
捆绑器版本:
-bash> bundle --version
Bundler version 1.17.3
宝石文件:
source 'https://rubygems.org'
source 'https://rubygems.pkg.github.com/my_cool_org'
gem 'my_cool_gem', '0.7.2'
请注意,我也尝试过:
source 'https://rubygems.org'
source 'https://rubygems.pkg.github.com/my_cool_org'
source 'https://rubygems.pkg.github.com/my_cool_org' do
gem 'my_cool_gem', '0.7.2'
end
【问题讨论】:
-
我真的只是想要一个答案(来自任何人)——我不关心“有信誉的来源”——我想下次我会选择“提请注意这个问题”。对不起!
标签: ruby-on-rails github rubygems bundler circleci