Skip to content

Resolve <binary>.runfiles_manifest from argv[0] in Runfiles::create()#4086

Merged
UebelAndre merged 2 commits into
bazelbuild:mainfrom
UebelAndre:runfiles
Jun 17, 2026
Merged

Resolve <binary>.runfiles_manifest from argv[0] in Runfiles::create()#4086
UebelAndre merged 2 commits into
bazelbuild:mainfrom
UebelAndre:runfiles

Conversation

@UebelAndre

Copy link
Copy Markdown
Collaborator

I have reviewed the runfiles implementation for rules_cc, rules_shell, rules_go, and rules_python to figure out the behavior of runfiles relative to the current binary. Unfortunately current_exe canonicalizes the path on some platforms so we need to instead focus on argv[0] as a more reliable path.

@UebelAndre UebelAndre marked this pull request as ready for review June 15, 2026 22:42
@UebelAndre UebelAndre requested a review from illicitonion June 15, 2026 22:42
@UebelAndre UebelAndre enabled auto-merge June 15, 2026 23:00

@slackito slackito left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

These are some top-tier code comments, thanks!

@UebelAndre UebelAndre added this pull request to the merge queue Jun 17, 2026
Merged via the queue into bazelbuild:main with commit dad9720 Jun 17, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants