[openstreetmap/openstreetmap-website] Prefer binstubs over `bundle exec` (PR #6874)

Pablo Brasero notifications at github.com
Thu Mar 12 13:43:53 UTC 2026


pablobm left a comment (openstreetmap/openstreetmap-website#6874)

Re: autocomplete, yes, I'm referring to `bin/anno<tab>`.

Re: layers of indirection, my impression is that it's lower with binstubs. For example, looking at `bin/rails`, it goes straight into `config/application`, while the `bundle exec` version goes into Bundler, which then loads `$RUBY_INSTALL/ruby/4.0.1/bin/rails`, which goes into more confusion. Supporting this I see reports that binstubs are slightly faster (although speed is not an argument I want to particularly rely on).

I used to be a `bundle exec` person, but I changed a couple of years ago (I can't remember why). Now my muscle memory is the opposite, but you are right that I still use it for a non-Rails project I have elsewhere.

I must admit that this PR started in my head a bit as a pet peeve, but when I saw what was on the guides, I decided to put it in practice. I do understand the frictions at hand, so no worries if you are not convinced.

The one thing that I think we should change definitely at the very least is `bundle exec bin/yarn`, which should be just `bin/yarn`. There's no Bundler involved there!

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6874#issuecomment-4046882801
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/6874/c4046882801 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260312/077e1fd4/attachment-0001.htm>


More information about the rails-dev mailing list