You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove regenerateBundlerBinStub workaround for bundler 2.7+
Bundler 2.7+ philosophy: 'Bundler itself does not use binstubs because
its version is selected by RubyGems'
The regenerateBundlerBinStub() function was added in 2017 (commit fe6e899)
to work around bundler 1.16.0 incompatibility with Rails-generated binstubs.
This workaround is no longer necessary because:
1. The original Rails binstub bug was fixed years ago
2. Bundler 2.7+ explicitly refuses to create its own binstub by design
3. The buildpack doesn't use deps/0/bin/bundle anyway - it uses the system
bundle command from deps/0/bundler (configured via GEM_PATH)
4. Modern bundler philosophy is to use the system bundle, not a binstub
Changes:
- Removed regenerateBundlerBinStub() function
- Removed call to regenerateBundlerBinStub() from InstallGems()
- Removed related unit tests (setupBundlerBin, itRegeneratesBundleBinstub)
- All 76 unit tests pass
This aligns the buildpack with bundler 2.7+ architectural decisions.
0 commit comments