Skip to content

Conversation

@ari-wg-gitbot
Copy link
Contributor

This is default description of the PR

ari-wg-gitbot and others added 3 commits January 28, 2026 13:56
for stack(s) cflinuxfs4
Regenerated Gemfile.lock files with bundler 2.7.2 to fix compatibility issues.
Updated fixtures:
- specified_ruby_version: 2.4.1 -> 2.7.2
- relative_gemspec_path: 2.4.1 -> 2.7.2
- rails7: 2.4.19 -> 2.7.2
- ruby_calls_go: 2.6.2 -> 2.7.2
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.
@ramonskie ramonskie force-pushed the pr-by-releng-bot-1769608601 branch from a0edaaa to ebc60e8 Compare January 29, 2026 20:44
Copy link
Contributor

@ivanovac ivanovac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Contributor

@ivanovac ivanovac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@ramonskie ramonskie merged commit 16fc596 into master Jan 30, 2026
7 checks passed
@ramonskie ramonskie deleted the pr-by-releng-bot-1769608601 branch January 30, 2026 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants