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

Prevent the invariant prefix optimization from defying the walk behavior #57

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

arlyon
Copy link
Contributor

@arlyon arlyon commented Jan 28, 2024

Our logic for calculating the anchor can cause globs that have an invariant that cross a symlink to traverse that symlink even if the walk behaviour is set to ignore them. To solve this, we need to check if any of the parent files are symlinks and use the most-recently-found symlink. I left a todo in, because if anchor were to know about the walk behaviour then we could improve performance a little, but I want to leave that decision up to you.

Cheers!

Alex

@arlyon arlyon force-pushed the fix/invariant-prefix-symlink branch from 08fd2c3 to 59b7b0a Compare January 28, 2024 15:33
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.

None yet

1 participant