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

Chruby test suite looks for ruby binary in multiple locations #2932

Merged
merged 1 commit into from
Nov 29, 2024

Conversation

adam12
Copy link
Contributor

@adam12 adam12 commented Nov 28, 2024

Support both /opt/rubies and ~/.rubies for installation paths, checking both the engine-version and version formats.

Part of #2877

@adam12 adam12 requested a review from a team as a code owner November 28, 2024 16:33
Support both `/opt/rubies` and `~/.rubies` for installation paths, checking
both the `engine-version` and `version` formats.

Part of Shopify#2877
@adam12
Copy link
Contributor Author

adam12 commented Nov 28, 2024

I think this could be maybe done more centrally, but it brings my test suite closer to green so perhaps a good middle step?

@vinistock vinistock added the chore Chore task label Nov 29, 2024
Copy link
Member

@vinistock vinistock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is definitely the right change as chruby users might have rubies installed in all of those possible locations.

We will also need to consider how to make this test pass for non chruby users. For example, rbenv users will have their rubies installed under ~/.rbenv/rubies or something like that, so this test still won't pass.

Maybe it can check for all of those possible locations and if none are available, skip?

@vinistock vinistock merged commit bfae37d into Shopify:main Nov 29, 2024
20 of 21 checks passed
@adam12 adam12 deleted the chruby-ruby-path branch November 29, 2024 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Chore task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants