Skip to content

[6.0][IncludeTreeFileSystem] Make dir_begin() work as expected in OverlayFileSystem #8688

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

Conversation

cachemeifyoucan
Copy link

Explanation: Allow directory iteration with an overlay file system that has clang include tree file system as one of its layer. This is needed for swift caching support when swift compilation looks for swift cross import overlay in a CAS file system.
Scope: Needed for swift caching support with cross module import
Issue: rdar://127370903
Original PR: #8675
Risk: Low. Affect swift caching only.
Testing: Unit tests.
Reviewer: @benlangmuir

…ileSystem

Make `dir_begin()` in IncludeTreeFileSystem to return
no_such_file_or_directory instead of operation_not_permitted. This
allows OverlayFileSystem to correctly ignore IncludeTreeFileSystem layer
and continue to search the layer below.

rdar://127370903
(cherry picked from commit 43f4996)
@cachemeifyoucan cachemeifyoucan requested a review from a team May 3, 2024 04:03
@cachemeifyoucan
Copy link
Author

@swift-ci please test

@cachemeifyoucan
Copy link
Author

@nkcsgexi @fredriss Can I get an approval + merge for swift 6?

@fredriss fredriss merged commit a43ac0e into swiftlang:swift/release/6.0 May 7, 2024
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