Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Updating cache ignores --local for built-in gems #3041

Closed
indirect opened this issue May 17, 2014 · 4 comments
Closed

Updating cache ignores --local for built-in gems #3041

indirect opened this issue May 17, 2014 · 4 comments

Comments

@indirect
Copy link
Member

$ bundle install --local
Using json 1.8.1
Using bundler 1.6.2
Updating files in vendor/cache
Fetching gem metadata from https://rubygems.org/........
Fetching additional metadata from https://rubygems.org/..
  * json-1.8.1.gem
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.

fuuuuuuuuuuuuuuuuuuuuuuu

@indirect
Copy link
Member Author

Additionally, it does a many-gem metadata fetch when it only needs the gemspec for the json-1.8.1 gem that it has already resolved successfully.


$ bundle package
Using dotenv 0.10.0
Using multipart-post 1.2.0
Using faraday 0.8.9
Using faraday_middleware 0.9.1
Using http_parser.rb 0.6.0
Using http 0.6.0
Using json 1.8.1
Using mime-types 2.2
Using multi_json 1.10.0
Using oauth 0.4.7
Using rack 1.5.2
Using puma 2.8.2
Using rack-protection 1.5.3
Using simple_oauth 0.2.0
Using tilt 1.4.1
Using sinatra 1.4.5
Using tumblr_client 0.8.2
Using twitter 4.8.1
Using bundler 1.6.2
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
Updating files in vendor/cache
  * dotenv-0.10.0.gem
  * multipart-post-1.2.0.gem
  * faraday-0.8.9.gem
  * faraday_middleware-0.9.1.gem
  * http_parser.rb-0.6.0.gem
  * http-0.6.0.gem
Fetching gem metadata from https://rubygems.org/........
Fetching additional metadata from https://rubygems.org/..
  * json-1.8.1.gem
  * mime-types-2.2.gem
  * multi_json-1.10.0.gem
  * oauth-0.4.7.gem
  * rack-1.5.2.gem
  * puma-2.8.2.gem
  * rack-protection-1.5.3.gem
  * simple_oauth-0.2.0.gem
  * tilt-1.4.1.gem
  * sinatra-1.4.5.gem
  * tumblr_client-0.8.2.gem
  * twitter-4.8.1.gem

@indirect
Copy link
Member Author

And finally, it will do the metadata dance and update the .gem file every single time even though the .gem file is already in vendor/cache.


$ bundle install --local
Using dotenv 0.10.0
Using multipart-post 1.2.0
Using faraday 0.8.9
Using faraday_middleware 0.9.1
Using http_parser.rb 0.6.0
Using http 0.6.0
Using json 1.8.1
Using mime-types 2.2
Using multi_json 1.10.0
Using oauth 0.4.7
Using rack 1.5.2
Using puma 2.8.2
Using rack-protection 1.5.3
Using simple_oauth 0.2.0
Using tilt 1.4.1
Using sinatra 1.4.5
Using tumblr_client 0.8.2
Using twitter 4.8.1
Using bundler 1.6.2
Updating files in vendor/cache
Fetching gem metadata from https://rubygems.org/........
Fetching additional metadata from https://rubygems.org/..
  * json-1.8.1.gem
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.

@Who828
Copy link
Contributor

Who828 commented May 26, 2014

Umm isn't this fixed in #2998?

@indirect
Copy link
Member Author

ohhhhhh. that PR didn't mention that it fixed this issue, so I got confused. You're way ahead of me. :)

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

No branches or pull requests

2 participants