Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix system Ruby symlink to only include Ruby binary
Related to #125 Updates the method for determining the system Ruby path in `ruby/private/download.bzl`. - Replaces the use of `repository_ctx.which("ruby")` with `repository_ctx.execute(["ruby", "-e", "puts RbConfig.ruby"])` to accurately determine the Ruby binary path when using the system Ruby. - Implements error handling for the command execution, failing the build with a clear message if the system Ruby path cannot be determined. - Maintains the symlink creation logic to link the determined Ruby directory to `dist/bin`, ensuring compatibility with existing setups. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/bazel-contrib/rules_ruby/issues/125?shareId=82c03088-9c65-4564-af8b-4c7aec83de72).
- Loading branch information