Build Information
Failed to build AllCache, reference master (2fe87f
), with Swift 6.0 for Linux on 1 Nov 2024 06:47:02 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/JuanjoArreola/AllCache.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/JuanjoArreola/AllCache
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 2fe87f2 Merge branch 'new'
Cloned https://github.com/JuanjoArreola/AllCache.git
Revision (git rev-parse @):
2fe87f2690c13cb7a012f5346cf3824477aec512
SUCCESS checkout https://github.com/JuanjoArreola/AllCache.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/JuanjoArreola/AllCache.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/JuanjoArreola/ShallowPromises.git
[1/63] Fetching shallowpromises
Fetching https://github.com/JuanjoArreola/Logg.git
Fetched https://github.com/JuanjoArreola/ShallowPromises.git from cache (0.33s)
[1/159] Fetching logg
Fetched https://github.com/JuanjoArreola/Logg.git from cache (0.29s)
Computing version for https://github.com/JuanjoArreola/ShallowPromises.git
Computed https://github.com/JuanjoArreola/ShallowPromises.git at 0.7.1 (0.88s)
Computing version for https://github.com/JuanjoArreola/Logg.git
Computed https://github.com/JuanjoArreola/Logg.git at 2.4.1 (0.96s)
Creating working copy for https://github.com/JuanjoArreola/ShallowPromises.git
Working copy of https://github.com/JuanjoArreola/ShallowPromises.git resolved at 0.7.1
Creating working copy for https://github.com/JuanjoArreola/Logg.git
Working copy of https://github.com/JuanjoArreola/Logg.git resolved at 2.4.1
Building for debugging...
[0/5] Write sources
[4/5] Write swift-version-24593BA9C3E375BF.txt
[6/19] Compiling ShallowPromises PromiseFailure.swift
[7/19] Compiling ShallowPromises Futures.swift
[8/19] Compiling ShallowPromises Promise.swift
[9/19] Compiling Logg DefaultFormatter.swift
[10/20] Compiling Logg FileLogger.swift
[11/20] Compiling Logg Logger.swift
[12/20] Compiling ShallowPromises Cancellable.swift
[13/20] Emitting module ShallowPromises
[14/21] Compiling Logg LogContext.swift
[15/21] Compiling Logg LogFormatter.swift
[16/21] Compiling Logg LogLevel.swift
[17/21] Compiling Logg ConsoleLogger.swift
[19/21] Emitting module Logg
[20/21] Compiling Logg CompositeLogger.swift
[21/21] Compiling Logg ConsoleFormatter.swift
[23/31] Compiling AllCache MemoryCache.swift
[24/31] Compiling AllCache Fetcher.swift
[25/31] Compiling AllCache Processor.swift
[26/32] Compiling AllCache JSONSerializer.swift
[27/32] Compiling AllCache ElementDescriptor.swift
[28/32] Compiling AllCache DiskCache.swift
/host/spi-builder-workspace/Sources/AllCache/DiskCache.swift:44:17: warning: capture of 'self' with non-sendable type 'DiskCache<T, S>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
10 | private let diskQueue = DispatchQueue(label: "com.allcache.DiskQueue", attributes: .concurrent)
11 |
12 | public final class DiskCache<T, S: Serializer> where S.T == T {
| `- note: generic class 'DiskCache' does not conform to the 'Sendable' protocol
13 |
14 | public let identifier: String
:
42 | result = try serializer.deserialize(Data(contentsOf: url))
43 | diskQueue.async(flags: .barrier) {
44 | self.updateLastAccess(ofKey: key)
| `- warning: capture of 'self' with non-sendable type 'DiskCache<T, S>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | }
46 | }
/host/spi-builder-workspace/Sources/AllCache/DiskCache.swift:52:23: warning: capture of 'self' with non-sendable type 'DiskCache<T, S>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
10 | private let diskQueue = DispatchQueue(label: "com.allcache.DiskQueue", attributes: .concurrent)
11 |
12 | public final class DiskCache<T, S: Serializer> where S.T == T {
| `- note: generic class 'DiskCache' does not conform to the 'Sendable' protocol
13 |
14 | public let identifier: String
:
50 | public func removeInstance(forKey key: String) throws {
51 | diskQueue.async(flags: .barrier) {
52 | let url = self.cacheDirectory.appendingPathComponent(validkey(from: key))
| `- warning: capture of 'self' with non-sendable type 'DiskCache<T, S>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
53 | let attributes = try? self.fileManager.attributesOfItem(atPath: url.path)
54 | try? self.fileManager.removeItem(at: url)
/host/spi-builder-workspace/Sources/AllCache/DiskCache.swift:64:36: warning: capture of 'self' with non-sendable type 'DiskCache<T, S>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
10 | private let diskQueue = DispatchQueue(label: "com.allcache.DiskQueue", attributes: .concurrent)
11 |
12 | public final class DiskCache<T, S: Serializer> where S.T == T {
| `- note: generic class 'DiskCache' does not conform to the 'Sendable' protocol
13 |
14 | public let identifier: String
:
62 | diskQueue.async(flags: .barrier) {
63 | let resourceKeys: [URLResourceKey] = [.contentAccessDateKey, .totalFileAllocatedSizeKey]
64 | guard let enumerator = self.cacheDirectory.enumerator(includingPropertiesForKeys: resourceKeys) else {
| `- warning: capture of 'self' with non-sendable type 'DiskCache<T, S>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
65 | return
66 | }
/host/spi-builder-workspace/Sources/AllCache/DiskCache.swift:68:28: warning: capture of 'self' with non-sendable type 'DiskCache<T, S>' in an isolated closure; this is an error in the Swift 6 language mode
10 | private let diskQueue = DispatchQueue(label: "com.allcache.DiskQueue", attributes: .concurrent)
11 |
12 | public final class DiskCache<T, S: Serializer> where S.T == T {
| `- note: generic class 'DiskCache' does not conform to the 'Sendable' protocol
13 |
14 | public let identifier: String
:
66 | }
67 | let urls = enumerator.compactMap({ $0 as? URL }).filter({ ($0.contentAccessDate ?? limit) < limit })
68 | urls.forEach({ self.removeIfPossible(url: $0) })
| `- warning: capture of 'self' with non-sendable type 'DiskCache<T, S>' in an isolated closure; this is an error in the Swift 6 language mode
69 | }
70 | }
/host/spi-builder-workspace/Sources/AllCache/DiskCache.swift:87:48: error: type 'Data.WritingOptions' has no member 'atomicWrite'
85 | diskQueue.async(flags: .barrier) {
86 | let url = self.cacheDirectory.appendingPathComponent(validkey(from: key))
87 | try? data.write(to: url, options: .atomicWrite)
| `- error: type 'Data.WritingOptions' has no member 'atomicWrite'
88 | self.size += data.count
89 | self.restrictSize()
/host/spi-builder-workspace/Sources/AllCache/DiskCache.swift:95:36: warning: capture of 'self' with non-sendable type 'DiskCache<T, S>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
10 | private let diskQueue = DispatchQueue(label: "com.allcache.DiskQueue", attributes: .concurrent)
11 |
12 | public final class DiskCache<T, S: Serializer> where S.T == T {
| `- note: generic class 'DiskCache' does not conform to the 'Sendable' protocol
13 |
14 | public let identifier: String
:
93 | public func clear() {
94 | diskQueue.async(flags: .barrier) {
95 | guard let enumerator = self.cacheDirectory.enumerator(includingPropertiesForKeys: nil) else { return }
| `- warning: capture of 'self' with non-sendable type 'DiskCache<T, S>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
96 | for case let url as URL in enumerator {
97 | self.removeIfPossible(url: url)
/host/spi-builder-workspace/Sources/AllCache/DiskCache.swift:120:16: warning: capture of 'self' with non-sendable type 'DiskCache<T, S>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
10 | private let diskQueue = DispatchQueue(label: "com.allcache.DiskQueue", attributes: .concurrent)
11 |
12 | public final class DiskCache<T, S: Serializer> where S.T == T {
| `- note: generic class 'DiskCache' does not conform to the 'Sendable' protocol
13 |
14 | public let identifier: String
:
118 | }
119 | diskQueue.async {
120 | if self.shrinking { return }
| `- warning: capture of 'self' with non-sendable type 'DiskCache<T, S>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
121 | self.shrinking = true
122 | do {
[29/32] Compiling AllCache Serializer.swift
[30/32] Compiling AllCache AllCacheFormatter.swift
/host/spi-builder-workspace/Sources/AllCache/AllCacheFormatter.swift:11:12: warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'CompositeLogger' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import Logg
10 |
11 | public let logger = CompositeLogger(loggers: [ConsoleLogger(formatter: AllCacheFormatter(), level: [.error, .fault])])
| `- warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'CompositeLogger' may have shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | class AllCacheFormatter: ConsoleFormatter {
/host/spi-builder-workspace/.build/checkouts/Logg/Sources/Logg/CompositeLogger.swift:3:14: note: class 'CompositeLogger' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public class CompositeLogger {
| `- note: class 'CompositeLogger' does not conform to the 'Sendable' protocol
4 |
5 | public convenience init() {
/host/spi-builder-workspace/Sources/AllCache/AllCacheFormatter.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Logg'
7 |
8 | import Foundation
9 | import Logg
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Logg'
10 |
11 | public let logger = CompositeLogger(loggers: [ConsoleLogger(formatter: AllCacheFormatter(), level: [.error, .fault])])
| |- note: annotate 'logger' 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
12 |
13 | class AllCacheFormatter: ConsoleFormatter {
/host/spi-builder-workspace/Sources/AllCache/Cache.swift:52:13: warning: capture of 'self' with non-sendable type 'Cache<T, S>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
8 | }
9 |
10 | open class Cache<T, S: Serializer> where S.T == T {
| `- note: generic class 'Cache' does not conform to the 'Sendable' protocol
11 | public let memoryCache = MemoryCache<T>()
12 | public let diskCache: DiskCache<T, S>
:
50 | let promise = createPromise(for: descriptor)
51 | workingQueue.async {
52 | self.searchOnDisk(descriptor: descriptor, promise: promise)
| `- warning: capture of 'self' with non-sendable type 'Cache<T, S>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
53 | }
54 |
/host/spi-builder-workspace/Sources/AllCache/Cache.swift:52:43: warning: capture of 'descriptor' with non-sendable type 'ElementDescriptor<T, F>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 | let promise = createPromise(for: descriptor)
51 | workingQueue.async {
52 | self.searchOnDisk(descriptor: descriptor, promise: promise)
| `- warning: capture of 'descriptor' with non-sendable type 'ElementDescriptor<T, F>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
53 | }
54 |
/host/spi-builder-workspace/Sources/AllCache/ElementDescriptor.swift:10:15: note: consider making generic struct 'ElementDescriptor' conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | public struct ElementDescriptor<T, F: Fetcher> where F.T == T {
| `- note: consider making generic struct 'ElementDescriptor' conform to the 'Sendable' protocol
11 | public var key: String
12 | public var fetcher: F?
/host/spi-builder-workspace/Sources/AllCache/Cache.swift:52:64: warning: capture of 'promise' with non-sendable type 'Promise<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 | let promise = createPromise(for: descriptor)
51 | workingQueue.async {
52 | self.searchOnDisk(descriptor: descriptor, promise: promise)
| `- warning: capture of 'promise' with non-sendable type 'Promise<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
53 | }
54 |
/host/spi-builder-workspace/.build/checkouts/ShallowPromises/Sources/ShallowPromises/Promise.swift:12:12: note: generic class 'Promise' does not conform to the 'Sendable' protocol
10 | private let syncQueue = DispatchQueue(label: "com.shallowpromises.SyncQueue", attributes: [])
11 |
12 | open class Promise<U>: Cancellable {
| `- note: generic class 'Promise' does not conform to the 'Sendable' protocol
13 |
14 | private var result: U?
/host/spi-builder-workspace/Sources/AllCache/Cache.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ShallowPromises'
1 | import Foundation
2 | import ShallowPromises
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ShallowPromises'
3 |
4 | private let workingQueue = DispatchQueue(label: "com.allcache.WorkingQueue", attributes: .concurrent)
/host/spi-builder-workspace/Sources/AllCache/Cache.swift:139:18: warning: capture of 'self' with non-sendable type 'Cache<T, S>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
8 | }
9 |
10 | open class Cache<T, S: Serializer> where S.T == T {
| `- note: generic class 'Cache' does not conform to the 'Sendable' protocol
11 | public let memoryCache = MemoryCache<T>()
12 | public let diskCache: DiskCache<T, S>
:
137 | memoryCache.set(instance, forKey: key)
138 | workingQueue.async {
139 | try? self.diskCache.set(instance, forKey: key)
| `- warning: capture of 'self' with non-sendable type 'Cache<T, S>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 | }
141 | }
/host/spi-builder-workspace/Sources/AllCache/Cache.swift:139:37: warning: capture of 'instance' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
8 | }
9 |
10 | open class Cache<T, S: Serializer> where S.T == T {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
11 | public let memoryCache = MemoryCache<T>()
12 | public let diskCache: DiskCache<T, S>
:
137 | memoryCache.set(instance, forKey: key)
138 | workingQueue.async {
139 | try? self.diskCache.set(instance, forKey: key)
| `- warning: capture of 'instance' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 | }
141 | }
/host/spi-builder-workspace/Sources/AllCache/Cache.swift:148:18: warning: capture of 'self' with non-sendable type 'Cache<T, S>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
8 | }
9 |
10 | open class Cache<T, S: Serializer> where S.T == T {
| `- note: generic class 'Cache' does not conform to the 'Sendable' protocol
11 | public let memoryCache = MemoryCache<T>()
12 | public let diskCache: DiskCache<T, S>
:
146 | memoryCache.removeInstance(forKey: key)
147 | workingQueue.async {
148 | try? self.diskCache.removeInstance(forKey: key)
| `- warning: capture of 'self' with non-sendable type 'Cache<T, S>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
149 | }
150 | }
/host/spi-builder-workspace/Sources/AllCache/Cache.swift:155:13: warning: capture of 'self' with non-sendable type 'Cache<T, S>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
8 | }
9 |
10 | open class Cache<T, S: Serializer> where S.T == T {
| `- note: generic class 'Cache' does not conform to the 'Sendable' protocol
11 | public let memoryCache = MemoryCache<T>()
12 | public let diskCache: DiskCache<T, S>
:
153 | memoryCache.clear()
154 | workingQueue.async {
155 | self.diskCache.clear()
| `- warning: capture of 'self' with non-sendable type 'Cache<T, S>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
156 | }
157 | }
[31/32] Compiling AllCache Cache.swift
/host/spi-builder-workspace/Sources/AllCache/AllCacheFormatter.swift:11:12: warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'CompositeLogger' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import Logg
10 |
11 | public let logger = CompositeLogger(loggers: [ConsoleLogger(formatter: AllCacheFormatter(), level: [.error, .fault])])
| `- warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'CompositeLogger' may have shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | class AllCacheFormatter: ConsoleFormatter {
/host/spi-builder-workspace/.build/checkouts/Logg/Sources/Logg/CompositeLogger.swift:3:14: note: class 'CompositeLogger' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public class CompositeLogger {
| `- note: class 'CompositeLogger' does not conform to the 'Sendable' protocol
4 |
5 | public convenience init() {
/host/spi-builder-workspace/Sources/AllCache/AllCacheFormatter.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Logg'
7 |
8 | import Foundation
9 | import Logg
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Logg'
10 |
11 | public let logger = CompositeLogger(loggers: [ConsoleLogger(formatter: AllCacheFormatter(), level: [.error, .fault])])
| |- note: annotate 'logger' 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
12 |
13 | class AllCacheFormatter: ConsoleFormatter {
/host/spi-builder-workspace/Sources/AllCache/Cache.swift:52:13: warning: capture of 'self' with non-sendable type 'Cache<T, S>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
8 | }
9 |
10 | open class Cache<T, S: Serializer> where S.T == T {
| `- note: generic class 'Cache' does not conform to the 'Sendable' protocol
11 | public let memoryCache = MemoryCache<T>()
12 | public let diskCache: DiskCache<T, S>
:
50 | let promise = createPromise(for: descriptor)
51 | workingQueue.async {
52 | self.searchOnDisk(descriptor: descriptor, promise: promise)
| `- warning: capture of 'self' with non-sendable type 'Cache<T, S>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
53 | }
54 |
/host/spi-builder-workspace/Sources/AllCache/Cache.swift:52:43: warning: capture of 'descriptor' with non-sendable type 'ElementDescriptor<T, F>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 | let promise = createPromise(for: descriptor)
51 | workingQueue.async {
52 | self.searchOnDisk(descriptor: descriptor, promise: promise)
| `- warning: capture of 'descriptor' with non-sendable type 'ElementDescriptor<T, F>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
53 | }
54 |
/host/spi-builder-workspace/Sources/AllCache/ElementDescriptor.swift:10:15: note: consider making generic struct 'ElementDescriptor' conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | public struct ElementDescriptor<T, F: Fetcher> where F.T == T {
| `- note: consider making generic struct 'ElementDescriptor' conform to the 'Sendable' protocol
11 | public var key: String
12 | public var fetcher: F?
/host/spi-builder-workspace/Sources/AllCache/Cache.swift:52:64: warning: capture of 'promise' with non-sendable type 'Promise<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 | let promise = createPromise(for: descriptor)
51 | workingQueue.async {
52 | self.searchOnDisk(descriptor: descriptor, promise: promise)
| `- warning: capture of 'promise' with non-sendable type 'Promise<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
53 | }
54 |
/host/spi-builder-workspace/.build/checkouts/ShallowPromises/Sources/ShallowPromises/Promise.swift:12:12: note: generic class 'Promise' does not conform to the 'Sendable' protocol
10 | private let syncQueue = DispatchQueue(label: "com.shallowpromises.SyncQueue", attributes: [])
11 |
12 | open class Promise<U>: Cancellable {
| `- note: generic class 'Promise' does not conform to the 'Sendable' protocol
13 |
14 | private var result: U?
/host/spi-builder-workspace/Sources/AllCache/Cache.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ShallowPromises'
1 | import Foundation
2 | import ShallowPromises
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ShallowPromises'
3 |
4 | private let workingQueue = DispatchQueue(label: "com.allcache.WorkingQueue", attributes: .concurrent)
/host/spi-builder-workspace/Sources/AllCache/Cache.swift:139:18: warning: capture of 'self' with non-sendable type 'Cache<T, S>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
8 | }
9 |
10 | open class Cache<T, S: Serializer> where S.T == T {
| `- note: generic class 'Cache' does not conform to the 'Sendable' protocol
11 | public let memoryCache = MemoryCache<T>()
12 | public let diskCache: DiskCache<T, S>
:
137 | memoryCache.set(instance, forKey: key)
138 | workingQueue.async {
139 | try? self.diskCache.set(instance, forKey: key)
| `- warning: capture of 'self' with non-sendable type 'Cache<T, S>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 | }
141 | }
/host/spi-builder-workspace/Sources/AllCache/Cache.swift:139:37: warning: capture of 'instance' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
8 | }
9 |
10 | open class Cache<T, S: Serializer> where S.T == T {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
11 | public let memoryCache = MemoryCache<T>()
12 | public let diskCache: DiskCache<T, S>
:
137 | memoryCache.set(instance, forKey: key)
138 | workingQueue.async {
139 | try? self.diskCache.set(instance, forKey: key)
| `- warning: capture of 'instance' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 | }
141 | }
/host/spi-builder-workspace/Sources/AllCache/Cache.swift:148:18: warning: capture of 'self' with non-sendable type 'Cache<T, S>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
8 | }
9 |
10 | open class Cache<T, S: Serializer> where S.T == T {
| `- note: generic class 'Cache' does not conform to the 'Sendable' protocol
11 | public let memoryCache = MemoryCache<T>()
12 | public let diskCache: DiskCache<T, S>
:
146 | memoryCache.removeInstance(forKey: key)
147 | workingQueue.async {
148 | try? self.diskCache.removeInstance(forKey: key)
| `- warning: capture of 'self' with non-sendable type 'Cache<T, S>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
149 | }
150 | }
/host/spi-builder-workspace/Sources/AllCache/Cache.swift:155:13: warning: capture of 'self' with non-sendable type 'Cache<T, S>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
8 | }
9 |
10 | open class Cache<T, S: Serializer> where S.T == T {
| `- note: generic class 'Cache' does not conform to the 'Sendable' protocol
11 | public let memoryCache = MemoryCache<T>()
12 | public let diskCache: DiskCache<T, S>
:
153 | memoryCache.clear()
154 | workingQueue.async {
155 | self.diskCache.clear()
| `- warning: capture of 'self' with non-sendable type 'Cache<T, S>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
156 | }
157 | }
[32/32] Emitting module AllCache
/host/spi-builder-workspace/Sources/AllCache/AllCacheFormatter.swift:11:12: warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'CompositeLogger' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import Logg
10 |
11 | public let logger = CompositeLogger(loggers: [ConsoleLogger(formatter: AllCacheFormatter(), level: [.error, .fault])])
| `- warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'CompositeLogger' may have shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | class AllCacheFormatter: ConsoleFormatter {
/host/spi-builder-workspace/.build/checkouts/Logg/Sources/Logg/CompositeLogger.swift:3:14: note: class 'CompositeLogger' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public class CompositeLogger {
| `- note: class 'CompositeLogger' does not conform to the 'Sendable' protocol
4 |
5 | public convenience init() {
/host/spi-builder-workspace/Sources/AllCache/AllCacheFormatter.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Logg'
7 |
8 | import Foundation
9 | import Logg
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Logg'
10 |
11 | public let logger = CompositeLogger(loggers: [ConsoleLogger(formatter: AllCacheFormatter(), level: [.error, .fault])])
| |- note: annotate 'logger' 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
12 |
13 | class AllCacheFormatter: ConsoleFormatter {
BUILD FAILURE 6.0 linux