Geminstaller fails when first source doesn't have gem
-
Chad Woolley
You don't have all those sources specified in your geminstaller.yml: install options = '--no-ri --no-rdoc'. You should put them all listed as sources in your default install_options. RubyGems requires you to specify ALL sources - they are not additive.
If you don't explicitly specify all required sources, you will fall back to whatever is in your ~/.gemrc, which is unreliable across machines/environments.
Please attach your ~.gemrc after each step. e.g. before you run anything, after you run geminstaller and fail, and after you run the gem list manually. Are all those sources in there after each step?
-
Chad Woolley
also please attach the geminstaller.yml and a new failure message after you add the default sources (if it still fails).
-
Chad Woolley
I can't reproduce this. Here's what I tried:
-
Start a local gem server with dummy gems: http://github.com/thewoolleyman/...
-
Create the following dummy config:
defaults: install_options: --source=http://gems.rubyforge.org --source=http://gems.github.com --source=http://localhost:9909 gems:- name: stubgem
-
chadmac:tmp woolley$ geminstaller -gall -rall Found GemInstaller config file at: /Users/woolley/tmp/geminstaller.yml GemInstaller is verifying gem installation: stubgem > 0.0.0 'gem list stubgem --remote --details --all --source=http://gems.rubyforge.org --source=http://gems.github.com --source=http://localhost:9909' [RubyGems:stdout] stubgem (1.0.0) Author: Chad Woolley Rubyforge: http://rubyforge.org/projects/st... Homepage: http://geminstaller.rubyforge.org
Stub gem for testing geminstaller Invoking gem install for stubgem, version 1.0.0. 'gem install stubgem --version 1.0.0 --source=http://gems.rubyforge.org --source=http://gems.github.com --source=http://localhost:9909'
-
-
Chad Woolley
- State changed from new to open
Dumb markdown/lighthouse - here is the config again (last try):
defaults: install_options: --source=http://gems.rubyforge.org --source=http://gems.github.com --source=http://localhost:9909 gems: - name: stubgem
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.