Skip to content

Mark a few PackageCollectionModel types as Sendable #8635

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

finestructure
Copy link
Contributor

Motivation:

We are using SwiftPM as a dependency to vend signed package collections on the Swift Package Index website.

(There are some more details around why we do this and don't think we have an alternative laid out in this issue.)

After updating to Swift 6, we've had to introduce a @retroactive @unchecked Sendable on SignedCollection in order to conform it to Vapor.Content and send it in web responses.

Modifications:

This change marks the related types as Sendable.

Result:

With this change, we can drop the retroactive unchecked conformance. We've tested this with our project on a fork here:

https://github.com/SwiftPackageIndex/SwiftPackageIndex-Server/actions/runs/14808870777

@MaxDesiatov
Copy link
Contributor

@swift-ci test

@MaxDesiatov MaxDesiatov changed the title Make PackageCollectionModel.V1.Collection and PackageCollectionModel.V1.SignedCollection Sendable Mark a few PackageCollectionModel types as Sendable May 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants