summaryrefslogtreecommitdiff
path: root/lib/bundler/self_manager.rb
AgeCommit message (Collapse)Author
2025-11-19[ruby/rubygems] Handle BUNDLER_VERSION being set to an empty stringCody Cutrer
This is useful, in case you're using Docker, and an upstream Dockerfile sets BUNDLER_VERSION to something you don't want. It's impossible to unset it... only override to be the empty string. https://github.com/ruby/rubygems/commit/ffa3eb9ac6
2025-06-26[rubygems/rubygems] Simulate Bundler 4 in a better wayDavid Rodríguez
Overriding the version constant feels too magic and creates a set of problems. For example, Bundler will lock the simulated version, and that can cause issues when the lockfile is used under an environment not simulating Bundler 4 (it will try to auto-install and auto-switch to a version that does not exist). On top of that, it can only be configured with an ENV variable which is not too flexible. This commit takes a different approach of using a setting, which is configurable through ENV or `bundle config`, and pass the simulated version to `Bundler::FeatureFlag`. The real version is still the one set by `VERSION`, but anything that `Bundler::FeatureFlag` controls will use the logic of the "simulated version". In particular, all feature flags and deprecation messages will respect the simulated version, and this is exactly the set of functionality that we want users to be able to easily try before releasing it. https://github.com/rubygems/rubygems/commit/8129402193
2025-06-24[rubygems/rubygems] Fix `Bundler.original_env['GEM_HOME']` when Bundler is ↵David Rodríguez
trampolined https://github.com/rubygems/rubygems/commit/4c450eb05e
2025-06-24[rubygems/rubygems] Remove no longer necessary workarounds for restartsDavid Rodríguez
Since we no longer pass ruby CLI flags in our spec commands, we no longer need the previous workaround and can get the realworld code tested. https://github.com/rubygems/rubygems/commit/fd92c855fb
2025-06-19Skip to Bundler 4 directlyDavid Rodríguez
2025-06-19[rubygems/rubygems] Allow enabling "Bundler 3 mode" more easilyDavid Rodríguez
Currently to test Bundler 3 mode we have to actually edit the version file to simulate we're running a future version. This is inconvenient. Instead, allow passing an environment variable, `BUNDLER_3_MODE`, to set the "working mode" Bundler should use. This can now be set easily by end users to enable them to try out the changes in the future version and give us feedback. It's unclear how version auto-switching should work when this environment variable is set, so the auto-switching feature will be disabled in that case. https://github.com/rubygems/rubygems/commit/4e92e9b209
2025-06-05[rubygems/rubygems] Fix `bundle update --bundler` when restarts disabledDavid Rodríguez
There's no reason why we should not update bundler as requested, even if restarts are disabled. https://github.com/rubygems/rubygems/commit/e59acd2a0d
2025-06-05[rubygems/rubygems] Look in configured path when checking if self-update ↵David Rodríguez
version is installed https://github.com/rubygems/rubygems/commit/1ce0882e6f
2025-06-05[rubygems/rubygems] Refactor restarts to not need memoizing the restart versionDavid Rodríguez
https://github.com/rubygems/rubygems/commit/a9d80a7dcb
2025-06-05[rubygems/rubygems] Reduce duplication a bitDavid Rodríguez
https://github.com/rubygems/rubygems/commit/0574c62fc0
2024-12-24Merge RubyGems-3.6.2 and Bundler-2.6.2David Rodríguez
Notes: Merged: https://github.com/ruby/ruby/pull/12444
2024-12-13[rubygems/rubygems] Fix restarting with locked version when $PROGRAM_NAME ↵Camden Narzt
has been changed Use Process.argv0 instead of $PROGRAM_NAME because $PROGRAM_NAME is liable to be changed but Process.argv0 is not. https://github.com/rubygems/rubygems/commit/43b747dc9e
2024-10-10[rubygems/rubygems] Revert "Fix `bundle.bat` re-execution"David Rodríguez
This reverts commit https://github.com/rubygems/rubygems/commit/e04e00f7bb5b. https://github.com/rubygems/rubygems/commit/554ece1587
2024-10-07[rubygems/rubygems] Fix `bundle.bat` re-executionDavid Rodríguez
It does not have ruby code, so we should not prepend `ruby` to the command the re-execute it. https://github.com/rubygems/rubygems/commit/e04e00f7bb
2024-10-04[rubygems/rubygems] More rubygems 3.2.x removalsSamuel Giddins
Signed-off-by: Samuel Giddins <segiddins@segiddins.me> https://github.com/rubygems/rubygems/commit/272f3464a3
2024-09-23[rubygems/rubygems] Don't try to auto-install dev versions of Bundler not ↵David Rodríguez
available remotely https://github.com/rubygems/rubygems/commit/1a7a3fdeb9
2024-06-28Synchronize Bundler & RubyGems (#11071)David Rodríguez
2024-06-11[rubygems/rubygems] Auto switch to locked bundler version even when using ↵David Rodríguez
binstubs https://github.com/rubygems/rubygems/commit/076aba8b1c
2024-05-24[rubygems/rubygems] Fix performance regression on applications with a local ↵David Rodríguez
cache Even if all gems are properly installed and no resolve is needed, we recently started always reading all packages in `vendor/cache` and extracting specifications from them. This commit fixes the problem by longer making considering cached specs the default and only enable them when a resolve is actually needed. https://github.com/rubygems/rubygems/commit/edeb2c42bf
2024-03-22[rubygems/rubygems] Fix incorrect `bundle update --bundler` messageDavid Rodriguez
https://github.com/rubygems/rubygems/commit/146de56353
2023-12-22Merge RubyGems-3.5.2 and Bundler-2.5.2Hiroshi SHIBATA
2023-08-28[rubygems/rubygems] Fixed malformed lockfile version on installingImir Kiyamov
https://github.com/rubygems/rubygems/commit/c969a192bf
2023-07-24[rubygems/rubygems] Rename local to lockfile and global to systemHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/456fd05d3a
2023-07-13[rubygems/rubygems] restart with BUNDLE_VERSION if it's specifiedHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/57cfe7cf8d
2023-07-13[rubygems/rubygems] Introduce bundle config set version featureHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/c431a1df52
2022-01-19Merge rubygems/rubygems HEAD.Hiroshi SHIBATA
Picked at 12aeef6ba9a3be0022be9934c1a3e4c46a03ed3a Notes: Merged: https://github.com/ruby/ruby/pull/5462
2021-12-28[rubygems/rubygems] Fix `bundle update --bundler` no longer updating lockfileDavid Rodríguez
https://github.com/rubygems/rubygems/commit/a053b7e4d4
2021-12-27Track RubyGems 3.4.0dev and Bundler 2.4.0devHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/5350
2021-12-23Merge RubyGems-3.3.1 and Bundler-2.3.1Hiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/5325
2021-12-21Merge RubyGems-3.3.0 and Bundler-2.3.0Hiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/5317