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

[5.9] Add hasAttribute to FileSystem #412

Merged
merged 7 commits into from
May 16, 2023
Merged

Conversation

MaxDesiatov
Copy link
Contributor

@MaxDesiatov MaxDesiatov commented Apr 21, 2023

Cherry-pick of #414.

Motivation

Detecting whether a given absolute path is quarantined is required for giving an actionable error message to SwiftPM users in case a Swift SDK bundle is quarantined.

Modifications

This new function returns true if a given path has an attribute applied when the file system supports this attribute, and returns false if such attribute is not applied or it isn't supported.

Risk

For TSC itself it's an additive change with low to no risk, as updated protocol requirement has a default implementation. This new requirement is also "standalone" as it isn't used in any other TSC function, so it doesn't have any impact on existing code.

rdar://107392863

This new function returns `true` if a given path has a quarantine attribute applied if when file system supports this attribute, and returns `false` if such attribute is not applied or it isn't supported.
@MaxDesiatov MaxDesiatov self-assigned this Apr 21, 2023
@MaxDesiatov MaxDesiatov changed the title Add hasQuarantineAttribute to FileSystem [5.9] Add hasQuarantineAttribute to FileSystem Apr 21, 2023
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test

@MaxDesiatov
Copy link
Contributor Author

@swift-ci test macos

@MaxDesiatov MaxDesiatov changed the title [5.9] Add hasQuarantineAttribute to FileSystem [5.9] Add hasAttribute to FileSystem Apr 21, 2023
@MaxDesiatov MaxDesiatov requested a review from compnerd April 21, 2023 18:22
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test

@MaxDesiatov
Copy link
Contributor Author

@swift-ci test windows

@MaxDesiatov
Copy link
Contributor Author

@swift-ci test

@MaxDesiatov
Copy link
Contributor Author

@swift-ci test windows

@MaxDesiatov
Copy link
Contributor Author

Currently blocked by #419

@tomerd
Copy link
Contributor

tomerd commented May 15, 2023

@swift-ci test

@tomerd tomerd enabled auto-merge (squash) May 15, 2023 22:31
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test linux

@tomerd tomerd merged commit 279be8a into release/5.9 May 16, 2023
@tomerd tomerd deleted the maxd/5.9-has-quarantine branch May 16, 2023 11:41
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.

4 participants