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(fslib): handle symlinks to zip files #6603

Merged
merged 4 commits into from
Nov 18, 2024

Conversation

thatsmydoing
Copy link
Contributor

@thatsmydoing thatsmydoing commented Nov 18, 2024

This is the same as #5474 but allows edits by maintainer

What's the problem this PR addresses?

Yarn shouldn't care if zips in the cache are symlinks or not. The only reason it doesn't work is that finding the mount point skips zips if they're not regular files. This used to be supported until it was removed for "performance" reasons in #1474. The bulk of the logic in the linked PR involves resolving the real path of the symlink but I don't think that's needed for this?

Resolves #3514
Closes #5474 (supersedes it)

How did you fix it?
I switched the check to use stat from lstat.

Checklist

  • I have set the packages that need to be released for my changes to be effective.
  • I will check that all automated PR checks pass before the PR gets reviewed.

@merceyz merceyz changed the title Allow symlink zip fix(fslib): handle symlinks to zip files Nov 18, 2024
@larixer larixer added this pull request to the merge queue Nov 18, 2024
Merged via the queue into yarnpkg:master with commit fe7c10a Nov 18, 2024
24 of 26 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.

[Bug?]: Yarn fails to handle when cacheFolder is a symlink farm
3 participants