Skip to content

Mark Bundle as Sendable #4963

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

Merged
merged 1 commit into from
May 24, 2024
Merged

Conversation

parkera
Copy link
Contributor

@parkera parkera commented May 23, 2024

CFBundle, which this is a wrapper for, is thread safe, and NSBundle is marked as Sendable on Darwin. Since swift package manager inserts references to Bundle when using resources, it is important to make sure this type doesn't produce any warnings in Swift 6 mode.

@parkera parkera requested a review from jmschonfeld May 23, 2024 21:34
@parkera
Copy link
Contributor Author

parkera commented May 23, 2024

@swift-ci test

@parkera parkera merged commit bc59b7c into swiftlang:main May 24, 2024
2 of 3 checks passed
@parkera parkera deleted the parkera/bundle_sendable branch May 24, 2024 17:25
kkebo added a commit to kkebo/zyphy that referenced this pull request May 25, 2024
`Bundle` has been `Sendable` since swiftlang/swift-corelibs-foundation#4963, so we no longer need workarounds.
kkebo added a commit to kkebo/zyphy that referenced this pull request May 30, 2024
`Bundle` has been `Sendable` since swiftlang/swift-corelibs-foundation#4963, so we no longer need workarounds.
MaxDesiatov added a commit to swiftlang/swift-package-manager that referenced this pull request Jun 11, 2024
Foundation added this conformance on their side in `main` (swiftlang/swift-corelibs-foundation#4963) and `release/6.0` (swiftlang/swift-corelibs-foundation#4978).

rdar://129599679
MaxDesiatov added a commit to swiftlang/swift-package-manager that referenced this pull request Jun 11, 2024
Foundation added this conformance on their side in `main` (swiftlang/swift-corelibs-foundation#4963) and `release/6.0` (swiftlang/swift-corelibs-foundation#4978).

rdar://129599679
MaxDesiatov added a commit to swiftlang/swift-package-manager that referenced this pull request Jun 12, 2024
Foundation added this conformance on their side in `main` (swiftlang/swift-corelibs-foundation#4963) and `release/6.0` (swiftlang/swift-corelibs-foundation#4978).

rdar://129599679
MaxDesiatov added a commit to swiftlang/swift-package-manager that referenced this pull request Jun 13, 2024
Cherry-pick of #7652.

**Explanation**: We shouldn't have two `Sendable` conformances on `Bundle` at the same time, and Foundation added this on their side in `main` (swiftlang/swift-corelibs-foundation#4963)
and `release/6.0` (swiftlang/swift-corelibs-foundation#4978).
**Scope**: isolated to bundle resources.
**Risk**: low, the corresponding change on `main` branch of
`swift-corelibs-foundation` was there for 3 weeks.
**Testing**: covered by existing tests and the compat suite.
**Issue**: rdar://129599679
**Reviewer**: @parkera, @bnbarham
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