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

Pass Ruby interpreter path when replacing process by launcher #2979

Conversation

vinistock
Copy link
Member

@vinistock vinistock commented Dec 12, 2024

Motivation

Fixes the error reported in #2936 (comment).

On Windows, it's not possible to invoke exec with an executable script because the OS doesn't understand the shebang line that defines the Ruby interpreter. We need to manually invoke the Ruby interpreter to run the file.

Implementation

Started adding Gem.ruby to invoke the Ruby interpreter directly. This works on Linux and MacOS too.

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@vinistock vinistock added bugfix This PR will fix an existing bug server This pull request should be included in the server gem's release notes labels Dec 12, 2024 — with Graphite App
@vinistock vinistock requested review from andyw8 and st0012 December 12, 2024 19:04
@vinistock vinistock marked this pull request as ready for review December 12, 2024 19:05
@vinistock vinistock requested a review from a team as a code owner December 12, 2024 19:05
@vinistock vinistock enabled auto-merge (squash) December 12, 2024 19:14
@vinistock vinistock merged commit 4a300d1 into main Dec 12, 2024
37 checks passed
@vinistock vinistock deleted the 12-12-pass_ruby_interpreter_path_when_replacing_process_by_launcher branch December 12, 2024 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This PR will fix an existing bug server This pull request should be included in the server gem's release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants