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

fix: correctly find runfiles root for symlinks #2665

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

lpulley
Copy link
Contributor

@lpulley lpulley commented Mar 14, 2025

$maybe_runfiles_root doesn't seem to be a real variable. Based on the presence of the while loop, it seems that this code wants to try resolving the symlink one level at a time (readlink, not realpath) until it can find runfiles?

@aignas
Copy link
Collaborator

aignas commented Mar 14, 2025

Thanks for the contribution. Would it be possible to add a test of some sort to check for regressions in the future? If there is no good place, feel free to create //tests/runfiles package and put it there.

@lpulley
Copy link
Contributor Author

lpulley commented Mar 18, 2025

Let me know what you think of 2e03584!

Copy link
Collaborator

@aignas aignas left a comment

Choose a reason for hiding this comment

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

In general this LGTM, let me re-kick the CI.

@lpulley lpulley requested a review from aignas March 22, 2025 02:48
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