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

Resolve ruby file: ".ruby-version" relative to containing Gemfile #7250

Merged
merged 1 commit into from
Dec 12, 2023

Conversation

martinemde
Copy link
Member

What was the end-user or developer problem that led to this PR?

As pointed out in #7219 When Bundler.root is not the same as the Gemfile's dirname, the ruby-version file path is evaluated incorrectly.

Fixes #7219
Also will help Shopify/ruby-lsp#1698 since that's where the bug originally arose.

What is your fix for the problem, implemented in this PR?

Resolves path in ruby file: "path" relative to the Gemfile that is being evaluated.

Make sure the following tasks are checked

@deivid-rodriguez deivid-rodriguez merged commit 7048172 into master Dec 12, 2023
80 checks passed
@deivid-rodriguez deivid-rodriguez deleted the ruby-version-file-relative-to-gemfile branch December 12, 2023 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

file option in Gemfile needs to be resolved relative to Gemfile's location
2 participants