Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All Ruby versions show version x.x.0 in the path instead of actual patch number which makes it seem like the wrong version is being used #857

Open
schneems opened this issue Feb 21, 2019 · 1 comment

Comments

@schneems
Copy link
Contributor

schneems commented Feb 21, 2019

This question likely gets asked at least once a month.

The path that we use for Ruby versions does not include the full version, but instead ends with .0 For example someone using Ruby 2.6.1 might see a path that looks like this:

/app/vendor/bundle/ruby/2.6.0/gems/

Or someone using Ruby 2.4.5 might see a path that looks like this:

/app/vendor/bundle/ruby/2.4.0/gems/

This is totally expected and does not indicate any problems. All versions of Ruby 2.6.x will use a folder name of 2.6.0 etc.

While this is expected behavior from the buildpack, it is frequently confusing to customers. We could reduce support burden and customer surprise by making the path contain the actual teeny/patch version.

@schneems schneems changed the title Put "patch" version in the path All Ruby versions show version x.x.0 in the path instead of actual patch number which makes it seem like the wrong version is being used Mar 4, 2019
@schneems
Copy link
Contributor Author

schneems commented Mar 8, 2019

This version in the path actually comes directly from building a Ruby binary, it's not something that Heroku is specifically doing.

One way to possibly "solve" the issue is to prefix the path with a ruby/x.y.z. The downside is that it makes for somewhat redundant paths with seemingly conflicting information. The upside is that every path would be guaranteed to have at least one copy of the correct exact version being used.

There's also the stability question of how many people (if any) are relying on the exact path being used currently and how would changing it affect apps.

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

No branches or pull requests

1 participant