Change rubygems gemspec cache directory (~/.gem/specs) #430

Closed
dmmalam opened this Issue Jan 20, 2013 · 2 comments

Comments

Projects
None yet
4 participants

dmmalam commented Jan 20, 2013

Is it possible to configure where rubygems stores the gemspec cache (ie ~/.gem/specs/rubygems.org%80/latest_specs.4.8).

I have ruby installed via rbenv, and gems all live under ~/.rbenv, except the gemspec cache which pops up under .gem/specs whenever I do a gem update.

Is this a case of a hardcoded directory, as gem env correctly list the gem path as under ~/.rbenv.

Contributor

mpapis commented Mar 6, 2013

this also just happened in RVM with rubygems 2.0.0 and 1.8.25, there is no mention about ~/.gem in gem env, looks like the path is hardcoded https://github.com/rubygems/rubygems/blob/master/lib/rubygems/spec_fetcher.rb#L41 - any chance on getting it configurable? or specifying new root for rubygems operations?

Owner

drbrain commented Mar 6, 2013

Since this is in the Future milestone, I plan to implement it at some point in the future.

If there were a pull request it I could add the feature much quicker.

mpapis added a commit to mpapis/rubygems that referenced this issue Mar 6, 2013

mpapis added a commit to mpapis/rubygems that referenced this issue Mar 6, 2013

@drbrain drbrain closed this in e3da748 Apr 4, 2013

drbrain added a commit that referenced this issue Apr 4, 2013

drbrain added a commit that referenced this issue Apr 4, 2013

Merge branch 'pietro-key_passphrase'
* pietro-key_passphrase: (154 commits)
  Update missed tests for rebase of #447
  Fixed pull request number type for #461
  Improve documentation of DependencyInstaller
  Alphabetize Gem::DependencyInstaller
  Removed commented out DependencyInstaller code
  Alter #489 to use GEM_SPEC_CACHE
  fix tests when GEM_SPEC is set in environment
  add support for ENV GEM_SPEC, fix #430
  Updated history for #443
  Don't alter Gem::Specification.dirs during install
  Default to Gem.dir as late as possible.
  Updated history for #455
  Update history for #456
  Update history for #462
  Add tests and alter output of #514
  add PATH to gem env
  Update History for #514
  Restore backwards-compatibility for #517
  Alphabetize RequestSet
  Undent RequestSet
  ...

Conflicts:
	test/rubygems/test_gem_commands_cert_command.rb
	test/rubygems/test_gem_package.rb

@bughit bughit referenced this issue in rbenv/rbenv Dec 26, 2013

Open

Keep gem spec cache under RBENV_ROOT #516

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