Skip to content

Remove bin/bundle binstub - #440

Open
cycomachead wants to merge 1 commit into
mainfrom
remove-bin-bundle
Open

cycomachead wants to merge 1 commit into
mainfrom
remove-bin-bundle

Conversation

@cycomachead

@cycomachead cycomachead commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Summary

Removes the bin/bundle binstub, as the Heroku Ruby buildpack recommends on every deploy:

Your app has a bin/bundle binstub that may cause bundler to malfunction. […] When bin/bundle is present, bundle clean may remove the installed version of bundler and then your app falls back to the default bundler version that ships with Ruby.

See heroku/heroku-buildpack-ruby#1690.

The other Bundler-generated binstubs (bin/rspec, bin/next, etc.) only load bin/bundle when the file exists, so they keep working.

Testing

With bin/bundle removed, locally: bin/rails -v, bin/rake -V and BUNDLE_GEMFILE=Gemfile bin/rspec --version all run.

🤖 Generated with Claude Code

The Heroku Ruby buildpack warns that with bin/bundle present,
`bundle clean` can remove the installed Bundler and leave the app on
Ruby's default version. The other binstubs only load it when it exists.

Co-Authored-By: Claude <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

1 participant