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

Add fallback timeout documentation for when Gemstash's off/missing #88

Merged
merged 1 commit into from
May 11, 2016

Conversation

parndt
Copy link
Contributor

@parndt parndt commented May 10, 2016

Per rubygems/bundler#4186 this documents how to add a fallback timeout to prevent this happening when Gemstash is off:

$ bundle update
Fetching source index from http://localhost:9292/
Retrying fetcher due to error (2/4): Bundler::HTTPError Could not fetch specs from http://localhost:9292/
Retrying fetcher due to error (3/4): Bundler::HTTPError Could not fetch specs from http://localhost:9292/
Retrying fetcher due to error (4/4): Bundler::HTTPError Could not fetch specs from http://localhost:9292/
Could not fetch specs from http://localhost:9292/

After configuring a fallback, as described:

$ bundle config mirror.https://rubygems.org.fallback_timeout true

Instead, after trying Gemstash first and quickly failing, we see this:

$ bundle update
Fetching gem metadata from https://rubygems.org/
Fetching version metadata from https://rubygems.org/
Fetching dependency metadata from https://rubygems.org/

So we can see that it skips to using https://rubygems.org instead.

Now, Gemstash seems much more like a viable option for a mirror!

@pcarranza
Copy link
Contributor

Glad you like it, I coded that feature myself 😄

We were missing documentation for this 👍

@parndt
Copy link
Contributor Author

parndt commented May 10, 2016

I suppose I should have set [ci skip]..

@pcarranza would you also like documentation for bundler.io?

@pcarranza
Copy link
Contributor

@parndt Heh, I thought I did added documentation, but I did not.

Please do, it will be great to have it properly documented.

Don't worry about CI, this is just documentation and JRuby complaining is not something odd, sadly.

@pcarranza
Copy link
Contributor

pcarranza commented May 10, 2016

I'm merging with CI failing because it is not a code change, but a documentation change.

cc @smellsblue @indirect

@parndt
Copy link
Contributor Author

parndt commented May 10, 2016

@pcarranza @indirect @smellsblue I've also documented this for Bundler's documentation site over at rubygems/bundler-site#212

@indirect indirect merged commit f14ff38 into rubygems:master May 11, 2016
@indirect
Copy link
Member

Thanks @parndt!

@smellsblue
Copy link
Contributor

👍

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

Successfully merging this pull request may close these issues.

4 participants