You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ gem install my_gem
Traceback (most recent call last):
6: from /Users/User/.rbenv/versions/2.7.4/lib/ruby/site_ruby/2.7.0/rubygems/request_set.rb:173:in `block (2 levels) in install'
5: from /Users/User/.rbenv/versions/2.7.4/lib/ruby/site_ruby/2.7.0/rubygems/resolver/specification.rb:112:in `download'
4: from /Users/User/.rbenv/versions/2.7.4/lib/ruby/site_ruby/2.7.0/rubygems/source.rb:213:in `download'
3: from /Users/User/.rbenv/versions/2.7.4/lib/ruby/site_ruby/2.7.0/rubygems/remote_fetcher.rb:146:in `download'
2: from /Users/User/.rbenv/versions/2.7.4/lib/ruby/site_ruby/2.7.0/rubygems/remote_fetcher.rb:285:in `cache_update_path'
1: from /Users/User/.rbenv/versions/2.7.4/lib/ruby/site_ruby/2.7.0/rubygems/remote_fetcher.rb:248:in `fetch_path'
/Users/User/.rbenv/versions/2.7.4/lib/ruby/site_ruby/2.7.0/rubygems/remote_fetcher.rb:232:in `fetch_http': bad response Repository not found 404 (https://nexus.company.ru/repository/gems/my_gem-0.1.0.gem) (Gem::RemoteFetcher::FetchError)
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
bad response Repository not found 404 (https://nexus.tcsbank.ru/repository/gems/my_gem-0.1.0.gem)
It seems similar to #1829. Does it work if you add a trailing slash to the source? It should be an easy fix similar to #3123, a pull request would be super appreciated!
I'm having a problem with running
gem install
using custom spec source.I've add custom gem server source:
Then trying to install gem that surely exists on the server on url 'https://nexus.tcsbank.ru/repository/rubygems/gems/my_gem-0.1.0.gem'.
Notice bad url 'https://nexus.tcsbank.ru/repository/gems/my_gem-0.1.0.gem'. Rubygem builds wrong uri from source url and gem path. It happens at remote_fetcher.rb:144
This issue is related to:
gem
Here are my current environment details:
I will abide by the code of conduct.
The text was updated successfully, but these errors were encountered: