Question

I've inherited a project that used to have a build script that bundle installed with the --without env flag. Now I need that env.

I removed the --without flag from the build script, but those preferences are cached by bundler in .bundle/config. The build server has some confusing auto-caching of dependencies itself, and I have no idea where the .bundle/config is located.

Is there an bundler invocation capable of unsetting these --without preferences? A --with would be nice.

Was it helpful?

Solution

While undocumented in the bundle install help, bundle config notes you can reset or unset the without flag via bundle config without newenv and bundle config --delete without respectively.

OTHER TIPS

You could always remove the .bundle directory and reinstall. The only reason I'd hesitate to do this is if you have versions of gems that are no longer available. You could always move it first to test:

mv .bundle _bundle
bundle install

If that works, you can remove the temporary _bundle directory, or whatever you've called it.

If it screws up, you can always restore it:

rm -rf .bundle
mv _bundle .bundle
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top