【发布时间】:2019-06-25 00:33:35
【问题描述】:
我有一个作为 gem 存储库的工件服务器。
当我尝试更改 gem 源时,我收到错误 no such name
gem source -a https://artifactory.example.com/api/gems/gems
Error fetching https://artifactory.example.com/api/gems/gems:
no such name (https://artifactory.example.com/api/gems/specs.4.8.gz)
如果我尝试绕过人工虚拟存储库,直接指向本地存储库,则会出错
gem source -a https://artifactory.example.com/api/gems/gems-local/
Error fetching https://artifactory.example.com/api/gems/gems-local/:
bad response Not Found 404 (https://artifactory.example.com/api/gems/gems-local/specs.4.8.gz)
根据工件文档,尾部斜杠确实很重要。我已经尝试过使用和不使用斜杠的上述示例。所有的结果都是一样的。
/api/gems/gems
/api/gems/gems/
/api/gems/gems-local
/api/gems/gems-local/
如何进一步解决此问题?添加 gem 源的正确方法是什么?
【问题讨论】:
标签: rubygems artifactory