Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smoother handling of yanked gems #1192

Closed
johnnyshields opened this issue Feb 9, 2016 · 3 comments
Closed

Smoother handling of yanked gems #1192

johnnyshields opened this issue Feb 9, 2016 · 3 comments

Comments

@johnnyshields
Copy link

Firstly apologies if this is not the right repo to raise this issue.

I recently encountered this error due to a yanked gem.

Gem::RemoteFetcher::FetchError: bad response Forbidden 403 (http://rubygems.global.ssl.fastly.net/gems/rb-inotify-0.9.6.gem)
An error occurred while installing rb-inotify (0.9.6), and Bundler cannot
continue.
Make sure that `gem install rb-inotify -v '0.9.6'` succeeds before bundling.
Build step 'Execute shell' marked build as failure
Finished: FAILURE

It would be nice if there could be a message indicating that the gem was yanked. One option would be make the file on the CDN a dummy text file with the word "yanked" or something. The error message to me above indicates that there might be an infra problem with Rubygems itself, and forces me to dig around for the exact problem.

@johnnyshields
Copy link
Author

Hmmm maybe this was a one-off issue with a bad upload of the specific lib: guard/rb-inotify#52. Please close this issue if there's nothing to be improved on Rubygems.org side...

@dwradcliffe
Copy link
Member

Thanks for mentioning this. We had a storage configuration problem that caused missing files to return as 403s. This should have returned a 404, and will now.

I'm not sure exactly what happened with 0.9.6 originally but it's yanked now and will return a 404. Depending on your Gemfile, bundler shouldn't suggest that a yanked version is available in the first place.

@johnnyshields
Copy link
Author

OK got it thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants