Skip to content

Fix Bazel cargo_bin runfiles paths#19468

Merged
fjord-oai merged 1 commit intomainfrom
fjord/path_fix
Apr 25, 2026
Merged

Fix Bazel cargo_bin runfiles paths#19468
fjord-oai merged 1 commit intomainfrom
fjord/path_fix

Conversation

@fjord-oai
Copy link
Copy Markdown
Contributor

Summary

Fix a Bazel-only path resolution bug in codex_utils_cargo_bin::cargo_bin.

Under Bazel runfiles, rlocation can return a relative bazel-out/... path even though cargo_bin() documents that it returns an absolute path. That can break callers that store the returned binary path and later spawn it after changing cwd, because the relative path is resolved from the wrong directory.

This patch absolutizes the runfiles-resolved path before returning it.

@bolinfest bolinfest self-requested a review April 25, 2026 00:14
Copy link
Copy Markdown
Collaborator

@bolinfest bolinfest left a comment

Choose a reason for hiding this comment

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

Seems reasonable since CI looks green?

@fjord-oai fjord-oai merged commit cf02e9c into main Apr 25, 2026
25 checks passed
@fjord-oai fjord-oai deleted the fjord/path_fix branch April 25, 2026 00:47
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 25, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants