Build Information
Failed to build Cache, reference master (bde695
), with Swift 6.0 for Linux on 11 Feb 2025 12:46:17 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/hyperoslo/Cache.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/hyperoslo/Cache
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at bde695c Merge pull request #340 from gibachan/fix-unit-test
Cloned https://github.com/hyperoslo/Cache.git
Revision (git rev-parse @):
bde695cef10efe1f5541e4d13763ae833f103db3
SUCCESS checkout https://github.com/hyperoslo/Cache.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/hyperoslo/Cache.git
https://github.com/hyperoslo/Cache.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "Cache",
"name" : "Cache",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "Cache",
"targets" : [
"Cache"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "CacheTests",
"module_type" : "SwiftTarget",
"name" : "CacheTests",
"path" : "Tests",
"sources" : [
"Mac/Helpers/NSImage+ExtensionsTests.swift",
"Mac/Helpers/TestHelper+OSX.swift",
"Shared/TestCase+Extensions.swift",
"Shared/TestHelper.swift",
"Shared/User.swift",
"iOS/Helpers/TestHelper+iOS.swift",
"iOS/Helpers/UIImage+ExtensionsTests.swift",
"iOS/Tests/Extensions/Date+ExtensionsTests.swift",
"iOS/Tests/Extensions/Hasher+constantAccrossExecutions+Tests.swift",
"iOS/Tests/Library/ExpiryTests.swift",
"iOS/Tests/Library/ImageWrapperTests.swift",
"iOS/Tests/Library/JSONWrapperTests.swift",
"iOS/Tests/Library/MD5Tests.swift",
"iOS/Tests/Library/MemoryCapsuleTests.swift",
"iOS/Tests/Library/ObjectConverterTests.swift",
"iOS/Tests/Library/ObservationTokenTests.swift",
"iOS/Tests/Library/TypeWrapperTests.swift",
"iOS/Tests/Storage/AsyncStorageTests.swift",
"iOS/Tests/Storage/DiskStorageTests.swift",
"iOS/Tests/Storage/HybridStorageTests.swift",
"iOS/Tests/Storage/MemoryStorageTests.swift",
"iOS/Tests/Storage/StorageSupportTests.swift",
"iOS/Tests/Storage/StorageTests.swift",
"iOS/Tests/Storage/SyncStorageTests.swift"
],
"target_dependencies" : [
"Cache"
],
"type" : "test"
},
{
"c99name" : "Cache",
"module_type" : "SwiftTarget",
"name" : "Cache",
"path" : "Source",
"product_memberships" : [
"Cache"
],
"resources" : [
{
"path" : "/host/spi-builder-workspace/Source/PrivacyInfo.xcprivacy",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"Mac/NSImage+Extensions.swift",
"Shared/Configuration/DiskConfig.swift",
"Shared/Configuration/MemoryConfig.swift",
"Shared/Extensions/Date+Extensions.swift",
"Shared/Extensions/FileManager+Extensions.swift",
"Shared/Extensions/Hasher+constantAccrossExecutions.swift",
"Shared/Extensions/JSONDecoder+Extensions.swift",
"Shared/Extensions/URL+Extensions.swift",
"Shared/Library/DataSerializer.swift",
"Shared/Library/Entry.swift",
"Shared/Library/ExpirationMode.swift",
"Shared/Library/Expiry.swift",
"Shared/Library/ImageWrapper.swift",
"Shared/Library/JSONArrayWrapper.swift",
"Shared/Library/JSONDictionaryWrapper.swift",
"Shared/Library/MD5.swift",
"Shared/Library/MemoryCapsule.swift",
"Shared/Library/ObservationToken.swift",
"Shared/Library/Optional+Extension.swift",
"Shared/Library/StorageError.swift",
"Shared/Library/Transformer.swift",
"Shared/Library/TransformerFactory.swift",
"Shared/Library/TypeWrapper.swift",
"Shared/Library/Types.swift",
"Shared/Storage/AsyncStorage.swift",
"Shared/Storage/DiskStorage.swift",
"Shared/Storage/HybridStorage.swift",
"Shared/Storage/KeyObservationRegistry.swift",
"Shared/Storage/MemoryStorage.swift",
"Shared/Storage/Storage+Transform.swift",
"Shared/Storage/Storage.swift",
"Shared/Storage/StorageAware.swift",
"Shared/Storage/StorageObservationRegistry.swift",
"Shared/Storage/SyncStorage.swift",
"iOS/UIImage+Extensions.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:081dcf4fb829aea9d08447f4790431afbdfbcc335bfeed728ca69c6f181ae2aa
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/3] Write sources
[0/3] Copying PrivacyInfo.xcprivacy
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/36] Compiling Cache ExpirationMode.swift
/host/spi-builder-workspace/Source/Shared/Library/ImageWrapper.swift:8:21: error: cannot find type 'Image' in scope
6 |
7 | public struct ImageWrapper: Codable {
8 | public let image: Image
| `- error: cannot find type 'Image' in scope
9 |
10 | public enum CodingKeys: String, CodingKey {
/host/spi-builder-workspace/Source/Shared/Library/ImageWrapper.swift:14:22: error: cannot find type 'Image' in scope
12 | }
13 |
14 | public init(image: Image) {
| `- error: cannot find type 'Image' in scope
15 | self.image = image
16 | }
/host/spi-builder-workspace/Source/Shared/Library/ImageWrapper.swift:21:23: error: cannot find 'Image' in scope
19 | let container = try decoder.container(keyedBy: CodingKeys.self)
20 | let data = try container.decode(Data.self, forKey: CodingKeys.image)
21 | guard let image = Image(data: data) else {
| `- error: cannot find 'Image' in scope
22 | throw StorageError.decodingFailed
23 | }
[5/36] Compiling Cache Expiry.swift
/host/spi-builder-workspace/Source/Shared/Library/ImageWrapper.swift:8:21: error: cannot find type 'Image' in scope
6 |
7 | public struct ImageWrapper: Codable {
8 | public let image: Image
| `- error: cannot find type 'Image' in scope
9 |
10 | public enum CodingKeys: String, CodingKey {
/host/spi-builder-workspace/Source/Shared/Library/ImageWrapper.swift:14:22: error: cannot find type 'Image' in scope
12 | }
13 |
14 | public init(image: Image) {
| `- error: cannot find type 'Image' in scope
15 | self.image = image
16 | }
/host/spi-builder-workspace/Source/Shared/Library/ImageWrapper.swift:21:23: error: cannot find 'Image' in scope
19 | let container = try decoder.container(keyedBy: CodingKeys.self)
20 | let data = try container.decode(Data.self, forKey: CodingKeys.image)
21 | guard let image = Image(data: data) else {
| `- error: cannot find 'Image' in scope
22 | throw StorageError.decodingFailed
23 | }
[6/36] Compiling Cache ImageWrapper.swift
/host/spi-builder-workspace/Source/Shared/Library/ImageWrapper.swift:8:21: error: cannot find type 'Image' in scope
6 |
7 | public struct ImageWrapper: Codable {
8 | public let image: Image
| `- error: cannot find type 'Image' in scope
9 |
10 | public enum CodingKeys: String, CodingKey {
/host/spi-builder-workspace/Source/Shared/Library/ImageWrapper.swift:14:22: error: cannot find type 'Image' in scope
12 | }
13 |
14 | public init(image: Image) {
| `- error: cannot find type 'Image' in scope
15 | self.image = image
16 | }
/host/spi-builder-workspace/Source/Shared/Library/ImageWrapper.swift:21:23: error: cannot find 'Image' in scope
19 | let container = try decoder.container(keyedBy: CodingKeys.self)
20 | let data = try container.decode(Data.self, forKey: CodingKeys.image)
21 | guard let image = Image(data: data) else {
| `- error: cannot find 'Image' in scope
22 | throw StorageError.decodingFailed
23 | }
[7/36] Compiling Cache JSONArrayWrapper.swift
/host/spi-builder-workspace/Source/Shared/Library/ImageWrapper.swift:8:21: error: cannot find type 'Image' in scope
6 |
7 | public struct ImageWrapper: Codable {
8 | public let image: Image
| `- error: cannot find type 'Image' in scope
9 |
10 | public enum CodingKeys: String, CodingKey {
/host/spi-builder-workspace/Source/Shared/Library/ImageWrapper.swift:14:22: error: cannot find type 'Image' in scope
12 | }
13 |
14 | public init(image: Image) {
| `- error: cannot find type 'Image' in scope
15 | self.image = image
16 | }
/host/spi-builder-workspace/Source/Shared/Library/ImageWrapper.swift:21:23: error: cannot find 'Image' in scope
19 | let container = try decoder.container(keyedBy: CodingKeys.self)
20 | let data = try container.decode(Data.self, forKey: CodingKeys.image)
21 | guard let image = Image(data: data) else {
| `- error: cannot find 'Image' in scope
22 | throw StorageError.decodingFailed
23 | }
[8/36] Compiling Cache JSONDictionaryWrapper.swift
/host/spi-builder-workspace/Source/Shared/Library/ImageWrapper.swift:8:21: error: cannot find type 'Image' in scope
6 |
7 | public struct ImageWrapper: Codable {
8 | public let image: Image
| `- error: cannot find type 'Image' in scope
9 |
10 | public enum CodingKeys: String, CodingKey {
/host/spi-builder-workspace/Source/Shared/Library/ImageWrapper.swift:14:22: error: cannot find type 'Image' in scope
12 | }
13 |
14 | public init(image: Image) {
| `- error: cannot find type 'Image' in scope
15 | self.image = image
16 | }
/host/spi-builder-workspace/Source/Shared/Library/ImageWrapper.swift:21:23: error: cannot find 'Image' in scope
19 | let container = try decoder.container(keyedBy: CodingKeys.self)
20 | let data = try container.decode(Data.self, forKey: CodingKeys.image)
21 | guard let image = Image(data: data) else {
| `- error: cannot find 'Image' in scope
22 | throw StorageError.decodingFailed
23 | }
[9/40] Compiling Cache Transformer.swift
/host/spi-builder-workspace/Source/Shared/Library/TransformerFactory.swift:16:48: error: cannot find type 'Image' in scope
14 | }
15 |
16 | public static func forImage() -> Transformer<Image> {
| `- error: cannot find type 'Image' in scope
17 | let toData: (Image) throws -> Data = { image in
18 | return try image.cache_toData().unwrapOrThrow(error: StorageError.transformerFail)
/host/spi-builder-workspace/Source/Shared/Library/TransformerFactory.swift:17:18: error: cannot find type 'Image' in scope
15 |
16 | public static func forImage() -> Transformer<Image> {
17 | let toData: (Image) throws -> Data = { image in
| `- error: cannot find type 'Image' in scope
18 | return try image.cache_toData().unwrapOrThrow(error: StorageError.transformerFail)
19 | }
/host/spi-builder-workspace/Source/Shared/Library/TransformerFactory.swift:21:36: error: cannot find type 'Image' in scope
19 | }
20 |
21 | let fromData: (Data) throws -> Image = { data in
| `- error: cannot find type 'Image' in scope
22 | return try Image(data: data).unwrapOrThrow(error: StorageError.transformerFail)
23 | }
[10/40] Compiling Cache TransformerFactory.swift
/host/spi-builder-workspace/Source/Shared/Library/TransformerFactory.swift:16:48: error: cannot find type 'Image' in scope
14 | }
15 |
16 | public static func forImage() -> Transformer<Image> {
| `- error: cannot find type 'Image' in scope
17 | let toData: (Image) throws -> Data = { image in
18 | return try image.cache_toData().unwrapOrThrow(error: StorageError.transformerFail)
/host/spi-builder-workspace/Source/Shared/Library/TransformerFactory.swift:17:18: error: cannot find type 'Image' in scope
15 |
16 | public static func forImage() -> Transformer<Image> {
17 | let toData: (Image) throws -> Data = { image in
| `- error: cannot find type 'Image' in scope
18 | return try image.cache_toData().unwrapOrThrow(error: StorageError.transformerFail)
19 | }
/host/spi-builder-workspace/Source/Shared/Library/TransformerFactory.swift:21:36: error: cannot find type 'Image' in scope
19 | }
20 |
21 | let fromData: (Data) throws -> Image = { data in
| `- error: cannot find type 'Image' in scope
22 | return try Image(data: data).unwrapOrThrow(error: StorageError.transformerFail)
23 | }
[11/40] Compiling Cache TypeWrapper.swift
/host/spi-builder-workspace/Source/Shared/Library/TransformerFactory.swift:16:48: error: cannot find type 'Image' in scope
14 | }
15 |
16 | public static func forImage() -> Transformer<Image> {
| `- error: cannot find type 'Image' in scope
17 | let toData: (Image) throws -> Data = { image in
18 | return try image.cache_toData().unwrapOrThrow(error: StorageError.transformerFail)
/host/spi-builder-workspace/Source/Shared/Library/TransformerFactory.swift:17:18: error: cannot find type 'Image' in scope
15 |
16 | public static func forImage() -> Transformer<Image> {
17 | let toData: (Image) throws -> Data = { image in
| `- error: cannot find type 'Image' in scope
18 | return try image.cache_toData().unwrapOrThrow(error: StorageError.transformerFail)
19 | }
/host/spi-builder-workspace/Source/Shared/Library/TransformerFactory.swift:21:36: error: cannot find type 'Image' in scope
19 | }
20 |
21 | let fromData: (Data) throws -> Image = { data in
| `- error: cannot find type 'Image' in scope
22 | return try Image(data: data).unwrapOrThrow(error: StorageError.transformerFail)
23 | }
[12/40] Compiling Cache Types.swift
/host/spi-builder-workspace/Source/Shared/Library/TransformerFactory.swift:16:48: error: cannot find type 'Image' in scope
14 | }
15 |
16 | public static func forImage() -> Transformer<Image> {
| `- error: cannot find type 'Image' in scope
17 | let toData: (Image) throws -> Data = { image in
18 | return try image.cache_toData().unwrapOrThrow(error: StorageError.transformerFail)
/host/spi-builder-workspace/Source/Shared/Library/TransformerFactory.swift:17:18: error: cannot find type 'Image' in scope
15 |
16 | public static func forImage() -> Transformer<Image> {
17 | let toData: (Image) throws -> Data = { image in
| `- error: cannot find type 'Image' in scope
18 | return try image.cache_toData().unwrapOrThrow(error: StorageError.transformerFail)
19 | }
/host/spi-builder-workspace/Source/Shared/Library/TransformerFactory.swift:21:36: error: cannot find type 'Image' in scope
19 | }
20 |
21 | let fromData: (Data) throws -> Image = { data in
| `- error: cannot find type 'Image' in scope
22 | return try Image(data: data).unwrapOrThrow(error: StorageError.transformerFail)
23 | }
[13/40] Compiling Cache MemoryStorage.swift
/host/spi-builder-workspace/Source/Shared/Storage/Storage+Transform.swift:14:41: error: cannot find type 'Image' in scope
12 |
13 |
14 | func transformImage() -> Storage<Key, Image> {
| `- error: cannot find type 'Image' in scope
15 | let storage = transform(transformer: TransformerFactory.forImage())
16 | return storage
/host/spi-builder-workspace/Source/Shared/Library/TransformerFactory.swift:16:48: error: cannot find type 'Image' in scope
14 | }
15 |
16 | public static func forImage() -> Transformer<Image> {
| `- error: cannot find type 'Image' in scope
17 | let toData: (Image) throws -> Data = { image in
18 | return try image.cache_toData().unwrapOrThrow(error: StorageError.transformerFail)
/host/spi-builder-workspace/Source/Shared/Storage/Storage+Transform.swift:15:19: error: generic parameter 'U' could not be inferred
13 |
14 | func transformImage() -> Storage<Key, Image> {
15 | let storage = transform(transformer: TransformerFactory.forImage())
| `- error: generic parameter 'U' could not be inferred
16 | return storage
17 | }
/host/spi-builder-workspace/Source/Shared/Storage/Storage.swift:80:8: note: in call to function 'transform(transformer:)'
78 |
79 | public extension Storage {
80 | func transform<U>(transformer: Transformer<U>) -> Storage<Key, U> {
| `- note: in call to function 'transform(transformer:)'
81 | return Storage<Key, U>(hybridStorage: hybridStorage.transform(transformer: transformer))
82 | }
[14/40] Compiling Cache Storage+Transform.swift
/host/spi-builder-workspace/Source/Shared/Storage/Storage+Transform.swift:14:41: error: cannot find type 'Image' in scope
12 |
13 |
14 | func transformImage() -> Storage<Key, Image> {
| `- error: cannot find type 'Image' in scope
15 | let storage = transform(transformer: TransformerFactory.forImage())
16 | return storage
/host/spi-builder-workspace/Source/Shared/Library/TransformerFactory.swift:16:48: error: cannot find type 'Image' in scope
14 | }
15 |
16 | public static func forImage() -> Transformer<Image> {
| `- error: cannot find type 'Image' in scope
17 | let toData: (Image) throws -> Data = { image in
18 | return try image.cache_toData().unwrapOrThrow(error: StorageError.transformerFail)
/host/spi-builder-workspace/Source/Shared/Storage/Storage+Transform.swift:15:19: error: generic parameter 'U' could not be inferred
13 |
14 | func transformImage() -> Storage<Key, Image> {
15 | let storage = transform(transformer: TransformerFactory.forImage())
| `- error: generic parameter 'U' could not be inferred
16 | return storage
17 | }
/host/spi-builder-workspace/Source/Shared/Storage/Storage.swift:80:8: note: in call to function 'transform(transformer:)'
78 |
79 | public extension Storage {
80 | func transform<U>(transformer: Transformer<U>) -> Storage<Key, U> {
| `- note: in call to function 'transform(transformer:)'
81 | return Storage<Key, U>(hybridStorage: hybridStorage.transform(transformer: transformer))
82 | }
[15/40] Compiling Cache Storage.swift
/host/spi-builder-workspace/Source/Shared/Storage/Storage+Transform.swift:14:41: error: cannot find type 'Image' in scope
12 |
13 |
14 | func transformImage() -> Storage<Key, Image> {
| `- error: cannot find type 'Image' in scope
15 | let storage = transform(transformer: TransformerFactory.forImage())
16 | return storage
/host/spi-builder-workspace/Source/Shared/Library/TransformerFactory.swift:16:48: error: cannot find type 'Image' in scope
14 | }
15 |
16 | public static func forImage() -> Transformer<Image> {
| `- error: cannot find type 'Image' in scope
17 | let toData: (Image) throws -> Data = { image in
18 | return try image.cache_toData().unwrapOrThrow(error: StorageError.transformerFail)
/host/spi-builder-workspace/Source/Shared/Storage/Storage+Transform.swift:15:19: error: generic parameter 'U' could not be inferred
13 |
14 | func transformImage() -> Storage<Key, Image> {
15 | let storage = transform(transformer: TransformerFactory.forImage())
| `- error: generic parameter 'U' could not be inferred
16 | return storage
17 | }
/host/spi-builder-workspace/Source/Shared/Storage/Storage.swift:80:8: note: in call to function 'transform(transformer:)'
78 |
79 | public extension Storage {
80 | func transform<U>(transformer: Transformer<U>) -> Storage<Key, U> {
| `- note: in call to function 'transform(transformer:)'
81 | return Storage<Key, U>(hybridStorage: hybridStorage.transform(transformer: transformer))
82 | }
[16/40] Compiling Cache StorageAware.swift
/host/spi-builder-workspace/Source/Shared/Storage/Storage+Transform.swift:14:41: error: cannot find type 'Image' in scope
12 |
13 |
14 | func transformImage() -> Storage<Key, Image> {
| `- error: cannot find type 'Image' in scope
15 | let storage = transform(transformer: TransformerFactory.forImage())
16 | return storage
/host/spi-builder-workspace/Source/Shared/Library/TransformerFactory.swift:16:48: error: cannot find type 'Image' in scope
14 | }
15 |
16 | public static func forImage() -> Transformer<Image> {
| `- error: cannot find type 'Image' in scope
17 | let toData: (Image) throws -> Data = { image in
18 | return try image.cache_toData().unwrapOrThrow(error: StorageError.transformerFail)
/host/spi-builder-workspace/Source/Shared/Storage/Storage+Transform.swift:15:19: error: generic parameter 'U' could not be inferred
13 |
14 | func transformImage() -> Storage<Key, Image> {
15 | let storage = transform(transformer: TransformerFactory.forImage())
| `- error: generic parameter 'U' could not be inferred
16 | return storage
17 | }
/host/spi-builder-workspace/Source/Shared/Storage/Storage.swift:80:8: note: in call to function 'transform(transformer:)'
78 |
79 | public extension Storage {
80 | func transform<U>(transformer: Transformer<U>) -> Storage<Key, U> {
| `- note: in call to function 'transform(transformer:)'
81 | return Storage<Key, U>(hybridStorage: hybridStorage.transform(transformer: transformer))
82 | }
[17/40] Compiling Cache MD5.swift
[18/40] Compiling Cache MemoryCapsule.swift
[19/40] Compiling Cache ObservationToken.swift
[20/40] Compiling Cache Optional+Extension.swift
[21/40] Compiling Cache StorageError.swift
[22/40] Compiling Cache Hasher+constantAccrossExecutions.swift
[23/40] Compiling Cache JSONDecoder+Extensions.swift
[24/40] Compiling Cache URL+Extensions.swift
[25/40] Compiling Cache DataSerializer.swift
[26/40] Compiling Cache Entry.swift
[27/40] Compiling Cache AsyncStorage.swift
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:19:26: warning: capture of 'self' with non-sendable type 'AsyncStorage<Key, Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
4 | /// Manipulate storage in a "all async" manner.
5 | /// The completion closure will be called when operation completes.
6 | public class AsyncStorage<Key: Hashable, Value> {
| `- note: generic class 'AsyncStorage' does not conform to the 'Sendable' protocol
7 | public let innerStorage: HybridStorage<Key, Value>
8 | public let serialQueue: DispatchQueue
:
17 | public func entry(forKey key: Key, completion: @escaping (Result<Entry<Value>, Error>) -> Void) {
18 | serialQueue.async { [weak self] in
19 | guard let `self` = self else {
| `- warning: capture of 'self' with non-sendable type 'AsyncStorage<Key, Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | completion(.failure(StorageError.deallocated))
21 | return
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:20:9: warning: capture of 'completion' with non-sendable type '(Result<Entry<Value>, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
18 | serialQueue.async { [weak self] in
19 | guard let `self` = self else {
20 | completion(.failure(StorageError.deallocated))
| |- warning: capture of 'completion' with non-sendable type '(Result<Entry<Value>, 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'
21 | return
22 | }
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:25:59: warning: capture of 'key' with non-sendable type 'Key' in a `@Sendable` closure; this is an error in the Swift 6 language mode
4 | /// Manipulate storage in a "all async" manner.
5 | /// The completion closure will be called when operation completes.
6 | public class AsyncStorage<Key: Hashable, Value> {
| `- note: consider making generic parameter 'Key' conform to the 'Sendable' protocol
7 | public let innerStorage: HybridStorage<Key, Value>
8 | public let serialQueue: DispatchQueue
:
23 |
24 | do {
25 | let anEntry = try self.innerStorage.entry(forKey: key)
| `- warning: capture of 'key' with non-sendable type 'Key' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 | completion(.success(anEntry))
27 | } catch {
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:35:26: warning: capture of 'self' with non-sendable type 'AsyncStorage<Key, Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
4 | /// Manipulate storage in a "all async" manner.
5 | /// The completion closure will be called when operation completes.
6 | public class AsyncStorage<Key: Hashable, Value> {
| `- note: generic class 'AsyncStorage' does not conform to the 'Sendable' protocol
7 | public let innerStorage: HybridStorage<Key, Value>
8 | public let serialQueue: DispatchQueue
:
33 | public func removeObject(forKey key: Key, completion: @escaping (Result<(), Error>) -> Void) {
34 | serialQueue.async { [weak self] in
35 | guard let `self` = self else {
| `- warning: capture of 'self' with non-sendable type 'AsyncStorage<Key, Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 | completion(.failure(StorageError.deallocated))
37 | return
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:36:9: warning: capture of 'completion' with non-sendable type '(Result<(), any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
34 | serialQueue.async { [weak self] in
35 | guard let `self` = self else {
36 | completion(.failure(StorageError.deallocated))
| |- warning: capture of 'completion' with non-sendable type '(Result<(), 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'
37 | return
38 | }
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:41:52: warning: capture of 'key' with non-sendable type 'Key' in a `@Sendable` closure; this is an error in the Swift 6 language mode
4 | /// Manipulate storage in a "all async" manner.
5 | /// The completion closure will be called when operation completes.
6 | public class AsyncStorage<Key: Hashable, Value> {
| `- note: consider making generic parameter 'Key' conform to the 'Sendable' protocol
7 | public let innerStorage: HybridStorage<Key, Value>
8 | public let serialQueue: DispatchQueue
:
39 |
40 | do {
41 | try self.innerStorage.removeObject(forKey: key)
| `- warning: capture of 'key' with non-sendable type 'Key' in a `@Sendable` closure; this is an error in the Swift 6 language mode
42 | completion(.success(()))
43 | } catch {
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:55:26: warning: capture of 'self' with non-sendable type 'AsyncStorage<Key, Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
4 | /// Manipulate storage in a "all async" manner.
5 | /// The completion closure will be called when operation completes.
6 | public class AsyncStorage<Key: Hashable, Value> {
| `- note: generic class 'AsyncStorage' does not conform to the 'Sendable' protocol
7 | public let innerStorage: HybridStorage<Key, Value>
8 | public let serialQueue: DispatchQueue
:
53 | completion: @escaping (Result<(), Error>) -> Void) {
54 | serialQueue.async { [weak self] in
55 | guard let `self` = self else {
| `- warning: capture of 'self' with non-sendable type 'AsyncStorage<Key, Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
56 | completion(.failure(StorageError.deallocated))
57 | return
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:56:9: warning: capture of 'completion' with non-sendable type '(Result<(), any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
54 | serialQueue.async { [weak self] in
55 | guard let `self` = self else {
56 | completion(.failure(StorageError.deallocated))
| |- warning: capture of 'completion' with non-sendable type '(Result<(), 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'
57 | return
58 | }
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:61:41: warning: capture of 'object' with non-sendable type 'Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
4 | /// Manipulate storage in a "all async" manner.
5 | /// The completion closure will be called when operation completes.
6 | public class AsyncStorage<Key: Hashable, Value> {
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
7 | public let innerStorage: HybridStorage<Key, Value>
8 | public let serialQueue: DispatchQueue
:
59 |
60 | do {
61 | try self.innerStorage.setObject(object, forKey: key, expiry: expiry)
| `- warning: capture of 'object' with non-sendable type 'Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | completion(.success(()))
63 | } catch {
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:61:57: warning: capture of 'key' with non-sendable type 'Key' in a `@Sendable` closure; this is an error in the Swift 6 language mode
4 | /// Manipulate storage in a "all async" manner.
5 | /// The completion closure will be called when operation completes.
6 | public class AsyncStorage<Key: Hashable, Value> {
| `- note: consider making generic parameter 'Key' conform to the 'Sendable' protocol
7 | public let innerStorage: HybridStorage<Key, Value>
8 | public let serialQueue: DispatchQueue
:
59 |
60 | do {
61 | try self.innerStorage.setObject(object, forKey: key, expiry: expiry)
| `- warning: capture of 'key' with non-sendable type 'Key' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | completion(.success(()))
63 | } catch {
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:61:70: warning: capture of 'expiry' with non-sendable type 'Expiry?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
59 |
60 | do {
61 | try self.innerStorage.setObject(object, forKey: key, expiry: expiry)
| `- warning: capture of 'expiry' with non-sendable type 'Expiry?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | completion(.success(()))
63 | } catch {
/host/spi-builder-workspace/Source/Shared/Library/Expiry.swift:6:13: note: consider making enum 'Expiry' conform to the 'Sendable' protocol
4 | Helper enum to set the expiration date
5 | */
6 | public enum Expiry {
| `- note: consider making enum 'Expiry' conform to the 'Sendable' protocol
7 | /// Object will be expired in the nearest future
8 | case never
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:71:26: warning: capture of 'self' with non-sendable type 'AsyncStorage<Key, Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
4 | /// Manipulate storage in a "all async" manner.
5 | /// The completion closure will be called when operation completes.
6 | public class AsyncStorage<Key: Hashable, Value> {
| `- note: generic class 'AsyncStorage' does not conform to the 'Sendable' protocol
7 | public let innerStorage: HybridStorage<Key, Value>
8 | public let serialQueue: DispatchQueue
:
69 | public func removeAll(completion: @escaping (Result<(), Error>) -> Void) {
70 | serialQueue.async { [weak self] in
71 | guard let `self` = self else {
| `- warning: capture of 'self' with non-sendable type 'AsyncStorage<Key, Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
72 | completion(.failure(StorageError.deallocated))
73 | return
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:72:9: warning: capture of 'completion' with non-sendable type '(Result<(), any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
70 | serialQueue.async { [weak self] in
71 | guard let `self` = self else {
72 | completion(.failure(StorageError.deallocated))
| |- warning: capture of 'completion' with non-sendable type '(Result<(), 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'
73 | return
74 | }
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:87:26: warning: capture of 'self' with non-sendable type 'AsyncStorage<Key, Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
4 | /// Manipulate storage in a "all async" manner.
5 | /// The completion closure will be called when operation completes.
6 | public class AsyncStorage<Key: Hashable, Value> {
| `- note: generic class 'AsyncStorage' does not conform to the 'Sendable' protocol
7 | public let innerStorage: HybridStorage<Key, Value>
8 | public let serialQueue: DispatchQueue
:
85 | public func removeExpiredObjects(completion: @escaping (Result<(), Error>) -> Void) {
86 | serialQueue.async { [weak self] in
87 | guard let `self` = self else {
| `- warning: capture of 'self' with non-sendable type 'AsyncStorage<Key, Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
88 | completion(.failure(StorageError.deallocated))
89 | return
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:88:9: warning: capture of 'completion' with non-sendable type '(Result<(), any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
86 | serialQueue.async { [weak self] in
87 | guard let `self` = self else {
88 | completion(.failure(StorageError.deallocated))
| |- warning: capture of 'completion' with non-sendable type '(Result<(), 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'
89 | return
90 | }
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:147:22: warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
145 | try await withCheckedThrowingContinuation { continuation in
146 | entry(forKey: key) {
147 | continuation.resume(with: $0)
| |- warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated '$0' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
148 | }
149 | }
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:190:22: warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
188 | try await withCheckedThrowingContinuation { continuation in
189 | object(forKey: key) {
190 | continuation.resume(with: $0)
| |- warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated '$0' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
191 | }
192 | }
[28/40] Compiling Cache DiskStorage.swift
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:19:26: warning: capture of 'self' with non-sendable type 'AsyncStorage<Key, Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
4 | /// Manipulate storage in a "all async" manner.
5 | /// The completion closure will be called when operation completes.
6 | public class AsyncStorage<Key: Hashable, Value> {
| `- note: generic class 'AsyncStorage' does not conform to the 'Sendable' protocol
7 | public let innerStorage: HybridStorage<Key, Value>
8 | public let serialQueue: DispatchQueue
:
17 | public func entry(forKey key: Key, completion: @escaping (Result<Entry<Value>, Error>) -> Void) {
18 | serialQueue.async { [weak self] in
19 | guard let `self` = self else {
| `- warning: capture of 'self' with non-sendable type 'AsyncStorage<Key, Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | completion(.failure(StorageError.deallocated))
21 | return
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:20:9: warning: capture of 'completion' with non-sendable type '(Result<Entry<Value>, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
18 | serialQueue.async { [weak self] in
19 | guard let `self` = self else {
20 | completion(.failure(StorageError.deallocated))
| |- warning: capture of 'completion' with non-sendable type '(Result<Entry<Value>, 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'
21 | return
22 | }
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:25:59: warning: capture of 'key' with non-sendable type 'Key' in a `@Sendable` closure; this is an error in the Swift 6 language mode
4 | /// Manipulate storage in a "all async" manner.
5 | /// The completion closure will be called when operation completes.
6 | public class AsyncStorage<Key: Hashable, Value> {
| `- note: consider making generic parameter 'Key' conform to the 'Sendable' protocol
7 | public let innerStorage: HybridStorage<Key, Value>
8 | public let serialQueue: DispatchQueue
:
23 |
24 | do {
25 | let anEntry = try self.innerStorage.entry(forKey: key)
| `- warning: capture of 'key' with non-sendable type 'Key' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 | completion(.success(anEntry))
27 | } catch {
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:35:26: warning: capture of 'self' with non-sendable type 'AsyncStorage<Key, Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
4 | /// Manipulate storage in a "all async" manner.
5 | /// The completion closure will be called when operation completes.
6 | public class AsyncStorage<Key: Hashable, Value> {
| `- note: generic class 'AsyncStorage' does not conform to the 'Sendable' protocol
7 | public let innerStorage: HybridStorage<Key, Value>
8 | public let serialQueue: DispatchQueue
:
33 | public func removeObject(forKey key: Key, completion: @escaping (Result<(), Error>) -> Void) {
34 | serialQueue.async { [weak self] in
35 | guard let `self` = self else {
| `- warning: capture of 'self' with non-sendable type 'AsyncStorage<Key, Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 | completion(.failure(StorageError.deallocated))
37 | return
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:36:9: warning: capture of 'completion' with non-sendable type '(Result<(), any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
34 | serialQueue.async { [weak self] in
35 | guard let `self` = self else {
36 | completion(.failure(StorageError.deallocated))
| |- warning: capture of 'completion' with non-sendable type '(Result<(), 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'
37 | return
38 | }
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:41:52: warning: capture of 'key' with non-sendable type 'Key' in a `@Sendable` closure; this is an error in the Swift 6 language mode
4 | /// Manipulate storage in a "all async" manner.
5 | /// The completion closure will be called when operation completes.
6 | public class AsyncStorage<Key: Hashable, Value> {
| `- note: consider making generic parameter 'Key' conform to the 'Sendable' protocol
7 | public let innerStorage: HybridStorage<Key, Value>
8 | public let serialQueue: DispatchQueue
:
39 |
40 | do {
41 | try self.innerStorage.removeObject(forKey: key)
| `- warning: capture of 'key' with non-sendable type 'Key' in a `@Sendable` closure; this is an error in the Swift 6 language mode
42 | completion(.success(()))
43 | } catch {
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:55:26: warning: capture of 'self' with non-sendable type 'AsyncStorage<Key, Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
4 | /// Manipulate storage in a "all async" manner.
5 | /// The completion closure will be called when operation completes.
6 | public class AsyncStorage<Key: Hashable, Value> {
| `- note: generic class 'AsyncStorage' does not conform to the 'Sendable' protocol
7 | public let innerStorage: HybridStorage<Key, Value>
8 | public let serialQueue: DispatchQueue
:
53 | completion: @escaping (Result<(), Error>) -> Void) {
54 | serialQueue.async { [weak self] in
55 | guard let `self` = self else {
| `- warning: capture of 'self' with non-sendable type 'AsyncStorage<Key, Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
56 | completion(.failure(StorageError.deallocated))
57 | return
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:56:9: warning: capture of 'completion' with non-sendable type '(Result<(), any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
54 | serialQueue.async { [weak self] in
55 | guard let `self` = self else {
56 | completion(.failure(StorageError.deallocated))
| |- warning: capture of 'completion' with non-sendable type '(Result<(), 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'
57 | return
58 | }
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:61:41: warning: capture of 'object' with non-sendable type 'Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
4 | /// Manipulate storage in a "all async" manner.
5 | /// The completion closure will be called when operation completes.
6 | public class AsyncStorage<Key: Hashable, Value> {
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
7 | public let innerStorage: HybridStorage<Key, Value>
8 | public let serialQueue: DispatchQueue
:
59 |
60 | do {
61 | try self.innerStorage.setObject(object, forKey: key, expiry: expiry)
| `- warning: capture of 'object' with non-sendable type 'Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | completion(.success(()))
63 | } catch {
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:61:57: warning: capture of 'key' with non-sendable type 'Key' in a `@Sendable` closure; this is an error in the Swift 6 language mode
4 | /// Manipulate storage in a "all async" manner.
5 | /// The completion closure will be called when operation completes.
6 | public class AsyncStorage<Key: Hashable, Value> {
| `- note: consider making generic parameter 'Key' conform to the 'Sendable' protocol
7 | public let innerStorage: HybridStorage<Key, Value>
8 | public let serialQueue: DispatchQueue
:
59 |
60 | do {
61 | try self.innerStorage.setObject(object, forKey: key, expiry: expiry)
| `- warning: capture of 'key' with non-sendable type 'Key' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | completion(.success(()))
63 | } catch {
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:61:70: warning: capture of 'expiry' with non-sendable type 'Expiry?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
59 |
60 | do {
61 | try self.innerStorage.setObject(object, forKey: key, expiry: expiry)
| `- warning: capture of 'expiry' with non-sendable type 'Expiry?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | completion(.success(()))
63 | } catch {
/host/spi-builder-workspace/Source/Shared/Library/Expiry.swift:6:13: note: consider making enum 'Expiry' conform to the 'Sendable' protocol
4 | Helper enum to set the expiration date
5 | */
6 | public enum Expiry {
| `- note: consider making enum 'Expiry' conform to the 'Sendable' protocol
7 | /// Object will be expired in the nearest future
8 | case never
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:71:26: warning: capture of 'self' with non-sendable type 'AsyncStorage<Key, Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
4 | /// Manipulate storage in a "all async" manner.
5 | /// The completion closure will be called when operation completes.
6 | public class AsyncStorage<Key: Hashable, Value> {
| `- note: generic class 'AsyncStorage' does not conform to the 'Sendable' protocol
7 | public let innerStorage: HybridStorage<Key, Value>
8 | public let serialQueue: DispatchQueue
:
69 | public func removeAll(completion: @escaping (Result<(), Error>) -> Void) {
70 | serialQueue.async { [weak self] in
71 | guard let `self` = self else {
| `- warning: capture of 'self' with non-sendable type 'AsyncStorage<Key, Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
72 | completion(.failure(StorageError.deallocated))
73 | return
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:72:9: warning: capture of 'completion' with non-sendable type '(Result<(), any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
70 | serialQueue.async { [weak self] in
71 | guard let `self` = self else {
72 | completion(.failure(StorageError.deallocated))
| |- warning: capture of 'completion' with non-sendable type '(Result<(), 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'
73 | return
74 | }
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:87:26: warning: capture of 'self' with non-sendable type 'AsyncStorage<Key, Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
4 | /// Manipulate storage in a "all async" manner.
5 | /// The completion closure will be called when operation completes.
6 | public class AsyncStorage<Key: Hashable, Value> {
| `- note: generic class 'AsyncStorage' does not conform to the 'Sendable' protocol
7 | public let innerStorage: HybridStorage<Key, Value>
8 | public let serialQueue: DispatchQueue
:
85 | public func removeExpiredObjects(completion: @escaping (Result<(), Error>) -> Void) {
86 | serialQueue.async { [weak self] in
87 | guard let `self` = self else {
| `- warning: capture of 'self' with non-sendable type 'AsyncStorage<Key, Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
88 | completion(.failure(StorageError.deallocated))
89 | return
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:88:9: warning: capture of 'completion' with non-sendable type '(Result<(), any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
86 | serialQueue.async { [weak self] in
87 | guard let `self` = self else {
88 | completion(.failure(StorageError.deallocated))
| |- warning: capture of 'completion' with non-sendable type '(Result<(), 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'
89 | return
90 | }
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:147:22: warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
145 | try await withCheckedThrowingContinuation { continuation in
146 | entry(forKey: key) {
147 | continuation.resume(with: $0)
| |- warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated '$0' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
148 | }
149 | }
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:190:22: warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
188 | try await withCheckedThrowingContinuation { continuation in
189 | object(forKey: key) {
190 | continuation.resume(with: $0)
| |- warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated '$0' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
191 | }
192 | }
[29/40] Compiling Cache HybridStorage.swift
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:19:26: warning: capture of 'self' with non-sendable type 'AsyncStorage<Key, Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
4 | /// Manipulate storage in a "all async" manner.
5 | /// The completion closure will be called when operation completes.
6 | public class AsyncStorage<Key: Hashable, Value> {
| `- note: generic class 'AsyncStorage' does not conform to the 'Sendable' protocol
7 | public let innerStorage: HybridStorage<Key, Value>
8 | public let serialQueue: DispatchQueue
:
17 | public func entry(forKey key: Key, completion: @escaping (Result<Entry<Value>, Error>) -> Void) {
18 | serialQueue.async { [weak self] in
19 | guard let `self` = self else {
| `- warning: capture of 'self' with non-sendable type 'AsyncStorage<Key, Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | completion(.failure(StorageError.deallocated))
21 | return
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:20:9: warning: capture of 'completion' with non-sendable type '(Result<Entry<Value>, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
18 | serialQueue.async { [weak self] in
19 | guard let `self` = self else {
20 | completion(.failure(StorageError.deallocated))
| |- warning: capture of 'completion' with non-sendable type '(Result<Entry<Value>, 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'
21 | return
22 | }
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:25:59: warning: capture of 'key' with non-sendable type 'Key' in a `@Sendable` closure; this is an error in the Swift 6 language mode
4 | /// Manipulate storage in a "all async" manner.
5 | /// The completion closure will be called when operation completes.
6 | public class AsyncStorage<Key: Hashable, Value> {
| `- note: consider making generic parameter 'Key' conform to the 'Sendable' protocol
7 | public let innerStorage: HybridStorage<Key, Value>
8 | public let serialQueue: DispatchQueue
:
23 |
24 | do {
25 | let anEntry = try self.innerStorage.entry(forKey: key)
| `- warning: capture of 'key' with non-sendable type 'Key' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 | completion(.success(anEntry))
27 | } catch {
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:35:26: warning: capture of 'self' with non-sendable type 'AsyncStorage<Key, Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
4 | /// Manipulate storage in a "all async" manner.
5 | /// The completion closure will be called when operation completes.
6 | public class AsyncStorage<Key: Hashable, Value> {
| `- note: generic class 'AsyncStorage' does not conform to the 'Sendable' protocol
7 | public let innerStorage: HybridStorage<Key, Value>
8 | public let serialQueue: DispatchQueue
:
33 | public func removeObject(forKey key: Key, completion: @escaping (Result<(), Error>) -> Void) {
34 | serialQueue.async { [weak self] in
35 | guard let `self` = self else {
| `- warning: capture of 'self' with non-sendable type 'AsyncStorage<Key, Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 | completion(.failure(StorageError.deallocated))
37 | return
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:36:9: warning: capture of 'completion' with non-sendable type '(Result<(), any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
34 | serialQueue.async { [weak self] in
35 | guard let `self` = self else {
36 | completion(.failure(StorageError.deallocated))
| |- warning: capture of 'completion' with non-sendable type '(Result<(), 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'
37 | return
38 | }
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:41:52: warning: capture of 'key' with non-sendable type 'Key' in a `@Sendable` closure; this is an error in the Swift 6 language mode
4 | /// Manipulate storage in a "all async" manner.
5 | /// The completion closure will be called when operation completes.
6 | public class AsyncStorage<Key: Hashable, Value> {
| `- note: consider making generic parameter 'Key' conform to the 'Sendable' protocol
7 | public let innerStorage: HybridStorage<Key, Value>
8 | public let serialQueue: DispatchQueue
:
39 |
40 | do {
41 | try self.innerStorage.removeObject(forKey: key)
| `- warning: capture of 'key' with non-sendable type 'Key' in a `@Sendable` closure; this is an error in the Swift 6 language mode
42 | completion(.success(()))
43 | } catch {
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:55:26: warning: capture of 'self' with non-sendable type 'AsyncStorage<Key, Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
4 | /// Manipulate storage in a "all async" manner.
5 | /// The completion closure will be called when operation completes.
6 | public class AsyncStorage<Key: Hashable, Value> {
| `- note: generic class 'AsyncStorage' does not conform to the 'Sendable' protocol
7 | public let innerStorage: HybridStorage<Key, Value>
8 | public let serialQueue: DispatchQueue
:
53 | completion: @escaping (Result<(), Error>) -> Void) {
54 | serialQueue.async { [weak self] in
55 | guard let `self` = self else {
| `- warning: capture of 'self' with non-sendable type 'AsyncStorage<Key, Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
56 | completion(.failure(StorageError.deallocated))
57 | return
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:56:9: warning: capture of 'completion' with non-sendable type '(Result<(), any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
54 | serialQueue.async { [weak self] in
55 | guard let `self` = self else {
56 | completion(.failure(StorageError.deallocated))
| |- warning: capture of 'completion' with non-sendable type '(Result<(), 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'
57 | return
58 | }
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:61:41: warning: capture of 'object' with non-sendable type 'Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
4 | /// Manipulate storage in a "all async" manner.
5 | /// The completion closure will be called when operation completes.
6 | public class AsyncStorage<Key: Hashable, Value> {
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
7 | public let innerStorage: HybridStorage<Key, Value>
8 | public let serialQueue: DispatchQueue
:
59 |
60 | do {
61 | try self.innerStorage.setObject(object, forKey: key, expiry: expiry)
| `- warning: capture of 'object' with non-sendable type 'Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | completion(.success(()))
63 | } catch {
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:61:57: warning: capture of 'key' with non-sendable type 'Key' in a `@Sendable` closure; this is an error in the Swift 6 language mode
4 | /// Manipulate storage in a "all async" manner.
5 | /// The completion closure will be called when operation completes.
6 | public class AsyncStorage<Key: Hashable, Value> {
| `- note: consider making generic parameter 'Key' conform to the 'Sendable' protocol
7 | public let innerStorage: HybridStorage<Key, Value>
8 | public let serialQueue: DispatchQueue
:
59 |
60 | do {
61 | try self.innerStorage.setObject(object, forKey: key, expiry: expiry)
| `- warning: capture of 'key' with non-sendable type 'Key' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | completion(.success(()))
63 | } catch {
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:61:70: warning: capture of 'expiry' with non-sendable type 'Expiry?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
59 |
60 | do {
61 | try self.innerStorage.setObject(object, forKey: key, expiry: expiry)
| `- warning: capture of 'expiry' with non-sendable type 'Expiry?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | completion(.success(()))
63 | } catch {
/host/spi-builder-workspace/Source/Shared/Library/Expiry.swift:6:13: note: consider making enum 'Expiry' conform to the 'Sendable' protocol
4 | Helper enum to set the expiration date
5 | */
6 | public enum Expiry {
| `- note: consider making enum 'Expiry' conform to the 'Sendable' protocol
7 | /// Object will be expired in the nearest future
8 | case never
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:71:26: warning: capture of 'self' with non-sendable type 'AsyncStorage<Key, Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
4 | /// Manipulate storage in a "all async" manner.
5 | /// The completion closure will be called when operation completes.
6 | public class AsyncStorage<Key: Hashable, Value> {
| `- note: generic class 'AsyncStorage' does not conform to the 'Sendable' protocol
7 | public let innerStorage: HybridStorage<Key, Value>
8 | public let serialQueue: DispatchQueue
:
69 | public func removeAll(completion: @escaping (Result<(), Error>) -> Void) {
70 | serialQueue.async { [weak self] in
71 | guard let `self` = self else {
| `- warning: capture of 'self' with non-sendable type 'AsyncStorage<Key, Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
72 | completion(.failure(StorageError.deallocated))
73 | return
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:72:9: warning: capture of 'completion' with non-sendable type '(Result<(), any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
70 | serialQueue.async { [weak self] in
71 | guard let `self` = self else {
72 | completion(.failure(StorageError.deallocated))
| |- warning: capture of 'completion' with non-sendable type '(Result<(), 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'
73 | return
74 | }
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:87:26: warning: capture of 'self' with non-sendable type 'AsyncStorage<Key, Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
4 | /// Manipulate storage in a "all async" manner.
5 | /// The completion closure will be called when operation completes.
6 | public class AsyncStorage<Key: Hashable, Value> {
| `- note: generic class 'AsyncStorage' does not conform to the 'Sendable' protocol
7 | public let innerStorage: HybridStorage<Key, Value>
8 | public let serialQueue: DispatchQueue
:
85 | public func removeExpiredObjects(completion: @escaping (Result<(), Error>) -> Void) {
86 | serialQueue.async { [weak self] in
87 | guard let `self` = self else {
| `- warning: capture of 'self' with non-sendable type 'AsyncStorage<Key, Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
88 | completion(.failure(StorageError.deallocated))
89 | return
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:88:9: warning: capture of 'completion' with non-sendable type '(Result<(), any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
86 | serialQueue.async { [weak self] in
87 | guard let `self` = self else {
88 | completion(.failure(StorageError.deallocated))
| |- warning: capture of 'completion' with non-sendable type '(Result<(), 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'
89 | return
90 | }
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:147:22: warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
145 | try await withCheckedThrowingContinuation { continuation in
146 | entry(forKey: key) {
147 | continuation.resume(with: $0)
| |- warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated '$0' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
148 | }
149 | }
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:190:22: warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
188 | try await withCheckedThrowingContinuation { continuation in
189 | object(forKey: key) {
190 | continuation.resume(with: $0)
| |- warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated '$0' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
191 | }
192 | }
[30/40] Compiling Cache KeyObservationRegistry.swift
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:19:26: warning: capture of 'self' with non-sendable type 'AsyncStorage<Key, Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
4 | /// Manipulate storage in a "all async" manner.
5 | /// The completion closure will be called when operation completes.
6 | public class AsyncStorage<Key: Hashable, Value> {
| `- note: generic class 'AsyncStorage' does not conform to the 'Sendable' protocol
7 | public let innerStorage: HybridStorage<Key, Value>
8 | public let serialQueue: DispatchQueue
:
17 | public func entry(forKey key: Key, completion: @escaping (Result<Entry<Value>, Error>) -> Void) {
18 | serialQueue.async { [weak self] in
19 | guard let `self` = self else {
| `- warning: capture of 'self' with non-sendable type 'AsyncStorage<Key, Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | completion(.failure(StorageError.deallocated))
21 | return
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:20:9: warning: capture of 'completion' with non-sendable type '(Result<Entry<Value>, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
18 | serialQueue.async { [weak self] in
19 | guard let `self` = self else {
20 | completion(.failure(StorageError.deallocated))
| |- warning: capture of 'completion' with non-sendable type '(Result<Entry<Value>, 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'
21 | return
22 | }
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:25:59: warning: capture of 'key' with non-sendable type 'Key' in a `@Sendable` closure; this is an error in the Swift 6 language mode
4 | /// Manipulate storage in a "all async" manner.
5 | /// The completion closure will be called when operation completes.
6 | public class AsyncStorage<Key: Hashable, Value> {
| `- note: consider making generic parameter 'Key' conform to the 'Sendable' protocol
7 | public let innerStorage: HybridStorage<Key, Value>
8 | public let serialQueue: DispatchQueue
:
23 |
24 | do {
25 | let anEntry = try self.innerStorage.entry(forKey: key)
| `- warning: capture of 'key' with non-sendable type 'Key' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 | completion(.success(anEntry))
27 | } catch {
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:35:26: warning: capture of 'self' with non-sendable type 'AsyncStorage<Key, Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
4 | /// Manipulate storage in a "all async" manner.
5 | /// The completion closure will be called when operation completes.
6 | public class AsyncStorage<Key: Hashable, Value> {
| `- note: generic class 'AsyncStorage' does not conform to the 'Sendable' protocol
7 | public let innerStorage: HybridStorage<Key, Value>
8 | public let serialQueue: DispatchQueue
:
33 | public func removeObject(forKey key: Key, completion: @escaping (Result<(), Error>) -> Void) {
34 | serialQueue.async { [weak self] in
35 | guard let `self` = self else {
| `- warning: capture of 'self' with non-sendable type 'AsyncStorage<Key, Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 | completion(.failure(StorageError.deallocated))
37 | return
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:36:9: warning: capture of 'completion' with non-sendable type '(Result<(), any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
34 | serialQueue.async { [weak self] in
35 | guard let `self` = self else {
36 | completion(.failure(StorageError.deallocated))
| |- warning: capture of 'completion' with non-sendable type '(Result<(), 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'
37 | return
38 | }
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:41:52: warning: capture of 'key' with non-sendable type 'Key' in a `@Sendable` closure; this is an error in the Swift 6 language mode
4 | /// Manipulate storage in a "all async" manner.
5 | /// The completion closure will be called when operation completes.
6 | public class AsyncStorage<Key: Hashable, Value> {
| `- note: consider making generic parameter 'Key' conform to the 'Sendable' protocol
7 | public let innerStorage: HybridStorage<Key, Value>
8 | public let serialQueue: DispatchQueue
:
39 |
40 | do {
41 | try self.innerStorage.removeObject(forKey: key)
| `- warning: capture of 'key' with non-sendable type 'Key' in a `@Sendable` closure; this is an error in the Swift 6 language mode
42 | completion(.success(()))
43 | } catch {
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:55:26: warning: capture of 'self' with non-sendable type 'AsyncStorage<Key, Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
4 | /// Manipulate storage in a "all async" manner.
5 | /// The completion closure will be called when operation completes.
6 | public class AsyncStorage<Key: Hashable, Value> {
| `- note: generic class 'AsyncStorage' does not conform to the 'Sendable' protocol
7 | public let innerStorage: HybridStorage<Key, Value>
8 | public let serialQueue: DispatchQueue
:
53 | completion: @escaping (Result<(), Error>) -> Void) {
54 | serialQueue.async { [weak self] in
55 | guard let `self` = self else {
| `- warning: capture of 'self' with non-sendable type 'AsyncStorage<Key, Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
56 | completion(.failure(StorageError.deallocated))
57 | return
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:56:9: warning: capture of 'completion' with non-sendable type '(Result<(), any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
54 | serialQueue.async { [weak self] in
55 | guard let `self` = self else {
56 | completion(.failure(StorageError.deallocated))
| |- warning: capture of 'completion' with non-sendable type '(Result<(), 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'
57 | return
58 | }
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:61:41: warning: capture of 'object' with non-sendable type 'Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
4 | /// Manipulate storage in a "all async" manner.
5 | /// The completion closure will be called when operation completes.
6 | public class AsyncStorage<Key: Hashable, Value> {
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
7 | public let innerStorage: HybridStorage<Key, Value>
8 | public let serialQueue: DispatchQueue
:
59 |
60 | do {
61 | try self.innerStorage.setObject(object, forKey: key, expiry: expiry)
| `- warning: capture of 'object' with non-sendable type 'Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | completion(.success(()))
63 | } catch {
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:61:57: warning: capture of 'key' with non-sendable type 'Key' in a `@Sendable` closure; this is an error in the Swift 6 language mode
4 | /// Manipulate storage in a "all async" manner.
5 | /// The completion closure will be called when operation completes.
6 | public class AsyncStorage<Key: Hashable, Value> {
| `- note: consider making generic parameter 'Key' conform to the 'Sendable' protocol
7 | public let innerStorage: HybridStorage<Key, Value>
8 | public let serialQueue: DispatchQueue
:
59 |
60 | do {
61 | try self.innerStorage.setObject(object, forKey: key, expiry: expiry)
| `- warning: capture of 'key' with non-sendable type 'Key' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | completion(.success(()))
63 | } catch {
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:61:70: warning: capture of 'expiry' with non-sendable type 'Expiry?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
59 |
60 | do {
61 | try self.innerStorage.setObject(object, forKey: key, expiry: expiry)
| `- warning: capture of 'expiry' with non-sendable type 'Expiry?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | completion(.success(()))
63 | } catch {
/host/spi-builder-workspace/Source/Shared/Library/Expiry.swift:6:13: note: consider making enum 'Expiry' conform to the 'Sendable' protocol
4 | Helper enum to set the expiration date
5 | */
6 | public enum Expiry {
| `- note: consider making enum 'Expiry' conform to the 'Sendable' protocol
7 | /// Object will be expired in the nearest future
8 | case never
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:71:26: warning: capture of 'self' with non-sendable type 'AsyncStorage<Key, Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
4 | /// Manipulate storage in a "all async" manner.
5 | /// The completion closure will be called when operation completes.
6 | public class AsyncStorage<Key: Hashable, Value> {
| `- note: generic class 'AsyncStorage' does not conform to the 'Sendable' protocol
7 | public let innerStorage: HybridStorage<Key, Value>
8 | public let serialQueue: DispatchQueue
:
69 | public func removeAll(completion: @escaping (Result<(), Error>) -> Void) {
70 | serialQueue.async { [weak self] in
71 | guard let `self` = self else {
| `- warning: capture of 'self' with non-sendable type 'AsyncStorage<Key, Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
72 | completion(.failure(StorageError.deallocated))
73 | return
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:72:9: warning: capture of 'completion' with non-sendable type '(Result<(), any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
70 | serialQueue.async { [weak self] in
71 | guard let `self` = self else {
72 | completion(.failure(StorageError.deallocated))
| |- warning: capture of 'completion' with non-sendable type '(Result<(), 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'
73 | return
74 | }
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:87:26: warning: capture of 'self' with non-sendable type 'AsyncStorage<Key, Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
4 | /// Manipulate storage in a "all async" manner.
5 | /// The completion closure will be called when operation completes.
6 | public class AsyncStorage<Key: Hashable, Value> {
| `- note: generic class 'AsyncStorage' does not conform to the 'Sendable' protocol
7 | public let innerStorage: HybridStorage<Key, Value>
8 | public let serialQueue: DispatchQueue
:
85 | public func removeExpiredObjects(completion: @escaping (Result<(), Error>) -> Void) {
86 | serialQueue.async { [weak self] in
87 | guard let `self` = self else {
| `- warning: capture of 'self' with non-sendable type 'AsyncStorage<Key, Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
88 | completion(.failure(StorageError.deallocated))
89 | return
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:88:9: warning: capture of 'completion' with non-sendable type '(Result<(), any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
86 | serialQueue.async { [weak self] in
87 | guard let `self` = self else {
88 | completion(.failure(StorageError.deallocated))
| |- warning: capture of 'completion' with non-sendable type '(Result<(), 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'
89 | return
90 | }
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:147:22: warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
145 | try await withCheckedThrowingContinuation { continuation in
146 | entry(forKey: key) {
147 | continuation.resume(with: $0)
| |- warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated '$0' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
148 | }
149 | }
/host/spi-builder-workspace/Source/Shared/Storage/AsyncStorage.swift:190:22: warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
188 | try await withCheckedThrowingContinuation { continuation in
189 | object(forKey: key) {
190 | continuation.resume(with: $0)
| |- warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated '$0' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
191 | }
192 | }
[31/40] Compiling Cache NSImage+Extensions.swift
[32/40] Compiling Cache DiskConfig.swift
[33/40] Compiling Cache MemoryConfig.swift
[34/40] Compiling Cache Date+Extensions.swift
[35/40] Compiling Cache FileManager+Extensions.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[36/40] Emitting module Cache
/host/spi-builder-workspace/Source/Shared/Library/ImageWrapper.swift:8:21: error: cannot find type 'Image' in scope
6 |
7 | public struct ImageWrapper: Codable {
8 | public let image: Image
| `- error: cannot find type 'Image' in scope
9 |
10 | public enum CodingKeys: String, CodingKey {
/host/spi-builder-workspace/Source/Shared/Library/ImageWrapper.swift:14:22: error: cannot find type 'Image' in scope
12 | }
13 |
14 | public init(image: Image) {
| `- error: cannot find type 'Image' in scope
15 | self.image = image
16 | }
/host/spi-builder-workspace/Source/Shared/Library/TransformerFactory.swift:16:48: error: cannot find type 'Image' in scope
14 | }
15 |
16 | public static func forImage() -> Transformer<Image> {
| `- error: cannot find type 'Image' in scope
17 | let toData: (Image) throws -> Data = { image in
18 | return try image.cache_toData().unwrapOrThrow(error: StorageError.transformerFail)
/host/spi-builder-workspace/Source/Shared/Storage/Storage+Transform.swift:14:41: error: cannot find type 'Image' in scope
12 |
13 |
14 | func transformImage() -> Storage<Key, Image> {
| `- error: cannot find type 'Image' in scope
15 | let storage = transform(transformer: TransformerFactory.forImage())
16 | return storage
[37/40] Compiling Cache StorageObservationRegistry.swift
[38/40] Compiling Cache SyncStorage.swift
[39/40] Compiling Cache UIImage+Extensions.swift
[40/40] Compiling Cache resource_bundle_accessor.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:081dcf4fb829aea9d08447f4790431afbdfbcc335bfeed728ca69c6f181ae2aa
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
warning: 'spi-builder-workspace': found 3 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Tests/Mac/Info.plist
/host/spi-builder-workspace/Tests/tvOS/Info.plist
/host/spi-builder-workspace/Tests/iOS/Info.plist
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/34] Emitting module Cache
/host/spi-builder-workspace/Source/Shared/Library/ImageWrapper.swift:8:21: error: cannot find type 'Image' in scope
6 |
7 | public struct ImageWrapper: Codable {
8 | public let image: Image
| `- error: cannot find type 'Image' in scope
9 |
10 | public enum CodingKeys: String, CodingKey {
/host/spi-builder-workspace/Source/Shared/Library/ImageWrapper.swift:14:22: error: cannot find type 'Image' in scope
12 | }
13 |
14 | public init(image: Image) {
| `- error: cannot find type 'Image' in scope
15 | self.image = image
16 | }
/host/spi-builder-workspace/Source/Shared/Library/TransformerFactory.swift:16:48: error: cannot find type 'Image' in scope
14 | }
15 |
16 | public static func forImage() -> Transformer<Image> {
| `- error: cannot find type 'Image' in scope
17 | let toData: (Image) throws -> Data = { image in
18 | return try image.cache_toData().unwrapOrThrow(error: StorageError.transformerFail)
/host/spi-builder-workspace/Source/Shared/Storage/Storage+Transform.swift:14:41: error: cannot find type 'Image' in scope
12 |
13 |
14 | func transformImage() -> Storage<Key, Image> {
| `- error: cannot find type 'Image' in scope
15 | let storage = transform(transformer: TransformerFactory.forImage())
16 | return storage
[3/38] Compiling Cache NSImage+Extensions.swift
[4/38] Compiling Cache DiskConfig.swift
[5/38] Compiling Cache MemoryConfig.swift
[6/38] Compiling Cache Date+Extensions.swift
[7/38] Compiling Cache FileManager+Extensions.swift
[8/38] Compiling Cache MemoryStorage.swift
/host/spi-builder-workspace/Source/Shared/Storage/Storage+Transform.swift:14:41: error: cannot find type 'Image' in scope
12 |
13 |
14 | func transformImage() -> Storage<Key, Image> {
| `- error: cannot find type 'Image' in scope
15 | let storage = transform(transformer: TransformerFactory.forImage())
16 | return storage
/host/spi-builder-workspace/Source/Shared/Library/TransformerFactory.swift:16:48: error: cannot find type 'Image' in scope
14 | }
15 |
16 | public static func forImage() -> Transformer<Image> {
| `- error: cannot find type 'Image' in scope
17 | let toData: (Image) throws -> Data = { image in
18 | return try image.cache_toData().unwrapOrThrow(error: StorageError.transformerFail)
/host/spi-builder-workspace/Source/Shared/Storage/Storage+Transform.swift:15:19: error: generic parameter 'U' could not be inferred
13 |
14 | func transformImage() -> Storage<Key, Image> {
15 | let storage = transform(transformer: TransformerFactory.forImage())
| `- error: generic parameter 'U' could not be inferred
16 | return storage
17 | }
/host/spi-builder-workspace/Source/Shared/Storage/Storage.swift:80:8: note: in call to function 'transform(transformer:)'
78 |
79 | public extension Storage {
80 | func transform<U>(transformer: Transformer<U>) -> Storage<Key, U> {
| `- note: in call to function 'transform(transformer:)'
81 | return Storage<Key, U>(hybridStorage: hybridStorage.transform(transformer: transformer))
82 | }
[9/38] Compiling Cache Storage+Transform.swift
/host/spi-builder-workspace/Source/Shared/Storage/Storage+Transform.swift:14:41: error: cannot find type 'Image' in scope
12 |
13 |
14 | func transformImage() -> Storage<Key, Image> {
| `- error: cannot find type 'Image' in scope
15 | let storage = transform(transformer: TransformerFactory.forImage())
16 | return storage
/host/spi-builder-workspace/Source/Shared/Library/TransformerFactory.swift:16:48: error: cannot find type 'Image' in scope
14 | }
15 |
16 | public static func forImage() -> Transformer<Image> {
| `- error: cannot find type 'Image' in scope
17 | let toData: (Image) throws -> Data = { image in
18 | return try image.cache_toData().unwrapOrThrow(error: StorageError.transformerFail)
/host/spi-builder-workspace/Source/Shared/Storage/Storage+Transform.swift:15:19: error: generic parameter 'U' could not be inferred
13 |
14 | func transformImage() -> Storage<Key, Image> {
15 | let storage = transform(transformer: TransformerFactory.forImage())
| `- error: generic parameter 'U' could not be inferred
16 | return storage
17 | }
/host/spi-builder-workspace/Source/Shared/Storage/Storage.swift:80:8: note: in call to function 'transform(transformer:)'
78 |
79 | public extension Storage {
80 | func transform<U>(transformer: Transformer<U>) -> Storage<Key, U> {
| `- note: in call to function 'transform(transformer:)'
81 | return Storage<Key, U>(hybridStorage: hybridStorage.transform(transformer: transformer))
82 | }
[10/38] Compiling Cache Storage.swift
/host/spi-builder-workspace/Source/Shared/Storage/Storage+Transform.swift:14:41: error: cannot find type 'Image' in scope
12 |
13 |
14 | func transformImage() -> Storage<Key, Image> {
| `- error: cannot find type 'Image' in scope
15 | let storage = transform(transformer: TransformerFactory.forImage())
16 | return storage
/host/spi-builder-workspace/Source/Shared/Library/TransformerFactory.swift:16:48: error: cannot find type 'Image' in scope
14 | }
15 |
16 | public static func forImage() -> Transformer<Image> {
| `- error: cannot find type 'Image' in scope
17 | let toData: (Image) throws -> Data = { image in
18 | return try image.cache_toData().unwrapOrThrow(error: StorageError.transformerFail)
/host/spi-builder-workspace/Source/Shared/Storage/Storage+Transform.swift:15:19: error: generic parameter 'U' could not be inferred
13 |
14 | func transformImage() -> Storage<Key, Image> {
15 | let storage = transform(transformer: TransformerFactory.forImage())
| `- error: generic parameter 'U' could not be inferred
16 | return storage
17 | }
/host/spi-builder-workspace/Source/Shared/Storage/Storage.swift:80:8: note: in call to function 'transform(transformer:)'
78 |
79 | public extension Storage {
80 | func transform<U>(transformer: Transformer<U>) -> Storage<Key, U> {
| `- note: in call to function 'transform(transformer:)'
81 | return Storage<Key, U>(hybridStorage: hybridStorage.transform(transformer: transformer))
82 | }
[11/38] Compiling Cache StorageAware.swift
/host/spi-builder-workspace/Source/Shared/Storage/Storage+Transform.swift:14:41: error: cannot find type 'Image' in scope
12 |
13 |
14 | func transformImage() -> Storage<Key, Image> {
| `- error: cannot find type 'Image' in scope
15 | let storage = transform(transformer: TransformerFactory.forImage())
16 | return storage
/host/spi-builder-workspace/Source/Shared/Library/TransformerFactory.swift:16:48: error: cannot find type 'Image' in scope
14 | }
15 |
16 | public static func forImage() -> Transformer<Image> {
| `- error: cannot find type 'Image' in scope
17 | let toData: (Image) throws -> Data = { image in
18 | return try image.cache_toData().unwrapOrThrow(error: StorageError.transformerFail)
/host/spi-builder-workspace/Source/Shared/Storage/Storage+Transform.swift:15:19: error: generic parameter 'U' could not be inferred
13 |
14 | func transformImage() -> Storage<Key, Image> {
15 | let storage = transform(transformer: TransformerFactory.forImage())
| `- error: generic parameter 'U' could not be inferred
16 | return storage
17 | }
/host/spi-builder-workspace/Source/Shared/Storage/Storage.swift:80:8: note: in call to function 'transform(transformer:)'
78 |
79 | public extension Storage {
80 | func transform<U>(transformer: Transformer<U>) -> Storage<Key, U> {
| `- note: in call to function 'transform(transformer:)'
81 | return Storage<Key, U>(hybridStorage: hybridStorage.transform(transformer: transformer))
82 | }
[12/38] Compiling Cache Hasher+constantAccrossExecutions.swift
[13/38] Compiling Cache JSONDecoder+Extensions.swift
[14/38] Compiling Cache URL+Extensions.swift
[15/38] Compiling Cache DataSerializer.swift
[16/38] Compiling Cache Entry.swift
[17/38] Compiling Cache StorageObservationRegistry.swift
[18/38] Compiling Cache SyncStorage.swift
[19/38] Compiling Cache UIImage+Extensions.swift
[20/38] Compiling Cache resource_bundle_accessor.swift
[21/38] Compiling Cache MD5.swift
[22/38] Compiling Cache MemoryCapsule.swift
[23/38] Compiling Cache ObservationToken.swift
[24/38] Compiling Cache Optional+Extension.swift
[25/38] Compiling Cache StorageError.swift
[26/38] Compiling Cache Transformer.swift
/host/spi-builder-workspace/Source/Shared/Library/TransformerFactory.swift:16:48: error: cannot find type 'Image' in scope
14 | }
15 |
16 | public static func forImage() -> Transformer<Image> {
| `- error: cannot find type 'Image' in scope
17 | let toData: (Image) throws -> Data = { image in
18 | return try image.cache_toData().unwrapOrThrow(error: StorageError.transformerFail)
/host/spi-builder-workspace/Source/Shared/Library/TransformerFactory.swift:17:18: error: cannot find type 'Image' in scope
15 |
16 | public static func forImage() -> Transformer<Image> {
17 | let toData: (Image) throws -> Data = { image in
| `- error: cannot find type 'Image' in scope
18 | return try image.cache_toData().unwrapOrThrow(error: StorageError.transformerFail)
19 | }
/host/spi-builder-workspace/Source/Shared/Library/TransformerFactory.swift:21:36: error: cannot find type 'Image' in scope
19 | }
20 |
21 | let fromData: (Data) throws -> Image = { data in
| `- error: cannot find type 'Image' in scope
22 | return try Image(data: data).unwrapOrThrow(error: StorageError.transformerFail)
23 | }
[27/38] Compiling Cache TransformerFactory.swift
/host/spi-builder-workspace/Source/Shared/Library/TransformerFactory.swift:16:48: error: cannot find type 'Image' in scope
14 | }
15 |
16 | public static func forImage() -> Transformer<Image> {
| `- error: cannot find type 'Image' in scope
17 | let toData: (Image) throws -> Data = { image in
18 | return try image.cache_toData().unwrapOrThrow(error: StorageError.transformerFail)
/host/spi-builder-workspace/Source/Shared/Library/TransformerFactory.swift:17:18: error: cannot find type 'Image' in scope
15 |
16 | public static func forImage() -> Transformer<Image> {
17 | let toData: (Image) throws -> Data = { image in
| `- error: cannot find type 'Image' in scope
18 | return try image.cache_toData().unwrapOrThrow(error: StorageError.transformerFail)
19 | }
/host/spi-builder-workspace/Source/Shared/Library/TransformerFactory.swift:21:36: error: cannot find type 'Image' in scope
19 | }
20 |
21 | let fromData: (Data) throws -> Image = { data in
| `- error: cannot find type 'Image' in scope
22 | return try Image(data: data).unwrapOrThrow(error: StorageError.transformerFail)
23 | }
[28/38] Compiling Cache TypeWrapper.swift
/host/spi-builder-workspace/Source/Shared/Library/TransformerFactory.swift:16:48: error: cannot find type 'Image' in scope
14 | }
15 |
16 | public static func forImage() -> Transformer<Image> {
| `- error: cannot find type 'Image' in scope
17 | let toData: (Image) throws -> Data = { image in
18 | return try image.cache_toData().unwrapOrThrow(error: StorageError.transformerFail)
/host/spi-builder-workspace/Source/Shared/Library/TransformerFactory.swift:17:18: error: cannot find type 'Image' in scope
15 |
16 | public static func forImage() -> Transformer<Image> {
17 | let toData: (Image) throws -> Data = { image in
| `- error: cannot find type 'Image' in scope
18 | return try image.cache_toData().unwrapOrThrow(error: StorageError.transformerFail)
19 | }
/host/spi-builder-workspace/Source/Shared/Library/TransformerFactory.swift:21:36: error: cannot find type 'Image' in scope
19 | }
20 |
21 | let fromData: (Data) throws -> Image = { data in
| `- error: cannot find type 'Image' in scope
22 | return try Image(data: data).unwrapOrThrow(error: StorageError.transformerFail)
23 | }
[29/38] Compiling Cache Types.swift
/host/spi-builder-workspace/Source/Shared/Library/TransformerFactory.swift:16:48: error: cannot find type 'Image' in scope
14 | }
15 |
16 | public static func forImage() -> Transformer<Image> {
| `- error: cannot find type 'Image' in scope
17 | let toData: (Image) throws -> Data = { image in
18 | return try image.cache_toData().unwrapOrThrow(error: StorageError.transformerFail)
/host/spi-builder-workspace/Source/Shared/Library/TransformerFactory.swift:17:18: error: cannot find type 'Image' in scope
15 |
16 | public static func forImage() -> Transformer<Image> {
17 | let toData: (Image) throws -> Data = { image in
| `- error: cannot find type 'Image' in scope
18 | return try image.cache_toData().unwrapOrThrow(error: StorageError.transformerFail)
19 | }
/host/spi-builder-workspace/Source/Shared/Library/TransformerFactory.swift:21:36: error: cannot find type 'Image' in scope
19 | }
20 |
21 | let fromData: (Data) throws -> Image = { data in
| `- error: cannot find type 'Image' in scope
22 | return try Image(data: data).unwrapOrThrow(error: StorageError.transformerFail)
23 | }
[30/38] Compiling Cache ExpirationMode.swift
/host/spi-builder-workspace/Source/Shared/Library/ImageWrapper.swift:8:21: error: cannot find type 'Image' in scope
6 |
7 | public struct ImageWrapper: Codable {
8 | public let image: Image
| `- error: cannot find type 'Image' in scope
9 |
10 | public enum CodingKeys: String, CodingKey {
/host/spi-builder-workspace/Source/Shared/Library/ImageWrapper.swift:14:22: error: cannot find type 'Image' in scope
12 | }
13 |
14 | public init(image: Image) {
| `- error: cannot find type 'Image' in scope
15 | self.image = image
16 | }
/host/spi-builder-workspace/Source/Shared/Library/ImageWrapper.swift:21:23: error: cannot find 'Image' in scope
19 | let container = try decoder.container(keyedBy: CodingKeys.self)
20 | let data = try container.decode(Data.self, forKey: CodingKeys.image)
21 | guard let image = Image(data: data) else {
| `- error: cannot find 'Image' in scope
22 | throw StorageError.decodingFailed
23 | }
[31/38] Compiling Cache Expiry.swift
/host/spi-builder-workspace/Source/Shared/Library/ImageWrapper.swift:8:21: error: cannot find type 'Image' in scope
6 |
7 | public struct ImageWrapper: Codable {
8 | public let image: Image
| `- error: cannot find type 'Image' in scope
9 |
10 | public enum CodingKeys: String, CodingKey {
/host/spi-builder-workspace/Source/Shared/Library/ImageWrapper.swift:14:22: error: cannot find type 'Image' in scope
12 | }
13 |
14 | public init(image: Image) {
| `- error: cannot find type 'Image' in scope
15 | self.image = image
16 | }
/host/spi-builder-workspace/Source/Shared/Library/ImageWrapper.swift:21:23: error: cannot find 'Image' in scope
19 | let container = try decoder.container(keyedBy: CodingKeys.self)
20 | let data = try container.decode(Data.self, forKey: CodingKeys.image)
21 | guard let image = Image(data: data) else {
| `- error: cannot find 'Image' in scope
22 | throw StorageError.decodingFailed
23 | }
[32/38] Compiling Cache ImageWrapper.swift
/host/spi-builder-workspace/Source/Shared/Library/ImageWrapper.swift:8:21: error: cannot find type 'Image' in scope
6 |
7 | public struct ImageWrapper: Codable {
8 | public let image: Image
| `- error: cannot find type 'Image' in scope
9 |
10 | public enum CodingKeys: String, CodingKey {
/host/spi-builder-workspace/Source/Shared/Library/ImageWrapper.swift:14:22: error: cannot find type 'Image' in scope
12 | }
13 |
14 | public init(image: Image) {
| `- error: cannot find type 'Image' in scope
15 | self.image = image
16 | }
/host/spi-builder-workspace/Source/Shared/Library/ImageWrapper.swift:21:23: error: cannot find 'Image' in scope
19 | let container = try decoder.container(keyedBy: CodingKeys.self)
20 | let data = try container.decode(Data.self, forKey: CodingKeys.image)
21 | guard let image = Image(data: data) else {
| `- error: cannot find 'Image' in scope
22 | throw StorageError.decodingFailed
23 | }
[33/38] Compiling Cache JSONArrayWrapper.swift
/host/spi-builder-workspace/Source/Shared/Library/ImageWrapper.swift:8:21: error: cannot find type 'Image' in scope
6 |
7 | public struct ImageWrapper: Codable {
8 | public let image: Image
| `- error: cannot find type 'Image' in scope
9 |
10 | public enum CodingKeys: String, CodingKey {
/host/spi-builder-workspace/Source/Shared/Library/ImageWrapper.swift:14:22: error: cannot find type 'Image' in scope
12 | }
13 |
14 | public init(image: Image) {
| `- error: cannot find type 'Image' in scope
15 | self.image = image
16 | }
/host/spi-builder-workspace/Source/Shared/Library/ImageWrapper.swift:21:23: error: cannot find 'Image' in scope
19 | let container = try decoder.container(keyedBy: CodingKeys.self)
20 | let data = try container.decode(Data.self, forKey: CodingKeys.image)
21 | guard let image = Image(data: data) else {
| `- error: cannot find 'Image' in scope
22 | throw StorageError.decodingFailed
23 | }
[34/38] Compiling Cache JSONDictionaryWrapper.swift
/host/spi-builder-workspace/Source/Shared/Library/ImageWrapper.swift:8:21: error: cannot find type 'Image' in scope
6 |
7 | public struct ImageWrapper: Codable {
8 | public let image: Image
| `- error: cannot find type 'Image' in scope
9 |
10 | public enum CodingKeys: String, CodingKey {
/host/spi-builder-workspace/Source/Shared/Library/ImageWrapper.swift:14:22: error: cannot find type 'Image' in scope
12 | }
13 |
14 | public init(image: Image) {
| `- error: cannot find type 'Image' in scope
15 | self.image = image
16 | }
/host/spi-builder-workspace/Source/Shared/Library/ImageWrapper.swift:21:23: error: cannot find 'Image' in scope
19 | let container = try decoder.container(keyedBy: CodingKeys.self)
20 | let data = try container.decode(Data.self, forKey: CodingKeys.image)
21 | guard let image = Image(data: data) else {
| `- error: cannot find 'Image' in scope
22 | throw StorageError.decodingFailed
23 | }
[35/38] Compiling Cache AsyncStorage.swift
[36/38] Compiling Cache DiskStorage.swift
[37/38] Compiling Cache HybridStorage.swift
[38/38] Compiling Cache KeyObservationRegistry.swift
BUILD FAILURE 6.0 linux