Coder Social home page Coder Social logo

Comments (2)

nicholasmott avatar nicholasmott commented on June 10, 2024

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.

schneems avatar schneems commented on June 10, 2024

Is this still an issue?

from heroku-buildpack-ruby.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.