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

Regenerating missing extensions on bundle install #5210

Closed
kirs opened this issue Nov 28, 2016 · 3 comments
Closed

Regenerating missing extensions on bundle install #5210

kirs opened this issue Nov 28, 2016 · 3 comments

Comments

@kirs
Copy link
Contributor

kirs commented Nov 28, 2016

Assuming my bundle path is ./vendor/bundle:

$ bundle config
Settings are listed in order of priority. The top value will be used.
path
Set for the current user (/Users/kir/.bundle/config): "./vendor/bundle"

$ bundle -v
Bundler version 1.13.6
$ ruby -v
ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-darwin16]

Imagine that my vendor/bundle/extensions somehow get corrupted:

$ rm -rf vendor/bundle/extensions

Expected

I expect that bundle install would recover from that state.

Actual

Now to get vendor/bundle/extensions recovered, I have to completely remove vendor/bundle. Only then Bundler will download all the gems from the scratch and rebuild the extensions.

Proposal

We don't have to delete all gems and download them again to just rebuild the extensions.
Should we make bundle install check if extentions need to be built?
I'll be happy to work on that.

@indirect

@segiddins
Copy link
Member

If at all possible, bundler should re-build extensions when needed. In the meantime, bundle install --force should be a workaround to reinstall the extensions

@kirs
Copy link
Contributor Author

kirs commented Nov 28, 2016 via email

@indirect
Copy link
Member

Sooo... bundle install used to always rebuild extensions, and it was a huge problem for a lot of people. Please make sure that you don't accidentally revert the changes that fixed that problem. :) (One of the PRs for that problem is here: #4082)

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

3 participants