thoughtbot / appraisal

A Ruby library for testing your library against different versions of dependencies.
https://thoughtbot.com
MIT License
1.25k stars 107 forks source link

.bundle subdir? #157

Open jrochkind opened 4 years ago

jrochkind commented 4 years ago

Using bundler 1.17.3 and Rails 6 (not sure which if either are relevant), after running bundle exec appraisal install, I have a directory at ./gemfiles/.bundle.

It has one file in it, config, containing only BUNDLE_RETRY: "1".

I guess current bundler somehow puts this there to store config... just for those gemfiles? Or something?

Do you think this should be checked into source control, or .gitignored? I'm not really sure. I'm not sure why I don't end up with a .bundle dir at the root of my project, when using bundler ordinarily, or why it shows up here.

Can the README offer advice?

nickcharlton commented 4 years ago

Taking a look upstream to bundler itself, it seems like this is a network retry note to bundler itself:

retry (BUNDLE_RETRY): The number of times to retry failed network requests. Defaults to 3.

See here, hidden away in the config docs.

If you were to delete the .bundle directory for each, do you see this behaviour again? It sounds like what I'd expect to happen with Appraisal and so a good outcome here might be to document the potential presence of ./gemfiles/.bundle as a possible directory.