You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PackageDescription.Target.Dependency type have been changed to conform to Sendable (#8143)
PackageDescription.Target.Dependency type have been changed to conform
to Sendable.
### Motivation:
Since PackageDescription.Target.Dependency type does not conform to
Sendable, we need to add `@preconcurrency` to ignore the warning from
the dependency.
The following is an example where `@preconcurrency` is required.
```swift
// swift-tools-version: 6.0
@preconcurrency import PackageDescription
// ...
private extension PackageDescription.Target.Dependency {
static let collections: Self = .product(name: "Collections", package: "swift-collections")
static let asyncAlgorithms: Self = .product(name: "AsyncAlgorithms", package: "swift-async-algorithms")
}
```
### Modifications:
PackageDescription.Target.Dependency type and TargetDependencyCondition
type have been changed to conform to Sendable.
### Result:
In the example above, `@preconcurrency` is not required.
0 commit comments