Build Information
Failed to build SwiftPM, reference 0.50800.0 (558eda
), with Swift 6.0 (beta) for Linux on 15 Sep 2024 02:41:58 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
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 |
[1165/1351] Compiling SwiftDriver ModuleDependencyGraph.swift
[1166/1351] Compiling SwiftDriver DependencySource.swift
[1167/1351] Compiling SwiftDriver Integrator.swift
[1168/1351] Compiling SwiftDriver InternedStrings.swift
[1169/1351] Compiling SwiftDriver Node.swift
[1170/1351] Compiling SwiftDriver NodeFinder.swift
[1171/1351] Compiling SwiftDriver Tracer.swift
[1172/1351] Compiling SwiftDriver Multidictionary.swift
[1173/1351] Compiling SwiftDriver SourceFileDependencyGraph.swift
[1174/1351] Compiling SwiftDriver SwiftSourceFile.swift
[1175/1351] Compiling SwiftDriver TwoDMap.swift
[1176/1351] Compiling SwiftDriver TwoLevelMap.swift
[1177/1351] Compiling SwiftDriver APIDigesterJobs.swift
[1178/1351] Compiling SwiftDriver AutolinkExtractJob.swift
[1179/1351] Compiling SwiftDriver DependencyGraphBuilder.swift
[1180/1351] Compiling SwiftDriver Loader.swift
[1181/1351] Compiling SwiftDriver SwiftScan.swift
[1182/1351] Compiling SwiftDriver DarwinToolchain.swift
[1183/1351] Compiling SwiftDriver GenericUnixToolchain.swift
[1184/1351] Compiling SwiftDriver Toolchain.swift
[1185/1351] Compiling SwiftDriver WebAssemblyToolchain.swift
[1186/1351] Compiling SwiftDriver WindowsToolchain.swift
[1187/1351] Compiling SwiftDriver SimpleExecutor.swift
[1188/1351] Compiling SwiftDriver ToolingUtil.swift
[1189/1351] Compiling SwiftDriver DOTJobGraphSerializer.swift
[1190/1351] Compiling SwiftDriver DOTModuleDependencyGraphSerializer.swift
[1191/1351] Compiling SwiftDriver DateAdditions.swift
[1192/1351] Compiling PackageRegistry Registry.swift
[1193/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?
[1194/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 |
[1199/1352] Compiling PackageCollections TargetListResult.swift
[1200/1352] Compiling PackageCollections PackageCollections+CertificatePolicy.swift
/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 |
[1201/1352] Compiling PackageCollections PackageCollections+Configuration.swift
/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+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 |
[1203/1352] Compiling PackageCollections PackageCollections+Validation.swift
/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/PackageIndex+Configuration.swift:36:83: 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
34 | self.url = url
35 | self.searchResultMaxItemsCount = searchResultMaxItemsCount ?? 50
36 | self.cacheDirectory = (try? cacheDirectory.map(resolveSymlinks)) ?? (try? localFileSystem.swiftPMCacheDirectory.appending(components: "package-metadata")) ?? .root
| `- 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
37 | self.cacheTTLInSeconds = disableCache ? -1 : (cacheTTLInSeconds ?? 3600)
38 | self.cacheMaxSizeInMegabytes = cacheMaxSizeInMegabytes ?? 10
/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 {
[1204/1352] Compiling PackageCollections PackageCollections.swift
/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/PackageIndex+Configuration.swift:36:83: 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
34 | self.url = url
35 | self.searchResultMaxItemsCount = searchResultMaxItemsCount ?? 50
36 | self.cacheDirectory = (try? cacheDirectory.map(resolveSymlinks)) ?? (try? localFileSystem.swiftPMCacheDirectory.appending(components: "package-metadata")) ?? .root
| `- 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
37 | self.cacheTTLInSeconds = disableCache ? -1 : (cacheTTLInSeconds ?? 3600)
38 | self.cacheMaxSizeInMegabytes = cacheMaxSizeInMegabytes ?? 10
/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 {
[1205/1352] Compiling PackageCollections PackageIndex+Configuration.swift
/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/PackageIndex+Configuration.swift:36:83: 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
34 | self.url = url
35 | self.searchResultMaxItemsCount = searchResultMaxItemsCount ?? 50
36 | self.cacheDirectory = (try? cacheDirectory.map(resolveSymlinks)) ?? (try? localFileSystem.swiftPMCacheDirectory.appending(components: "package-metadata")) ?? .root
| `- 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
37 | self.cacheTTLInSeconds = disableCache ? -1 : (cacheTTLInSeconds ?? 3600)
38 | self.cacheMaxSizeInMegabytes = cacheMaxSizeInMegabytes ?? 10
/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 {
[1205/1352] Wrapping AST for PackageRegistry for debugging
[1217/1352] Compiling PackageCollections Trie.swift
[1218/1352] Compiling PackageCollections Utility.swift
[1219/1352] Compiling SwiftDriver BitstreamWriter.swift
[1220/1352] Compiling SwiftDriver BlockInfo.swift
[1221/1352] Compiling SwiftDriver BuildRecord.swift
[1222/1352] Compiling SwiftDriver BuildRecordInfo.swift
[1223/1352] Compiling SwiftDriver DependencyGraphDotFileWriter.swift
[1224/1352] Compiling SwiftDriver DependencyKey.swift
[1225/1352] Compiling SwiftDriver DirectAndTransitiveCollections.swift
[1226/1352] Compiling SwiftDriver ExternalDependencyAndFingerprintEnforcer.swift
[1227/1352] Compiling SwiftDriver FirstWaveComputer.swift
[1228/1352] Compiling SwiftDriver IncrementalCompilationProtectedState.swift
[1229/1352] Compiling SwiftDriver IncrementalCompilationState+Extensions.swift
[1230/1352] Compiling SwiftDriver IncrementalCompilationState.swift
[1231/1352] Compiling SwiftDriver IncrementalCompilationSynchronizer.swift
[1232/1352] Compiling SwiftDriver IncrementalDependencyAndInputSetup.swift
[1233/1352] Compiling SwiftDriver InputInfo.swift
[1234/1352] Compiling SwiftDriver KeyAndFingerprintHolder.swift
/host/spi-builder-workspace/Sources/PackageCollections/PackageIndex.swift:198:48: 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
196 |
197 | private func makeAsync<T>(_ closure: @escaping (Result<T, Error>) -> Void) -> (Result<T, Error>) -> Void {
198 | { result in self.callbackQueue.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'
199 | }
200 |
/host/spi-builder-workspace/Sources/PackageCollections/PackageIndex.swift:198:56: 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
195 | }
196 |
197 | private func makeAsync<T>(_ closure: @escaping (Result<T, Error>) -> Void) -> (Result<T, Error>) -> Void {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
198 | { result in self.callbackQueue.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
199 | }
200 |
/host/spi-builder-workspace/Sources/PackageCollections/PackageIndexAndCollections.swift:32: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
30 | let index = PackageIndex(
31 | configuration: indexConfiguration,
32 | 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
33 | observabilityScope: observabilityScope
34 | )
/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/PackageIndexAndCollections.swift:212: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
210 | }
211 |
212 | 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
213 | guard let indexResult = results[.index], let collectionsResult = results[.collections] else {
214 | 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/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/GitHubPackageMetadataProvider.swift:302:75: 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
300 | self.authTokens = authTokens
301 | self.apiLimitWarningThreshold = apiLimitWarningThreshold ?? 5
302 | self.cacheDir = (try? cacheDir.map(resolveSymlinks)) ?? (try? localFileSystem.swiftPMCacheDirectory.appending(components: "package-metadata")) ?? .root
| `- 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
303 | self.cacheTTLInSeconds = disableCache ? -1 : (cacheTTLInSeconds ?? 3600)
304 | self.cacheSizeInMegabytes = cacheSizeInMegabytes ?? 10
/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/PackageIndex.swift:198:48: 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
196 |
197 | private func makeAsync<T>(_ closure: @escaping (Result<T, Error>) -> Void) -> (Result<T, Error>) -> Void {
198 | { result in self.callbackQueue.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'
199 | }
200 |
/host/spi-builder-workspace/Sources/PackageCollections/PackageIndex.swift:198:56: 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
195 | }
196 |
197 | private func makeAsync<T>(_ closure: @escaping (Result<T, Error>) -> Void) -> (Result<T, Error>) -> Void {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
198 | { result in self.callbackQueue.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
199 | }
200 |
/host/spi-builder-workspace/Sources/PackageCollections/PackageIndexAndCollections.swift:32: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
30 | let index = PackageIndex(
31 | configuration: indexConfiguration,
32 | 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
33 | observabilityScope: observabilityScope
34 | )
/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/PackageIndexAndCollections.swift:212: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
210 | }
211 |
212 | 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
213 | guard let indexResult = results[.index], let collectionsResult = results[.collections] else {
214 | 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/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/GitHubPackageMetadataProvider.swift:302:75: 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
300 | self.authTokens = authTokens
301 | self.apiLimitWarningThreshold = apiLimitWarningThreshold ?? 5
302 | self.cacheDir = (try? cacheDir.map(resolveSymlinks)) ?? (try? localFileSystem.swiftPMCacheDirectory.appending(components: "package-metadata")) ?? .root
| `- 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
303 | self.cacheTTLInSeconds = disableCache ? -1 : (cacheTTLInSeconds ?? 3600)
304 | self.cacheSizeInMegabytes = cacheSizeInMegabytes ?? 10
/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/PackageIndex.swift:198:48: 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
196 |
197 | private func makeAsync<T>(_ closure: @escaping (Result<T, Error>) -> Void) -> (Result<T, Error>) -> Void {
198 | { result in self.callbackQueue.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'
199 | }
200 |
/host/spi-builder-workspace/Sources/PackageCollections/PackageIndex.swift:198:56: 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
195 | }
196 |
197 | private func makeAsync<T>(_ closure: @escaping (Result<T, Error>) -> Void) -> (Result<T, Error>) -> Void {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
198 | { result in self.callbackQueue.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
199 | }
200 |
/host/spi-builder-workspace/Sources/PackageCollections/PackageIndexAndCollections.swift:32: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
30 | let index = PackageIndex(
31 | configuration: indexConfiguration,
32 | 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
33 | observabilityScope: observabilityScope
34 | )
/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/PackageIndexAndCollections.swift:212: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
210 | }
211 |
212 | 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
213 | guard let indexResult = results[.index], let collectionsResult = results[.collections] else {
214 | 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/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/GitHubPackageMetadataProvider.swift:302:75: 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
300 | self.authTokens = authTokens
301 | self.apiLimitWarningThreshold = apiLimitWarningThreshold ?? 5
302 | self.cacheDir = (try? cacheDir.map(resolveSymlinks)) ?? (try? localFileSystem.swiftPMCacheDirectory.appending(components: "package-metadata")) ?? .root
| `- 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
303 | self.cacheTTLInSeconds = disableCache ? -1 : (cacheTTLInSeconds ?? 3600)
304 | self.cacheSizeInMegabytes = cacheSizeInMegabytes ?? 10
/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: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
/host/spi-builder-workspace/Sources/PackageCollections/Storage/SQLitePackageCollectionsStorage.swift:849:53: 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"
:
847 | #if os(Linux)
848 | // lock not required since executeStatement locks
849 | guard case .connected = self.state else {
| `- warning: capture of 'self' with non-sendable type 'SQLitePackageCollectionsStorage' in an isolated closure; this is an error in the Swift 6 language mode
850 | return
851 | }
/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
/host/spi-builder-workspace/Sources/PackageCollections/Storage/SQLitePackageCollectionsStorage.swift:849:53: 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"
:
847 | #if os(Linux)
848 | // lock not required since executeStatement locks
849 | guard case .connected = self.state else {
| `- warning: capture of 'self' with non-sendable type 'SQLitePackageCollectionsStorage' in an isolated closure; this is an error in the Swift 6 language mode
850 | return
851 | }
/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
/host/spi-builder-workspace/Sources/PackageCollections/Storage/SQLitePackageCollectionsStorage.swift:849:53: 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"
:
847 | #if os(Linux)
848 | // lock not required since executeStatement locks
849 | guard case .connected = self.state else {
| `- warning: capture of 'self' with non-sendable type 'SQLitePackageCollectionsStorage' in an isolated closure; this is an error in the Swift 6 language mode
850 | return
851 | }
BUILD FAILURE 6.0 linux