Comments (2)
After running through the build pack I found the following quite confusing relating to binstubs. It may just be my lack of experience but it seemed the buildpack was doing the following.
- Installing Ruby into ../vendor/ruby-x.x.x
- Symlinking from ../vendor/ruby-x.x.x/bin to ../bin
- Bundled binstubs to ../vendor/bundle/bin
- Symlinking from ../vendor/bundle/ruby/x.x.x/bin to ../bin without overwriting anything already there
- Doesn't actually appear to symlink vendor/bundle/bin anywhere although the actual list of binstubs in ../vendor/bundle/ruby/x.x.x/bin seems to be the same as you would expect from your
gemfile
I couldn't work out how gem binstubs were actually added to ../vendor/bundle/ruby/x.x.x/bin although the binstubs here are generated by rubygems
so I may be missing a gem install
somewhere.
The binstubs themselves in ../vendor/bundle/ruby/x.x.x/bin are different than those in vendor/bundle/bin, they are generated by rubygems
rather than bundler
.
An example impact of this sequence of events is rake
. By symlinking from the ruby install you get rake 0.9.2.2
regardless of what version of rake
you may have in your gemfile. If other gems rely on a later version of rake
you may get hard to track down errors and failures.
The larger issue, of course, is that binstubs are not actually run in the context of the gemfile and bundler seems to be cut out of the process altogether.
from heroku-buildpack-ruby.
Is this still an issue?
from heroku-buildpack-ruby.
Related Issues (20)
- RuntimeError: failed to get urandom HOT 1
- Heroku doesn't support differentiated Gemfiles HOT 4
- Missing tag for v250 HOT 1
- ruby: integer overflow: 3689348814741910509 * 8 > 18446744073709551615 (RuntimeError) HOT 3
- Only add default web dyno if `config.ru` exists HOT 1
- Having `rack` gem is not a guarantee for having `rackup` executable (since Rack 3) HOT 2
- Heroku-22 fails installing gems HOT 3
- running ruby 3.2 with yjit HOT 1
- JRuby warns to use a more recent version, but it's blank
- Difficulties getting `rake assets:precompile` to work HOT 1
- JRuby 9.4.2.0 support? HOT 4
- Upgrade to Node 18 LTS HOT 1
- Using ruby 3.3.0 for preview release (as suggested in the notes) raises error with bundler HOT 2
- JRuby 9.4.4.0 support? HOT 1
- Support Bundler 2.4.20+ to enable `ruby file: '.ruby-version'` in Gemfile HOT 9
- Support Ruby 3.2.3 HOT 1
- Bundler 2.5.6 Causes Builds to Fail HOT 10
- Possible Bundler 2.5.6 Issues HOT 5
- ruby required for compiling webpack assets in rails build, missing from nodejs buildpack and stack 22 HOT 1
- Failed to install gems via Bundler (2.5.6) on Ruby 2.7.8 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from heroku-buildpack-ruby.