Search code examples
rubyrubygemscontinuous-integrationbundlerbuild-server

Reverse bundle install --without env through bundler


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.


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.