This repository has been archived by the owner on Apr 14, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2k
URI parsing issues with fallback config, for ruby < 2.1.x #4830
Labels
Comments
@indirect Could you give me more clues? I tried to tackle this one but failed :( Thanks! |
2 tasks
@JuanitoFatas here's a reproduction script for the problem:
To fix this bug, we need to fix the |
I think at the end of the day we may just need to enforce the trailing slash before the |
bundlerbot
added a commit
that referenced
this issue
Apr 27, 2017
…ndirect [Settings] Allow configuring a mirror fallback timeout without a trailing slash Closes #4830
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What did you do?
I ran the command
/Users/kevintpeng/.gem/ruby/2.1.8/bin/bundle config mirror.https://rubygems.org.fallback_timeout true
What did you expect to happen?
I expected Bundler to set the configuration value of fallback_timeout to true
What happened instead?
Instead, what actually happened was a URI parsing error, where the variable name was parsed as a part of the actual uri. I noticed this doesn't happen in newer versions of ruby.
Error details
Environment
Bundler 1.12.5
Rubygems 2.2.5
Ruby 2.1.8p440 (2015-12-16 revision 53160) [x86_64-darwin15.0]
GEM_HOME /Users/kevintpeng/.gem/ruby/2.1.8
GEM_PATH /Users/kevintpeng/.gem/ruby/2.1.8:/opt/rubies/2.1.8/lib/ruby/gems/2.1.0
Git 2.7.4 (Apple Git-66)
jobs
Set for your local app (//.bundle/config): "4"
mirror.https://rubygems.org/
Set for your local app (//.bundle/config): "https://rubygems-proxy.org"
orig_path
Set via BUNDLE_ORIG_PATH: "/Users/kevintpeng/.gem/ruby/2.1.8/bin:/opt/rubies/2.1.8/lib/ruby/gems/2.1.0/bin:/opt/rubies/2.1.8/bin:/Users/kevintpeng/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
orig_gem_path
Set via BUNDLE_ORIG_GEM_PATH: "/Users/kevintpeng/.gem/ruby/2.1.8:/opt/rubies/2.1.8/lib/ruby/gems/2.1.0"
Is there some way we can change how the config file is parsed so that there is a distinction between uri portions and variable names? Something like
mirror_rubygems.org_fallback_timeout
. That way there won't be any ambiguity in parsing the URI out of these variable names.The text was updated successfully, but these errors were encountered: