-
Notifications
You must be signed in to change notification settings - Fork 233
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 relative symlinks when using --follow-symlinks #837
Conversation
It seemed that https://ci.swift.org/job/swift-syntax-PR-macOS/4601/console
|
The above error did not occur on macOS Sequoia. So I will prepare macOS Ventura. However, it will take time. |
I have successfully reproduced the issue on macOS 13.6.9 on EC2. When the test failed, the local variable [
"/private/var/folders/5r/59x37fyj13l2hjhq53g287_80000gn/T/TemporaryItems/NSIRD_xctest_Jjw9up/project/real2.swift",
"/private/var/folders/5r/59x37fyj13l2hjhq53g287_80000gn/T/TemporaryItems/NSIRD_xctest_Jjw9up/project/.hidden.swift",
"/var/folders/5r/59x37fyj13l2hjhq53g287_80000gn/T/TemporaryItems/NSIRD_xctest_Jjw9up/project/.hidden.swift",
"/private/var/folders/5r/59x37fyj13l2hjhq53g287_80000gn/T/TemporaryItems/NSIRD_xctest_Jjw9up/project/real1.swift"
] So it seems that this test failure occurs if a relative symbolic link is linked to a file that its path contains symbolic links. |
Fixed: ef73806 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR and tracking down the failure, @kkebo. Looks good to me, just two very minor comments.
fixes #836
Changes:
FileIteratorTests
--follow-symlinks
standardizedFileURL
when comparing them inFileIterator.next()