Build Information
Failed to build SwiftPM, reference 0.50800.0 (558eda
), with Swift 6.0 for Linux on 4 Nov 2024 01:49:41 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Build Log
53 | do {
54 | try self.withLock {
/host/spi-builder-workspace/Sources/Basics/ConcurrencyHelpers.swift:280:16: note: class property declared here
278 | public extension DispatchQueue {
279 | // a shared concurrent queue for running concurrent asynchronous operations
280 | static var sharedConcurrent = DispatchQueue(label: "swift.org.swiftpm.shared.concurrent", attributes: .concurrent)
| `- note: class property declared here
281 | }
282 |
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:54:21: warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | import TSCBasic
20 |
21 | struct FilePackageCollectionsSourcesStorage: PackageCollectionsSourcesStorage {
| `- note: consider making struct 'FilePackageCollectionsSourcesStorage' conform to the 'Sendable' protocol
22 | let fileSystem: FileSystem
23 | let path: AbsolutePath
:
52 | DispatchQueue.sharedConcurrent.async {
53 | do {
54 | try self.withLock {
| `- warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 | var sources = try self.loadFromDisk()
56 | sources = sources.filter { $0 != source }
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:56:54: warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in a `@Sendable` closure; this is an error in the Swift 6 language mode
54 | try self.withLock {
55 | var sources = try self.loadFromDisk()
56 | sources = sources.filter { $0 != source }
| `- warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in a `@Sendable` closure; this is an error in the Swift 6 language mode
57 | let order = order.flatMap { $0 >= 0 && $0 < sources.endIndex ? order : sources.endIndex } ?? sources.endIndex
58 | sources.insert(source, at: order)
/host/spi-builder-workspace/Sources/PackageCollections/Model/Collection.swift:94:19: note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
92 | extension PackageCollectionsModel {
93 | /// Represents the source of a `Collection`
94 | public struct CollectionSource: Equatable, Hashable, Codable {
| `- note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
95 | /// Source type
96 | public let type: CollectionSourceType
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:61:17: warning: capture of 'callback' with non-sendable type '(Result<Void, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
59 | try self.saveToDisk(sources)
60 | }
61 | callback(.success(()))
| |- warning: capture of 'callback' with non-sendable type '(Result<Void, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
62 | } catch {
63 | callback(.failure(error))
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:55:39: warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in an isolated closure; this is an error in the Swift 6 language mode
19 | import TSCBasic
20 |
21 | struct FilePackageCollectionsSourcesStorage: PackageCollectionsSourcesStorage {
| `- note: consider making struct 'FilePackageCollectionsSourcesStorage' conform to the 'Sendable' protocol
22 | let fileSystem: FileSystem
23 | let path: AbsolutePath
:
53 | do {
54 | try self.withLock {
55 | var sources = try self.loadFromDisk()
| `- warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in an isolated closure; this is an error in the Swift 6 language mode
56 | sources = sources.filter { $0 != source }
57 | let order = order.flatMap { $0 >= 0 && $0 < sources.endIndex ? order : sources.endIndex } ?? sources.endIndex
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:56:54: warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in an isolated closure; this is an error in the Swift 6 language mode
54 | try self.withLock {
55 | var sources = try self.loadFromDisk()
56 | sources = sources.filter { $0 != source }
| `- warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in an isolated closure; this is an error in the Swift 6 language mode
57 | let order = order.flatMap { $0 >= 0 && $0 < sources.endIndex ? order : sources.endIndex } ?? sources.endIndex
58 | sources.insert(source, at: order)
/host/spi-builder-workspace/Sources/PackageCollections/Model/Collection.swift:94:19: note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
92 | extension PackageCollectionsModel {
93 | /// Represents the source of a `Collection`
94 | public struct CollectionSource: Equatable, Hashable, Codable {
| `- note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
95 | /// Source type
96 | public let type: CollectionSourceType
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:56:54: warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in an isolated closure; this is an error in the Swift 6 language mode
54 | try self.withLock {
55 | var sources = try self.loadFromDisk()
56 | sources = sources.filter { $0 != source }
| `- warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in an isolated closure; this is an error in the Swift 6 language mode
57 | let order = order.flatMap { $0 >= 0 && $0 < sources.endIndex ? order : sources.endIndex } ?? sources.endIndex
58 | sources.insert(source, at: order)
/host/spi-builder-workspace/Sources/PackageCollections/Model/Collection.swift:94:19: note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
92 | extension PackageCollectionsModel {
93 | /// Represents the source of a `Collection`
94 | public struct CollectionSource: Equatable, Hashable, Codable {
| `- note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
95 | /// Source type
96 | public let type: CollectionSourceType
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:70:23: warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
68 | func remove(source: Model.CollectionSource,
69 | callback: @escaping (Result<Void, Error>) -> Void) {
70 | DispatchQueue.sharedConcurrent.async {
| `- warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
71 | do {
72 | try self.withLock {
/host/spi-builder-workspace/Sources/Basics/ConcurrencyHelpers.swift:280:16: note: class property declared here
278 | public extension DispatchQueue {
279 | // a shared concurrent queue for running concurrent asynchronous operations
280 | static var sharedConcurrent = DispatchQueue(label: "swift.org.swiftpm.shared.concurrent", attributes: .concurrent)
| `- note: class property declared here
281 | }
282 |
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:72:21: warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | import TSCBasic
20 |
21 | struct FilePackageCollectionsSourcesStorage: PackageCollectionsSourcesStorage {
| `- note: consider making struct 'FilePackageCollectionsSourcesStorage' conform to the 'Sendable' protocol
22 | let fileSystem: FileSystem
23 | let path: AbsolutePath
:
70 | DispatchQueue.sharedConcurrent.async {
71 | do {
72 | try self.withLock {
| `- warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
73 | var sources = try self.loadFromDisk()
74 | sources = sources.filter { $0 != source }
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:74:54: warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in a `@Sendable` closure; this is an error in the Swift 6 language mode
72 | try self.withLock {
73 | var sources = try self.loadFromDisk()
74 | sources = sources.filter { $0 != source }
| `- warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | try self.saveToDisk(sources)
76 | }
/host/spi-builder-workspace/Sources/PackageCollections/Model/Collection.swift:94:19: note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
92 | extension PackageCollectionsModel {
93 | /// Represents the source of a `Collection`
94 | public struct CollectionSource: Equatable, Hashable, Codable {
| `- note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
95 | /// Source type
96 | public let type: CollectionSourceType
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:77:17: warning: capture of 'callback' with non-sendable type '(Result<Void, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | try self.saveToDisk(sources)
76 | }
77 | callback(.success(()))
| |- warning: capture of 'callback' with non-sendable type '(Result<Void, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
78 | } catch {
79 | callback(.failure(error))
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:73:39: warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in an isolated closure; this is an error in the Swift 6 language mode
19 | import TSCBasic
20 |
21 | struct FilePackageCollectionsSourcesStorage: PackageCollectionsSourcesStorage {
| `- note: consider making struct 'FilePackageCollectionsSourcesStorage' conform to the 'Sendable' protocol
22 | let fileSystem: FileSystem
23 | let path: AbsolutePath
:
71 | do {
72 | try self.withLock {
73 | var sources = try self.loadFromDisk()
| `- warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in an isolated closure; this is an error in the Swift 6 language mode
74 | sources = sources.filter { $0 != source }
75 | try self.saveToDisk(sources)
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:74:54: warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in an isolated closure; this is an error in the Swift 6 language mode
72 | try self.withLock {
73 | var sources = try self.loadFromDisk()
74 | sources = sources.filter { $0 != source }
| `- warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in an isolated closure; this is an error in the Swift 6 language mode
75 | try self.saveToDisk(sources)
76 | }
/host/spi-builder-workspace/Sources/PackageCollections/Model/Collection.swift:94:19: note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
92 | extension PackageCollectionsModel {
93 | /// Represents the source of a `Collection`
94 | public struct CollectionSource: Equatable, Hashable, Codable {
| `- note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
95 | /// Source type
96 | public let type: CollectionSourceType
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:74:54: warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in an isolated closure; this is an error in the Swift 6 language mode
72 | try self.withLock {
73 | var sources = try self.loadFromDisk()
74 | sources = sources.filter { $0 != source }
| `- warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in an isolated closure; this is an error in the Swift 6 language mode
75 | try self.saveToDisk(sources)
76 | }
/host/spi-builder-workspace/Sources/PackageCollections/Model/Collection.swift:94:19: note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
92 | extension PackageCollectionsModel {
93 | /// Represents the source of a `Collection`
94 | public struct CollectionSource: Equatable, Hashable, Codable {
| `- note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
95 | /// Source type
96 | public let type: CollectionSourceType
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:87:23: warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
85 | to order: Int,
86 | callback: @escaping (Result<Void, Error>) -> Void) {
87 | DispatchQueue.sharedConcurrent.async {
| `- warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
88 | do {
89 | try self.withLock {
/host/spi-builder-workspace/Sources/Basics/ConcurrencyHelpers.swift:280:16: note: class property declared here
278 | public extension DispatchQueue {
279 | // a shared concurrent queue for running concurrent asynchronous operations
280 | static var sharedConcurrent = DispatchQueue(label: "swift.org.swiftpm.shared.concurrent", attributes: .concurrent)
| `- note: class property declared here
281 | }
282 |
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:89:21: warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | import TSCBasic
20 |
21 | struct FilePackageCollectionsSourcesStorage: PackageCollectionsSourcesStorage {
| `- note: consider making struct 'FilePackageCollectionsSourcesStorage' conform to the 'Sendable' protocol
22 | let fileSystem: FileSystem
23 | let path: AbsolutePath
:
87 | DispatchQueue.sharedConcurrent.async {
88 | do {
89 | try self.withLock {
| `- warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
90 | var sources = try self.loadFromDisk()
91 | sources = sources.filter { $0 != source }
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:91:54: warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in a `@Sendable` closure; this is an error in the Swift 6 language mode
89 | try self.withLock {
90 | var sources = try self.loadFromDisk()
91 | sources = sources.filter { $0 != source }
| `- warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in a `@Sendable` closure; this is an error in the Swift 6 language mode
92 | let order = order >= 0 && order < sources.endIndex ? order : sources.endIndex
93 | sources.insert(source, at: order)
/host/spi-builder-workspace/Sources/PackageCollections/Model/Collection.swift:94:19: note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
92 | extension PackageCollectionsModel {
93 | /// Represents the source of a `Collection`
94 | public struct CollectionSource: Equatable, Hashable, Codable {
| `- note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
95 | /// Source type
96 | public let type: CollectionSourceType
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:96:17: warning: capture of 'callback' with non-sendable type '(Result<Void, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 | try self.saveToDisk(sources)
95 | }
96 | callback(.success(()))
| |- warning: capture of 'callback' with non-sendable type '(Result<Void, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
97 | } catch {
98 | callback(.failure(error))
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:90:39: warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in an isolated closure; this is an error in the Swift 6 language mode
19 | import TSCBasic
20 |
21 | struct FilePackageCollectionsSourcesStorage: PackageCollectionsSourcesStorage {
| `- note: consider making struct 'FilePackageCollectionsSourcesStorage' conform to the 'Sendable' protocol
22 | let fileSystem: FileSystem
23 | let path: AbsolutePath
:
88 | do {
89 | try self.withLock {
90 | var sources = try self.loadFromDisk()
| `- warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in an isolated closure; this is an error in the Swift 6 language mode
91 | sources = sources.filter { $0 != source }
92 | let order = order >= 0 && order < sources.endIndex ? order : sources.endIndex
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:91:54: warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in an isolated closure; this is an error in the Swift 6 language mode
89 | try self.withLock {
90 | var sources = try self.loadFromDisk()
91 | sources = sources.filter { $0 != source }
| `- warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in an isolated closure; this is an error in the Swift 6 language mode
92 | let order = order >= 0 && order < sources.endIndex ? order : sources.endIndex
93 | sources.insert(source, at: order)
/host/spi-builder-workspace/Sources/PackageCollections/Model/Collection.swift:94:19: note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
92 | extension PackageCollectionsModel {
93 | /// Represents the source of a `Collection`
94 | public struct CollectionSource: Equatable, Hashable, Codable {
| `- note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
95 | /// Source type
96 | public let type: CollectionSourceType
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:91:54: warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in an isolated closure; this is an error in the Swift 6 language mode
89 | try self.withLock {
90 | var sources = try self.loadFromDisk()
91 | sources = sources.filter { $0 != source }
| `- warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in an isolated closure; this is an error in the Swift 6 language mode
92 | let order = order >= 0 && order < sources.endIndex ? order : sources.endIndex
93 | sources.insert(source, at: order)
/host/spi-builder-workspace/Sources/PackageCollections/Model/Collection.swift:94:19: note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
92 | extension PackageCollectionsModel {
93 | /// Represents the source of a `Collection`
94 | public struct CollectionSource: Equatable, Hashable, Codable {
| `- note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
95 | /// Source type
96 | public let type: CollectionSourceType
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:105:23: warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
103 | func exists(source: Model.CollectionSource,
104 | callback: @escaping (Result<Bool, Error>) -> Void) {
105 | DispatchQueue.sharedConcurrent.async {
| `- warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
106 | do {
107 | let sources = try self.withLock {
/host/spi-builder-workspace/Sources/Basics/ConcurrencyHelpers.swift:280:16: note: class property declared here
278 | public extension DispatchQueue {
279 | // a shared concurrent queue for running concurrent asynchronous operations
280 | static var sharedConcurrent = DispatchQueue(label: "swift.org.swiftpm.shared.concurrent", attributes: .concurrent)
| `- note: class property declared here
281 | }
282 |
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:107:35: warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | import TSCBasic
20 |
21 | struct FilePackageCollectionsSourcesStorage: PackageCollectionsSourcesStorage {
| `- note: consider making struct 'FilePackageCollectionsSourcesStorage' conform to the 'Sendable' protocol
22 | let fileSystem: FileSystem
23 | let path: AbsolutePath
:
105 | DispatchQueue.sharedConcurrent.async {
106 | do {
107 | let sources = try self.withLock {
| `- warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
108 | try self.loadFromDisk()
109 | }
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:110:17: warning: capture of 'callback' with non-sendable type '(Result<Bool, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
108 | try self.loadFromDisk()
109 | }
110 | callback(.success(sources.contains(source)))
| |- warning: capture of 'callback' with non-sendable type '(Result<Bool, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
111 | } catch {
112 | callback(.failure(error))
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:110:52: warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in a `@Sendable` closure; this is an error in the Swift 6 language mode
108 | try self.loadFromDisk()
109 | }
110 | callback(.success(sources.contains(source)))
| `- warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 | } catch {
112 | callback(.failure(error))
/host/spi-builder-workspace/Sources/PackageCollections/Model/Collection.swift:94:19: note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
92 | extension PackageCollectionsModel {
93 | /// Represents the source of a `Collection`
94 | public struct CollectionSource: Equatable, Hashable, Codable {
| `- note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
95 | /// Source type
96 | public let type: CollectionSourceType
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:108:25: warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in an isolated closure; this is an error in the Swift 6 language mode
19 | import TSCBasic
20 |
21 | struct FilePackageCollectionsSourcesStorage: PackageCollectionsSourcesStorage {
| `- note: consider making struct 'FilePackageCollectionsSourcesStorage' conform to the 'Sendable' protocol
22 | let fileSystem: FileSystem
23 | let path: AbsolutePath
:
106 | do {
107 | let sources = try self.withLock {
108 | try self.loadFromDisk()
| `- warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in an isolated closure; this is an error in the Swift 6 language mode
109 | }
110 | callback(.success(sources.contains(source)))
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:119:23: warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
117 | func update(source: PackageCollectionsModel.CollectionSource,
118 | callback: @escaping (Result<Void, Error>) -> Void) {
119 | DispatchQueue.sharedConcurrent.async {
| `- warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
120 | do {
121 | try self.withLock {
/host/spi-builder-workspace/Sources/Basics/ConcurrencyHelpers.swift:280:16: note: class property declared here
278 | public extension DispatchQueue {
279 | // a shared concurrent queue for running concurrent asynchronous operations
280 | static var sharedConcurrent = DispatchQueue(label: "swift.org.swiftpm.shared.concurrent", attributes: .concurrent)
| `- note: class property declared here
281 | }
282 |
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:121:21: warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | import TSCBasic
20 |
21 | struct FilePackageCollectionsSourcesStorage: PackageCollectionsSourcesStorage {
| `- note: consider making struct 'FilePackageCollectionsSourcesStorage' conform to the 'Sendable' protocol
22 | let fileSystem: FileSystem
23 | let path: AbsolutePath
:
119 | DispatchQueue.sharedConcurrent.async {
120 | do {
121 | try self.withLock {
| `- warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
122 | var sources = try self.loadFromDisk()
123 | if let index = sources.firstIndex(where: { $0 == source }) {
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:123:70: warning: capture of 'source' with non-sendable type 'PackageCollectionsModel.CollectionSource' in a `@Sendable` closure; this is an error in the Swift 6 language mode
121 | try self.withLock {
122 | var sources = try self.loadFromDisk()
123 | if let index = sources.firstIndex(where: { $0 == source }) {
| `- warning: capture of 'source' with non-sendable type 'PackageCollectionsModel.CollectionSource' in a `@Sendable` closure; this is an error in the Swift 6 language mode
124 | sources[index] = source
125 | try self.saveToDisk(sources)
/host/spi-builder-workspace/Sources/PackageCollections/Model/Collection.swift:94:19: note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
92 | extension PackageCollectionsModel {
93 | /// Represents the source of a `Collection`
94 | public struct CollectionSource: Equatable, Hashable, Codable {
| `- note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
95 | /// Source type
96 | public let type: CollectionSourceType
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:128:17: warning: capture of 'callback' with non-sendable type '(Result<Void, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
126 | }
127 | }
128 | callback(.success(()))
| |- warning: capture of 'callback' with non-sendable type '(Result<Void, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
129 | } catch {
130 | callback(.failure(error))
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:122:39: warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in an isolated closure; this is an error in the Swift 6 language mode
19 | import TSCBasic
20 |
21 | struct FilePackageCollectionsSourcesStorage: PackageCollectionsSourcesStorage {
| `- note: consider making struct 'FilePackageCollectionsSourcesStorage' conform to the 'Sendable' protocol
22 | let fileSystem: FileSystem
23 | let path: AbsolutePath
:
120 | do {
121 | try self.withLock {
122 | var sources = try self.loadFromDisk()
| `- warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in an isolated closure; this is an error in the Swift 6 language mode
123 | if let index = sources.firstIndex(where: { $0 == source }) {
124 | sources[index] = source
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:123:70: warning: capture of 'source' with non-sendable type 'PackageCollectionsModel.CollectionSource' in an isolated closure; this is an error in the Swift 6 language mode
121 | try self.withLock {
122 | var sources = try self.loadFromDisk()
123 | if let index = sources.firstIndex(where: { $0 == source }) {
| `- warning: capture of 'source' with non-sendable type 'PackageCollectionsModel.CollectionSource' in an isolated closure; this is an error in the Swift 6 language mode
124 | sources[index] = source
125 | try self.saveToDisk(sources)
/host/spi-builder-workspace/Sources/PackageCollections/Model/Collection.swift:94:19: note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
92 | extension PackageCollectionsModel {
93 | /// Represents the source of a `Collection`
94 | public struct CollectionSource: Equatable, Hashable, Codable {
| `- note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
95 | /// Source type
96 | public let type: CollectionSourceType
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:123:70: warning: capture of 'source' with non-sendable type 'PackageCollectionsModel.CollectionSource' in an isolated closure; this is an error in the Swift 6 language mode
121 | try self.withLock {
122 | var sources = try self.loadFromDisk()
123 | if let index = sources.firstIndex(where: { $0 == source }) {
| `- warning: capture of 'source' with non-sendable type 'PackageCollectionsModel.CollectionSource' in an isolated closure; this is an error in the Swift 6 language mode
124 | sources[index] = source
125 | try self.saveToDisk(sources)
/host/spi-builder-workspace/Sources/PackageCollections/Model/Collection.swift:94:19: note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
92 | extension PackageCollectionsModel {
93 | /// Represents the source of a `Collection`
94 | public struct CollectionSource: Equatable, Hashable, Codable {
| `- note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
95 | /// Source type
96 | public let type: CollectionSourceType
[1162/1348] Compiling PackageGraph ResolvedTarget.swift
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:37:23: warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
35 |
36 | func list(callback: @escaping (Result<[Model.CollectionSource], Error>) -> Void) {
37 | DispatchQueue.sharedConcurrent.async {
| `- warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
38 | do {
39 | let sources = try self.withLock {
/host/spi-builder-workspace/Sources/Basics/ConcurrencyHelpers.swift:280:16: note: class property declared here
278 | public extension DispatchQueue {
279 | // a shared concurrent queue for running concurrent asynchronous operations
280 | static var sharedConcurrent = DispatchQueue(label: "swift.org.swiftpm.shared.concurrent", attributes: .concurrent)
| `- note: class property declared here
281 | }
282 |
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:39:35: warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | import TSCBasic
20 |
21 | struct FilePackageCollectionsSourcesStorage: PackageCollectionsSourcesStorage {
| `- note: consider making struct 'FilePackageCollectionsSourcesStorage' conform to the 'Sendable' protocol
22 | let fileSystem: FileSystem
23 | let path: AbsolutePath
:
37 | DispatchQueue.sharedConcurrent.async {
38 | do {
39 | let sources = try self.withLock {
| `- warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
40 | try self.loadFromDisk()
41 | }
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:42:17: warning: capture of 'callback' with non-sendable type '(Result<[Model.CollectionSource], any Error>) -> Void' (aka '(Result<Array<PackageCollectionsModel.CollectionSource>, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
40 | try self.loadFromDisk()
41 | }
42 | callback(.success(sources))
| |- warning: capture of 'callback' with non-sendable type '(Result<[Model.CollectionSource], any Error>) -> Void' (aka '(Result<Array<PackageCollectionsModel.CollectionSource>, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
43 | } catch {
44 | callback(.failure(error))
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:40:25: warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in an isolated closure; this is an error in the Swift 6 language mode
19 | import TSCBasic
20 |
21 | struct FilePackageCollectionsSourcesStorage: PackageCollectionsSourcesStorage {
| `- note: consider making struct 'FilePackageCollectionsSourcesStorage' conform to the 'Sendable' protocol
22 | let fileSystem: FileSystem
23 | let path: AbsolutePath
:
38 | do {
39 | let sources = try self.withLock {
40 | try self.loadFromDisk()
| `- warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in an isolated closure; this is an error in the Swift 6 language mode
41 | }
42 | callback(.success(sources))
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:52:23: warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
50 | order: Int?,
51 | callback: @escaping (Result<Void, Error>) -> Void) {
52 | DispatchQueue.sharedConcurrent.async {
| `- warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
53 | do {
54 | try self.withLock {
/host/spi-builder-workspace/Sources/Basics/ConcurrencyHelpers.swift:280:16: note: class property declared here
278 | public extension DispatchQueue {
279 | // a shared concurrent queue for running concurrent asynchronous operations
280 | static var sharedConcurrent = DispatchQueue(label: "swift.org.swiftpm.shared.concurrent", attributes: .concurrent)
| `- note: class property declared here
281 | }
282 |
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:54:21: warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | import TSCBasic
20 |
21 | struct FilePackageCollectionsSourcesStorage: PackageCollectionsSourcesStorage {
| `- note: consider making struct 'FilePackageCollectionsSourcesStorage' conform to the 'Sendable' protocol
22 | let fileSystem: FileSystem
23 | let path: AbsolutePath
:
52 | DispatchQueue.sharedConcurrent.async {
53 | do {
54 | try self.withLock {
| `- warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 | var sources = try self.loadFromDisk()
56 | sources = sources.filter { $0 != source }
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:56:54: warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in a `@Sendable` closure; this is an error in the Swift 6 language mode
54 | try self.withLock {
55 | var sources = try self.loadFromDisk()
56 | sources = sources.filter { $0 != source }
| `- warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in a `@Sendable` closure; this is an error in the Swift 6 language mode
57 | let order = order.flatMap { $0 >= 0 && $0 < sources.endIndex ? order : sources.endIndex } ?? sources.endIndex
58 | sources.insert(source, at: order)
/host/spi-builder-workspace/Sources/PackageCollections/Model/Collection.swift:94:19: note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
92 | extension PackageCollectionsModel {
93 | /// Represents the source of a `Collection`
94 | public struct CollectionSource: Equatable, Hashable, Codable {
| `- note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
95 | /// Source type
96 | public let type: CollectionSourceType
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:61:17: warning: capture of 'callback' with non-sendable type '(Result<Void, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
59 | try self.saveToDisk(sources)
60 | }
61 | callback(.success(()))
| |- warning: capture of 'callback' with non-sendable type '(Result<Void, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
62 | } catch {
63 | callback(.failure(error))
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:55:39: warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in an isolated closure; this is an error in the Swift 6 language mode
19 | import TSCBasic
20 |
21 | struct FilePackageCollectionsSourcesStorage: PackageCollectionsSourcesStorage {
| `- note: consider making struct 'FilePackageCollectionsSourcesStorage' conform to the 'Sendable' protocol
22 | let fileSystem: FileSystem
23 | let path: AbsolutePath
:
53 | do {
54 | try self.withLock {
55 | var sources = try self.loadFromDisk()
| `- warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in an isolated closure; this is an error in the Swift 6 language mode
56 | sources = sources.filter { $0 != source }
57 | let order = order.flatMap { $0 >= 0 && $0 < sources.endIndex ? order : sources.endIndex } ?? sources.endIndex
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:56:54: warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in an isolated closure; this is an error in the Swift 6 language mode
54 | try self.withLock {
55 | var sources = try self.loadFromDisk()
56 | sources = sources.filter { $0 != source }
| `- warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in an isolated closure; this is an error in the Swift 6 language mode
57 | let order = order.flatMap { $0 >= 0 && $0 < sources.endIndex ? order : sources.endIndex } ?? sources.endIndex
58 | sources.insert(source, at: order)
/host/spi-builder-workspace/Sources/PackageCollections/Model/Collection.swift:94:19: note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
92 | extension PackageCollectionsModel {
93 | /// Represents the source of a `Collection`
94 | public struct CollectionSource: Equatable, Hashable, Codable {
| `- note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
95 | /// Source type
96 | public let type: CollectionSourceType
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:56:54: warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in an isolated closure; this is an error in the Swift 6 language mode
54 | try self.withLock {
55 | var sources = try self.loadFromDisk()
56 | sources = sources.filter { $0 != source }
| `- warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in an isolated closure; this is an error in the Swift 6 language mode
57 | let order = order.flatMap { $0 >= 0 && $0 < sources.endIndex ? order : sources.endIndex } ?? sources.endIndex
58 | sources.insert(source, at: order)
/host/spi-builder-workspace/Sources/PackageCollections/Model/Collection.swift:94:19: note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
92 | extension PackageCollectionsModel {
93 | /// Represents the source of a `Collection`
94 | public struct CollectionSource: Equatable, Hashable, Codable {
| `- note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
95 | /// Source type
96 | public let type: CollectionSourceType
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:70:23: warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
68 | func remove(source: Model.CollectionSource,
69 | callback: @escaping (Result<Void, Error>) -> Void) {
70 | DispatchQueue.sharedConcurrent.async {
| `- warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
71 | do {
72 | try self.withLock {
/host/spi-builder-workspace/Sources/Basics/ConcurrencyHelpers.swift:280:16: note: class property declared here
278 | public extension DispatchQueue {
279 | // a shared concurrent queue for running concurrent asynchronous operations
280 | static var sharedConcurrent = DispatchQueue(label: "swift.org.swiftpm.shared.concurrent", attributes: .concurrent)
| `- note: class property declared here
281 | }
282 |
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:72:21: warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | import TSCBasic
20 |
21 | struct FilePackageCollectionsSourcesStorage: PackageCollectionsSourcesStorage {
| `- note: consider making struct 'FilePackageCollectionsSourcesStorage' conform to the 'Sendable' protocol
22 | let fileSystem: FileSystem
23 | let path: AbsolutePath
:
70 | DispatchQueue.sharedConcurrent.async {
71 | do {
72 | try self.withLock {
| `- warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
73 | var sources = try self.loadFromDisk()
74 | sources = sources.filter { $0 != source }
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:74:54: warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in a `@Sendable` closure; this is an error in the Swift 6 language mode
72 | try self.withLock {
73 | var sources = try self.loadFromDisk()
74 | sources = sources.filter { $0 != source }
| `- warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | try self.saveToDisk(sources)
76 | }
/host/spi-builder-workspace/Sources/PackageCollections/Model/Collection.swift:94:19: note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
92 | extension PackageCollectionsModel {
93 | /// Represents the source of a `Collection`
94 | public struct CollectionSource: Equatable, Hashable, Codable {
| `- note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
95 | /// Source type
96 | public let type: CollectionSourceType
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:77:17: warning: capture of 'callback' with non-sendable type '(Result<Void, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | try self.saveToDisk(sources)
76 | }
77 | callback(.success(()))
| |- warning: capture of 'callback' with non-sendable type '(Result<Void, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
78 | } catch {
79 | callback(.failure(error))
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:73:39: warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in an isolated closure; this is an error in the Swift 6 language mode
19 | import TSCBasic
20 |
21 | struct FilePackageCollectionsSourcesStorage: PackageCollectionsSourcesStorage {
| `- note: consider making struct 'FilePackageCollectionsSourcesStorage' conform to the 'Sendable' protocol
22 | let fileSystem: FileSystem
23 | let path: AbsolutePath
:
71 | do {
72 | try self.withLock {
73 | var sources = try self.loadFromDisk()
| `- warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in an isolated closure; this is an error in the Swift 6 language mode
74 | sources = sources.filter { $0 != source }
75 | try self.saveToDisk(sources)
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:74:54: warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in an isolated closure; this is an error in the Swift 6 language mode
72 | try self.withLock {
73 | var sources = try self.loadFromDisk()
74 | sources = sources.filter { $0 != source }
| `- warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in an isolated closure; this is an error in the Swift 6 language mode
75 | try self.saveToDisk(sources)
76 | }
/host/spi-builder-workspace/Sources/PackageCollections/Model/Collection.swift:94:19: note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
92 | extension PackageCollectionsModel {
93 | /// Represents the source of a `Collection`
94 | public struct CollectionSource: Equatable, Hashable, Codable {
| `- note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
95 | /// Source type
96 | public let type: CollectionSourceType
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:74:54: warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in an isolated closure; this is an error in the Swift 6 language mode
72 | try self.withLock {
73 | var sources = try self.loadFromDisk()
74 | sources = sources.filter { $0 != source }
| `- warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in an isolated closure; this is an error in the Swift 6 language mode
75 | try self.saveToDisk(sources)
76 | }
/host/spi-builder-workspace/Sources/PackageCollections/Model/Collection.swift:94:19: note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
92 | extension PackageCollectionsModel {
93 | /// Represents the source of a `Collection`
94 | public struct CollectionSource: Equatable, Hashable, Codable {
| `- note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
95 | /// Source type
96 | public let type: CollectionSourceType
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:87:23: warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
85 | to order: Int,
86 | callback: @escaping (Result<Void, Error>) -> Void) {
87 | DispatchQueue.sharedConcurrent.async {
| `- warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
88 | do {
89 | try self.withLock {
/host/spi-builder-workspace/Sources/Basics/ConcurrencyHelpers.swift:280:16: note: class property declared here
278 | public extension DispatchQueue {
279 | // a shared concurrent queue for running concurrent asynchronous operations
280 | static var sharedConcurrent = DispatchQueue(label: "swift.org.swiftpm.shared.concurrent", attributes: .concurrent)
| `- note: class property declared here
281 | }
282 |
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:89:21: warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | import TSCBasic
20 |
21 | struct FilePackageCollectionsSourcesStorage: PackageCollectionsSourcesStorage {
| `- note: consider making struct 'FilePackageCollectionsSourcesStorage' conform to the 'Sendable' protocol
22 | let fileSystem: FileSystem
23 | let path: AbsolutePath
:
87 | DispatchQueue.sharedConcurrent.async {
88 | do {
89 | try self.withLock {
| `- warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
90 | var sources = try self.loadFromDisk()
91 | sources = sources.filter { $0 != source }
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:91:54: warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in a `@Sendable` closure; this is an error in the Swift 6 language mode
89 | try self.withLock {
90 | var sources = try self.loadFromDisk()
91 | sources = sources.filter { $0 != source }
| `- warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in a `@Sendable` closure; this is an error in the Swift 6 language mode
92 | let order = order >= 0 && order < sources.endIndex ? order : sources.endIndex
93 | sources.insert(source, at: order)
/host/spi-builder-workspace/Sources/PackageCollections/Model/Collection.swift:94:19: note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
92 | extension PackageCollectionsModel {
93 | /// Represents the source of a `Collection`
94 | public struct CollectionSource: Equatable, Hashable, Codable {
| `- note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
95 | /// Source type
96 | public let type: CollectionSourceType
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:96:17: warning: capture of 'callback' with non-sendable type '(Result<Void, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 | try self.saveToDisk(sources)
95 | }
96 | callback(.success(()))
| |- warning: capture of 'callback' with non-sendable type '(Result<Void, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
97 | } catch {
98 | callback(.failure(error))
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:90:39: warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in an isolated closure; this is an error in the Swift 6 language mode
19 | import TSCBasic
20 |
21 | struct FilePackageCollectionsSourcesStorage: PackageCollectionsSourcesStorage {
| `- note: consider making struct 'FilePackageCollectionsSourcesStorage' conform to the 'Sendable' protocol
22 | let fileSystem: FileSystem
23 | let path: AbsolutePath
:
88 | do {
89 | try self.withLock {
90 | var sources = try self.loadFromDisk()
| `- warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in an isolated closure; this is an error in the Swift 6 language mode
91 | sources = sources.filter { $0 != source }
92 | let order = order >= 0 && order < sources.endIndex ? order : sources.endIndex
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:91:54: warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in an isolated closure; this is an error in the Swift 6 language mode
89 | try self.withLock {
90 | var sources = try self.loadFromDisk()
91 | sources = sources.filter { $0 != source }
| `- warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in an isolated closure; this is an error in the Swift 6 language mode
92 | let order = order >= 0 && order < sources.endIndex ? order : sources.endIndex
93 | sources.insert(source, at: order)
/host/spi-builder-workspace/Sources/PackageCollections/Model/Collection.swift:94:19: note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
92 | extension PackageCollectionsModel {
93 | /// Represents the source of a `Collection`
94 | public struct CollectionSource: Equatable, Hashable, Codable {
| `- note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
95 | /// Source type
96 | public let type: CollectionSourceType
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:91:54: warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in an isolated closure; this is an error in the Swift 6 language mode
89 | try self.withLock {
90 | var sources = try self.loadFromDisk()
91 | sources = sources.filter { $0 != source }
| `- warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in an isolated closure; this is an error in the Swift 6 language mode
92 | let order = order >= 0 && order < sources.endIndex ? order : sources.endIndex
93 | sources.insert(source, at: order)
/host/spi-builder-workspace/Sources/PackageCollections/Model/Collection.swift:94:19: note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
92 | extension PackageCollectionsModel {
93 | /// Represents the source of a `Collection`
94 | public struct CollectionSource: Equatable, Hashable, Codable {
| `- note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
95 | /// Source type
96 | public let type: CollectionSourceType
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:105:23: warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
103 | func exists(source: Model.CollectionSource,
104 | callback: @escaping (Result<Bool, Error>) -> Void) {
105 | DispatchQueue.sharedConcurrent.async {
| `- warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
106 | do {
107 | let sources = try self.withLock {
/host/spi-builder-workspace/Sources/Basics/ConcurrencyHelpers.swift:280:16: note: class property declared here
278 | public extension DispatchQueue {
279 | // a shared concurrent queue for running concurrent asynchronous operations
280 | static var sharedConcurrent = DispatchQueue(label: "swift.org.swiftpm.shared.concurrent", attributes: .concurrent)
| `- note: class property declared here
281 | }
282 |
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:107:35: warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | import TSCBasic
20 |
21 | struct FilePackageCollectionsSourcesStorage: PackageCollectionsSourcesStorage {
| `- note: consider making struct 'FilePackageCollectionsSourcesStorage' conform to the 'Sendable' protocol
22 | let fileSystem: FileSystem
23 | let path: AbsolutePath
:
105 | DispatchQueue.sharedConcurrent.async {
106 | do {
107 | let sources = try self.withLock {
| `- warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
108 | try self.loadFromDisk()
109 | }
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:110:17: warning: capture of 'callback' with non-sendable type '(Result<Bool, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
108 | try self.loadFromDisk()
109 | }
110 | callback(.success(sources.contains(source)))
| |- warning: capture of 'callback' with non-sendable type '(Result<Bool, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
111 | } catch {
112 | callback(.failure(error))
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:110:52: warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in a `@Sendable` closure; this is an error in the Swift 6 language mode
108 | try self.loadFromDisk()
109 | }
110 | callback(.success(sources.contains(source)))
| `- warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 | } catch {
112 | callback(.failure(error))
/host/spi-builder-workspace/Sources/PackageCollections/Model/Collection.swift:94:19: note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
92 | extension PackageCollectionsModel {
93 | /// Represents the source of a `Collection`
94 | public struct CollectionSource: Equatable, Hashable, Codable {
| `- note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
95 | /// Source type
96 | public let type: CollectionSourceType
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:108:25: warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in an isolated closure; this is an error in the Swift 6 language mode
19 | import TSCBasic
20 |
21 | struct FilePackageCollectionsSourcesStorage: PackageCollectionsSourcesStorage {
| `- note: consider making struct 'FilePackageCollectionsSourcesStorage' conform to the 'Sendable' protocol
22 | let fileSystem: FileSystem
23 | let path: AbsolutePath
:
106 | do {
107 | let sources = try self.withLock {
108 | try self.loadFromDisk()
| `- warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in an isolated closure; this is an error in the Swift 6 language mode
109 | }
110 | callback(.success(sources.contains(source)))
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:119:23: warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
117 | func update(source: PackageCollectionsModel.CollectionSource,
118 | callback: @escaping (Result<Void, Error>) -> Void) {
119 | DispatchQueue.sharedConcurrent.async {
| `- warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
120 | do {
121 | try self.withLock {
/host/spi-builder-workspace/Sources/Basics/ConcurrencyHelpers.swift:280:16: note: class property declared here
278 | public extension DispatchQueue {
279 | // a shared concurrent queue for running concurrent asynchronous operations
280 | static var sharedConcurrent = DispatchQueue(label: "swift.org.swiftpm.shared.concurrent", attributes: .concurrent)
| `- note: class property declared here
281 | }
282 |
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:121:21: warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | import TSCBasic
20 |
21 | struct FilePackageCollectionsSourcesStorage: PackageCollectionsSourcesStorage {
| `- note: consider making struct 'FilePackageCollectionsSourcesStorage' conform to the 'Sendable' protocol
22 | let fileSystem: FileSystem
23 | let path: AbsolutePath
:
119 | DispatchQueue.sharedConcurrent.async {
120 | do {
121 | try self.withLock {
| `- warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
122 | var sources = try self.loadFromDisk()
123 | if let index = sources.firstIndex(where: { $0 == source }) {
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:123:70: warning: capture of 'source' with non-sendable type 'PackageCollectionsModel.CollectionSource' in a `@Sendable` closure; this is an error in the Swift 6 language mode
121 | try self.withLock {
122 | var sources = try self.loadFromDisk()
123 | if let index = sources.firstIndex(where: { $0 == source }) {
| `- warning: capture of 'source' with non-sendable type 'PackageCollectionsModel.CollectionSource' in a `@Sendable` closure; this is an error in the Swift 6 language mode
124 | sources[index] = source
125 | try self.saveToDisk(sources)
/host/spi-builder-workspace/Sources/PackageCollections/Model/Collection.swift:94:19: note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
92 | extension PackageCollectionsModel {
93 | /// Represents the source of a `Collection`
94 | public struct CollectionSource: Equatable, Hashable, Codable {
| `- note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
95 | /// Source type
96 | public let type: CollectionSourceType
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:128:17: warning: capture of 'callback' with non-sendable type '(Result<Void, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
126 | }
127 | }
128 | callback(.success(()))
| |- warning: capture of 'callback' with non-sendable type '(Result<Void, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
129 | } catch {
130 | callback(.failure(error))
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:122:39: warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in an isolated closure; this is an error in the Swift 6 language mode
19 | import TSCBasic
20 |
21 | struct FilePackageCollectionsSourcesStorage: PackageCollectionsSourcesStorage {
| `- note: consider making struct 'FilePackageCollectionsSourcesStorage' conform to the 'Sendable' protocol
22 | let fileSystem: FileSystem
23 | let path: AbsolutePath
:
120 | do {
121 | try self.withLock {
122 | var sources = try self.loadFromDisk()
| `- warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in an isolated closure; this is an error in the Swift 6 language mode
123 | if let index = sources.firstIndex(where: { $0 == source }) {
124 | sources[index] = source
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:123:70: warning: capture of 'source' with non-sendable type 'PackageCollectionsModel.CollectionSource' in an isolated closure; this is an error in the Swift 6 language mode
121 | try self.withLock {
122 | var sources = try self.loadFromDisk()
123 | if let index = sources.firstIndex(where: { $0 == source }) {
| `- warning: capture of 'source' with non-sendable type 'PackageCollectionsModel.CollectionSource' in an isolated closure; this is an error in the Swift 6 language mode
124 | sources[index] = source
125 | try self.saveToDisk(sources)
/host/spi-builder-workspace/Sources/PackageCollections/Model/Collection.swift:94:19: note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
92 | extension PackageCollectionsModel {
93 | /// Represents the source of a `Collection`
94 | public struct CollectionSource: Equatable, Hashable, Codable {
| `- note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
95 | /// Source type
96 | public let type: CollectionSourceType
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:123:70: warning: capture of 'source' with non-sendable type 'PackageCollectionsModel.CollectionSource' in an isolated closure; this is an error in the Swift 6 language mode
121 | try self.withLock {
122 | var sources = try self.loadFromDisk()
123 | if let index = sources.firstIndex(where: { $0 == source }) {
| `- warning: capture of 'source' with non-sendable type 'PackageCollectionsModel.CollectionSource' in an isolated closure; this is an error in the Swift 6 language mode
124 | sources[index] = source
125 | try self.saveToDisk(sources)
/host/spi-builder-workspace/Sources/PackageCollections/Model/Collection.swift:94:19: note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
92 | extension PackageCollectionsModel {
93 | /// Represents the source of a `Collection`
94 | public struct CollectionSource: Equatable, Hashable, Codable {
| `- note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
95 | /// Source type
96 | public let type: CollectionSourceType
[1163/1348] Compiling PackageGraph Version+Extensions.swift
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:37:23: warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
35 |
36 | func list(callback: @escaping (Result<[Model.CollectionSource], Error>) -> Void) {
37 | DispatchQueue.sharedConcurrent.async {
| `- warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
38 | do {
39 | let sources = try self.withLock {
/host/spi-builder-workspace/Sources/Basics/ConcurrencyHelpers.swift:280:16: note: class property declared here
278 | public extension DispatchQueue {
279 | // a shared concurrent queue for running concurrent asynchronous operations
280 | static var sharedConcurrent = DispatchQueue(label: "swift.org.swiftpm.shared.concurrent", attributes: .concurrent)
| `- note: class property declared here
281 | }
282 |
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:39:35: warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | import TSCBasic
20 |
21 | struct FilePackageCollectionsSourcesStorage: PackageCollectionsSourcesStorage {
| `- note: consider making struct 'FilePackageCollectionsSourcesStorage' conform to the 'Sendable' protocol
22 | let fileSystem: FileSystem
23 | let path: AbsolutePath
:
37 | DispatchQueue.sharedConcurrent.async {
38 | do {
39 | let sources = try self.withLock {
| `- warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
40 | try self.loadFromDisk()
41 | }
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:42:17: warning: capture of 'callback' with non-sendable type '(Result<[Model.CollectionSource], any Error>) -> Void' (aka '(Result<Array<PackageCollectionsModel.CollectionSource>, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
40 | try self.loadFromDisk()
41 | }
42 | callback(.success(sources))
| |- warning: capture of 'callback' with non-sendable type '(Result<[Model.CollectionSource], any Error>) -> Void' (aka '(Result<Array<PackageCollectionsModel.CollectionSource>, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
43 | } catch {
44 | callback(.failure(error))
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:40:25: warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in an isolated closure; this is an error in the Swift 6 language mode
19 | import TSCBasic
20 |
21 | struct FilePackageCollectionsSourcesStorage: PackageCollectionsSourcesStorage {
| `- note: consider making struct 'FilePackageCollectionsSourcesStorage' conform to the 'Sendable' protocol
22 | let fileSystem: FileSystem
23 | let path: AbsolutePath
:
38 | do {
39 | let sources = try self.withLock {
40 | try self.loadFromDisk()
| `- warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in an isolated closure; this is an error in the Swift 6 language mode
41 | }
42 | callback(.success(sources))
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:52:23: warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
50 | order: Int?,
51 | callback: @escaping (Result<Void, Error>) -> Void) {
52 | DispatchQueue.sharedConcurrent.async {
| `- warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
53 | do {
54 | try self.withLock {
/host/spi-builder-workspace/Sources/Basics/ConcurrencyHelpers.swift:280:16: note: class property declared here
278 | public extension DispatchQueue {
279 | // a shared concurrent queue for running concurrent asynchronous operations
280 | static var sharedConcurrent = DispatchQueue(label: "swift.org.swiftpm.shared.concurrent", attributes: .concurrent)
| `- note: class property declared here
281 | }
282 |
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:54:21: warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | import TSCBasic
20 |
21 | struct FilePackageCollectionsSourcesStorage: PackageCollectionsSourcesStorage {
| `- note: consider making struct 'FilePackageCollectionsSourcesStorage' conform to the 'Sendable' protocol
22 | let fileSystem: FileSystem
23 | let path: AbsolutePath
:
52 | DispatchQueue.sharedConcurrent.async {
53 | do {
54 | try self.withLock {
| `- warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 | var sources = try self.loadFromDisk()
56 | sources = sources.filter { $0 != source }
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:56:54: warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in a `@Sendable` closure; this is an error in the Swift 6 language mode
54 | try self.withLock {
55 | var sources = try self.loadFromDisk()
56 | sources = sources.filter { $0 != source }
| `- warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in a `@Sendable` closure; this is an error in the Swift 6 language mode
57 | let order = order.flatMap { $0 >= 0 && $0 < sources.endIndex ? order : sources.endIndex } ?? sources.endIndex
58 | sources.insert(source, at: order)
/host/spi-builder-workspace/Sources/PackageCollections/Model/Collection.swift:94:19: note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
92 | extension PackageCollectionsModel {
93 | /// Represents the source of a `Collection`
94 | public struct CollectionSource: Equatable, Hashable, Codable {
| `- note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
95 | /// Source type
96 | public let type: CollectionSourceType
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:61:17: warning: capture of 'callback' with non-sendable type '(Result<Void, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
59 | try self.saveToDisk(sources)
60 | }
61 | callback(.success(()))
| |- warning: capture of 'callback' with non-sendable type '(Result<Void, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
62 | } catch {
63 | callback(.failure(error))
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:55:39: warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in an isolated closure; this is an error in the Swift 6 language mode
19 | import TSCBasic
20 |
21 | struct FilePackageCollectionsSourcesStorage: PackageCollectionsSourcesStorage {
| `- note: consider making struct 'FilePackageCollectionsSourcesStorage' conform to the 'Sendable' protocol
22 | let fileSystem: FileSystem
23 | let path: AbsolutePath
:
53 | do {
54 | try self.withLock {
55 | var sources = try self.loadFromDisk()
| `- warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in an isolated closure; this is an error in the Swift 6 language mode
56 | sources = sources.filter { $0 != source }
57 | let order = order.flatMap { $0 >= 0 && $0 < sources.endIndex ? order : sources.endIndex } ?? sources.endIndex
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:56:54: warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in an isolated closure; this is an error in the Swift 6 language mode
54 | try self.withLock {
55 | var sources = try self.loadFromDisk()
56 | sources = sources.filter { $0 != source }
| `- warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in an isolated closure; this is an error in the Swift 6 language mode
57 | let order = order.flatMap { $0 >= 0 && $0 < sources.endIndex ? order : sources.endIndex } ?? sources.endIndex
58 | sources.insert(source, at: order)
/host/spi-builder-workspace/Sources/PackageCollections/Model/Collection.swift:94:19: note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
92 | extension PackageCollectionsModel {
93 | /// Represents the source of a `Collection`
94 | public struct CollectionSource: Equatable, Hashable, Codable {
| `- note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
95 | /// Source type
96 | public let type: CollectionSourceType
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:56:54: warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in an isolated closure; this is an error in the Swift 6 language mode
54 | try self.withLock {
55 | var sources = try self.loadFromDisk()
56 | sources = sources.filter { $0 != source }
| `- warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in an isolated closure; this is an error in the Swift 6 language mode
57 | let order = order.flatMap { $0 >= 0 && $0 < sources.endIndex ? order : sources.endIndex } ?? sources.endIndex
58 | sources.insert(source, at: order)
/host/spi-builder-workspace/Sources/PackageCollections/Model/Collection.swift:94:19: note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
92 | extension PackageCollectionsModel {
93 | /// Represents the source of a `Collection`
94 | public struct CollectionSource: Equatable, Hashable, Codable {
| `- note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
95 | /// Source type
96 | public let type: CollectionSourceType
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:70:23: warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
68 | func remove(source: Model.CollectionSource,
69 | callback: @escaping (Result<Void, Error>) -> Void) {
70 | DispatchQueue.sharedConcurrent.async {
| `- warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
71 | do {
72 | try self.withLock {
/host/spi-builder-workspace/Sources/Basics/ConcurrencyHelpers.swift:280:16: note: class property declared here
278 | public extension DispatchQueue {
279 | // a shared concurrent queue for running concurrent asynchronous operations
280 | static var sharedConcurrent = DispatchQueue(label: "swift.org.swiftpm.shared.concurrent", attributes: .concurrent)
| `- note: class property declared here
281 | }
282 |
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:72:21: warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | import TSCBasic
20 |
21 | struct FilePackageCollectionsSourcesStorage: PackageCollectionsSourcesStorage {
| `- note: consider making struct 'FilePackageCollectionsSourcesStorage' conform to the 'Sendable' protocol
22 | let fileSystem: FileSystem
23 | let path: AbsolutePath
:
70 | DispatchQueue.sharedConcurrent.async {
71 | do {
72 | try self.withLock {
| `- warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
73 | var sources = try self.loadFromDisk()
74 | sources = sources.filter { $0 != source }
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:74:54: warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in a `@Sendable` closure; this is an error in the Swift 6 language mode
72 | try self.withLock {
73 | var sources = try self.loadFromDisk()
74 | sources = sources.filter { $0 != source }
| `- warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | try self.saveToDisk(sources)
76 | }
/host/spi-builder-workspace/Sources/PackageCollections/Model/Collection.swift:94:19: note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
92 | extension PackageCollectionsModel {
93 | /// Represents the source of a `Collection`
94 | public struct CollectionSource: Equatable, Hashable, Codable {
| `- note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
95 | /// Source type
96 | public let type: CollectionSourceType
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:77:17: warning: capture of 'callback' with non-sendable type '(Result<Void, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | try self.saveToDisk(sources)
76 | }
77 | callback(.success(()))
| |- warning: capture of 'callback' with non-sendable type '(Result<Void, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
78 | } catch {
79 | callback(.failure(error))
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:73:39: warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in an isolated closure; this is an error in the Swift 6 language mode
19 | import TSCBasic
20 |
21 | struct FilePackageCollectionsSourcesStorage: PackageCollectionsSourcesStorage {
| `- note: consider making struct 'FilePackageCollectionsSourcesStorage' conform to the 'Sendable' protocol
22 | let fileSystem: FileSystem
23 | let path: AbsolutePath
:
71 | do {
72 | try self.withLock {
73 | var sources = try self.loadFromDisk()
| `- warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in an isolated closure; this is an error in the Swift 6 language mode
74 | sources = sources.filter { $0 != source }
75 | try self.saveToDisk(sources)
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:74:54: warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in an isolated closure; this is an error in the Swift 6 language mode
72 | try self.withLock {
73 | var sources = try self.loadFromDisk()
74 | sources = sources.filter { $0 != source }
| `- warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in an isolated closure; this is an error in the Swift 6 language mode
75 | try self.saveToDisk(sources)
76 | }
/host/spi-builder-workspace/Sources/PackageCollections/Model/Collection.swift:94:19: note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
92 | extension PackageCollectionsModel {
93 | /// Represents the source of a `Collection`
94 | public struct CollectionSource: Equatable, Hashable, Codable {
| `- note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
95 | /// Source type
96 | public let type: CollectionSourceType
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:74:54: warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in an isolated closure; this is an error in the Swift 6 language mode
72 | try self.withLock {
73 | var sources = try self.loadFromDisk()
74 | sources = sources.filter { $0 != source }
| `- warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in an isolated closure; this is an error in the Swift 6 language mode
75 | try self.saveToDisk(sources)
76 | }
/host/spi-builder-workspace/Sources/PackageCollections/Model/Collection.swift:94:19: note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
92 | extension PackageCollectionsModel {
93 | /// Represents the source of a `Collection`
94 | public struct CollectionSource: Equatable, Hashable, Codable {
| `- note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
95 | /// Source type
96 | public let type: CollectionSourceType
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:87:23: warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
85 | to order: Int,
86 | callback: @escaping (Result<Void, Error>) -> Void) {
87 | DispatchQueue.sharedConcurrent.async {
| `- warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
88 | do {
89 | try self.withLock {
/host/spi-builder-workspace/Sources/Basics/ConcurrencyHelpers.swift:280:16: note: class property declared here
278 | public extension DispatchQueue {
279 | // a shared concurrent queue for running concurrent asynchronous operations
280 | static var sharedConcurrent = DispatchQueue(label: "swift.org.swiftpm.shared.concurrent", attributes: .concurrent)
| `- note: class property declared here
281 | }
282 |
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:89:21: warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | import TSCBasic
20 |
21 | struct FilePackageCollectionsSourcesStorage: PackageCollectionsSourcesStorage {
| `- note: consider making struct 'FilePackageCollectionsSourcesStorage' conform to the 'Sendable' protocol
22 | let fileSystem: FileSystem
23 | let path: AbsolutePath
:
87 | DispatchQueue.sharedConcurrent.async {
88 | do {
89 | try self.withLock {
| `- warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
90 | var sources = try self.loadFromDisk()
91 | sources = sources.filter { $0 != source }
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:91:54: warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in a `@Sendable` closure; this is an error in the Swift 6 language mode
89 | try self.withLock {
90 | var sources = try self.loadFromDisk()
91 | sources = sources.filter { $0 != source }
| `- warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in a `@Sendable` closure; this is an error in the Swift 6 language mode
92 | let order = order >= 0 && order < sources.endIndex ? order : sources.endIndex
93 | sources.insert(source, at: order)
/host/spi-builder-workspace/Sources/PackageCollections/Model/Collection.swift:94:19: note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
92 | extension PackageCollectionsModel {
93 | /// Represents the source of a `Collection`
94 | public struct CollectionSource: Equatable, Hashable, Codable {
| `- note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
95 | /// Source type
96 | public let type: CollectionSourceType
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:96:17: warning: capture of 'callback' with non-sendable type '(Result<Void, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 | try self.saveToDisk(sources)
95 | }
96 | callback(.success(()))
| |- warning: capture of 'callback' with non-sendable type '(Result<Void, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
97 | } catch {
98 | callback(.failure(error))
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:90:39: warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in an isolated closure; this is an error in the Swift 6 language mode
19 | import TSCBasic
20 |
21 | struct FilePackageCollectionsSourcesStorage: PackageCollectionsSourcesStorage {
| `- note: consider making struct 'FilePackageCollectionsSourcesStorage' conform to the 'Sendable' protocol
22 | let fileSystem: FileSystem
23 | let path: AbsolutePath
:
88 | do {
89 | try self.withLock {
90 | var sources = try self.loadFromDisk()
| `- warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in an isolated closure; this is an error in the Swift 6 language mode
91 | sources = sources.filter { $0 != source }
92 | let order = order >= 0 && order < sources.endIndex ? order : sources.endIndex
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:91:54: warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in an isolated closure; this is an error in the Swift 6 language mode
89 | try self.withLock {
90 | var sources = try self.loadFromDisk()
91 | sources = sources.filter { $0 != source }
| `- warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in an isolated closure; this is an error in the Swift 6 language mode
92 | let order = order >= 0 && order < sources.endIndex ? order : sources.endIndex
93 | sources.insert(source, at: order)
/host/spi-builder-workspace/Sources/PackageCollections/Model/Collection.swift:94:19: note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
92 | extension PackageCollectionsModel {
93 | /// Represents the source of a `Collection`
94 | public struct CollectionSource: Equatable, Hashable, Codable {
| `- note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
95 | /// Source type
96 | public let type: CollectionSourceType
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:91:54: warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in an isolated closure; this is an error in the Swift 6 language mode
89 | try self.withLock {
90 | var sources = try self.loadFromDisk()
91 | sources = sources.filter { $0 != source }
| `- warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in an isolated closure; this is an error in the Swift 6 language mode
92 | let order = order >= 0 && order < sources.endIndex ? order : sources.endIndex
93 | sources.insert(source, at: order)
/host/spi-builder-workspace/Sources/PackageCollections/Model/Collection.swift:94:19: note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
92 | extension PackageCollectionsModel {
93 | /// Represents the source of a `Collection`
94 | public struct CollectionSource: Equatable, Hashable, Codable {
| `- note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
95 | /// Source type
96 | public let type: CollectionSourceType
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:105:23: warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
103 | func exists(source: Model.CollectionSource,
104 | callback: @escaping (Result<Bool, Error>) -> Void) {
105 | DispatchQueue.sharedConcurrent.async {
| `- warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
106 | do {
107 | let sources = try self.withLock {
/host/spi-builder-workspace/Sources/Basics/ConcurrencyHelpers.swift:280:16: note: class property declared here
278 | public extension DispatchQueue {
279 | // a shared concurrent queue for running concurrent asynchronous operations
280 | static var sharedConcurrent = DispatchQueue(label: "swift.org.swiftpm.shared.concurrent", attributes: .concurrent)
| `- note: class property declared here
281 | }
282 |
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:107:35: warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | import TSCBasic
20 |
21 | struct FilePackageCollectionsSourcesStorage: PackageCollectionsSourcesStorage {
| `- note: consider making struct 'FilePackageCollectionsSourcesStorage' conform to the 'Sendable' protocol
22 | let fileSystem: FileSystem
23 | let path: AbsolutePath
:
105 | DispatchQueue.sharedConcurrent.async {
106 | do {
107 | let sources = try self.withLock {
| `- warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
108 | try self.loadFromDisk()
109 | }
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:110:17: warning: capture of 'callback' with non-sendable type '(Result<Bool, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
108 | try self.loadFromDisk()
109 | }
110 | callback(.success(sources.contains(source)))
| |- warning: capture of 'callback' with non-sendable type '(Result<Bool, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
111 | } catch {
112 | callback(.failure(error))
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:110:52: warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in a `@Sendable` closure; this is an error in the Swift 6 language mode
108 | try self.loadFromDisk()
109 | }
110 | callback(.success(sources.contains(source)))
| `- warning: capture of 'source' with non-sendable type 'Model.CollectionSource' (aka 'PackageCollectionsModel.CollectionSource') in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 | } catch {
112 | callback(.failure(error))
/host/spi-builder-workspace/Sources/PackageCollections/Model/Collection.swift:94:19: note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
92 | extension PackageCollectionsModel {
93 | /// Represents the source of a `Collection`
94 | public struct CollectionSource: Equatable, Hashable, Codable {
| `- note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
95 | /// Source type
96 | public let type: CollectionSourceType
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:108:25: warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in an isolated closure; this is an error in the Swift 6 language mode
19 | import TSCBasic
20 |
21 | struct FilePackageCollectionsSourcesStorage: PackageCollectionsSourcesStorage {
| `- note: consider making struct 'FilePackageCollectionsSourcesStorage' conform to the 'Sendable' protocol
22 | let fileSystem: FileSystem
23 | let path: AbsolutePath
:
106 | do {
107 | let sources = try self.withLock {
108 | try self.loadFromDisk()
| `- warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in an isolated closure; this is an error in the Swift 6 language mode
109 | }
110 | callback(.success(sources.contains(source)))
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:119:23: warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
117 | func update(source: PackageCollectionsModel.CollectionSource,
118 | callback: @escaping (Result<Void, Error>) -> Void) {
119 | DispatchQueue.sharedConcurrent.async {
| `- warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
120 | do {
121 | try self.withLock {
/host/spi-builder-workspace/Sources/Basics/ConcurrencyHelpers.swift:280:16: note: class property declared here
278 | public extension DispatchQueue {
279 | // a shared concurrent queue for running concurrent asynchronous operations
280 | static var sharedConcurrent = DispatchQueue(label: "swift.org.swiftpm.shared.concurrent", attributes: .concurrent)
| `- note: class property declared here
281 | }
282 |
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:121:21: warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | import TSCBasic
20 |
21 | struct FilePackageCollectionsSourcesStorage: PackageCollectionsSourcesStorage {
| `- note: consider making struct 'FilePackageCollectionsSourcesStorage' conform to the 'Sendable' protocol
22 | let fileSystem: FileSystem
23 | let path: AbsolutePath
:
119 | DispatchQueue.sharedConcurrent.async {
120 | do {
121 | try self.withLock {
| `- warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
122 | var sources = try self.loadFromDisk()
123 | if let index = sources.firstIndex(where: { $0 == source }) {
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:123:70: warning: capture of 'source' with non-sendable type 'PackageCollectionsModel.CollectionSource' in a `@Sendable` closure; this is an error in the Swift 6 language mode
121 | try self.withLock {
122 | var sources = try self.loadFromDisk()
123 | if let index = sources.firstIndex(where: { $0 == source }) {
| `- warning: capture of 'source' with non-sendable type 'PackageCollectionsModel.CollectionSource' in a `@Sendable` closure; this is an error in the Swift 6 language mode
124 | sources[index] = source
125 | try self.saveToDisk(sources)
/host/spi-builder-workspace/Sources/PackageCollections/Model/Collection.swift:94:19: note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
92 | extension PackageCollectionsModel {
93 | /// Represents the source of a `Collection`
94 | public struct CollectionSource: Equatable, Hashable, Codable {
| `- note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
95 | /// Source type
96 | public let type: CollectionSourceType
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:128:17: warning: capture of 'callback' with non-sendable type '(Result<Void, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
126 | }
127 | }
128 | callback(.success(()))
| |- warning: capture of 'callback' with non-sendable type '(Result<Void, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
129 | } catch {
130 | callback(.failure(error))
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:122:39: warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in an isolated closure; this is an error in the Swift 6 language mode
19 | import TSCBasic
20 |
21 | struct FilePackageCollectionsSourcesStorage: PackageCollectionsSourcesStorage {
| `- note: consider making struct 'FilePackageCollectionsSourcesStorage' conform to the 'Sendable' protocol
22 | let fileSystem: FileSystem
23 | let path: AbsolutePath
:
120 | do {
121 | try self.withLock {
122 | var sources = try self.loadFromDisk()
| `- warning: capture of 'self' with non-sendable type 'FilePackageCollectionsSourcesStorage' in an isolated closure; this is an error in the Swift 6 language mode
123 | if let index = sources.firstIndex(where: { $0 == source }) {
124 | sources[index] = source
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:123:70: warning: capture of 'source' with non-sendable type 'PackageCollectionsModel.CollectionSource' in an isolated closure; this is an error in the Swift 6 language mode
121 | try self.withLock {
122 | var sources = try self.loadFromDisk()
123 | if let index = sources.firstIndex(where: { $0 == source }) {
| `- warning: capture of 'source' with non-sendable type 'PackageCollectionsModel.CollectionSource' in an isolated closure; this is an error in the Swift 6 language mode
124 | sources[index] = source
125 | try self.saveToDisk(sources)
/host/spi-builder-workspace/Sources/PackageCollections/Model/Collection.swift:94:19: note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
92 | extension PackageCollectionsModel {
93 | /// Represents the source of a `Collection`
94 | public struct CollectionSource: Equatable, Hashable, Codable {
| `- note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
95 | /// Source type
96 | public let type: CollectionSourceType
/host/spi-builder-workspace/Sources/PackageCollections/Storage/FilePackageCollectionsSourcesStorage.swift:123:70: warning: capture of 'source' with non-sendable type 'PackageCollectionsModel.CollectionSource' in an isolated closure; this is an error in the Swift 6 language mode
121 | try self.withLock {
122 | var sources = try self.loadFromDisk()
123 | if let index = sources.firstIndex(where: { $0 == source }) {
| `- warning: capture of 'source' with non-sendable type 'PackageCollectionsModel.CollectionSource' in an isolated closure; this is an error in the Swift 6 language mode
124 | sources[index] = source
125 | try self.saveToDisk(sources)
/host/spi-builder-workspace/Sources/PackageCollections/Model/Collection.swift:94:19: note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
92 | extension PackageCollectionsModel {
93 | /// Represents the source of a `Collection`
94 | public struct CollectionSource: Equatable, Hashable, Codable {
| `- note: consider making struct 'CollectionSource' conform to the 'Sendable' protocol
95 | /// Source type
96 | public let type: CollectionSourceType
[1164/1351] Compiling PackageCollections PackageCollections+Configuration.swift
[1165/1351] Compiling PackageCollections PackageCollections+Storage.swift
[1166/1351] Compiling PackageCollections PackageIndex.swift
[1167/1351] Compiling SwiftDriver ModuleDependencyGraph.swift
[1168/1351] Compiling SwiftDriver DependencySource.swift
[1169/1351] Compiling SwiftDriver Integrator.swift
[1170/1351] Compiling SwiftDriver InternedStrings.swift
[1171/1351] Compiling SwiftDriver Node.swift
[1172/1351] Compiling SwiftDriver NodeFinder.swift
[1173/1351] Compiling SwiftDriver Tracer.swift
[1174/1351] Compiling SwiftDriver Multidictionary.swift
[1175/1351] Compiling SwiftDriver SourceFileDependencyGraph.swift
[1176/1351] Compiling SwiftDriver SwiftSourceFile.swift
[1177/1351] Compiling SwiftDriver TwoDMap.swift
[1178/1351] Compiling SwiftDriver TwoLevelMap.swift
[1179/1351] Compiling SwiftDriver APIDigesterJobs.swift
[1180/1351] Compiling SwiftDriver AutolinkExtractJob.swift
[1192/1351] Compiling SwiftDriver IncrementalDependencyAndInputSetup.swift
[1193/1351] Compiling SwiftDriver InputInfo.swift
[1194/1351] Compiling SwiftDriver KeyAndFingerprintHolder.swift
[1197/1351] Compiling PackageCollections SQLitePackageCollectionsStorage.swift
[1198/1351] Compiling SwiftDriver BackendJob.swift
[1199/1351] Compiling SwiftDriver CommandLineArguments.swift
[1200/1351] Compiling SwiftDriver CompileJob.swift
[1209/1351] Compiling SwiftDriver InterpretJob.swift
[1210/1351] Compiling SwiftDriver Job.swift
[1211/1351] Compiling SwiftDriver LinkJob.swift
[1212/1351] Compiling SwiftDriver MergeModuleJob.swift
[1213/1351] Compiling SwiftDriver ModuleWrapJob.swift
[1214/1351] Compiling SwiftDriver Planning.swift
[1215/1351] Compiling SwiftDriver PrebuiltModulesJob.swift
[1216/1351] Compiling SwiftDriver PrintTargetInfoJob.swift
[1217/1351] Compiling SwiftDriver ReplJob.swift
[1218/1351] Compiling SwiftDriver SwiftHelpIntroJob.swift
[1219/1351] Compiling SwiftDriver Toolchain+InterpreterSupport.swift
[1220/1351] Compiling SwiftDriver Toolchain+LinkerSupport.swift
[1221/1351] Compiling SwiftDriver VerifyDebugInfoJob.swift
[1222/1351] Compiling SwiftDriver VerifyModuleInterfaceJob.swift
[1223/1351] Compiling SwiftDriver WebAssemblyToolchain+LinkerSupport.swift
[1224/1351] Compiling SwiftDriver WindowsToolchain+LinkerSupport.swift
[1225/1351] Emitting module PackageCollections
/host/spi-builder-workspace/Sources/PackageCollections/PackageCollections+CertificatePolicy.swift:22:24: warning: static property 'defaultSourceCertPolicies' is not concurrency-safe because non-'Sendable' type '[String : [PackageCollectionSourceCertificatePolicy.CertificatePolicyConfig]]' may have shared mutable state; this is an error in the Swift 6 language mode
20 | /// collections be signed using certificate that belongs to certain subject user ID.
21 | internal struct PackageCollectionSourceCertificatePolicy {
22 | private static let defaultSourceCertPolicies: [String: [CertificatePolicyConfig]] = [
| |- warning: static property 'defaultSourceCertPolicies' is not concurrency-safe because non-'Sendable' type '[String : [PackageCollectionSourceCertificatePolicy.CertificatePolicyConfig]]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultSourceCertPolicies' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | "developer.apple.com": [
24 | CertificatePolicyConfig(
:
54 | }
55 |
56 | struct CertificatePolicyConfig {
| `- note: consider making struct 'CertificatePolicyConfig' conform to the 'Sendable' protocol
57 | let certPolicyKey: CertificatePolicyKey
58 |
/host/spi-builder-workspace/Sources/PackageCollections/PackageCollections.swift:689:9: warning: stored property 'sourceType' of 'Sendable'-conforming struct 'UnknownProvider' has non-sendable type 'Model.CollectionSourceType' (aka 'PackageCollectionsModel.CollectionSourceType'); this is an error in the Swift 6 language mode
687 |
688 | private struct UnknownProvider: Error {
689 | let sourceType: Model.CollectionSourceType
| `- warning: stored property 'sourceType' of 'Sendable'-conforming struct 'UnknownProvider' has non-sendable type 'Model.CollectionSourceType' (aka 'PackageCollectionsModel.CollectionSourceType'); this is an error in the Swift 6 language mode
690 |
691 | init(_ sourceType: Model.CollectionSourceType) {
/host/spi-builder-workspace/Sources/PackageCollections/Model/Collection.swift:134:17: note: consider making enum 'CollectionSourceType' conform to the 'Sendable' protocol
132 |
133 | /// Represents the source type of a `Collection`
134 | public enum CollectionSourceType: String, Codable, CaseIterable {
| `- note: consider making enum 'CollectionSourceType' conform to the 'Sendable' protocol
135 | case json
136 | }
/host/spi-builder-workspace/Sources/PackageCollections/PackageIndexAndCollections.swift:280:33: warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
278 | }
279 |
280 | sync.notify(queue: .sharedConcurrent) {
| `- warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
281 | guard let indexResult = results[.index], let collectionsResult = results[.collections] else {
282 | return callback(.failure(InternalError("Should contain results from package index and collections")))
/host/spi-builder-workspace/Sources/Basics/ConcurrencyHelpers.swift:280:16: note: class property declared here
278 | public extension DispatchQueue {
279 | // a shared concurrent queue for running concurrent asynchronous operations
280 | static var sharedConcurrent = DispatchQueue(label: "swift.org.swiftpm.shared.concurrent", attributes: .concurrent)
| `- note: class property declared here
281 | }
282 |
/host/spi-builder-workspace/Sources/PackageCollections/Providers/JSONPackageCollectionProvider.swift:38:16: warning: static property 'defaultCertPolicyKeys' is not concurrency-safe because non-'Sendable' type '[CertificatePolicyKey]' may have shared mutable state; this is an error in the Swift 6 language mode
36 | #endif
37 |
38 | static let defaultCertPolicyKeys: [CertificatePolicyKey] = [.default]
| `- warning: static property 'defaultCertPolicyKeys' is not concurrency-safe because non-'Sendable' type '[CertificatePolicyKey]' may have shared mutable state; this is an error in the Swift 6 language mode
39 |
40 | private let configuration: Configuration
/host/spi-builder-workspace/Sources/PackageCollectionsSigning/Certificate/CertificatePolicy.swift:906:13: note: enum 'CertificatePolicyKey' does not conform to the 'Sendable' protocol
904 | }
905 |
906 | public enum CertificatePolicyKey: Hashable, CustomStringConvertible {
| `- note: enum 'CertificatePolicyKey' does not conform to the 'Sendable' protocol
907 | case `default`(subjectUserID: String?)
908 | case appleSwiftPackageCollection(subjectUserID: String?)
/host/spi-builder-workspace/Sources/PackageCollections/Providers/JSONPackageCollectionProvider.swift:22:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'PackageCollectionsSigning'
20 |
21 | import PackageCollectionsModel
22 | import PackageCollectionsSigning
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'PackageCollectionsSigning'
23 | import PackageModel
24 | import SourceControl
:
36 | #endif
37 |
38 | static let defaultCertPolicyKeys: [CertificatePolicyKey] = [.default]
| |- note: annotate 'defaultCertPolicyKeys' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | private let configuration: Configuration
/host/spi-builder-workspace/Sources/PackageCollections/Providers/JSONPackageCollectionProvider.swift:38:16: warning: static property 'defaultCertPolicyKeys' is not concurrency-safe because non-'Sendable' type '[CertificatePolicyKey]' may have shared mutable state; this is an error in the Swift 6 language mode
36 | #endif
37 |
38 | static let defaultCertPolicyKeys: [CertificatePolicyKey] = [.default]
| `- warning: static property 'defaultCertPolicyKeys' is not concurrency-safe because non-'Sendable' type '[CertificatePolicyKey]' may have shared mutable state; this is an error in the Swift 6 language mode
39 |
40 | private let configuration: Configuration
/host/spi-builder-workspace/Sources/PackageCollectionsSigning/Certificate/CertificatePolicy.swift:906:13: note: enum 'CertificatePolicyKey' does not conform to the 'Sendable' protocol
904 | }
905 |
906 | public enum CertificatePolicyKey: Hashable, CustomStringConvertible {
| `- note: enum 'CertificatePolicyKey' does not conform to the 'Sendable' protocol
907 | case `default`(subjectUserID: String?)
908 | case appleSwiftPackageCollection(subjectUserID: String?)
/host/spi-builder-workspace/Sources/PackageCollections/Providers/JSONPackageCollectionProvider.swift:22:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'PackageCollectionsSigning'
20 |
21 | import PackageCollectionsModel
22 | import PackageCollectionsSigning
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'PackageCollectionsSigning'
23 | import PackageModel
24 | import SourceControl
:
36 | #endif
37 |
38 | static let defaultCertPolicyKeys: [CertificatePolicyKey] = [.default]
| |- note: annotate 'defaultCertPolicyKeys' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | private let configuration: Configuration
/host/spi-builder-workspace/Sources/PackageCollections/Providers/JSONPackageCollectionProvider.swift:66:29: warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
64 | additionalTrustedRootCerts: sourceCertPolicy.allRootCerts.map { Array($0) },
65 | observabilityScope: observabilityScope,
66 | callbackQueue: .sharedConcurrent
| `- warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
67 | )
68 | self.sourceCertPolicy = sourceCertPolicy
/host/spi-builder-workspace/Sources/Basics/ConcurrencyHelpers.swift:280:16: note: class property declared here
278 | public extension DispatchQueue {
279 | // a shared concurrent queue for running concurrent asynchronous operations
280 | static var sharedConcurrent = DispatchQueue(label: "swift.org.swiftpm.shared.concurrent", attributes: .concurrent)
| `- note: class property declared here
281 | }
282 |
/host/spi-builder-workspace/Sources/PackageCollections/Providers/JSONPackageCollectionProvider.swift:38:16: warning: static property 'defaultCertPolicyKeys' is not concurrency-safe because non-'Sendable' type '[CertificatePolicyKey]' may have shared mutable state; this is an error in the Swift 6 language mode
36 | #endif
37 |
38 | static let defaultCertPolicyKeys: [CertificatePolicyKey] = [.default]
| `- warning: static property 'defaultCertPolicyKeys' is not concurrency-safe because non-'Sendable' type '[CertificatePolicyKey]' may have shared mutable state; this is an error in the Swift 6 language mode
39 |
40 | private let configuration: Configuration
/host/spi-builder-workspace/Sources/PackageCollectionsSigning/Certificate/CertificatePolicy.swift:906:13: note: enum 'CertificatePolicyKey' does not conform to the 'Sendable' protocol
904 | }
905 |
906 | public enum CertificatePolicyKey: Hashable, CustomStringConvertible {
| `- note: enum 'CertificatePolicyKey' does not conform to the 'Sendable' protocol
907 | case `default`(subjectUserID: String?)
908 | case appleSwiftPackageCollection(subjectUserID: String?)
/host/spi-builder-workspace/Sources/PackageCollections/Providers/JSONPackageCollectionProvider.swift:22:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'PackageCollectionsSigning'
20 |
21 | import PackageCollectionsModel
22 | import PackageCollectionsSigning
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'PackageCollectionsSigning'
23 | import PackageModel
24 | import SourceControl
:
36 | #endif
37 |
38 | static let defaultCertPolicyKeys: [CertificatePolicyKey] = [.default]
| |- note: annotate 'defaultCertPolicyKeys' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | private let configuration: Configuration
/host/spi-builder-workspace/Sources/PackageCollections/Providers/JSONPackageCollectionProvider.swift:66:29: warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
64 | additionalTrustedRootCerts: sourceCertPolicy.allRootCerts.map { Array($0) },
65 | observabilityScope: observabilityScope,
66 | callbackQueue: .sharedConcurrent
| `- warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
67 | )
68 | self.sourceCertPolicy = sourceCertPolicy
/host/spi-builder-workspace/Sources/Basics/ConcurrencyHelpers.swift:280:16: note: class property declared here
278 | public extension DispatchQueue {
279 | // a shared concurrent queue for running concurrent asynchronous operations
280 | static var sharedConcurrent = DispatchQueue(label: "swift.org.swiftpm.shared.concurrent", attributes: .concurrent)
| `- note: class property declared here
281 | }
282 |
/host/spi-builder-workspace/Sources/PackageCollections/Providers/JSONPackageCollectionProvider.swift:38:16: warning: static property 'defaultCertPolicyKeys' is not concurrency-safe because non-'Sendable' type '[CertificatePolicyKey]' may have shared mutable state; this is an error in the Swift 6 language mode
36 | #endif
37 |
38 | static let defaultCertPolicyKeys: [CertificatePolicyKey] = [.default]
| `- warning: static property 'defaultCertPolicyKeys' is not concurrency-safe because non-'Sendable' type '[CertificatePolicyKey]' may have shared mutable state; this is an error in the Swift 6 language mode
39 |
40 | private let configuration: Configuration
/host/spi-builder-workspace/Sources/PackageCollectionsSigning/Certificate/CertificatePolicy.swift:906:13: note: enum 'CertificatePolicyKey' does not conform to the 'Sendable' protocol
904 | }
905 |
906 | public enum CertificatePolicyKey: Hashable, CustomStringConvertible {
| `- note: enum 'CertificatePolicyKey' does not conform to the 'Sendable' protocol
907 | case `default`(subjectUserID: String?)
908 | case appleSwiftPackageCollection(subjectUserID: String?)
/host/spi-builder-workspace/Sources/PackageCollections/Providers/JSONPackageCollectionProvider.swift:22:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'PackageCollectionsSigning'
20 |
21 | import PackageCollectionsModel
22 | import PackageCollectionsSigning
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'PackageCollectionsSigning'
23 | import PackageModel
24 | import SourceControl
:
36 | #endif
37 |
38 | static let defaultCertPolicyKeys: [CertificatePolicyKey] = [.default]
| |- note: annotate 'defaultCertPolicyKeys' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | private let configuration: Configuration
/host/spi-builder-workspace/Sources/PackageCollections/Providers/JSONPackageCollectionProvider.swift:66:29: warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
64 | additionalTrustedRootCerts: sourceCertPolicy.allRootCerts.map { Array($0) },
65 | observabilityScope: observabilityScope,
66 | callbackQueue: .sharedConcurrent
| `- warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
67 | )
68 | self.sourceCertPolicy = sourceCertPolicy
/host/spi-builder-workspace/Sources/Basics/ConcurrencyHelpers.swift:280:16: note: class property declared here
278 | public extension DispatchQueue {
279 | // a shared concurrent queue for running concurrent asynchronous operations
280 | static var sharedConcurrent = DispatchQueue(label: "swift.org.swiftpm.shared.concurrent", attributes: .concurrent)
| `- note: class property declared here
281 | }
282 |
[1239/1351] Compiling PackageCollections Trie.swift
[1240/1351] Compiling PackageCollections Utility.swift
[1243/1351] Emitting module PackageRegistry
/host/spi-builder-workspace/Sources/PackageRegistry/RegistryClient.swift:652:10: warning: associated value 'registryNotConfigured(scope:)' of 'Sendable'-conforming enum 'RegistryError' has non-sendable type 'PackageIdentity.Scope'; this is an error in the Swift 6 language mode
650 |
651 | public enum RegistryError: Error, CustomStringConvertible {
652 | case registryNotConfigured(scope: PackageIdentity.Scope?)
| `- warning: associated value 'registryNotConfigured(scope:)' of 'Sendable'-conforming enum 'RegistryError' has non-sendable type 'PackageIdentity.Scope'; this is an error in the Swift 6 language mode
653 | case invalidPackage(PackageIdentity)
654 | case invalidURL(URL)
/host/spi-builder-workspace/Sources/PackageModel/PackageIdentity.swift:105:19: note: struct 'Scope' does not conform to the 'Sendable' protocol
103 | extension PackageIdentity {
104 | /// Provides a namespace for related packages within a package registry.
105 | public struct Scope: LosslessStringConvertible, Hashable, Equatable, Comparable, ExpressibleByStringLiteral {
| `- note: struct 'Scope' does not conform to the 'Sendable' protocol
106 | public let description: String
107 |
/host/spi-builder-workspace/Sources/PackageRegistry/RegistryClient.swift:18:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'PackageModel'
16 | import PackageFingerprint
17 | import PackageLoading
18 | import PackageModel
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'PackageModel'
19 | import TSCBasic
20 |
/host/spi-builder-workspace/Sources/PackageRegistry/RegistryClient.swift:653:10: warning: associated value 'invalidPackage' of 'Sendable'-conforming enum 'RegistryError' has non-sendable type 'PackageIdentity'; this is an error in the Swift 6 language mode
651 | public enum RegistryError: Error, CustomStringConvertible {
652 | case registryNotConfigured(scope: PackageIdentity.Scope?)
653 | case invalidPackage(PackageIdentity)
| `- warning: associated value 'invalidPackage' of 'Sendable'-conforming enum 'RegistryError' has non-sendable type 'PackageIdentity'; this is an error in the Swift 6 language mode
654 | case invalidURL(URL)
655 | case invalidResponseStatus(expected: Int, actual: Int)
/host/spi-builder-workspace/Sources/PackageModel/PackageIdentity.swift:17:15: note: struct 'PackageIdentity' does not conform to the 'Sendable' protocol
15 |
16 | /// The canonical identifier for a package, based on its source location.
17 | public struct PackageIdentity: CustomStringConvertible {
| `- note: struct 'PackageIdentity' does not conform to the 'Sendable' protocol
18 | /// A textual representation of this instance.
19 | public let description: String
/host/spi-builder-workspace/Sources/PackageRegistry/RegistryConfiguration.swift:22:23: warning: static property 'version' is not concurrency-safe because non-'Sendable' type 'RegistryConfiguration.Version' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 | public struct RegistryConfiguration: Hashable {
18 | public enum Version: Int, Codable {
| `- note: consider making enum 'Version' conform to the 'Sendable' protocol
19 | case v1 = 1
20 | }
21 |
22 | public static let version: Version = .v1
| |- warning: static property 'version' is not concurrency-safe because non-'Sendable' type 'RegistryConfiguration.Version' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'version' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 | public var defaultRegistry: Registry?
[1244/1351] Compiling PackageRegistry Registry.swift
[1245/1351] Compiling PackageRegistry RegistryClient.swift
/host/spi-builder-workspace/Sources/PackageRegistry/RegistryClient.swift:652:10: warning: associated value 'registryNotConfigured(scope:)' of 'Sendable'-conforming enum 'RegistryError' has non-sendable type 'PackageIdentity.Scope'; this is an error in the Swift 6 language mode
650 |
651 | public enum RegistryError: Error, CustomStringConvertible {
652 | case registryNotConfigured(scope: PackageIdentity.Scope?)
| `- warning: associated value 'registryNotConfigured(scope:)' of 'Sendable'-conforming enum 'RegistryError' has non-sendable type 'PackageIdentity.Scope'; this is an error in the Swift 6 language mode
653 | case invalidPackage(PackageIdentity)
654 | case invalidURL(URL)
/host/spi-builder-workspace/Sources/PackageModel/PackageIdentity.swift:105:19: note: struct 'Scope' does not conform to the 'Sendable' protocol
103 | extension PackageIdentity {
104 | /// Provides a namespace for related packages within a package registry.
105 | public struct Scope: LosslessStringConvertible, Hashable, Equatable, Comparable, ExpressibleByStringLiteral {
| `- note: struct 'Scope' does not conform to the 'Sendable' protocol
106 | public let description: String
107 |
/host/spi-builder-workspace/Sources/PackageRegistry/RegistryClient.swift:18:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'PackageModel'
16 | import PackageFingerprint
17 | import PackageLoading
18 | import PackageModel
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'PackageModel'
19 | import TSCBasic
20 |
/host/spi-builder-workspace/Sources/PackageRegistry/RegistryClient.swift:653:10: warning: associated value 'invalidPackage' of 'Sendable'-conforming enum 'RegistryError' has non-sendable type 'PackageIdentity'; this is an error in the Swift 6 language mode
651 | public enum RegistryError: Error, CustomStringConvertible {
652 | case registryNotConfigured(scope: PackageIdentity.Scope?)
653 | case invalidPackage(PackageIdentity)
| `- warning: associated value 'invalidPackage' of 'Sendable'-conforming enum 'RegistryError' has non-sendable type 'PackageIdentity'; this is an error in the Swift 6 language mode
654 | case invalidURL(URL)
655 | case invalidResponseStatus(expected: Int, actual: Int)
/host/spi-builder-workspace/Sources/PackageModel/PackageIdentity.swift:17:15: note: struct 'PackageIdentity' does not conform to the 'Sendable' protocol
15 |
16 | /// The canonical identifier for a package, based on its source location.
17 | public struct PackageIdentity: CustomStringConvertible {
| `- note: struct 'PackageIdentity' does not conform to the 'Sendable' protocol
18 | /// A textual representation of this instance.
19 | public let description: String
/host/spi-builder-workspace/Sources/PackageRegistry/RegistryClient.swift:636:35: warning: capture of 'closure' with non-sendable type '(Result<T, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
634 | on queue: DispatchQueue) -> (Result<T, Error>) -> Void
635 | {
636 | { result in queue.async { closure(result) } }
| |- warning: capture of 'closure' with non-sendable type '(Result<T, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
637 | }
638 |
/host/spi-builder-workspace/Sources/PackageRegistry/RegistryClient.swift:636:43: warning: capture of 'result' with non-sendable type 'Result<T, any Error>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
631 | }
632 |
633 | private func makeAsync<T>(_ closure: @escaping (Result<T, Error>) -> Void,
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
634 | on queue: DispatchQueue) -> (Result<T, Error>) -> Void
635 | {
636 | { result in queue.async { closure(result) } }
| `- warning: capture of 'result' with non-sendable type 'Result<T, any Error>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
637 | }
638 |
[1246/1352] Wrapping AST for PackageRegistry for debugging
[1248/1352] Compiling PackageCollections TargetListResult.swift
[1249/1352] Compiling PackageCollections API.swift
[1250/1352] Compiling PackageCollections CVE.swift
[1251/1352] Compiling PackageCollections PackageList.swift
[1252/1352] Compiling PackageCollections PackageTypes.swift
[1253/1352] Compiling PackageCollections Search.swift
[1254/1352] Compiling PackageCollections PackageCollections.swift
[1255/1352] Compiling PackageCollections PackageIndex+Configuration.swift
[1256/1352] Compiling PackageCollections PackageCollections+CertificatePolicy.swift
[1257/1352] Emitting module SwiftDriver
/host/spi-builder-workspace/Sources/PackageCollections/Storage/SQLitePackageCollectionsStorage.swift:56:49: warning: reference to var 'localFileSystem' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
54 |
55 | init(location: SQLite.Location? = nil, configuration: Configuration = .init(), observabilityScope: ObservabilityScope) {
56 | self.location = location ?? (try? .path(localFileSystem.swiftPMCacheDirectory.appending(components: "package-collection.db"))) ?? .memory
| `- warning: reference to var 'localFileSystem' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
57 | switch self.location {
58 | case .path, .temporary:
/host/spi-builder-workspace/.build/checkouts/swift-tools-support-core/Sources/TSCBasic/FileSystem.swift:1163:12: note: var declared here
1161 |
1162 | /// Public access to the local FS proxy.
1163 | public var localFileSystem: FileSystem = LocalFileSystem()
| `- note: var declared here
1164 |
1165 | extension FileSystem {
/host/spi-builder-workspace/Sources/PackageCollections/Storage/SQLitePackageCollectionsStorage.swift:59:31: warning: reference to var 'localFileSystem' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
57 | switch self.location {
58 | case .path, .temporary:
59 | self.fileSystem = localFileSystem
| `- warning: reference to var 'localFileSystem' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
60 | case .memory:
61 | self.fileSystem = InMemoryFileSystem()
/host/spi-builder-workspace/.build/checkouts/swift-tools-support-core/Sources/TSCBasic/FileSystem.swift:1163:12: note: var declared here
1161 |
1162 | /// Public access to the local FS proxy.
1163 | public var localFileSystem: FileSystem = LocalFileSystem()
| `- note: var declared here
1164 |
1165 | extension FileSystem {
/host/spi-builder-workspace/Sources/PackageCollections/Storage/SQLitePackageCollectionsStorage.swift:95:27: warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
93 | // This throws error if we have exhausted our attempts
94 | let delay = try exponentialBackoff.nextDelay()
95 | DispatchQueue.sharedConcurrent.asyncAfter(deadline: .now() + delay) {
| `- warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
96 | do {
97 | try db.close()
/host/spi-builder-workspace/Sources/Basics/ConcurrencyHelpers.swift:280:16: note: class property declared here
278 | public extension DispatchQueue {
279 | // a shared concurrent queue for running concurrent asynchronous operations
280 | static var sharedConcurrent = DispatchQueue(label: "swift.org.swiftpm.shared.concurrent", attributes: .concurrent)
| `- note: class property declared here
281 | }
282 |
/host/spi-builder-workspace/Sources/PackageCollections/Storage/SQLitePackageCollectionsStorage.swift:97:25: warning: capture of 'db' with non-sendable type 'SQLite' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | DispatchQueue.sharedConcurrent.asyncAfter(deadline: .now() + delay) {
96 | do {
97 | try db.close()
| `- warning: capture of 'db' with non-sendable type 'SQLite' in a `@Sendable` closure; this is an error in the Swift 6 language mode
98 | callback(.success(()))
99 | } catch {
/host/spi-builder-workspace/Sources/Basics/SQLite.swift:18:15: note: struct 'SQLite' does not conform to the 'Sendable' protocol
16 |
17 | /// A minimal SQLite wrapper.
18 | public struct SQLite {
| `- note: struct 'SQLite' does not conform to the 'Sendable' protocol
19 | /// The location of the database.
20 | public let location: Location
/host/spi-builder-workspace/Sources/PackageCollections/Storage/SQLitePackageCollectionsStorage.swift:13:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Basics'
11 | //===----------------------------------------------------------------------===//
12 |
13 | import Basics
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Basics'
14 | import Dispatch
15 | import struct Foundation.Data
/host/spi-builder-workspace/Sources/PackageCollections/Storage/SQLitePackageCollectionsStorage.swift:98:21: warning: capture of 'callback' with non-sendable type '(Result<Void, any Error>) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
96 | do {
97 | try db.close()
98 | callback(.success(()))
| |- warning: capture of 'callback' with non-sendable type '(Result<Void, any Error>) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
99 | } catch {
100 | callback(.failure(error))
/host/spi-builder-workspace/Sources/PackageCollections/Storage/SQLitePackageCollectionsStorage.swift:134:23: warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
132 | func put(collection: Model.Collection,
133 | callback: @escaping (Result<Model.Collection, Error>) -> Void) {
134 | DispatchQueue.sharedConcurrent.async {
| `- warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
135 | self.get(identifier: collection.identifier) { getResult in
136 | do {
/host/spi-builder-workspace/Sources/Basics/ConcurrencyHelpers.swift:280:16: note: class property declared here
278 | public extension DispatchQueue {
279 | // a shared concurrent queue for running concurrent asynchronous operations
280 | static var sharedConcurrent = DispatchQueue(label: "swift.org.swiftpm.shared.concurrent", attributes: .concurrent)
| `- note: class property declared here
281 | }
282 |
/host/spi-builder-workspace/Sources/PackageCollections/Storage/SQLitePackageCollectionsStorage.swift:135:13: warning: capture of 'self' with non-sendable type 'SQLitePackageCollectionsStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | import TSCBasic
22 |
23 | final class SQLitePackageCollectionsStorage: PackageCollectionsStorage, Closable {
| `- note: class 'SQLitePackageCollectionsStorage' does not conform to the 'Sendable' protocol
24 | private static let packageCollectionsTableName = "package_collections"
25 | private static let packagesFTSName = "fts_packages"
:
133 | callback: @escaping (Result<Model.Collection, Error>) -> Void) {
134 | DispatchQueue.sharedConcurrent.async {
135 | self.get(identifier: collection.identifier) { getResult in
| `- warning: capture of 'self' with non-sendable type 'SQLitePackageCollectionsStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
136 | do {
137 | // write to db
/host/spi-builder-workspace/Sources/PackageCollections/Storage/SQLitePackageCollectionsStorage.swift:135:34: warning: capture of 'collection' with non-sendable type 'Model.Collection' (aka 'PackageCollectionsModel.Collection') in a `@Sendable` closure; this is an error in the Swift 6 language mode
133 | callback: @escaping (Result<Model.Collection, Error>) -> Void) {
134 | DispatchQueue.sharedConcurrent.async {
135 | self.get(identifier: collection.identifier) { getResult in
| `- warning: capture of 'collection' with non-sendable type 'Model.Collection' (aka 'PackageCollectionsModel.Collection') in a `@Sendable` closure; this is an error in the Swift 6 language mode
136 | do {
137 | // write to db
/host/spi-builder-workspace/Sources/PackageCollections/Model/Collection.swift:27:19: note: consider making struct 'Collection' conform to the 'Sendable' protocol
25 | extension PackageCollectionsModel {
26 | /// A `Collection` is a collection of packages.
27 | public struct Collection: Equatable, Codable {
| `- note: consider making struct 'Collection' conform to the 'Sendable' protocol
28 | public typealias Identifier = CollectionIdentifier
29 | public typealias Source = CollectionSource
/host/spi-builder-workspace/Sources/PackageCollections/Storage/SQLitePackageCollectionsStorage.swift:163:21: warning: capture of 'callback' with non-sendable type '(Result<Model.Collection, any Error>) -> Void' (aka '(Result<PackageCollectionsModel.Collection, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
161 | // write to cache
162 | self.cache[collection.identifier] = collection
163 | callback(.success(collection))
| |- warning: capture of 'callback' with non-sendable type '(Result<Model.Collection, any Error>) -> Void' (aka '(Result<PackageCollectionsModel.Collection, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
164 | } catch {
165 | callback(.failure(error))
/host/spi-builder-workspace/Sources/PackageCollections/Storage/SQLitePackageCollectionsStorage.swift:139:25: warning: capture of 'self' with non-sendable type 'SQLitePackageCollectionsStorage' in an isolated closure; this is an error in the Swift 6 language mode
21 | import TSCBasic
22 |
23 | final class SQLitePackageCollectionsStorage: PackageCollectionsStorage, Closable {
| `- note: class 'SQLitePackageCollectionsStorage' does not conform to the 'Sendable' protocol
24 | private static let packageCollectionsTableName = "package_collections"
25 | private static let packagesFTSName = "fts_packages"
:
137 | // write to db
138 | let query = "INSERT OR REPLACE INTO \(Self.packageCollectionsTableName) VALUES (?, ?);"
139 | try self.executeStatement(query) { statement -> Void in
| `- warning: capture of 'self' with non-sendable type 'SQLitePackageCollectionsStorage' in an isolated closure; this is an error in the Swift 6 language mode
140 | let data = try self.encoder.encode(collection)
141 |
/host/spi-builder-workspace/Sources/PackageCollections/Storage/SQLitePackageCollectionsStorage.swift:140:60: warning: capture of 'collection' with non-sendable type 'Model.Collection' (aka 'PackageCollectionsModel.Collection') in an isolated closure; this is an error in the Swift 6 language mode
138 | let query = "INSERT OR REPLACE INTO \(Self.packageCollectionsTableName) VALUES (?, ?);"
139 | try self.executeStatement(query) { statement -> Void in
140 | let data = try self.encoder.encode(collection)
| `- warning: capture of 'collection' with non-sendable type 'Model.Collection' (aka 'PackageCollectionsModel.Collection') in an isolated closure; this is an error in the Swift 6 language mode
141 |
142 | let bindings: [SQLite.SQLiteValue] = [
/host/spi-builder-workspace/Sources/PackageCollections/Model/Collection.swift:27:19: note: consider making struct 'Collection' conform to the 'Sendable' protocol
25 | extension PackageCollectionsModel {
26 | /// A `Collection` is a collection of packages.
27 | public struct Collection: Equatable, Codable {
| `- note: consider making struct 'Collection' conform to the 'Sendable' protocol
28 | public typealias Identifier = CollectionIdentifier
29 | public typealias Source = CollectionSource
/host/spi-builder-workspace/Sources/PackageCollections/Storage/SQLitePackageCollectionsStorage.swift:163:21: warning: capture of 'callback' with non-sendable type '(Result<Model.Collection, any Error>) -> Void' (aka '(Result<PackageCollectionsModel.Collection, any Error>) -> ()') in an isolated closure; this is an error in the Swift 6 language mode
161 | // write to cache
162 | self.cache[collection.identifier] = collection
163 | callback(.success(collection))
| |- warning: capture of 'callback' with non-sendable type '(Result<Model.Collection, any Error>) -> Void' (aka '(Result<PackageCollectionsModel.Collection, any Error>) -> ()') in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
164 | } catch {
165 | callback(.failure(error))
/host/spi-builder-workspace/Sources/PackageCollections/Storage/SQLitePackageCollectionsStorage.swift:140:40: warning: capture of 'self' with non-sendable type 'SQLitePackageCollectionsStorage' in an isolated closure; this is an error in the Swift 6 language mode
21 | import TSCBasic
22 |
23 | final class SQLitePackageCollectionsStorage: PackageCollectionsStorage, Closable {
| `- note: class 'SQLitePackageCollectionsStorage' does not conform to the 'Sendable' protocol
24 | private static let packageCollectionsTableName = "package_collections"
25 | private static let packagesFTSName = "fts_packages"
:
138 | let query = "INSERT OR REPLACE INTO \(Self.packageCollectionsTableName) VALUES (?, ?);"
139 | try self.executeStatement(query) { statement -> Void in
140 | let data = try self.encoder.encode(collection)
| `- warning: capture of 'self' with non-sendable type 'SQLitePackageCollectionsStorage' in an isolated closure; this is an error in the Swift 6 language mode
141 |
142 | let bindings: [SQLite.SQLiteValue] = [
/host/spi-builder-workspace/Sources/PackageCollections/Storage/SQLitePackageCollectionsStorage.swift:140:60: warning: capture of 'collection' with non-sendable type 'Model.Collection' (aka 'PackageCollectionsModel.Collection') in an isolated closure; this is an error in the Swift 6 language mode
138 | let query = "INSERT OR REPLACE INTO \(Self.packageCollectionsTableName) VALUES (?, ?);"
139 | try self.executeStatement(query) { statement -> Void in
140 | let data = try self.encoder.encode(collection)
| `- warning: capture of 'collection' with non-sendable type 'Model.Collection' (aka 'PackageCollectionsModel.Collection') in an isolated closure; this is an error in the Swift 6 language mode
141 |
142 | let bindings: [SQLite.SQLiteValue] = [
/host/spi-builder-workspace/Sources/PackageCollections/Model/Collection.swift:27:19: note: consider making struct 'Collection' conform to the 'Sendable' protocol
25 | extension PackageCollectionsModel {
26 | /// A `Collection` is a collection of packages.
27 | public struct Collection: Equatable, Codable {
| `- note: consider making struct 'Collection' conform to the 'Sendable' protocol
28 | public typealias Identifier = CollectionIdentifier
29 | public typealias Source = CollectionSource
/host/spi-builder-workspace/Sources/PackageCollections/Storage/SQLitePackageCollectionsStorage.swift:173:23: warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
171 | func remove(identifier: Model.CollectionIdentifier,
172 | callback: @escaping (Result<Void, Error>) -> Void) {
173 | DispatchQueue.sharedConcurrent.async {
| `- warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
174 | do {
175 | // write to db
/host/spi-builder-workspace/Sources/Basics/ConcurrencyHelpers.swift:280:16: note: class property declared here
278 | public extension DispatchQueue {
279 | // a shared concurrent queue for running concurrent asynchronous operations
280 | static var sharedConcurrent = DispatchQueue(label: "swift.org.swiftpm.shared.concurrent", attributes: .concurrent)
| `- note: class property declared here
281 | }
282 |
/host/spi-builder-workspace/Sources/PackageCollections/Storage/SQLitePackageCollectionsStorage.swift:177:21: warning: capture of 'self' with non-sendable type 'SQLitePackageCollectionsStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | import TSCBasic
22 |
23 | final class SQLitePackageCollectionsStorage: PackageCollectionsStorage, Closable {
| `- note: class 'SQLitePackageCollectionsStorage' does not conform to the 'Sendable' protocol
24 | private static let packageCollectionsTableName = "package_collections"
25 | private static let packagesFTSName = "fts_packages"
:
175 | // write to db
176 | let query = "DELETE FROM \(Self.packageCollectionsTableName) WHERE key = ?;"
177 | try self.executeStatement(query) { statement -> Void in
| `- warning: capture of 'self' with non-sendable type 'SQLitePackageCollectionsStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
178 | let bindings: [SQLite.SQLiteValue] = [
179 | .string(identifier.databaseKey()),
/host/spi-builder-workspace/Sources/PackageCollections/Storage/SQLitePackageCollectionsStorage.swift:179:33: warning: capture of 'identifier' with non-sendable type 'Model.CollectionIdentifier' (aka 'PackageCollectionsModel.CollectionIdentifier') in a `@Sendable` closure; this is an error in the Swift 6 language mode
177 | try self.executeStatement(query) { statement -> Void in
178 | let bindings: [SQLite.SQLiteValue] = [
179 | .string(identifier.databaseKey()),
| `- warning: capture of 'identifier' with non-sendable type 'Model.CollectionIdentifier' (aka 'PackageCollectionsModel.CollectionIdentifier') in a `@Sendable` closure; this is an error in the Swift 6 language mode
180 | ]
181 | try statement.bind(bindings)
/host/spi-builder-workspace/Sources/PackageCollections/Model/Collection.swift:141:17: note: consider making enum 'CollectionIdentifier' conform to the 'Sendable' protocol
139 | extension PackageCollectionsModel {
140 | /// Represents the identifier of a `Collection`
141 | public enum CollectionIdentifier: Hashable, Comparable {
| `- note: consider making enum 'CollectionIdentifier' conform to the 'Sendable' protocol
142 | /// JSON based package collection at URL
143 | case json(URL)
/host/spi-builder-workspace/Sources/PackageCollections/Storage/SQLitePackageCollectionsStorage.swift:190:17: warning: capture of 'callback' with non-sendable type '(Result<Void, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
188 | // write to cache
189 | self.cache[identifier] = nil
190 | callback(.success(()))
| |- warning: capture of 'callback' with non-sendable type '(Result<Void, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
191 | } catch {
192 | callback(.failure(error))
/host/spi-builder-workspace/Sources/PackageCollections/Storage/SQLitePackageCollectionsStorage.swift:179:33: warning: capture of 'identifier' with non-sendable type 'Model.CollectionIdentifier' (aka 'PackageCollectionsModel.CollectionIdentifier') in an isolated closure; this is an error in the Swift 6 language mode
177 | try self.executeStatement(query) { statement -> Void in
178 | let bindings: [SQLite.SQLiteValue] = [
179 | .string(identifier.databaseKey()),
| `- warning: capture of 'identifier' with non-sendable type 'Model.CollectionIdentifier' (aka 'PackageCollectionsModel.CollectionIdentifier') in an isolated closure; this is an error in the Swift 6 language mode
180 | ]
181 | try statement.bind(bindings)
/host/spi-builder-workspace/Sources/PackageCollections/Model/Collection.swift:141:17: note: consider making enum 'CollectionIdentifier' conform to the 'Sendable' protocol
139 | extension PackageCollectionsModel {
140 | /// Represents the identifier of a `Collection`
141 | public enum CollectionIdentifier: Hashable, Comparable {
| `- note: consider making enum 'CollectionIdentifier' conform to the 'Sendable' protocol
142 | /// JSON based package collection at URL
143 | case json(URL)
/host/spi-builder-workspace/Sources/PackageCollections/Storage/SQLitePackageCollectionsStorage.swift:205:23: warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
203 |
204 | // go to db if not found
205 | DispatchQueue.sharedConcurrent.async {
| `- warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
206 | do {
207 | let query = "SELECT value FROM \(Self.packageCollectionsTableName) WHERE key = ? LIMIT 1;"
/host/spi-builder-workspace/Sources/Basics/ConcurrencyHelpers.swift:280:16: note: class property declared here
278 | public extension DispatchQueue {
279 | // a shared concurrent queue for running concurrent asynchronous operations
280 | static var sharedConcurrent = DispatchQueue(label: "swift.org.swiftpm.shared.concurrent", attributes: .concurrent)
| `- note: class property declared here
281 | }
282 |
/host/spi-builder-workspace/Sources/PackageCollections/Storage/SQLitePackageCollectionsStorage.swift:208:38: warning: capture of 'self' with non-sendable type 'SQLitePackageCollectionsStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | import TSCBasic
22 |
23 | final class SQLitePackageCollectionsStorage: PackageCollectionsStorage, Closable {
| `- note: class 'SQLitePackageCollectionsStorage' does not conform to the 'Sendable' protocol
24 | private static let packageCollectionsTableName = "package_collections"
25 | private static let packagesFTSName = "fts_packages"
:
206 | do {
207 | let query = "SELECT value FROM \(Self.packageCollectionsTableName) WHERE key = ? LIMIT 1;"
208 | let collection = try self.executeStatement(query) { statement -> Model.Collection in
| `- warning: capture of 'self' with non-sendable type 'SQLitePackageCollectionsStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
209 | try statement.bind([.string(identifier.databaseKey())])
210 |
/host/spi-builder-workspace/Sources/PackageCollections/Storage/SQLitePackageCollectionsStorage.swift:209:49: warning: capture of 'identifier' with non-sendable type 'Model.CollectionIdentifier' (aka 'PackageCollectionsModel.CollectionIdentifier') in a `@Sendable` closure; this is an error in the Swift 6 language mode
207 | let query = "SELECT value FROM \(Self.packageCollectionsTableName) WHERE key = ? LIMIT 1;"
208 | let collection = try self.executeStatement(query) { statement -> Model.Collection in
209 | try statement.bind([.string(identifier.databaseKey())])
| `- warning: capture of 'identifier' with non-sendable type 'Model.CollectionIdentifier' (aka 'PackageCollectionsModel.CollectionIdentifier') in a `@Sendable` closure; this is an error in the Swift 6 language mode
210 |
211 | let row = try statement.step()
/host/spi-builder-workspace/Sources/PackageCollections/Model/Collection.swift:141:17: note: consider making enum 'CollectionIdentifier' conform to the 'Sendable' protocol
139 | extension PackageCollectionsModel {
140 | /// Represents the identifier of a `Collection`
141 | public enum CollectionIdentifier: Hashable, Comparable {
| `- note: consider making enum 'CollectionIdentifier' conform to the 'Sendable' protocol
142 | /// JSON based package collection at URL
143 | case json(URL)
/host/spi-builder-workspace/Sources/PackageCollections/Storage/SQLitePackageCollectionsStorage.swift:219:17: warning: capture of 'callback' with non-sendable type '(Result<Model.Collection, any Error>) -> Void' (aka '(Result<PackageCollectionsModel.Collection, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
217 | return collection
218 | }
219 | callback(.success(collection))
| |- warning: capture of 'callback' with non-sendable type '(Result<Model.Collection, any Error>) -> Void' (aka '(Result<PackageCollectionsModel.Collection, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
220 | } catch {
221 | callback(.failure(error))
/host/spi-builder-workspace/Sources/PackageCollections/Storage/SQLitePackageCollectionsStorage.swift:209:49: warning: capture of 'identifier' with non-sendable type 'Model.CollectionIdentifier' (aka 'PackageCollectionsModel.CollectionIdentifier') in an isolated closure; this is an error in the Swift 6 language mode
207 | let query = "SELECT value FROM \(Self.packageCollectionsTableName) WHERE key = ? LIMIT 1;"
208 | let collection = try self.executeStatement(query) { statement -> Model.Collection in
209 | try statement.bind([.string(identifier.databaseKey())])
| `- warning: capture of 'identifier' with non-sendable type 'Model.CollectionIdentifier' (aka 'PackageCollectionsModel.CollectionIdentifier') in an isolated closure; this is an error in the Swift 6 language mode
210 |
211 | let row = try statement.step()
/host/spi-builder-workspace/Sources/PackageCollections/Model/Collection.swift:141:17: note: consider making enum 'CollectionIdentifier' conform to the 'Sendable' protocol
139 | extension PackageCollectionsModel {
140 | /// Represents the identifier of a `Collection`
141 | public enum CollectionIdentifier: Hashable, Comparable {
| `- note: consider making enum 'CollectionIdentifier' conform to the 'Sendable' protocol
142 | /// JSON based package collection at URL
143 | case json(URL)
/host/spi-builder-workspace/Sources/PackageCollections/Storage/SQLitePackageCollectionsStorage.swift:216:42: warning: capture of 'self' with non-sendable type 'SQLitePackageCollectionsStorage' in an isolated closure; this is an error in the Swift 6 language mode
21 | import TSCBasic
22 |
23 | final class SQLitePackageCollectionsStorage: PackageCollectionsStorage, Closable {
| `- note: class 'SQLitePackageCollectionsStorage' does not conform to the 'Sendable' protocol
24 | private static let packageCollectionsTableName = "package_collections"
25 | private static let packagesFTSName = "fts_packages"
:
214 | }
215 |
216 | let collection = try self.decoder.decode(Model.Collection.self, from: data)
| `- warning: capture of 'self' with non-sendable type 'SQLitePackageCollectionsStorage' in an isolated closure; this is an error in the Swift 6 language mode
217 | return collection
218 | }
/host/spi-builder-workspace/Sources/PackageCollections/Storage/SQLitePackageCollectionsStorage.swift:235:23: warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
233 |
234 | // go to db if not found
235 | DispatchQueue.sharedConcurrent.async {
| `- warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
236 | do {
237 | var blobs = [Data]()
/host/spi-builder-workspace/Sources/Basics/ConcurrencyHelpers.swift:280:16: note: class property declared here
278 | public extension DispatchQueue {
279 | // a shared concurrent queue for running concurrent asynchronous operations
280 | static var sharedConcurrent = DispatchQueue(label: "swift.org.swiftpm.shared.concurrent", attributes: .concurrent)
| `- note: class property declared here
281 | }
282 |
/host/spi-builder-workspace/Sources/PackageCollections/Storage/SQLitePackageCollectionsStorage.swift:238:38: warning: capture of 'identifiers' with non-sendable type '[Model.CollectionIdentifier]?' (aka 'Optional<Array<PackageCollectionsModel.CollectionIdentifier>>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
236 | do {
237 | var blobs = [Data]()
238 | if let identifiers = identifiers {
| `- warning: capture of 'identifiers' with non-sendable type '[Model.CollectionIdentifier]?' (aka 'Optional<Array<PackageCollectionsModel.CollectionIdentifier>>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
239 | var index = 0
240 | while index < identifiers.count {
/host/spi-builder-workspace/Sources/PackageCollections/Model/Collection.swift:141:17: note: consider making enum 'CollectionIdentifier' conform to the 'Sendable' protocol
139 | extension PackageCollectionsModel {
140 | /// Represents the identifier of a `Collection`
141 | public enum CollectionIdentifier: Hashable, Comparable {
| `- note: consider making enum 'CollectionIdentifier' conform to the 'Sendable' protocol
142 | /// JSON based package collection at URL
143 | case json(URL)
/host/spi-builder-workspace/Sources/PackageCollections/Storage/SQLitePackageCollectionsStorage.swift:241:71: warning: capture of 'self' with non-sendable type 'SQLitePackageCollectionsStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | import TSCBasic
22 |
23 | final class SQLitePackageCollectionsStorage: PackageCollectionsStorage, Closable {
| `- note: class 'SQLitePackageCollectionsStorage' does not conform to the 'Sendable' protocol
24 | private static let packageCollectionsTableName = "package_collections"
25 | private static let packagesFTSName = "fts_packages"
:
239 | var index = 0
240 | while index < identifiers.count {
241 | let slice = identifiers[index ..< min(index + self.configuration.batchSize, identifiers.count)]
| `- warning: capture of 'self' with non-sendable type 'SQLitePackageCollectionsStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
242 | let query = "SELECT value FROM \(Self.packageCollectionsTableName) WHERE key in (\(slice.map { _ in "?" }.joined(separator: ",")));"
243 | try self.executeStatement(query) { statement in
/host/spi-builder-workspace/Sources/PackageCollections/Storage/SQLitePackageCollectionsStorage.swift:283:21: warning: capture of 'callback' with non-sendable type '(Result<[Model.Collection], any Error>) -> Void' (aka '(Result<Array<PackageCollectionsModel.Collection>, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
281 | self.observabilityScope.emit(warning: "Some stored collections could not be deserialized. Please refresh the collections to resolve this issue.")
282 | }
283 | callback(.success(collections.get()))
| |- warning: capture of 'callback' with non-sendable type '(Result<[Model.Collection], any Error>) -> Void' (aka '(Result<Array<PackageCollectionsModel.Collection>, any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
284 | }
285 |
/host/spi-builder-workspace/Sources/PackageCollections/Storage/SQLitePackageCollectionsStorage.swift:266:30: warning: capture of 'self' with non-sendable type 'SQLitePackageCollectionsStorage' in an isolated closure; this is an error in the Swift 6 language mode
21 | import TSCBasic
22 |
23 | final class SQLitePackageCollectionsStorage: PackageCollectionsStorage, Closable {
| `- note: class 'SQLitePackageCollectionsStorage' does not conform to the 'Sendable' protocol
24 | private static let packageCollectionsTableName = "package_collections"
25 | private static let packagesFTSName = "fts_packages"
:
264 | if blobs.count < self.configuration.batchSize {
265 | collections = .init(blobs.compactMap { data -> Model.Collection? in
266 | try? self.decoder.decode(Model.Collection.self, from: data)
| `- warning: capture of 'self' with non-sendable type 'SQLitePackageCollectionsStorage' in an isolated closure; this is an error in the Swift 6 language mode
267 | })
268 | } else {
/host/spi-builder-workspace/Sources/PackageCollections/Storage/SQLitePackageCollectionsStorage.swift:272:54: warning: capture of 'self' with non-sendable type 'SQLitePackageCollectionsStorage' in an isolated closure; this is an error in the Swift 6 language mode
21 | import TSCBasic
22 |
23 | final class SQLitePackageCollectionsStorage: PackageCollectionsStorage, Closable {
| `- note: class 'SQLitePackageCollectionsStorage' does not conform to the 'Sendable' protocol
24 | private static let packageCollectionsTableName = "package_collections"
25 | private static let packagesFTSName = "fts_packages"
:
270 | blobs.forEach { data in
271 | DispatchQueue.sharedConcurrent.async(group: sync) {
272 | if let collection = try? self.decoder.decode(Model.Collection.self, from: data) {
| `- warning: capture of 'self' with non-sendable type 'SQLitePackageCollectionsStorage' in an isolated closure; this is an error in the Swift 6 language mode
273 | collections.append(collection)
274 | }
/host/spi-builder-workspace/Sources/PackageCollections/Storage/SQLitePackageCollectionsStorage.swift:271:39: warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
269 | collections = .init()
270 | blobs.forEach { data in
271 | DispatchQueue.sharedConcurrent.async(group: sync) {
| `- warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
272 | if let collection = try? self.decoder.decode(Model.Collection.self, from: data) {
273 | collections.append(collection)
/host/spi-builder-workspace/Sources/Basics/ConcurrencyHelpers.swift:280:16: note: class property declared here
278 | public extension DispatchQueue {
279 | // a shared concurrent queue for running concurrent asynchronous operations
280 | static var sharedConcurrent = DispatchQueue(label: "swift.org.swiftpm.shared.concurrent", attributes: .concurrent)
| `- note: class property declared here
281 | }
282 |
/host/spi-builder-workspace/Sources/PackageCollections/Storage/SQLitePackageCollectionsStorage.swift:272:54: warning: capture of 'self' with non-sendable type 'SQLitePackageCollectionsStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | import TSCBasic
22 |
23 | final class SQLitePackageCollectionsStorage: PackageCollectionsStorage, Closable {
| `- note: class 'SQLitePackageCollectionsStorage' does not conform to the 'Sendable' protocol
24 | private static let packageCollectionsTableName = "package_collections"
25 | private static let packagesFTSName = "fts_packages"
:
270 | blobs.forEach { data in
271 | DispatchQueue.sharedConcurrent.async(group: sync) {
272 | if let collection = try? self.decoder.decode(Model.Collection.self, from: data) {
| `- warning: capture of 'self' with non-sendable type 'SQLitePackageCollectionsStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
273 | collections.append(collection)
274 | }
/host/spi-builder-workspace/Sources/PackageCollections/Storage/SQLitePackageCollectionsStorage.swift:273:33: warning: capture of 'collections' with non-sendable type 'ThreadSafeArrayStore<Model.Collection>' (aka 'ThreadSafeArrayStore<PackageCollectionsModel.Collection>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
271 | DispatchQueue.sharedConcurrent.async(group: sync) {
272 | if let collection = try? self.decoder.decode(Model.Collection.self, from: data) {
273 | collections.append(collection)
| `- warning: capture of 'collections' with non-sendable type 'ThreadSafeArrayStore<Model.Collection>' (aka 'ThreadSafeArrayStore<PackageCollectionsModel.Collection>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
274 | }
275 | }
/host/spi-builder-workspace/Sources/Basics/ConcurrencyHelpers.swift:101:20: note: generic class 'ThreadSafeArrayStore' does not conform to the 'Sendable' protocol
99 |
100 | /// Thread-safe array like structure
101 | public final class ThreadSafeArrayStore<Value> {
| `- note: generic class 'ThreadSafeArrayStore' does not conform to the 'Sendable' protocol
102 | private var underlying: [Value]
103 | private let lock = NSLock()
/host/spi-builder-workspace/Sources/PackageCollections/Storage/SQLitePackageCollectionsStorage.swift:279:37: warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
277 | }
278 |
279 | sync.notify(queue: .sharedConcurrent) {
| `- warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
280 | if collections.count != blobs.count {
281 | self.observabilityScope.emit(warning: "Some stored collections could not be deserialized. Please refresh the collections to resolve this issue.")
/host/spi-builder-workspace/Sources/Basics/ConcurrencyHelpers.swift:280:16: note: class property declared here
278 | public extension DispatchQueue {
279 | // a shared concurrent queue for running concurrent asynchronous operations
280 | static var sharedConcurrent = DispatchQueue(label: "swift.org.swiftpm.shared.concurrent", attributes: .concurrent)
| `- note: class property declared here
281 | }
282 |
/host/spi-builder-workspace/Sources/PackageCollections/Storage/SQLitePackageCollectionsStorage.swift:281:25: warning: capture of 'self' with non-sendable type 'SQLitePackageCollectionsStorage' in an isolated closure; this is an error in the Swift 6 language mode
21 | import TSCBasic
22 |
23 | final class SQLitePackageCollectionsStorage: PackageCollectionsStorage, Closable {
| `- note: class 'SQLitePackageCollectionsStorage' does not conform to the 'Sendable' protocol
24 | private static let packageCollectionsTableName = "package_collections"
25 | private static let packagesFTSName = "fts_packages"
:
279 | sync.notify(queue: .sharedConcurrent) {
280 | if collections.count != blobs.count {
281 | self.observabilityScope.emit(warning: "Some stored collections could not be deserialized. Please refresh the collections to resolve this issue.")
| `- warning: capture of 'self' with non-sendable type 'SQLitePackageCollectionsStorage' in an isolated closure; this is an error in the Swift 6 language mode
282 | }
283 | callback(.success(collections.get()))
/host/spi-builder-workspace/Sources/PackageCollections/Storage/SQLitePackageCollectionsStorage.swift:283:21: warning: capture of 'callback' with non-sendable type '(Result<[Model.Collection], any Error>) -> Void' (aka '(Result<Array<PackageCollectionsModel.Collection>, any Error>) -> ()') in an isolated closure; this is an error in the Swift 6 language mode
281 | self.observabilityScope.emit(warning: "Some stored collections could not be deserialized. Please refresh the collections to resolve this issue.")
282 | }
283 | callback(.success(collections.get()))
| |- warning: capture of 'callback' with non-sendable type '(Result<[Model.Collection], any Error>) -> Void' (aka '(Result<Array<PackageCollectionsModel.Collection>, any Error>) -> ()') in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
284 | }
285 |
/host/spi-builder-workspace/Sources/PackageCollections/Storage/SQLitePackageCollectionsStorage.swift:826:23: warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
824 | }
825 |
826 | DispatchQueue.sharedConcurrent.async(group: nil, qos: .background, flags: .assignCurrentContext) {
| `- warning: reference to class property 'sharedConcurrent' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
827 | do {
828 | try self.populateTargetTrieLock.withLock { // Prevent race to populate targetTrie
/host/spi-builder-workspace/Sources/Basics/ConcurrencyHelpers.swift:280:16: note: class property declared here
278 | public extension DispatchQueue {
279 | // a shared concurrent queue for running concurrent asynchronous operations
280 | static var sharedConcurrent = DispatchQueue(label: "swift.org.swiftpm.shared.concurrent", attributes: .concurrent)
| `- note: class property declared here
281 | }
282 |
/host/spi-builder-workspace/Sources/PackageCollections/Storage/SQLitePackageCollectionsStorage.swift:828:21: warning: capture of 'self' with non-sendable type 'SQLitePackageCollectionsStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | import TSCBasic
22 |
23 | final class SQLitePackageCollectionsStorage: PackageCollectionsStorage, Closable {
| `- note: class 'SQLitePackageCollectionsStorage' does not conform to the 'Sendable' protocol
24 | private static let packageCollectionsTableName = "package_collections"
25 | private static let packagesFTSName = "fts_packages"
:
826 | DispatchQueue.sharedConcurrent.async(group: nil, qos: .background, flags: .assignCurrentContext) {
827 | do {
828 | try self.populateTargetTrieLock.withLock { // Prevent race to populate targetTrie
| `- warning: capture of 'self' with non-sendable type 'SQLitePackageCollectionsStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
829 | // Exit early if we've already done the computation before
830 | guard self.targetTrieReady == nil else {
/host/spi-builder-workspace/Sources/PackageCollections/Storage/SQLitePackageCollectionsStorage.swift:869:17: warning: capture of 'callback' with non-sendable type '(Result<Void, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
867 | self.targetTrieReady = true
868 | }
869 | callback(.success(()))
| |- warning: capture of 'callback' with non-sendable type '(Result<Void, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
870 | } catch {
871 | callback(.failure(error))
/host/spi-builder-workspace/Sources/PackageCollections/Storage/SQLitePackageCollectionsStorage.swift:830:27: warning: capture of 'self' with non-sendable type 'SQLitePackageCollectionsStorage' in an isolated closure; this is an error in the Swift 6 language mode
21 | import TSCBasic
22 |
23 | final class SQLitePackageCollectionsStorage: PackageCollectionsStorage, Closable {
| `- note: class 'SQLitePackageCollectionsStorage' does not conform to the 'Sendable' protocol
24 | private static let packageCollectionsTableName = "package_collections"
25 | private static let packagesFTSName = "fts_packages"
:
828 | try self.populateTargetTrieLock.withLock { // Prevent race to populate targetTrie
829 | // Exit early if we've already done the computation before
830 | guard self.targetTrieReady == nil else {
| `- warning: capture of 'self' with non-sendable type 'SQLitePackageCollectionsStorage' in an isolated closure; this is an error in the Swift 6 language mode
831 | return
832 | }
/host/spi-builder-workspace/Sources/PackageCollections/Storage/SQLitePackageCollectionsStorage.swift:835:54: warning: capture of 'self' with non-sendable type 'SQLitePackageCollectionsStorage' in an isolated closure; this is an error in the Swift 6 language mode
21 | import TSCBasic
22 |
23 | final class SQLitePackageCollectionsStorage: PackageCollectionsStorage, Closable {
| `- note: class 'SQLitePackageCollectionsStorage' does not conform to the 'Sendable' protocol
24 | private static let packageCollectionsTableName = "package_collections"
25 | private static let packagesFTSName = "fts_packages"
:
833 |
834 | // since running on low priority thread make sure the database has not already gone away
835 | switch (try self.withStateLock { self.state }) {
| `- warning: capture of 'self' with non-sendable type 'SQLitePackageCollectionsStorage' in an isolated closure; this is an error in the Swift 6 language mode
836 | case .disconnected, .disconnecting:
837 | self.targetTrieReady = false
BUILD FAILURE 6.0 linux