Shopify / bootboot

Dualboot your Ruby app made easy
MIT License
416 stars 35 forks source link

Only Gemfile_next.lock Is Getting Updated After Installing BootBoot #63

Open gregfletch opened 1 year ago

gregfletch commented 1 year ago

After installing BootBoot, when I run bundle update (regardless of whether or not I have DEPENDENCIES_NEXT environment variable set), only the Gemfile_next.lock is being updated, Gemfile.lock is unchanged. This is causing issues on CI when running the current version as it is pulling the older version(s) of gems from the Gemfile.lock. I've noticed that running Bundler.default_lockfile always returns Gemfile_next.lock regardless of whether the DEPENDENCIES_NEXT environment variable is set.

Just wondering what the expected behaviour is - like from the docs, it sounds like bundle update should be updating both lock files. Is there something I'm missing in order to get BootBoot to update both lock files?

deivid-rodriguez commented 8 months ago

Can you try again using Bundler 2.4.22?

gregfletch commented 8 months ago

With Bundler 2.4.22, if I update a specific gem (i.e. bundle update rails) that seems to work as expected and updates both lock files. However, if I attempt to update all outdated gems (i.e. bundle update), it seems to still only update the Gemfile_next.lock file.