Build Information
Failed to build Siesta, reference main (4fcc94
), with Swift 6.0 for Linux on 27 Nov 2024 20:08:24 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 -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
Build Log
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:311:9: error: cannot infer type of closure parameter '$0' without a type annotation
309 | {
310 | ResponseContentTransformer<Data, Image>(transformErrors: transformErrors)
311 | {
| `- error: cannot infer type of closure parameter '$0' without a type annotation
312 | guard let image = Image(data: $0.content) else
313 | { throw RequestError.Cause.UnparsableImage() }
/host/spi-builder-workspace/Source/Siesta/Pipeline/StandardTransformers.swift:50:23: warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'StandardTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
13 | - SeeAlso: `Service.init(...)`’s `standardTransformers:` parameter
14 | */
15 | public struct StandardTransformer
| `- note: consider making struct 'StandardTransformer' conform to the 'Sendable' protocol
16 | {
17 | // Hello, reader of source code! Do you find yourself wanting these properties to be public, so that you can create
:
48 | or for different content types.
49 | */
50 | public static let json =
| |- warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'StandardTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'json' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | StandardTransformer(
52 | name: "JSON", transformer: JSONResponseTransformer(), contentTypes: ["*/json", "*/*+json"], stage: .parsing)
/host/spi-builder-workspace/Source/Siesta/Pipeline/StandardTransformers.swift:60:23: warning: static property 'text' is not concurrency-safe because non-'Sendable' type 'StandardTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
13 | - SeeAlso: `Service.init(...)`’s `standardTransformers:` parameter
14 | */
15 | public struct StandardTransformer
| `- note: consider making struct 'StandardTransformer' conform to the 'Sendable' protocol
16 | {
17 | // Hello, reader of source code! Do you find yourself wanting these properties to be public, so that you can create
:
58 | or for different content types.
59 | */
60 | public static let text =
| |- warning: static property 'text' is not concurrency-safe because non-'Sendable' type 'StandardTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'text' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | StandardTransformer(
62 | name: "text", transformer: TextResponseTransformer(), contentTypes: ["text/*"], stage: .parsing)
/host/spi-builder-workspace/Source/Siesta/Pipeline/StandardTransformers.swift:70:23: warning: static property 'image' is not concurrency-safe because non-'Sendable' type 'StandardTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
13 | - SeeAlso: `Service.init(...)`’s `standardTransformers:` parameter
14 | */
15 | public struct StandardTransformer
| `- note: consider making struct 'StandardTransformer' conform to the 'Sendable' protocol
16 | {
17 | // Hello, reader of source code! Do you find yourself wanting these properties to be public, so that you can create
:
68 | stage, or for different content types.
69 | */
70 | public static let image =
| |- warning: static property 'image' is not concurrency-safe because non-'Sendable' type 'StandardTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'image' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 | StandardTransformer(
72 | name: "image", transformer: ImageResponseTransformer(), contentTypes: ["image/*"], stage: .parsing)
/host/spi-builder-workspace/Source/Siesta/Networking.swift:34:24: error: cannot find type 'URLRequest' in scope
32 | */
33 | func startRequest(
34 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
35 | completion: @escaping RequestNetworkingCompletionCallback)
36 | -> RequestNetworking
/host/spi-builder-workspace/Source/Siesta/Networking.swift:77:57: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 |
76 | /// Used by a `NetworkingProvider` implementation to pass the result of a network request back to Siesta.
77 | public typealias RequestNetworkingCompletionCallback = (HTTPURLResponse?, Data?, Error?) -> Void
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 |
79 | /**
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineConfiguration.swift:258:23: warning: static property 'rawData' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
242 | }
243 | */
244 | public final class PipelineStageKey: _OpenEnum, CustomStringConvertible
| `- note: class 'PipelineStageKey' does not conform to the 'Sendable' protocol
245 | {
246 | /// A human-readable name for this key. Does not affect uniqueness, or any other logical behavior.
:
256 | {
257 | /// Response data still unprocessed. The stage typically contains no transformers.
258 | public static let rawData = PipelineStageKey(description: "rawData")
| |- warning: static property 'rawData' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'rawData' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
259 |
260 | /// Any bytes-to-bytes processing, such as decryption or decompression, not already performed by the network lib.
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineConfiguration.swift:261:23: warning: static property 'decoding' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
242 | }
243 | */
244 | public final class PipelineStageKey: _OpenEnum, CustomStringConvertible
| `- note: class 'PipelineStageKey' does not conform to the 'Sendable' protocol
245 | {
246 | /// A human-readable name for this key. Does not affect uniqueness, or any other logical behavior.
:
259 |
260 | /// Any bytes-to-bytes processing, such as decryption or decompression, not already performed by the network lib.
261 | public static let decoding = PipelineStageKey(description: "decoding")
| |- warning: static property 'decoding' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'decoding' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
262 |
263 | /// Transformation of bytes to an ADT or other generic data structure, e.g. a string, dictionary, or image.
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineConfiguration.swift:264:23: warning: static property 'parsing' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
242 | }
243 | */
244 | public final class PipelineStageKey: _OpenEnum, CustomStringConvertible
| `- note: class 'PipelineStageKey' does not conform to the 'Sendable' protocol
245 | {
246 | /// A human-readable name for this key. Does not affect uniqueness, or any other logical behavior.
:
262 |
263 | /// Transformation of bytes to an ADT or other generic data structure, e.g. a string, dictionary, or image.
264 | public static let parsing = PipelineStageKey(description: "parsing")
| |- warning: static property 'parsing' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'parsing' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
265 |
266 | /// Transformation from an ADT to a domain-specific model.
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineConfiguration.swift:267:23: warning: static property 'model' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
242 | }
243 | */
244 | public final class PipelineStageKey: _OpenEnum, CustomStringConvertible
| `- note: class 'PipelineStageKey' does not conform to the 'Sendable' protocol
245 | {
246 | /// A human-readable name for this key. Does not affect uniqueness, or any other logical behavior.
:
265 |
266 | /// Transformation from an ADT to a domain-specific model.
267 | public static let model = PipelineStageKey(description: "model")
| |- warning: static property 'model' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'model' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
268 |
269 | /// Error handling, validation, or any other general mop-up.
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineConfiguration.swift:270:23: warning: static property 'cleanup' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
242 | }
243 | */
244 | public final class PipelineStageKey: _OpenEnum, CustomStringConvertible
| `- note: class 'PipelineStageKey' does not conform to the 'Sendable' protocol
245 | {
246 | /// A human-readable name for this key. Does not affect uniqueness, or any other logical behavior.
:
268 |
269 | /// Error handling, validation, or any other general mop-up.
270 | public static let cleanup = PipelineStageKey(description: "cleanup")
| |- warning: static property 'cleanup' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'cleanup' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
271 | }
272 |
/host/spi-builder-workspace/Source/Siesta/EntityCache.swift:110:14: warning: var 'defaultEntityCacheWorkQueue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
108 | }
109 |
110 | internal var defaultEntityCacheWorkQueue: DispatchQueue =
| |- warning: var 'defaultEntityCacheWorkQueue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultEntityCacheWorkQueue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultEntityCacheWorkQueue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
111 | DispatchQueue.global(qos: DispatchQoS.QoSClass.userInitiated)
112 |
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineProcessing.swift:108:33: warning: capture of 'self' with non-sendable type 'Pipeline.CacheRequestDelegate' in a `@Sendable` closure; this is an error in the Swift 6 language mode
90 | extension Pipeline
91 | {
92 | private struct CacheRequestDelegate: RequestDelegate
| `- note: consider making struct 'CacheRequestDelegate' conform to the 'Sendable' protocol
93 | {
94 | let requestDescription: String
:
106 | {
107 | let response: Response
108 | if let entity = self.performCacheLookup()
| `- warning: capture of 'self' with non-sendable type 'Pipeline.CacheRequestDelegate' in a `@Sendable` closure; this is an error in the Swift 6 language mode
109 | { response = .success(entity) }
110 | else
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineProcessing.swift:119:21: warning: capture of 'completionHandler' with non-sendable type 'any RequestCompletionHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | DispatchQueue.main.async
118 | {
119 | completionHandler.broadcastResponse(ResponseInfo(response: response))
| `- warning: capture of 'completionHandler' with non-sendable type 'any RequestCompletionHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 | }
121 | }
/host/spi-builder-workspace/Source/Siesta/Request/LiveRequest.swift:118:17: note: protocol 'RequestCompletionHandler' does not conform to the 'Sendable' protocol
116 | - SeeAlso: `RequestDelegate.startUnderlyingOperation(completionHandler:)`
117 | */
118 | public protocol RequestCompletionHandler
| `- note: protocol 'RequestCompletionHandler' does not conform to the 'Sendable' protocol
119 | {
120 | /**
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineProcessing.swift:208:15: warning: capture of 'self' with non-sendable type 'CacheEntry<Cache, Key>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
181 | }
182 |
183 | private struct CacheEntry<Cache, Key>: CacheEntryProtocol
| `- note: consider making generic struct 'CacheEntry' conform to the 'Sendable' protocol
184 | where Cache: EntityCache, Cache.Key == Key
185 | {
:
206 | {
207 | cache.workQueue.async
208 | { self.cache.writeEntity(entity, forKey: self.key) }
| `- warning: capture of 'self' with non-sendable type 'CacheEntry<Cache, Key>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
209 | }
210 |
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineProcessing.swift:208:38: warning: capture of 'entity' with non-sendable type 'Entity<Any>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
206 | {
207 | cache.workQueue.async
208 | { self.cache.writeEntity(entity, forKey: self.key) }
| `- warning: capture of 'entity' with non-sendable type 'Entity<Any>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
209 | }
210 |
/host/spi-builder-workspace/Source/Siesta/Entity.swift:17:15: note: consider making generic struct 'Entity' conform to the 'Sendable' protocol
15 | Typically extracted from an HTTP message body.
16 | */
17 | public struct Entity<ContentType>
| `- note: consider making generic struct 'Entity' conform to the 'Sendable' protocol
18 | {
19 | /**
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineProcessing.swift:214:15: warning: capture of 'self' with non-sendable type 'CacheEntry<Cache, Key>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
181 | }
182 |
183 | private struct CacheEntry<Cache, Key>: CacheEntryProtocol
| `- note: consider making generic struct 'CacheEntry' conform to the 'Sendable' protocol
184 | where Cache: EntityCache, Cache.Key == Key
185 | {
:
212 | {
213 | cache.workQueue.async
214 | { self.cache.updateEntityTimestamp(timestamp, forKey: self.key) }
| `- warning: capture of 'self' with non-sendable type 'CacheEntry<Cache, Key>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
215 | }
216 |
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineProcessing.swift:220:15: warning: capture of 'self' with non-sendable type 'CacheEntry<Cache, Key>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
181 | }
182 |
183 | private struct CacheEntry<Cache, Key>: CacheEntryProtocol
| `- note: consider making generic struct 'CacheEntry' conform to the 'Sendable' protocol
184 | where Cache: EntityCache, Cache.Key == Key
185 | {
:
218 | {
219 | cache.workQueue.async
220 | { self.cache.removeEntity(forKey: self.key) }
| `- warning: capture of 'self' with non-sendable type 'CacheEntry<Cache, Key>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
221 | }
222 | }
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:279:26: error: cannot find 'CFStringConvertEncodingToNSStringEncoding' in scope
277 | {
278 | let charsetName = $0.charset ?? "ISO-8859-1"
279 | let encodingID = CFStringConvertEncodingToNSStringEncoding(
| `- error: cannot find 'CFStringConvertEncodingToNSStringEncoding' in scope
280 | CFStringConvertIANACharSetNameToEncoding(charsetName as CFString))
281 |
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:280:13: error: cannot find 'CFStringConvertIANACharSetNameToEncoding' in scope
278 | let charsetName = $0.charset ?? "ISO-8859-1"
279 | let encodingID = CFStringConvertEncodingToNSStringEncoding(
280 | CFStringConvertIANACharSetNameToEncoding(charsetName as CFString))
| `- error: cannot find 'CFStringConvertIANACharSetNameToEncoding' in scope
281 |
282 | guard encodingID != UInt(kCFStringEncodingInvalidId) else
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:282:34: error: cannot find 'kCFStringEncodingInvalidId' in scope
280 | CFStringConvertIANACharSetNameToEncoding(charsetName as CFString))
281 |
282 | guard encodingID != UInt(kCFStringEncodingInvalidId) else
| `- error: cannot find 'kCFStringEncodingInvalidId' in scope
283 | { throw RequestError.Cause.InvalidTextEncoding(encodingName: charsetName) }
284 |
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:280:69: error: cannot find type 'CFString' in scope
278 | let charsetName = $0.charset ?? "ISO-8859-1"
279 | let encodingID = CFStringConvertEncodingToNSStringEncoding(
280 | CFStringConvertIANACharSetNameToEncoding(charsetName as CFString))
| `- error: cannot find type 'CFString' in scope
281 |
282 | guard encodingID != UInt(kCFStringEncodingInvalidId) else
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:312:27: error: cannot find 'Image' in scope
310 | ResponseContentTransformer<Data, Image>(transformErrors: transformErrors)
311 | {
312 | guard let image = Image(data: $0.content) else
| `- error: cannot find 'Image' in scope
313 | { throw RequestError.Cause.UnparsableImage() }
314 |
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:310:38: error: cannot find type 'Image' in scope
308 | public func ImageResponseTransformer(_ transformErrors: Bool = false) -> ResponseTransformer
309 | {
310 | ResponseContentTransformer<Data, Image>(transformErrors: transformErrors)
| `- error: cannot find type 'Image' in scope
311 | {
312 | guard let image = Image(data: $0.content) else
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:311:9: error: cannot infer type of closure parameter '$0' without a type annotation
309 | {
310 | ResponseContentTransformer<Data, Image>(transformErrors: transformErrors)
311 | {
| `- error: cannot infer type of closure parameter '$0' without a type annotation
312 | guard let image = Image(data: $0.content) else
313 | { throw RequestError.Cause.UnparsableImage() }
/host/spi-builder-workspace/Source/Siesta/Pipeline/StandardTransformers.swift:50:23: warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'StandardTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
13 | - SeeAlso: `Service.init(...)`’s `standardTransformers:` parameter
14 | */
15 | public struct StandardTransformer
| `- note: consider making struct 'StandardTransformer' conform to the 'Sendable' protocol
16 | {
17 | // Hello, reader of source code! Do you find yourself wanting these properties to be public, so that you can create
:
48 | or for different content types.
49 | */
50 | public static let json =
| |- warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'StandardTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'json' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | StandardTransformer(
52 | name: "JSON", transformer: JSONResponseTransformer(), contentTypes: ["*/json", "*/*+json"], stage: .parsing)
/host/spi-builder-workspace/Source/Siesta/Pipeline/StandardTransformers.swift:60:23: warning: static property 'text' is not concurrency-safe because non-'Sendable' type 'StandardTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
13 | - SeeAlso: `Service.init(...)`’s `standardTransformers:` parameter
14 | */
15 | public struct StandardTransformer
| `- note: consider making struct 'StandardTransformer' conform to the 'Sendable' protocol
16 | {
17 | // Hello, reader of source code! Do you find yourself wanting these properties to be public, so that you can create
:
58 | or for different content types.
59 | */
60 | public static let text =
| |- warning: static property 'text' is not concurrency-safe because non-'Sendable' type 'StandardTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'text' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | StandardTransformer(
62 | name: "text", transformer: TextResponseTransformer(), contentTypes: ["text/*"], stage: .parsing)
/host/spi-builder-workspace/Source/Siesta/Pipeline/StandardTransformers.swift:70:23: warning: static property 'image' is not concurrency-safe because non-'Sendable' type 'StandardTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
13 | - SeeAlso: `Service.init(...)`’s `standardTransformers:` parameter
14 | */
15 | public struct StandardTransformer
| `- note: consider making struct 'StandardTransformer' conform to the 'Sendable' protocol
16 | {
17 | // Hello, reader of source code! Do you find yourself wanting these properties to be public, so that you can create
:
68 | stage, or for different content types.
69 | */
70 | public static let image =
| |- warning: static property 'image' is not concurrency-safe because non-'Sendable' type 'StandardTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'image' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 | StandardTransformer(
72 | name: "image", transformer: ImageResponseTransformer(), contentTypes: ["image/*"], stage: .parsing)
/host/spi-builder-workspace/Source/Siesta/Networking.swift:34:24: error: cannot find type 'URLRequest' in scope
32 | */
33 | func startRequest(
34 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
35 | completion: @escaping RequestNetworkingCompletionCallback)
36 | -> RequestNetworking
/host/spi-builder-workspace/Source/Siesta/Networking.swift:77:57: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 |
76 | /// Used by a `NetworkingProvider` implementation to pass the result of a network request back to Siesta.
77 | public typealias RequestNetworkingCompletionCallback = (HTTPURLResponse?, Data?, Error?) -> Void
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 |
79 | /**
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineConfiguration.swift:258:23: warning: static property 'rawData' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
242 | }
243 | */
244 | public final class PipelineStageKey: _OpenEnum, CustomStringConvertible
| `- note: class 'PipelineStageKey' does not conform to the 'Sendable' protocol
245 | {
246 | /// A human-readable name for this key. Does not affect uniqueness, or any other logical behavior.
:
256 | {
257 | /// Response data still unprocessed. The stage typically contains no transformers.
258 | public static let rawData = PipelineStageKey(description: "rawData")
| |- warning: static property 'rawData' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'rawData' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
259 |
260 | /// Any bytes-to-bytes processing, such as decryption or decompression, not already performed by the network lib.
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineConfiguration.swift:261:23: warning: static property 'decoding' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
242 | }
243 | */
244 | public final class PipelineStageKey: _OpenEnum, CustomStringConvertible
| `- note: class 'PipelineStageKey' does not conform to the 'Sendable' protocol
245 | {
246 | /// A human-readable name for this key. Does not affect uniqueness, or any other logical behavior.
:
259 |
260 | /// Any bytes-to-bytes processing, such as decryption or decompression, not already performed by the network lib.
261 | public static let decoding = PipelineStageKey(description: "decoding")
| |- warning: static property 'decoding' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'decoding' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
262 |
263 | /// Transformation of bytes to an ADT or other generic data structure, e.g. a string, dictionary, or image.
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineConfiguration.swift:264:23: warning: static property 'parsing' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
242 | }
243 | */
244 | public final class PipelineStageKey: _OpenEnum, CustomStringConvertible
| `- note: class 'PipelineStageKey' does not conform to the 'Sendable' protocol
245 | {
246 | /// A human-readable name for this key. Does not affect uniqueness, or any other logical behavior.
:
262 |
263 | /// Transformation of bytes to an ADT or other generic data structure, e.g. a string, dictionary, or image.
264 | public static let parsing = PipelineStageKey(description: "parsing")
| |- warning: static property 'parsing' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'parsing' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
265 |
266 | /// Transformation from an ADT to a domain-specific model.
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineConfiguration.swift:267:23: warning: static property 'model' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
242 | }
243 | */
244 | public final class PipelineStageKey: _OpenEnum, CustomStringConvertible
| `- note: class 'PipelineStageKey' does not conform to the 'Sendable' protocol
245 | {
246 | /// A human-readable name for this key. Does not affect uniqueness, or any other logical behavior.
:
265 |
266 | /// Transformation from an ADT to a domain-specific model.
267 | public static let model = PipelineStageKey(description: "model")
| |- warning: static property 'model' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'model' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
268 |
269 | /// Error handling, validation, or any other general mop-up.
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineConfiguration.swift:270:23: warning: static property 'cleanup' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
242 | }
243 | */
244 | public final class PipelineStageKey: _OpenEnum, CustomStringConvertible
| `- note: class 'PipelineStageKey' does not conform to the 'Sendable' protocol
245 | {
246 | /// A human-readable name for this key. Does not affect uniqueness, or any other logical behavior.
:
268 |
269 | /// Error handling, validation, or any other general mop-up.
270 | public static let cleanup = PipelineStageKey(description: "cleanup")
| |- warning: static property 'cleanup' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'cleanup' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
271 | }
272 |
/host/spi-builder-workspace/Source/Siesta/EntityCache.swift:110:14: warning: var 'defaultEntityCacheWorkQueue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
108 | }
109 |
110 | internal var defaultEntityCacheWorkQueue: DispatchQueue =
| |- warning: var 'defaultEntityCacheWorkQueue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultEntityCacheWorkQueue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultEntityCacheWorkQueue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
111 | DispatchQueue.global(qos: DispatchQoS.QoSClass.userInitiated)
112 |
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineProcessing.swift:108:33: warning: capture of 'self' with non-sendable type 'Pipeline.CacheRequestDelegate' in a `@Sendable` closure; this is an error in the Swift 6 language mode
90 | extension Pipeline
91 | {
92 | private struct CacheRequestDelegate: RequestDelegate
| `- note: consider making struct 'CacheRequestDelegate' conform to the 'Sendable' protocol
93 | {
94 | let requestDescription: String
:
106 | {
107 | let response: Response
108 | if let entity = self.performCacheLookup()
| `- warning: capture of 'self' with non-sendable type 'Pipeline.CacheRequestDelegate' in a `@Sendable` closure; this is an error in the Swift 6 language mode
109 | { response = .success(entity) }
110 | else
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineProcessing.swift:119:21: warning: capture of 'completionHandler' with non-sendable type 'any RequestCompletionHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | DispatchQueue.main.async
118 | {
119 | completionHandler.broadcastResponse(ResponseInfo(response: response))
| `- warning: capture of 'completionHandler' with non-sendable type 'any RequestCompletionHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 | }
121 | }
/host/spi-builder-workspace/Source/Siesta/Request/LiveRequest.swift:118:17: note: protocol 'RequestCompletionHandler' does not conform to the 'Sendable' protocol
116 | - SeeAlso: `RequestDelegate.startUnderlyingOperation(completionHandler:)`
117 | */
118 | public protocol RequestCompletionHandler
| `- note: protocol 'RequestCompletionHandler' does not conform to the 'Sendable' protocol
119 | {
120 | /**
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineProcessing.swift:208:15: warning: capture of 'self' with non-sendable type 'CacheEntry<Cache, Key>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
181 | }
182 |
183 | private struct CacheEntry<Cache, Key>: CacheEntryProtocol
| `- note: consider making generic struct 'CacheEntry' conform to the 'Sendable' protocol
184 | where Cache: EntityCache, Cache.Key == Key
185 | {
:
206 | {
207 | cache.workQueue.async
208 | { self.cache.writeEntity(entity, forKey: self.key) }
| `- warning: capture of 'self' with non-sendable type 'CacheEntry<Cache, Key>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
209 | }
210 |
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineProcessing.swift:208:38: warning: capture of 'entity' with non-sendable type 'Entity<Any>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
206 | {
207 | cache.workQueue.async
208 | { self.cache.writeEntity(entity, forKey: self.key) }
| `- warning: capture of 'entity' with non-sendable type 'Entity<Any>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
209 | }
210 |
/host/spi-builder-workspace/Source/Siesta/Entity.swift:17:15: note: consider making generic struct 'Entity' conform to the 'Sendable' protocol
15 | Typically extracted from an HTTP message body.
16 | */
17 | public struct Entity<ContentType>
| `- note: consider making generic struct 'Entity' conform to the 'Sendable' protocol
18 | {
19 | /**
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineProcessing.swift:214:15: warning: capture of 'self' with non-sendable type 'CacheEntry<Cache, Key>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
181 | }
182 |
183 | private struct CacheEntry<Cache, Key>: CacheEntryProtocol
| `- note: consider making generic struct 'CacheEntry' conform to the 'Sendable' protocol
184 | where Cache: EntityCache, Cache.Key == Key
185 | {
:
212 | {
213 | cache.workQueue.async
214 | { self.cache.updateEntityTimestamp(timestamp, forKey: self.key) }
| `- warning: capture of 'self' with non-sendable type 'CacheEntry<Cache, Key>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
215 | }
216 |
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineProcessing.swift:220:15: warning: capture of 'self' with non-sendable type 'CacheEntry<Cache, Key>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
181 | }
182 |
183 | private struct CacheEntry<Cache, Key>: CacheEntryProtocol
| `- note: consider making generic struct 'CacheEntry' conform to the 'Sendable' protocol
184 | where Cache: EntityCache, Cache.Key == Key
185 | {
:
218 | {
219 | cache.workQueue.async
220 | { self.cache.removeEntity(forKey: self.key) }
| `- warning: capture of 'self' with non-sendable type 'CacheEntry<Cache, Key>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
221 | }
222 | }
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:279:26: error: cannot find 'CFStringConvertEncodingToNSStringEncoding' in scope
277 | {
278 | let charsetName = $0.charset ?? "ISO-8859-1"
279 | let encodingID = CFStringConvertEncodingToNSStringEncoding(
| `- error: cannot find 'CFStringConvertEncodingToNSStringEncoding' in scope
280 | CFStringConvertIANACharSetNameToEncoding(charsetName as CFString))
281 |
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:280:13: error: cannot find 'CFStringConvertIANACharSetNameToEncoding' in scope
278 | let charsetName = $0.charset ?? "ISO-8859-1"
279 | let encodingID = CFStringConvertEncodingToNSStringEncoding(
280 | CFStringConvertIANACharSetNameToEncoding(charsetName as CFString))
| `- error: cannot find 'CFStringConvertIANACharSetNameToEncoding' in scope
281 |
282 | guard encodingID != UInt(kCFStringEncodingInvalidId) else
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:282:34: error: cannot find 'kCFStringEncodingInvalidId' in scope
280 | CFStringConvertIANACharSetNameToEncoding(charsetName as CFString))
281 |
282 | guard encodingID != UInt(kCFStringEncodingInvalidId) else
| `- error: cannot find 'kCFStringEncodingInvalidId' in scope
283 | { throw RequestError.Cause.InvalidTextEncoding(encodingName: charsetName) }
284 |
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:280:69: error: cannot find type 'CFString' in scope
278 | let charsetName = $0.charset ?? "ISO-8859-1"
279 | let encodingID = CFStringConvertEncodingToNSStringEncoding(
280 | CFStringConvertIANACharSetNameToEncoding(charsetName as CFString))
| `- error: cannot find type 'CFString' in scope
281 |
282 | guard encodingID != UInt(kCFStringEncodingInvalidId) else
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:312:27: error: cannot find 'Image' in scope
310 | ResponseContentTransformer<Data, Image>(transformErrors: transformErrors)
311 | {
312 | guard let image = Image(data: $0.content) else
| `- error: cannot find 'Image' in scope
313 | { throw RequestError.Cause.UnparsableImage() }
314 |
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:310:38: error: cannot find type 'Image' in scope
308 | public func ImageResponseTransformer(_ transformErrors: Bool = false) -> ResponseTransformer
309 | {
310 | ResponseContentTransformer<Data, Image>(transformErrors: transformErrors)
| `- error: cannot find type 'Image' in scope
311 | {
312 | guard let image = Image(data: $0.content) else
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:311:9: error: cannot infer type of closure parameter '$0' without a type annotation
309 | {
310 | ResponseContentTransformer<Data, Image>(transformErrors: transformErrors)
311 | {
| `- error: cannot infer type of closure parameter '$0' without a type annotation
312 | guard let image = Image(data: $0.content) else
313 | { throw RequestError.Cause.UnparsableImage() }
/host/spi-builder-workspace/Source/Siesta/Pipeline/StandardTransformers.swift:50:23: warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'StandardTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
13 | - SeeAlso: `Service.init(...)`’s `standardTransformers:` parameter
14 | */
15 | public struct StandardTransformer
| `- note: consider making struct 'StandardTransformer' conform to the 'Sendable' protocol
16 | {
17 | // Hello, reader of source code! Do you find yourself wanting these properties to be public, so that you can create
:
48 | or for different content types.
49 | */
50 | public static let json =
| |- warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'StandardTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'json' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | StandardTransformer(
52 | name: "JSON", transformer: JSONResponseTransformer(), contentTypes: ["*/json", "*/*+json"], stage: .parsing)
/host/spi-builder-workspace/Source/Siesta/Pipeline/StandardTransformers.swift:60:23: warning: static property 'text' is not concurrency-safe because non-'Sendable' type 'StandardTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
13 | - SeeAlso: `Service.init(...)`’s `standardTransformers:` parameter
14 | */
15 | public struct StandardTransformer
| `- note: consider making struct 'StandardTransformer' conform to the 'Sendable' protocol
16 | {
17 | // Hello, reader of source code! Do you find yourself wanting these properties to be public, so that you can create
:
58 | or for different content types.
59 | */
60 | public static let text =
| |- warning: static property 'text' is not concurrency-safe because non-'Sendable' type 'StandardTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'text' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | StandardTransformer(
62 | name: "text", transformer: TextResponseTransformer(), contentTypes: ["text/*"], stage: .parsing)
/host/spi-builder-workspace/Source/Siesta/Pipeline/StandardTransformers.swift:70:23: warning: static property 'image' is not concurrency-safe because non-'Sendable' type 'StandardTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
13 | - SeeAlso: `Service.init(...)`’s `standardTransformers:` parameter
14 | */
15 | public struct StandardTransformer
| `- note: consider making struct 'StandardTransformer' conform to the 'Sendable' protocol
16 | {
17 | // Hello, reader of source code! Do you find yourself wanting these properties to be public, so that you can create
:
68 | stage, or for different content types.
69 | */
70 | public static let image =
| |- warning: static property 'image' is not concurrency-safe because non-'Sendable' type 'StandardTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'image' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 | StandardTransformer(
72 | name: "image", transformer: ImageResponseTransformer(), contentTypes: ["image/*"], stage: .parsing)
/host/spi-builder-workspace/Source/Siesta/Networking.swift:34:24: error: cannot find type 'URLRequest' in scope
32 | */
33 | func startRequest(
34 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
35 | completion: @escaping RequestNetworkingCompletionCallback)
36 | -> RequestNetworking
/host/spi-builder-workspace/Source/Siesta/Networking.swift:77:57: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 |
76 | /// Used by a `NetworkingProvider` implementation to pass the result of a network request back to Siesta.
77 | public typealias RequestNetworkingCompletionCallback = (HTTPURLResponse?, Data?, Error?) -> Void
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 |
79 | /**
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineConfiguration.swift:258:23: warning: static property 'rawData' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
242 | }
243 | */
244 | public final class PipelineStageKey: _OpenEnum, CustomStringConvertible
| `- note: class 'PipelineStageKey' does not conform to the 'Sendable' protocol
245 | {
246 | /// A human-readable name for this key. Does not affect uniqueness, or any other logical behavior.
:
256 | {
257 | /// Response data still unprocessed. The stage typically contains no transformers.
258 | public static let rawData = PipelineStageKey(description: "rawData")
| |- warning: static property 'rawData' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'rawData' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
259 |
260 | /// Any bytes-to-bytes processing, such as decryption or decompression, not already performed by the network lib.
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineConfiguration.swift:261:23: warning: static property 'decoding' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
242 | }
243 | */
244 | public final class PipelineStageKey: _OpenEnum, CustomStringConvertible
| `- note: class 'PipelineStageKey' does not conform to the 'Sendable' protocol
245 | {
246 | /// A human-readable name for this key. Does not affect uniqueness, or any other logical behavior.
:
259 |
260 | /// Any bytes-to-bytes processing, such as decryption or decompression, not already performed by the network lib.
261 | public static let decoding = PipelineStageKey(description: "decoding")
| |- warning: static property 'decoding' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'decoding' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
262 |
263 | /// Transformation of bytes to an ADT or other generic data structure, e.g. a string, dictionary, or image.
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineConfiguration.swift:264:23: warning: static property 'parsing' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
242 | }
243 | */
244 | public final class PipelineStageKey: _OpenEnum, CustomStringConvertible
| `- note: class 'PipelineStageKey' does not conform to the 'Sendable' protocol
245 | {
246 | /// A human-readable name for this key. Does not affect uniqueness, or any other logical behavior.
:
262 |
263 | /// Transformation of bytes to an ADT or other generic data structure, e.g. a string, dictionary, or image.
264 | public static let parsing = PipelineStageKey(description: "parsing")
| |- warning: static property 'parsing' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'parsing' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
265 |
266 | /// Transformation from an ADT to a domain-specific model.
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineConfiguration.swift:267:23: warning: static property 'model' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
242 | }
243 | */
244 | public final class PipelineStageKey: _OpenEnum, CustomStringConvertible
| `- note: class 'PipelineStageKey' does not conform to the 'Sendable' protocol
245 | {
246 | /// A human-readable name for this key. Does not affect uniqueness, or any other logical behavior.
:
265 |
266 | /// Transformation from an ADT to a domain-specific model.
267 | public static let model = PipelineStageKey(description: "model")
| |- warning: static property 'model' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'model' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
268 |
269 | /// Error handling, validation, or any other general mop-up.
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineConfiguration.swift:270:23: warning: static property 'cleanup' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
242 | }
243 | */
244 | public final class PipelineStageKey: _OpenEnum, CustomStringConvertible
| `- note: class 'PipelineStageKey' does not conform to the 'Sendable' protocol
245 | {
246 | /// A human-readable name for this key. Does not affect uniqueness, or any other logical behavior.
:
268 |
269 | /// Error handling, validation, or any other general mop-up.
270 | public static let cleanup = PipelineStageKey(description: "cleanup")
| |- warning: static property 'cleanup' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'cleanup' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
271 | }
272 |
/host/spi-builder-workspace/Source/Siesta/EntityCache.swift:110:14: warning: var 'defaultEntityCacheWorkQueue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
108 | }
109 |
110 | internal var defaultEntityCacheWorkQueue: DispatchQueue =
| |- warning: var 'defaultEntityCacheWorkQueue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultEntityCacheWorkQueue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultEntityCacheWorkQueue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
111 | DispatchQueue.global(qos: DispatchQoS.QoSClass.userInitiated)
112 |
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineProcessing.swift:108:33: warning: capture of 'self' with non-sendable type 'Pipeline.CacheRequestDelegate' in a `@Sendable` closure; this is an error in the Swift 6 language mode
90 | extension Pipeline
91 | {
92 | private struct CacheRequestDelegate: RequestDelegate
| `- note: consider making struct 'CacheRequestDelegate' conform to the 'Sendable' protocol
93 | {
94 | let requestDescription: String
:
106 | {
107 | let response: Response
108 | if let entity = self.performCacheLookup()
| `- warning: capture of 'self' with non-sendable type 'Pipeline.CacheRequestDelegate' in a `@Sendable` closure; this is an error in the Swift 6 language mode
109 | { response = .success(entity) }
110 | else
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineProcessing.swift:119:21: warning: capture of 'completionHandler' with non-sendable type 'any RequestCompletionHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | DispatchQueue.main.async
118 | {
119 | completionHandler.broadcastResponse(ResponseInfo(response: response))
| `- warning: capture of 'completionHandler' with non-sendable type 'any RequestCompletionHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 | }
121 | }
/host/spi-builder-workspace/Source/Siesta/Request/LiveRequest.swift:118:17: note: protocol 'RequestCompletionHandler' does not conform to the 'Sendable' protocol
116 | - SeeAlso: `RequestDelegate.startUnderlyingOperation(completionHandler:)`
117 | */
118 | public protocol RequestCompletionHandler
| `- note: protocol 'RequestCompletionHandler' does not conform to the 'Sendable' protocol
119 | {
120 | /**
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineProcessing.swift:208:15: warning: capture of 'self' with non-sendable type 'CacheEntry<Cache, Key>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
181 | }
182 |
183 | private struct CacheEntry<Cache, Key>: CacheEntryProtocol
| `- note: consider making generic struct 'CacheEntry' conform to the 'Sendable' protocol
184 | where Cache: EntityCache, Cache.Key == Key
185 | {
:
206 | {
207 | cache.workQueue.async
208 | { self.cache.writeEntity(entity, forKey: self.key) }
| `- warning: capture of 'self' with non-sendable type 'CacheEntry<Cache, Key>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
209 | }
210 |
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineProcessing.swift:208:38: warning: capture of 'entity' with non-sendable type 'Entity<Any>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
206 | {
207 | cache.workQueue.async
208 | { self.cache.writeEntity(entity, forKey: self.key) }
| `- warning: capture of 'entity' with non-sendable type 'Entity<Any>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
209 | }
210 |
/host/spi-builder-workspace/Source/Siesta/Entity.swift:17:15: note: consider making generic struct 'Entity' conform to the 'Sendable' protocol
15 | Typically extracted from an HTTP message body.
16 | */
17 | public struct Entity<ContentType>
| `- note: consider making generic struct 'Entity' conform to the 'Sendable' protocol
18 | {
19 | /**
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineProcessing.swift:214:15: warning: capture of 'self' with non-sendable type 'CacheEntry<Cache, Key>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
181 | }
182 |
183 | private struct CacheEntry<Cache, Key>: CacheEntryProtocol
| `- note: consider making generic struct 'CacheEntry' conform to the 'Sendable' protocol
184 | where Cache: EntityCache, Cache.Key == Key
185 | {
:
212 | {
213 | cache.workQueue.async
214 | { self.cache.updateEntityTimestamp(timestamp, forKey: self.key) }
| `- warning: capture of 'self' with non-sendable type 'CacheEntry<Cache, Key>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
215 | }
216 |
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineProcessing.swift:220:15: warning: capture of 'self' with non-sendable type 'CacheEntry<Cache, Key>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
181 | }
182 |
183 | private struct CacheEntry<Cache, Key>: CacheEntryProtocol
| `- note: consider making generic struct 'CacheEntry' conform to the 'Sendable' protocol
184 | where Cache: EntityCache, Cache.Key == Key
185 | {
:
218 | {
219 | cache.workQueue.async
220 | { self.cache.removeEntity(forKey: self.key) }
| `- warning: capture of 'self' with non-sendable type 'CacheEntry<Cache, Key>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
221 | }
222 | }
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:279:26: error: cannot find 'CFStringConvertEncodingToNSStringEncoding' in scope
277 | {
278 | let charsetName = $0.charset ?? "ISO-8859-1"
279 | let encodingID = CFStringConvertEncodingToNSStringEncoding(
| `- error: cannot find 'CFStringConvertEncodingToNSStringEncoding' in scope
280 | CFStringConvertIANACharSetNameToEncoding(charsetName as CFString))
281 |
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:280:13: error: cannot find 'CFStringConvertIANACharSetNameToEncoding' in scope
278 | let charsetName = $0.charset ?? "ISO-8859-1"
279 | let encodingID = CFStringConvertEncodingToNSStringEncoding(
280 | CFStringConvertIANACharSetNameToEncoding(charsetName as CFString))
| `- error: cannot find 'CFStringConvertIANACharSetNameToEncoding' in scope
281 |
282 | guard encodingID != UInt(kCFStringEncodingInvalidId) else
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:282:34: error: cannot find 'kCFStringEncodingInvalidId' in scope
280 | CFStringConvertIANACharSetNameToEncoding(charsetName as CFString))
281 |
282 | guard encodingID != UInt(kCFStringEncodingInvalidId) else
| `- error: cannot find 'kCFStringEncodingInvalidId' in scope
283 | { throw RequestError.Cause.InvalidTextEncoding(encodingName: charsetName) }
284 |
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:280:69: error: cannot find type 'CFString' in scope
278 | let charsetName = $0.charset ?? "ISO-8859-1"
279 | let encodingID = CFStringConvertEncodingToNSStringEncoding(
280 | CFStringConvertIANACharSetNameToEncoding(charsetName as CFString))
| `- error: cannot find type 'CFString' in scope
281 |
282 | guard encodingID != UInt(kCFStringEncodingInvalidId) else
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:312:27: error: cannot find 'Image' in scope
310 | ResponseContentTransformer<Data, Image>(transformErrors: transformErrors)
311 | {
312 | guard let image = Image(data: $0.content) else
| `- error: cannot find 'Image' in scope
313 | { throw RequestError.Cause.UnparsableImage() }
314 |
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:310:38: error: cannot find type 'Image' in scope
308 | public func ImageResponseTransformer(_ transformErrors: Bool = false) -> ResponseTransformer
309 | {
310 | ResponseContentTransformer<Data, Image>(transformErrors: transformErrors)
| `- error: cannot find type 'Image' in scope
311 | {
312 | guard let image = Image(data: $0.content) else
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:311:9: error: cannot infer type of closure parameter '$0' without a type annotation
309 | {
310 | ResponseContentTransformer<Data, Image>(transformErrors: transformErrors)
311 | {
| `- error: cannot infer type of closure parameter '$0' without a type annotation
312 | guard let image = Image(data: $0.content) else
313 | { throw RequestError.Cause.UnparsableImage() }
/host/spi-builder-workspace/Source/Siesta/Pipeline/StandardTransformers.swift:50:23: warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'StandardTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
13 | - SeeAlso: `Service.init(...)`’s `standardTransformers:` parameter
14 | */
15 | public struct StandardTransformer
| `- note: consider making struct 'StandardTransformer' conform to the 'Sendable' protocol
16 | {
17 | // Hello, reader of source code! Do you find yourself wanting these properties to be public, so that you can create
:
48 | or for different content types.
49 | */
50 | public static let json =
| |- warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'StandardTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'json' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | StandardTransformer(
52 | name: "JSON", transformer: JSONResponseTransformer(), contentTypes: ["*/json", "*/*+json"], stage: .parsing)
/host/spi-builder-workspace/Source/Siesta/Pipeline/StandardTransformers.swift:60:23: warning: static property 'text' is not concurrency-safe because non-'Sendable' type 'StandardTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
13 | - SeeAlso: `Service.init(...)`’s `standardTransformers:` parameter
14 | */
15 | public struct StandardTransformer
| `- note: consider making struct 'StandardTransformer' conform to the 'Sendable' protocol
16 | {
17 | // Hello, reader of source code! Do you find yourself wanting these properties to be public, so that you can create
:
58 | or for different content types.
59 | */
60 | public static let text =
| |- warning: static property 'text' is not concurrency-safe because non-'Sendable' type 'StandardTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'text' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | StandardTransformer(
62 | name: "text", transformer: TextResponseTransformer(), contentTypes: ["text/*"], stage: .parsing)
/host/spi-builder-workspace/Source/Siesta/Pipeline/StandardTransformers.swift:70:23: warning: static property 'image' is not concurrency-safe because non-'Sendable' type 'StandardTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
13 | - SeeAlso: `Service.init(...)`’s `standardTransformers:` parameter
14 | */
15 | public struct StandardTransformer
| `- note: consider making struct 'StandardTransformer' conform to the 'Sendable' protocol
16 | {
17 | // Hello, reader of source code! Do you find yourself wanting these properties to be public, so that you can create
:
68 | stage, or for different content types.
69 | */
70 | public static let image =
| |- warning: static property 'image' is not concurrency-safe because non-'Sendable' type 'StandardTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'image' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 | StandardTransformer(
72 | name: "image", transformer: ImageResponseTransformer(), contentTypes: ["image/*"], stage: .parsing)
/host/spi-builder-workspace/Source/Siesta/Networking.swift:34:24: error: cannot find type 'URLRequest' in scope
32 | */
33 | func startRequest(
34 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
35 | completion: @escaping RequestNetworkingCompletionCallback)
36 | -> RequestNetworking
/host/spi-builder-workspace/Source/Siesta/Networking.swift:77:57: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 |
76 | /// Used by a `NetworkingProvider` implementation to pass the result of a network request back to Siesta.
77 | public typealias RequestNetworkingCompletionCallback = (HTTPURLResponse?, Data?, Error?) -> Void
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 |
79 | /**
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineConfiguration.swift:258:23: warning: static property 'rawData' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
242 | }
243 | */
244 | public final class PipelineStageKey: _OpenEnum, CustomStringConvertible
| `- note: class 'PipelineStageKey' does not conform to the 'Sendable' protocol
245 | {
246 | /// A human-readable name for this key. Does not affect uniqueness, or any other logical behavior.
:
256 | {
257 | /// Response data still unprocessed. The stage typically contains no transformers.
258 | public static let rawData = PipelineStageKey(description: "rawData")
| |- warning: static property 'rawData' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'rawData' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
259 |
260 | /// Any bytes-to-bytes processing, such as decryption or decompression, not already performed by the network lib.
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineConfiguration.swift:261:23: warning: static property 'decoding' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
242 | }
243 | */
244 | public final class PipelineStageKey: _OpenEnum, CustomStringConvertible
| `- note: class 'PipelineStageKey' does not conform to the 'Sendable' protocol
245 | {
246 | /// A human-readable name for this key. Does not affect uniqueness, or any other logical behavior.
:
259 |
260 | /// Any bytes-to-bytes processing, such as decryption or decompression, not already performed by the network lib.
261 | public static let decoding = PipelineStageKey(description: "decoding")
| |- warning: static property 'decoding' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'decoding' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
262 |
263 | /// Transformation of bytes to an ADT or other generic data structure, e.g. a string, dictionary, or image.
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineConfiguration.swift:264:23: warning: static property 'parsing' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
242 | }
243 | */
244 | public final class PipelineStageKey: _OpenEnum, CustomStringConvertible
| `- note: class 'PipelineStageKey' does not conform to the 'Sendable' protocol
245 | {
246 | /// A human-readable name for this key. Does not affect uniqueness, or any other logical behavior.
:
262 |
263 | /// Transformation of bytes to an ADT or other generic data structure, e.g. a string, dictionary, or image.
264 | public static let parsing = PipelineStageKey(description: "parsing")
| |- warning: static property 'parsing' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'parsing' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
265 |
266 | /// Transformation from an ADT to a domain-specific model.
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineConfiguration.swift:267:23: warning: static property 'model' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
242 | }
243 | */
244 | public final class PipelineStageKey: _OpenEnum, CustomStringConvertible
| `- note: class 'PipelineStageKey' does not conform to the 'Sendable' protocol
245 | {
246 | /// A human-readable name for this key. Does not affect uniqueness, or any other logical behavior.
:
265 |
266 | /// Transformation from an ADT to a domain-specific model.
267 | public static let model = PipelineStageKey(description: "model")
| |- warning: static property 'model' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'model' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
268 |
269 | /// Error handling, validation, or any other general mop-up.
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineConfiguration.swift:270:23: warning: static property 'cleanup' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
242 | }
243 | */
244 | public final class PipelineStageKey: _OpenEnum, CustomStringConvertible
| `- note: class 'PipelineStageKey' does not conform to the 'Sendable' protocol
245 | {
246 | /// A human-readable name for this key. Does not affect uniqueness, or any other logical behavior.
:
268 |
269 | /// Error handling, validation, or any other general mop-up.
270 | public static let cleanup = PipelineStageKey(description: "cleanup")
| |- warning: static property 'cleanup' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'cleanup' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
271 | }
272 |
/host/spi-builder-workspace/Source/Siesta/EntityCache.swift:110:14: warning: var 'defaultEntityCacheWorkQueue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
108 | }
109 |
110 | internal var defaultEntityCacheWorkQueue: DispatchQueue =
| |- warning: var 'defaultEntityCacheWorkQueue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultEntityCacheWorkQueue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultEntityCacheWorkQueue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
111 | DispatchQueue.global(qos: DispatchQoS.QoSClass.userInitiated)
112 |
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineProcessing.swift:108:33: warning: capture of 'self' with non-sendable type 'Pipeline.CacheRequestDelegate' in a `@Sendable` closure; this is an error in the Swift 6 language mode
90 | extension Pipeline
91 | {
92 | private struct CacheRequestDelegate: RequestDelegate
| `- note: consider making struct 'CacheRequestDelegate' conform to the 'Sendable' protocol
93 | {
94 | let requestDescription: String
:
106 | {
107 | let response: Response
108 | if let entity = self.performCacheLookup()
| `- warning: capture of 'self' with non-sendable type 'Pipeline.CacheRequestDelegate' in a `@Sendable` closure; this is an error in the Swift 6 language mode
109 | { response = .success(entity) }
110 | else
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineProcessing.swift:119:21: warning: capture of 'completionHandler' with non-sendable type 'any RequestCompletionHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | DispatchQueue.main.async
118 | {
119 | completionHandler.broadcastResponse(ResponseInfo(response: response))
| `- warning: capture of 'completionHandler' with non-sendable type 'any RequestCompletionHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 | }
121 | }
/host/spi-builder-workspace/Source/Siesta/Request/LiveRequest.swift:118:17: note: protocol 'RequestCompletionHandler' does not conform to the 'Sendable' protocol
116 | - SeeAlso: `RequestDelegate.startUnderlyingOperation(completionHandler:)`
117 | */
118 | public protocol RequestCompletionHandler
| `- note: protocol 'RequestCompletionHandler' does not conform to the 'Sendable' protocol
119 | {
120 | /**
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineProcessing.swift:208:15: warning: capture of 'self' with non-sendable type 'CacheEntry<Cache, Key>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
181 | }
182 |
183 | private struct CacheEntry<Cache, Key>: CacheEntryProtocol
| `- note: consider making generic struct 'CacheEntry' conform to the 'Sendable' protocol
184 | where Cache: EntityCache, Cache.Key == Key
185 | {
:
206 | {
207 | cache.workQueue.async
208 | { self.cache.writeEntity(entity, forKey: self.key) }
| `- warning: capture of 'self' with non-sendable type 'CacheEntry<Cache, Key>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
209 | }
210 |
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineProcessing.swift:208:38: warning: capture of 'entity' with non-sendable type 'Entity<Any>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
206 | {
207 | cache.workQueue.async
208 | { self.cache.writeEntity(entity, forKey: self.key) }
| `- warning: capture of 'entity' with non-sendable type 'Entity<Any>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
209 | }
210 |
/host/spi-builder-workspace/Source/Siesta/Entity.swift:17:15: note: consider making generic struct 'Entity' conform to the 'Sendable' protocol
15 | Typically extracted from an HTTP message body.
16 | */
17 | public struct Entity<ContentType>
| `- note: consider making generic struct 'Entity' conform to the 'Sendable' protocol
18 | {
19 | /**
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineProcessing.swift:214:15: warning: capture of 'self' with non-sendable type 'CacheEntry<Cache, Key>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
181 | }
182 |
183 | private struct CacheEntry<Cache, Key>: CacheEntryProtocol
| `- note: consider making generic struct 'CacheEntry' conform to the 'Sendable' protocol
184 | where Cache: EntityCache, Cache.Key == Key
185 | {
:
212 | {
213 | cache.workQueue.async
214 | { self.cache.updateEntityTimestamp(timestamp, forKey: self.key) }
| `- warning: capture of 'self' with non-sendable type 'CacheEntry<Cache, Key>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
215 | }
216 |
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineProcessing.swift:220:15: warning: capture of 'self' with non-sendable type 'CacheEntry<Cache, Key>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
181 | }
182 |
183 | private struct CacheEntry<Cache, Key>: CacheEntryProtocol
| `- note: consider making generic struct 'CacheEntry' conform to the 'Sendable' protocol
184 | where Cache: EntityCache, Cache.Key == Key
185 | {
:
218 | {
219 | cache.workQueue.async
220 | { self.cache.removeEntity(forKey: self.key) }
| `- warning: capture of 'self' with non-sendable type 'CacheEntry<Cache, Key>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
221 | }
222 | }
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:279:26: error: cannot find 'CFStringConvertEncodingToNSStringEncoding' in scope
277 | {
278 | let charsetName = $0.charset ?? "ISO-8859-1"
279 | let encodingID = CFStringConvertEncodingToNSStringEncoding(
| `- error: cannot find 'CFStringConvertEncodingToNSStringEncoding' in scope
280 | CFStringConvertIANACharSetNameToEncoding(charsetName as CFString))
281 |
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:280:13: error: cannot find 'CFStringConvertIANACharSetNameToEncoding' in scope
278 | let charsetName = $0.charset ?? "ISO-8859-1"
279 | let encodingID = CFStringConvertEncodingToNSStringEncoding(
280 | CFStringConvertIANACharSetNameToEncoding(charsetName as CFString))
| `- error: cannot find 'CFStringConvertIANACharSetNameToEncoding' in scope
281 |
282 | guard encodingID != UInt(kCFStringEncodingInvalidId) else
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:282:34: error: cannot find 'kCFStringEncodingInvalidId' in scope
280 | CFStringConvertIANACharSetNameToEncoding(charsetName as CFString))
281 |
282 | guard encodingID != UInt(kCFStringEncodingInvalidId) else
| `- error: cannot find 'kCFStringEncodingInvalidId' in scope
283 | { throw RequestError.Cause.InvalidTextEncoding(encodingName: charsetName) }
284 |
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:280:69: error: cannot find type 'CFString' in scope
278 | let charsetName = $0.charset ?? "ISO-8859-1"
279 | let encodingID = CFStringConvertEncodingToNSStringEncoding(
280 | CFStringConvertIANACharSetNameToEncoding(charsetName as CFString))
| `- error: cannot find type 'CFString' in scope
281 |
282 | guard encodingID != UInt(kCFStringEncodingInvalidId) else
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:312:27: error: cannot find 'Image' in scope
310 | ResponseContentTransformer<Data, Image>(transformErrors: transformErrors)
311 | {
312 | guard let image = Image(data: $0.content) else
| `- error: cannot find 'Image' in scope
313 | { throw RequestError.Cause.UnparsableImage() }
314 |
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:310:38: error: cannot find type 'Image' in scope
308 | public func ImageResponseTransformer(_ transformErrors: Bool = false) -> ResponseTransformer
309 | {
310 | ResponseContentTransformer<Data, Image>(transformErrors: transformErrors)
| `- error: cannot find type 'Image' in scope
311 | {
312 | guard let image = Image(data: $0.content) else
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:311:9: error: cannot infer type of closure parameter '$0' without a type annotation
309 | {
310 | ResponseContentTransformer<Data, Image>(transformErrors: transformErrors)
311 | {
| `- error: cannot infer type of closure parameter '$0' without a type annotation
312 | guard let image = Image(data: $0.content) else
313 | { throw RequestError.Cause.UnparsableImage() }
/host/spi-builder-workspace/Source/Siesta/Pipeline/StandardTransformers.swift:50:23: warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'StandardTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
13 | - SeeAlso: `Service.init(...)`’s `standardTransformers:` parameter
14 | */
15 | public struct StandardTransformer
| `- note: consider making struct 'StandardTransformer' conform to the 'Sendable' protocol
16 | {
17 | // Hello, reader of source code! Do you find yourself wanting these properties to be public, so that you can create
:
48 | or for different content types.
49 | */
50 | public static let json =
| |- warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'StandardTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'json' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | StandardTransformer(
52 | name: "JSON", transformer: JSONResponseTransformer(), contentTypes: ["*/json", "*/*+json"], stage: .parsing)
/host/spi-builder-workspace/Source/Siesta/Pipeline/StandardTransformers.swift:60:23: warning: static property 'text' is not concurrency-safe because non-'Sendable' type 'StandardTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
13 | - SeeAlso: `Service.init(...)`’s `standardTransformers:` parameter
14 | */
15 | public struct StandardTransformer
| `- note: consider making struct 'StandardTransformer' conform to the 'Sendable' protocol
16 | {
17 | // Hello, reader of source code! Do you find yourself wanting these properties to be public, so that you can create
:
58 | or for different content types.
59 | */
60 | public static let text =
| |- warning: static property 'text' is not concurrency-safe because non-'Sendable' type 'StandardTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'text' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | StandardTransformer(
62 | name: "text", transformer: TextResponseTransformer(), contentTypes: ["text/*"], stage: .parsing)
/host/spi-builder-workspace/Source/Siesta/Pipeline/StandardTransformers.swift:70:23: warning: static property 'image' is not concurrency-safe because non-'Sendable' type 'StandardTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
13 | - SeeAlso: `Service.init(...)`’s `standardTransformers:` parameter
14 | */
15 | public struct StandardTransformer
| `- note: consider making struct 'StandardTransformer' conform to the 'Sendable' protocol
16 | {
17 | // Hello, reader of source code! Do you find yourself wanting these properties to be public, so that you can create
:
68 | stage, or for different content types.
69 | */
70 | public static let image =
| |- warning: static property 'image' is not concurrency-safe because non-'Sendable' type 'StandardTransformer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'image' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 | StandardTransformer(
72 | name: "image", transformer: ImageResponseTransformer(), contentTypes: ["image/*"], stage: .parsing)
[52/89] Compiling Siesta HardWiredRequest.swift
/host/spi-builder-workspace/Source/Siesta/Request/Request.swift:262:25: warning: static property 'cancellation' is not concurrency-safe because non-'Sendable' type 'ResponseInfo' may have shared mutable state; this is an error in the Swift 6 language mode
244 |
245 | /// A `Response`, plus metadata about the nature of the response.
246 | public struct ResponseInfo
| `- note: consider making struct 'ResponseInfo' conform to the 'Sendable' protocol
247 | {
248 | /// The result of a `Request`.
:
260 | }
261 |
262 | internal static let cancellation =
| |- warning: static property 'cancellation' is not concurrency-safe because non-'Sendable' type 'ResponseInfo' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'cancellation' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
263 | ResponseInfo(
264 | response: .failure(RequestError(
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:20:39: error: cannot find type 'URLRequest' in scope
18 |
19 | // Networking
20 | private let requestBuilder: () -> URLRequest // so repeated() can re-read config
| `- error: cannot find type 'URLRequest' in scope
21 | private let underlyingRequest: URLRequest
22 | internal var networking: RequestNetworking? // present only after start()
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:21:36: error: cannot find type 'URLRequest' in scope
19 | // Networking
20 | private let requestBuilder: () -> URLRequest // so repeated() can re-read config
21 | private let underlyingRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
22 | internal var networking: RequestNetworking? // present only after start()
23 |
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:29:62: error: cannot find type 'URLRequest' in scope
27 | // MARK: Managing request
28 |
29 | init(resource: Resource, requestBuilder: @escaping () -> URLRequest)
| `- error: cannot find type 'URLRequest' in scope
30 | {
31 | self.resource = resource
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:29:46: error: @escaping attribute only applies to function types
27 | // MARK: Managing request
28 |
29 | init(resource: Resource, requestBuilder: @escaping () -> URLRequest)
| `- error: @escaping attribute only applies to function types
30 | {
31 | self.resource = resource
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:86:33: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
84 | // Entry point for response handling. Triggered by RequestNetworking completion callback.
85 | private func responseReceived(
86 | underlyingResponse: HTTPURLResponse?,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
87 | body: Data?,
88 | error: Error?,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:115:35: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |
114 | private func interpretResponse(
115 | _ underlyingResponse: HTTPURLResponse?,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | _ body: Data?,
117 | _ error: Error?)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:71:46: error: cannot find type 'URLRequest' in scope
69 | }
70 |
71 | internal func configuration(for request: URLRequest) -> Configuration
| `- error: cannot find type 'URLRequest' in scope
72 | {
73 | configuration(for:
/host/spi-builder-workspace/Source/Siesta/Networking.swift:34:24: error: cannot find type 'URLRequest' in scope
32 | */
33 | func startRequest(
34 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
35 | completion: @escaping RequestNetworkingCompletionCallback)
36 | -> RequestNetworking
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:93:68: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
91 | DispatchQueue.mainThreadPrecondition()
92 |
93 | SiestaLog.log(.network, ["Response: ", underlyingResponse?.statusCode ?? error, "←", requestDescription])
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
94 | SiestaLog.log(.networkDetails, ["Raw response headers:", underlyingResponse?.allHeaderFields])
95 | SiestaLog.log(.networkDetails, ["Raw response body:", body?.count ?? 0, "bytes"])
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:94:86: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
92 |
93 | SiestaLog.log(.network, ["Response: ", underlyingResponse?.statusCode ?? error, "←", requestDescription])
94 | SiestaLog.log(.networkDetails, ["Raw response headers:", underlyingResponse?.allHeaderFields])
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
95 | SiestaLog.log(.networkDetails, ["Raw response body:", body?.count ?? 0, "bytes"])
96 |
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:120:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
118 | -> ResponseInfo
119 | {
120 | if isError(httpStatusCode: underlyingResponse?.statusCode) || error != nil
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
121 | {
122 | return ResponseInfo(
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:125:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
123 | response: .failure(RequestError(response: underlyingResponse, content: body, cause: error)))
124 | }
125 | else if underlyingResponse?.statusCode == 304
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
126 | {
127 | if let entity = resource.latestData
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineConfiguration.swift:258:23: warning: static property 'rawData' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
242 | }
243 | */
244 | public final class PipelineStageKey: _OpenEnum, CustomStringConvertible
| `- note: class 'PipelineStageKey' does not conform to the 'Sendable' protocol
245 | {
246 | /// A human-readable name for this key. Does not affect uniqueness, or any other logical behavior.
:
256 | {
257 | /// Response data still unprocessed. The stage typically contains no transformers.
258 | public static let rawData = PipelineStageKey(description: "rawData")
| |- warning: static property 'rawData' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'rawData' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
259 |
260 | /// Any bytes-to-bytes processing, such as decryption or decompression, not already performed by the network lib.
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineConfiguration.swift:261:23: warning: static property 'decoding' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
242 | }
243 | */
244 | public final class PipelineStageKey: _OpenEnum, CustomStringConvertible
| `- note: class 'PipelineStageKey' does not conform to the 'Sendable' protocol
245 | {
246 | /// A human-readable name for this key. Does not affect uniqueness, or any other logical behavior.
:
259 |
260 | /// Any bytes-to-bytes processing, such as decryption or decompression, not already performed by the network lib.
261 | public static let decoding = PipelineStageKey(description: "decoding")
| |- warning: static property 'decoding' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'decoding' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
262 |
263 | /// Transformation of bytes to an ADT or other generic data structure, e.g. a string, dictionary, or image.
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineConfiguration.swift:264:23: warning: static property 'parsing' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
242 | }
243 | */
244 | public final class PipelineStageKey: _OpenEnum, CustomStringConvertible
| `- note: class 'PipelineStageKey' does not conform to the 'Sendable' protocol
245 | {
246 | /// A human-readable name for this key. Does not affect uniqueness, or any other logical behavior.
:
262 |
263 | /// Transformation of bytes to an ADT or other generic data structure, e.g. a string, dictionary, or image.
264 | public static let parsing = PipelineStageKey(description: "parsing")
| |- warning: static property 'parsing' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'parsing' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
265 |
266 | /// Transformation from an ADT to a domain-specific model.
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineConfiguration.swift:267:23: warning: static property 'model' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
242 | }
243 | */
244 | public final class PipelineStageKey: _OpenEnum, CustomStringConvertible
| `- note: class 'PipelineStageKey' does not conform to the 'Sendable' protocol
245 | {
246 | /// A human-readable name for this key. Does not affect uniqueness, or any other logical behavior.
:
265 |
266 | /// Transformation from an ADT to a domain-specific model.
267 | public static let model = PipelineStageKey(description: "model")
| |- warning: static property 'model' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'model' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
268 |
269 | /// Error handling, validation, or any other general mop-up.
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineConfiguration.swift:270:23: warning: static property 'cleanup' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
242 | }
243 | */
244 | public final class PipelineStageKey: _OpenEnum, CustomStringConvertible
| `- note: class 'PipelineStageKey' does not conform to the 'Sendable' protocol
245 | {
246 | /// A human-readable name for this key. Does not affect uniqueness, or any other logical behavior.
:
268 |
269 | /// Error handling, validation, or any other general mop-up.
270 | public static let cleanup = PipelineStageKey(description: "cleanup")
| |- warning: static property 'cleanup' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'cleanup' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
271 | }
272 |
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:154:17: warning: capture of 'rawInfo' with non-sendable type 'ResponseInfo' in a `@Sendable` closure; this is an error in the Swift 6 language mode
152 | {
153 | let processedInfo =
154 | rawInfo.isNew
| `- warning: capture of 'rawInfo' with non-sendable type 'ResponseInfo' in a `@Sendable` closure; this is an error in the Swift 6 language mode
155 | ? ResponseInfo(response: processor(), isNew: true)
156 | : rawInfo
/host/spi-builder-workspace/Source/Siesta/Request/Request.swift:246:15: note: consider making struct 'ResponseInfo' conform to the 'Sendable' protocol
244 |
245 | /// A `Response`, plus metadata about the nature of the response.
246 | public struct ResponseInfo
| `- note: consider making struct 'ResponseInfo' conform to the 'Sendable' protocol
247 | {
248 | /// The result of a `Request`.
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:155:46: warning: capture of 'processor' with non-sendable type '() -> Response' (aka '() -> Result<Entity<Any>, RequestError>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
153 | let processedInfo =
154 | rawInfo.isNew
155 | ? ResponseInfo(response: processor(), isNew: true)
| |- warning: capture of 'processor' with non-sendable type '() -> Response' (aka '() -> Result<Entity<Any>, RequestError>') 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'
156 | : rawInfo
157 |
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:159:19: warning: capture of 'afterTransformation' with non-sendable type '(ResponseInfo) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
157 |
158 | DispatchQueue.main.async
159 | { afterTransformation(processedInfo) }
| |- warning: capture of 'afterTransformation' with non-sendable type '(ResponseInfo) -> 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'
160 | }
161 | }
/host/spi-builder-workspace/Source/Siesta/Request/ProgressTracker.swift:31:13: error: cannot find 'CFRunLoopTimerCreateWithHandler' in scope
29 |
30 | progressUpdateTimer =
31 | CFRunLoopTimerCreateWithHandler(
| `- error: cannot find 'CFRunLoopTimerCreateWithHandler' in scope
32 | kCFAllocatorDefault,
33 | CFAbsoluteTimeGetCurrent(),
/host/spi-builder-workspace/Source/Siesta/Request/ProgressTracker.swift:32:21: error: cannot find 'kCFAllocatorDefault' in scope
30 | progressUpdateTimer =
31 | CFRunLoopTimerCreateWithHandler(
32 | kCFAllocatorDefault,
| `- error: cannot find 'kCFAllocatorDefault' in scope
33 | CFAbsoluteTimeGetCurrent(),
34 | reportingInterval, 0, 0)
/host/spi-builder-workspace/Source/Siesta/Request/ProgressTracker.swift:33:21: error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
31 | CFRunLoopTimerCreateWithHandler(
32 | kCFAllocatorDefault,
33 | CFAbsoluteTimeGetCurrent(),
| `- error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
34 | reportingInterval, 0, 0)
35 | { [weak self] _ in self?.updateProgress() }
/host/spi-builder-workspace/Source/Siesta/Request/ProgressTracker.swift:35:31: error: cannot infer type of closure parameter '_' without a type annotation
33 | CFAbsoluteTimeGetCurrent(),
34 | reportingInterval, 0, 0)
35 | { [weak self] _ in self?.updateProgress() }
| `- error: cannot infer type of closure parameter '_' without a type annotation
36 | CFRunLoopAddTimer(CFRunLoopGetCurrent(), progressUpdateTimer, CFRunLoopMode.commonModes)
37 | }
/host/spi-builder-workspace/Source/Siesta/Request/ProgressTracker.swift:36:9: error: cannot find 'CFRunLoopAddTimer' in scope
34 | reportingInterval, 0, 0)
35 | { [weak self] _ in self?.updateProgress() }
36 | CFRunLoopAddTimer(CFRunLoopGetCurrent(), progressUpdateTimer, CFRunLoopMode.commonModes)
| `- error: cannot find 'CFRunLoopAddTimer' in scope
37 | }
38 |
/host/spi-builder-workspace/Source/Siesta/Request/ProgressTracker.swift:36:27: error: cannot find 'CFRunLoopGetCurrent' in scope
34 | reportingInterval, 0, 0)
35 | { [weak self] _ in self?.updateProgress() }
36 | CFRunLoopAddTimer(CFRunLoopGetCurrent(), progressUpdateTimer, CFRunLoopMode.commonModes)
| `- error: cannot find 'CFRunLoopGetCurrent' in scope
37 | }
38 |
/host/spi-builder-workspace/Source/Siesta/Request/ProgressTracker.swift:36:71: error: cannot find 'CFRunLoopMode' in scope
34 | reportingInterval, 0, 0)
35 | { [weak self] _ in self?.updateProgress() }
36 | CFRunLoopAddTimer(CFRunLoopGetCurrent(), progressUpdateTimer, CFRunLoopMode.commonModes)
| `- error: cannot find 'CFRunLoopMode' in scope
37 | }
38 |
/host/spi-builder-workspace/Source/Siesta/Request/Request.swift:232:1: warning: extension declares a conformance of imported type 'Result' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
230 | }
231 |
232 | extension Response: CustomStringConvertible
| |- warning: extension declares a conformance of imported type 'Result' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
233 | {
234 | /// :nodoc:
[53/89] Compiling Siesta LiveRequest.swift
/host/spi-builder-workspace/Source/Siesta/Request/Request.swift:262:25: warning: static property 'cancellation' is not concurrency-safe because non-'Sendable' type 'ResponseInfo' may have shared mutable state; this is an error in the Swift 6 language mode
244 |
245 | /// A `Response`, plus metadata about the nature of the response.
246 | public struct ResponseInfo
| `- note: consider making struct 'ResponseInfo' conform to the 'Sendable' protocol
247 | {
248 | /// The result of a `Request`.
:
260 | }
261 |
262 | internal static let cancellation =
| |- warning: static property 'cancellation' is not concurrency-safe because non-'Sendable' type 'ResponseInfo' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'cancellation' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
263 | ResponseInfo(
264 | response: .failure(RequestError(
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:20:39: error: cannot find type 'URLRequest' in scope
18 |
19 | // Networking
20 | private let requestBuilder: () -> URLRequest // so repeated() can re-read config
| `- error: cannot find type 'URLRequest' in scope
21 | private let underlyingRequest: URLRequest
22 | internal var networking: RequestNetworking? // present only after start()
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:21:36: error: cannot find type 'URLRequest' in scope
19 | // Networking
20 | private let requestBuilder: () -> URLRequest // so repeated() can re-read config
21 | private let underlyingRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
22 | internal var networking: RequestNetworking? // present only after start()
23 |
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:29:62: error: cannot find type 'URLRequest' in scope
27 | // MARK: Managing request
28 |
29 | init(resource: Resource, requestBuilder: @escaping () -> URLRequest)
| `- error: cannot find type 'URLRequest' in scope
30 | {
31 | self.resource = resource
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:29:46: error: @escaping attribute only applies to function types
27 | // MARK: Managing request
28 |
29 | init(resource: Resource, requestBuilder: @escaping () -> URLRequest)
| `- error: @escaping attribute only applies to function types
30 | {
31 | self.resource = resource
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:86:33: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
84 | // Entry point for response handling. Triggered by RequestNetworking completion callback.
85 | private func responseReceived(
86 | underlyingResponse: HTTPURLResponse?,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
87 | body: Data?,
88 | error: Error?,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:115:35: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |
114 | private func interpretResponse(
115 | _ underlyingResponse: HTTPURLResponse?,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | _ body: Data?,
117 | _ error: Error?)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:71:46: error: cannot find type 'URLRequest' in scope
69 | }
70 |
71 | internal func configuration(for request: URLRequest) -> Configuration
| `- error: cannot find type 'URLRequest' in scope
72 | {
73 | configuration(for:
/host/spi-builder-workspace/Source/Siesta/Networking.swift:34:24: error: cannot find type 'URLRequest' in scope
32 | */
33 | func startRequest(
34 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
35 | completion: @escaping RequestNetworkingCompletionCallback)
36 | -> RequestNetworking
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:93:68: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
91 | DispatchQueue.mainThreadPrecondition()
92 |
93 | SiestaLog.log(.network, ["Response: ", underlyingResponse?.statusCode ?? error, "←", requestDescription])
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
94 | SiestaLog.log(.networkDetails, ["Raw response headers:", underlyingResponse?.allHeaderFields])
95 | SiestaLog.log(.networkDetails, ["Raw response body:", body?.count ?? 0, "bytes"])
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:94:86: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
92 |
93 | SiestaLog.log(.network, ["Response: ", underlyingResponse?.statusCode ?? error, "←", requestDescription])
94 | SiestaLog.log(.networkDetails, ["Raw response headers:", underlyingResponse?.allHeaderFields])
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
95 | SiestaLog.log(.networkDetails, ["Raw response body:", body?.count ?? 0, "bytes"])
96 |
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:120:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
118 | -> ResponseInfo
119 | {
120 | if isError(httpStatusCode: underlyingResponse?.statusCode) || error != nil
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
121 | {
122 | return ResponseInfo(
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:125:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
123 | response: .failure(RequestError(response: underlyingResponse, content: body, cause: error)))
124 | }
125 | else if underlyingResponse?.statusCode == 304
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
126 | {
127 | if let entity = resource.latestData
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineConfiguration.swift:258:23: warning: static property 'rawData' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
242 | }
243 | */
244 | public final class PipelineStageKey: _OpenEnum, CustomStringConvertible
| `- note: class 'PipelineStageKey' does not conform to the 'Sendable' protocol
245 | {
246 | /// A human-readable name for this key. Does not affect uniqueness, or any other logical behavior.
:
256 | {
257 | /// Response data still unprocessed. The stage typically contains no transformers.
258 | public static let rawData = PipelineStageKey(description: "rawData")
| |- warning: static property 'rawData' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'rawData' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
259 |
260 | /// Any bytes-to-bytes processing, such as decryption or decompression, not already performed by the network lib.
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineConfiguration.swift:261:23: warning: static property 'decoding' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
242 | }
243 | */
244 | public final class PipelineStageKey: _OpenEnum, CustomStringConvertible
| `- note: class 'PipelineStageKey' does not conform to the 'Sendable' protocol
245 | {
246 | /// A human-readable name for this key. Does not affect uniqueness, or any other logical behavior.
:
259 |
260 | /// Any bytes-to-bytes processing, such as decryption or decompression, not already performed by the network lib.
261 | public static let decoding = PipelineStageKey(description: "decoding")
| |- warning: static property 'decoding' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'decoding' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
262 |
263 | /// Transformation of bytes to an ADT or other generic data structure, e.g. a string, dictionary, or image.
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineConfiguration.swift:264:23: warning: static property 'parsing' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
242 | }
243 | */
244 | public final class PipelineStageKey: _OpenEnum, CustomStringConvertible
| `- note: class 'PipelineStageKey' does not conform to the 'Sendable' protocol
245 | {
246 | /// A human-readable name for this key. Does not affect uniqueness, or any other logical behavior.
:
262 |
263 | /// Transformation of bytes to an ADT or other generic data structure, e.g. a string, dictionary, or image.
264 | public static let parsing = PipelineStageKey(description: "parsing")
| |- warning: static property 'parsing' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'parsing' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
265 |
266 | /// Transformation from an ADT to a domain-specific model.
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineConfiguration.swift:267:23: warning: static property 'model' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
242 | }
243 | */
244 | public final class PipelineStageKey: _OpenEnum, CustomStringConvertible
| `- note: class 'PipelineStageKey' does not conform to the 'Sendable' protocol
245 | {
246 | /// A human-readable name for this key. Does not affect uniqueness, or any other logical behavior.
:
265 |
266 | /// Transformation from an ADT to a domain-specific model.
267 | public static let model = PipelineStageKey(description: "model")
| |- warning: static property 'model' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'model' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
268 |
269 | /// Error handling, validation, or any other general mop-up.
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineConfiguration.swift:270:23: warning: static property 'cleanup' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
242 | }
243 | */
244 | public final class PipelineStageKey: _OpenEnum, CustomStringConvertible
| `- note: class 'PipelineStageKey' does not conform to the 'Sendable' protocol
245 | {
246 | /// A human-readable name for this key. Does not affect uniqueness, or any other logical behavior.
:
268 |
269 | /// Error handling, validation, or any other general mop-up.
270 | public static let cleanup = PipelineStageKey(description: "cleanup")
| |- warning: static property 'cleanup' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'cleanup' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
271 | }
272 |
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:154:17: warning: capture of 'rawInfo' with non-sendable type 'ResponseInfo' in a `@Sendable` closure; this is an error in the Swift 6 language mode
152 | {
153 | let processedInfo =
154 | rawInfo.isNew
| `- warning: capture of 'rawInfo' with non-sendable type 'ResponseInfo' in a `@Sendable` closure; this is an error in the Swift 6 language mode
155 | ? ResponseInfo(response: processor(), isNew: true)
156 | : rawInfo
/host/spi-builder-workspace/Source/Siesta/Request/Request.swift:246:15: note: consider making struct 'ResponseInfo' conform to the 'Sendable' protocol
244 |
245 | /// A `Response`, plus metadata about the nature of the response.
246 | public struct ResponseInfo
| `- note: consider making struct 'ResponseInfo' conform to the 'Sendable' protocol
247 | {
248 | /// The result of a `Request`.
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:155:46: warning: capture of 'processor' with non-sendable type '() -> Response' (aka '() -> Result<Entity<Any>, RequestError>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
153 | let processedInfo =
154 | rawInfo.isNew
155 | ? ResponseInfo(response: processor(), isNew: true)
| |- warning: capture of 'processor' with non-sendable type '() -> Response' (aka '() -> Result<Entity<Any>, RequestError>') 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'
156 | : rawInfo
157 |
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:159:19: warning: capture of 'afterTransformation' with non-sendable type '(ResponseInfo) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
157 |
158 | DispatchQueue.main.async
159 | { afterTransformation(processedInfo) }
| |- warning: capture of 'afterTransformation' with non-sendable type '(ResponseInfo) -> 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'
160 | }
161 | }
/host/spi-builder-workspace/Source/Siesta/Request/ProgressTracker.swift:31:13: error: cannot find 'CFRunLoopTimerCreateWithHandler' in scope
29 |
30 | progressUpdateTimer =
31 | CFRunLoopTimerCreateWithHandler(
| `- error: cannot find 'CFRunLoopTimerCreateWithHandler' in scope
32 | kCFAllocatorDefault,
33 | CFAbsoluteTimeGetCurrent(),
/host/spi-builder-workspace/Source/Siesta/Request/ProgressTracker.swift:32:21: error: cannot find 'kCFAllocatorDefault' in scope
30 | progressUpdateTimer =
31 | CFRunLoopTimerCreateWithHandler(
32 | kCFAllocatorDefault,
| `- error: cannot find 'kCFAllocatorDefault' in scope
33 | CFAbsoluteTimeGetCurrent(),
34 | reportingInterval, 0, 0)
/host/spi-builder-workspace/Source/Siesta/Request/ProgressTracker.swift:33:21: error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
31 | CFRunLoopTimerCreateWithHandler(
32 | kCFAllocatorDefault,
33 | CFAbsoluteTimeGetCurrent(),
| `- error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
34 | reportingInterval, 0, 0)
35 | { [weak self] _ in self?.updateProgress() }
/host/spi-builder-workspace/Source/Siesta/Request/ProgressTracker.swift:35:31: error: cannot infer type of closure parameter '_' without a type annotation
33 | CFAbsoluteTimeGetCurrent(),
34 | reportingInterval, 0, 0)
35 | { [weak self] _ in self?.updateProgress() }
| `- error: cannot infer type of closure parameter '_' without a type annotation
36 | CFRunLoopAddTimer(CFRunLoopGetCurrent(), progressUpdateTimer, CFRunLoopMode.commonModes)
37 | }
/host/spi-builder-workspace/Source/Siesta/Request/ProgressTracker.swift:36:9: error: cannot find 'CFRunLoopAddTimer' in scope
34 | reportingInterval, 0, 0)
35 | { [weak self] _ in self?.updateProgress() }
36 | CFRunLoopAddTimer(CFRunLoopGetCurrent(), progressUpdateTimer, CFRunLoopMode.commonModes)
| `- error: cannot find 'CFRunLoopAddTimer' in scope
37 | }
38 |
/host/spi-builder-workspace/Source/Siesta/Request/ProgressTracker.swift:36:27: error: cannot find 'CFRunLoopGetCurrent' in scope
34 | reportingInterval, 0, 0)
35 | { [weak self] _ in self?.updateProgress() }
36 | CFRunLoopAddTimer(CFRunLoopGetCurrent(), progressUpdateTimer, CFRunLoopMode.commonModes)
| `- error: cannot find 'CFRunLoopGetCurrent' in scope
37 | }
38 |
/host/spi-builder-workspace/Source/Siesta/Request/ProgressTracker.swift:36:71: error: cannot find 'CFRunLoopMode' in scope
34 | reportingInterval, 0, 0)
35 | { [weak self] _ in self?.updateProgress() }
36 | CFRunLoopAddTimer(CFRunLoopGetCurrent(), progressUpdateTimer, CFRunLoopMode.commonModes)
| `- error: cannot find 'CFRunLoopMode' in scope
37 | }
38 |
/host/spi-builder-workspace/Source/Siesta/Request/Request.swift:232:1: warning: extension declares a conformance of imported type 'Result' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
230 | }
231 |
232 | extension Response: CustomStringConvertible
| |- warning: extension declares a conformance of imported type 'Result' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
233 | {
234 | /// :nodoc:
[54/89] Compiling Siesta NetworkRequest.swift
/host/spi-builder-workspace/Source/Siesta/Request/Request.swift:262:25: warning: static property 'cancellation' is not concurrency-safe because non-'Sendable' type 'ResponseInfo' may have shared mutable state; this is an error in the Swift 6 language mode
244 |
245 | /// A `Response`, plus metadata about the nature of the response.
246 | public struct ResponseInfo
| `- note: consider making struct 'ResponseInfo' conform to the 'Sendable' protocol
247 | {
248 | /// The result of a `Request`.
:
260 | }
261 |
262 | internal static let cancellation =
| |- warning: static property 'cancellation' is not concurrency-safe because non-'Sendable' type 'ResponseInfo' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'cancellation' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
263 | ResponseInfo(
264 | response: .failure(RequestError(
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:20:39: error: cannot find type 'URLRequest' in scope
18 |
19 | // Networking
20 | private let requestBuilder: () -> URLRequest // so repeated() can re-read config
| `- error: cannot find type 'URLRequest' in scope
21 | private let underlyingRequest: URLRequest
22 | internal var networking: RequestNetworking? // present only after start()
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:21:36: error: cannot find type 'URLRequest' in scope
19 | // Networking
20 | private let requestBuilder: () -> URLRequest // so repeated() can re-read config
21 | private let underlyingRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
22 | internal var networking: RequestNetworking? // present only after start()
23 |
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:29:62: error: cannot find type 'URLRequest' in scope
27 | // MARK: Managing request
28 |
29 | init(resource: Resource, requestBuilder: @escaping () -> URLRequest)
| `- error: cannot find type 'URLRequest' in scope
30 | {
31 | self.resource = resource
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:29:46: error: @escaping attribute only applies to function types
27 | // MARK: Managing request
28 |
29 | init(resource: Resource, requestBuilder: @escaping () -> URLRequest)
| `- error: @escaping attribute only applies to function types
30 | {
31 | self.resource = resource
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:86:33: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
84 | // Entry point for response handling. Triggered by RequestNetworking completion callback.
85 | private func responseReceived(
86 | underlyingResponse: HTTPURLResponse?,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
87 | body: Data?,
88 | error: Error?,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:115:35: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |
114 | private func interpretResponse(
115 | _ underlyingResponse: HTTPURLResponse?,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | _ body: Data?,
117 | _ error: Error?)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:71:46: error: cannot find type 'URLRequest' in scope
69 | }
70 |
71 | internal func configuration(for request: URLRequest) -> Configuration
| `- error: cannot find type 'URLRequest' in scope
72 | {
73 | configuration(for:
/host/spi-builder-workspace/Source/Siesta/Networking.swift:34:24: error: cannot find type 'URLRequest' in scope
32 | */
33 | func startRequest(
34 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
35 | completion: @escaping RequestNetworkingCompletionCallback)
36 | -> RequestNetworking
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:93:68: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
91 | DispatchQueue.mainThreadPrecondition()
92 |
93 | SiestaLog.log(.network, ["Response: ", underlyingResponse?.statusCode ?? error, "←", requestDescription])
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
94 | SiestaLog.log(.networkDetails, ["Raw response headers:", underlyingResponse?.allHeaderFields])
95 | SiestaLog.log(.networkDetails, ["Raw response body:", body?.count ?? 0, "bytes"])
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:94:86: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
92 |
93 | SiestaLog.log(.network, ["Response: ", underlyingResponse?.statusCode ?? error, "←", requestDescription])
94 | SiestaLog.log(.networkDetails, ["Raw response headers:", underlyingResponse?.allHeaderFields])
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
95 | SiestaLog.log(.networkDetails, ["Raw response body:", body?.count ?? 0, "bytes"])
96 |
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:120:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
118 | -> ResponseInfo
119 | {
120 | if isError(httpStatusCode: underlyingResponse?.statusCode) || error != nil
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
121 | {
122 | return ResponseInfo(
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:125:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
123 | response: .failure(RequestError(response: underlyingResponse, content: body, cause: error)))
124 | }
125 | else if underlyingResponse?.statusCode == 304
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
126 | {
127 | if let entity = resource.latestData
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineConfiguration.swift:258:23: warning: static property 'rawData' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
242 | }
243 | */
244 | public final class PipelineStageKey: _OpenEnum, CustomStringConvertible
| `- note: class 'PipelineStageKey' does not conform to the 'Sendable' protocol
245 | {
246 | /// A human-readable name for this key. Does not affect uniqueness, or any other logical behavior.
:
256 | {
257 | /// Response data still unprocessed. The stage typically contains no transformers.
258 | public static let rawData = PipelineStageKey(description: "rawData")
| |- warning: static property 'rawData' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'rawData' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
259 |
260 | /// Any bytes-to-bytes processing, such as decryption or decompression, not already performed by the network lib.
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineConfiguration.swift:261:23: warning: static property 'decoding' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
242 | }
243 | */
244 | public final class PipelineStageKey: _OpenEnum, CustomStringConvertible
| `- note: class 'PipelineStageKey' does not conform to the 'Sendable' protocol
245 | {
246 | /// A human-readable name for this key. Does not affect uniqueness, or any other logical behavior.
:
259 |
260 | /// Any bytes-to-bytes processing, such as decryption or decompression, not already performed by the network lib.
261 | public static let decoding = PipelineStageKey(description: "decoding")
| |- warning: static property 'decoding' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'decoding' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
262 |
263 | /// Transformation of bytes to an ADT or other generic data structure, e.g. a string, dictionary, or image.
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineConfiguration.swift:264:23: warning: static property 'parsing' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
242 | }
243 | */
244 | public final class PipelineStageKey: _OpenEnum, CustomStringConvertible
| `- note: class 'PipelineStageKey' does not conform to the 'Sendable' protocol
245 | {
246 | /// A human-readable name for this key. Does not affect uniqueness, or any other logical behavior.
:
262 |
263 | /// Transformation of bytes to an ADT or other generic data structure, e.g. a string, dictionary, or image.
264 | public static let parsing = PipelineStageKey(description: "parsing")
| |- warning: static property 'parsing' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'parsing' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
265 |
266 | /// Transformation from an ADT to a domain-specific model.
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineConfiguration.swift:267:23: warning: static property 'model' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
242 | }
243 | */
244 | public final class PipelineStageKey: _OpenEnum, CustomStringConvertible
| `- note: class 'PipelineStageKey' does not conform to the 'Sendable' protocol
245 | {
246 | /// A human-readable name for this key. Does not affect uniqueness, or any other logical behavior.
:
265 |
266 | /// Transformation from an ADT to a domain-specific model.
267 | public static let model = PipelineStageKey(description: "model")
| |- warning: static property 'model' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'model' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
268 |
269 | /// Error handling, validation, or any other general mop-up.
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineConfiguration.swift:270:23: warning: static property 'cleanup' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
242 | }
243 | */
244 | public final class PipelineStageKey: _OpenEnum, CustomStringConvertible
| `- note: class 'PipelineStageKey' does not conform to the 'Sendable' protocol
245 | {
246 | /// A human-readable name for this key. Does not affect uniqueness, or any other logical behavior.
:
268 |
269 | /// Error handling, validation, or any other general mop-up.
270 | public static let cleanup = PipelineStageKey(description: "cleanup")
| |- warning: static property 'cleanup' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'cleanup' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
271 | }
272 |
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:154:17: warning: capture of 'rawInfo' with non-sendable type 'ResponseInfo' in a `@Sendable` closure; this is an error in the Swift 6 language mode
152 | {
153 | let processedInfo =
154 | rawInfo.isNew
| `- warning: capture of 'rawInfo' with non-sendable type 'ResponseInfo' in a `@Sendable` closure; this is an error in the Swift 6 language mode
155 | ? ResponseInfo(response: processor(), isNew: true)
156 | : rawInfo
/host/spi-builder-workspace/Source/Siesta/Request/Request.swift:246:15: note: consider making struct 'ResponseInfo' conform to the 'Sendable' protocol
244 |
245 | /// A `Response`, plus metadata about the nature of the response.
246 | public struct ResponseInfo
| `- note: consider making struct 'ResponseInfo' conform to the 'Sendable' protocol
247 | {
248 | /// The result of a `Request`.
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:155:46: warning: capture of 'processor' with non-sendable type '() -> Response' (aka '() -> Result<Entity<Any>, RequestError>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
153 | let processedInfo =
154 | rawInfo.isNew
155 | ? ResponseInfo(response: processor(), isNew: true)
| |- warning: capture of 'processor' with non-sendable type '() -> Response' (aka '() -> Result<Entity<Any>, RequestError>') 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'
156 | : rawInfo
157 |
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:159:19: warning: capture of 'afterTransformation' with non-sendable type '(ResponseInfo) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
157 |
158 | DispatchQueue.main.async
159 | { afterTransformation(processedInfo) }
| |- warning: capture of 'afterTransformation' with non-sendable type '(ResponseInfo) -> 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'
160 | }
161 | }
/host/spi-builder-workspace/Source/Siesta/Request/ProgressTracker.swift:31:13: error: cannot find 'CFRunLoopTimerCreateWithHandler' in scope
29 |
30 | progressUpdateTimer =
31 | CFRunLoopTimerCreateWithHandler(
| `- error: cannot find 'CFRunLoopTimerCreateWithHandler' in scope
32 | kCFAllocatorDefault,
33 | CFAbsoluteTimeGetCurrent(),
/host/spi-builder-workspace/Source/Siesta/Request/ProgressTracker.swift:32:21: error: cannot find 'kCFAllocatorDefault' in scope
30 | progressUpdateTimer =
31 | CFRunLoopTimerCreateWithHandler(
32 | kCFAllocatorDefault,
| `- error: cannot find 'kCFAllocatorDefault' in scope
33 | CFAbsoluteTimeGetCurrent(),
34 | reportingInterval, 0, 0)
/host/spi-builder-workspace/Source/Siesta/Request/ProgressTracker.swift:33:21: error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
31 | CFRunLoopTimerCreateWithHandler(
32 | kCFAllocatorDefault,
33 | CFAbsoluteTimeGetCurrent(),
| `- error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
34 | reportingInterval, 0, 0)
35 | { [weak self] _ in self?.updateProgress() }
/host/spi-builder-workspace/Source/Siesta/Request/ProgressTracker.swift:35:31: error: cannot infer type of closure parameter '_' without a type annotation
33 | CFAbsoluteTimeGetCurrent(),
34 | reportingInterval, 0, 0)
35 | { [weak self] _ in self?.updateProgress() }
| `- error: cannot infer type of closure parameter '_' without a type annotation
36 | CFRunLoopAddTimer(CFRunLoopGetCurrent(), progressUpdateTimer, CFRunLoopMode.commonModes)
37 | }
/host/spi-builder-workspace/Source/Siesta/Request/ProgressTracker.swift:36:9: error: cannot find 'CFRunLoopAddTimer' in scope
34 | reportingInterval, 0, 0)
35 | { [weak self] _ in self?.updateProgress() }
36 | CFRunLoopAddTimer(CFRunLoopGetCurrent(), progressUpdateTimer, CFRunLoopMode.commonModes)
| `- error: cannot find 'CFRunLoopAddTimer' in scope
37 | }
38 |
/host/spi-builder-workspace/Source/Siesta/Request/ProgressTracker.swift:36:27: error: cannot find 'CFRunLoopGetCurrent' in scope
34 | reportingInterval, 0, 0)
35 | { [weak self] _ in self?.updateProgress() }
36 | CFRunLoopAddTimer(CFRunLoopGetCurrent(), progressUpdateTimer, CFRunLoopMode.commonModes)
| `- error: cannot find 'CFRunLoopGetCurrent' in scope
37 | }
38 |
/host/spi-builder-workspace/Source/Siesta/Request/ProgressTracker.swift:36:71: error: cannot find 'CFRunLoopMode' in scope
34 | reportingInterval, 0, 0)
35 | { [weak self] _ in self?.updateProgress() }
36 | CFRunLoopAddTimer(CFRunLoopGetCurrent(), progressUpdateTimer, CFRunLoopMode.commonModes)
| `- error: cannot find 'CFRunLoopMode' in scope
37 | }
38 |
/host/spi-builder-workspace/Source/Siesta/Request/Request.swift:232:1: warning: extension declares a conformance of imported type 'Result' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
230 | }
231 |
232 | extension Response: CustomStringConvertible
| |- warning: extension declares a conformance of imported type 'Result' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
233 | {
234 | /// :nodoc:
[55/89] Compiling Siesta ProgressTracker.swift
/host/spi-builder-workspace/Source/Siesta/Request/Request.swift:262:25: warning: static property 'cancellation' is not concurrency-safe because non-'Sendable' type 'ResponseInfo' may have shared mutable state; this is an error in the Swift 6 language mode
244 |
245 | /// A `Response`, plus metadata about the nature of the response.
246 | public struct ResponseInfo
| `- note: consider making struct 'ResponseInfo' conform to the 'Sendable' protocol
247 | {
248 | /// The result of a `Request`.
:
260 | }
261 |
262 | internal static let cancellation =
| |- warning: static property 'cancellation' is not concurrency-safe because non-'Sendable' type 'ResponseInfo' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'cancellation' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
263 | ResponseInfo(
264 | response: .failure(RequestError(
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:20:39: error: cannot find type 'URLRequest' in scope
18 |
19 | // Networking
20 | private let requestBuilder: () -> URLRequest // so repeated() can re-read config
| `- error: cannot find type 'URLRequest' in scope
21 | private let underlyingRequest: URLRequest
22 | internal var networking: RequestNetworking? // present only after start()
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:21:36: error: cannot find type 'URLRequest' in scope
19 | // Networking
20 | private let requestBuilder: () -> URLRequest // so repeated() can re-read config
21 | private let underlyingRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
22 | internal var networking: RequestNetworking? // present only after start()
23 |
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:29:62: error: cannot find type 'URLRequest' in scope
27 | // MARK: Managing request
28 |
29 | init(resource: Resource, requestBuilder: @escaping () -> URLRequest)
| `- error: cannot find type 'URLRequest' in scope
30 | {
31 | self.resource = resource
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:29:46: error: @escaping attribute only applies to function types
27 | // MARK: Managing request
28 |
29 | init(resource: Resource, requestBuilder: @escaping () -> URLRequest)
| `- error: @escaping attribute only applies to function types
30 | {
31 | self.resource = resource
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:86:33: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
84 | // Entry point for response handling. Triggered by RequestNetworking completion callback.
85 | private func responseReceived(
86 | underlyingResponse: HTTPURLResponse?,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
87 | body: Data?,
88 | error: Error?,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:115:35: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |
114 | private func interpretResponse(
115 | _ underlyingResponse: HTTPURLResponse?,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | _ body: Data?,
117 | _ error: Error?)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:71:46: error: cannot find type 'URLRequest' in scope
69 | }
70 |
71 | internal func configuration(for request: URLRequest) -> Configuration
| `- error: cannot find type 'URLRequest' in scope
72 | {
73 | configuration(for:
/host/spi-builder-workspace/Source/Siesta/Networking.swift:34:24: error: cannot find type 'URLRequest' in scope
32 | */
33 | func startRequest(
34 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
35 | completion: @escaping RequestNetworkingCompletionCallback)
36 | -> RequestNetworking
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:93:68: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
91 | DispatchQueue.mainThreadPrecondition()
92 |
93 | SiestaLog.log(.network, ["Response: ", underlyingResponse?.statusCode ?? error, "←", requestDescription])
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
94 | SiestaLog.log(.networkDetails, ["Raw response headers:", underlyingResponse?.allHeaderFields])
95 | SiestaLog.log(.networkDetails, ["Raw response body:", body?.count ?? 0, "bytes"])
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:94:86: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
92 |
93 | SiestaLog.log(.network, ["Response: ", underlyingResponse?.statusCode ?? error, "←", requestDescription])
94 | SiestaLog.log(.networkDetails, ["Raw response headers:", underlyingResponse?.allHeaderFields])
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
95 | SiestaLog.log(.networkDetails, ["Raw response body:", body?.count ?? 0, "bytes"])
96 |
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:120:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
118 | -> ResponseInfo
119 | {
120 | if isError(httpStatusCode: underlyingResponse?.statusCode) || error != nil
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
121 | {
122 | return ResponseInfo(
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:125:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
123 | response: .failure(RequestError(response: underlyingResponse, content: body, cause: error)))
124 | }
125 | else if underlyingResponse?.statusCode == 304
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
126 | {
127 | if let entity = resource.latestData
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineConfiguration.swift:258:23: warning: static property 'rawData' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
242 | }
243 | */
244 | public final class PipelineStageKey: _OpenEnum, CustomStringConvertible
| `- note: class 'PipelineStageKey' does not conform to the 'Sendable' protocol
245 | {
246 | /// A human-readable name for this key. Does not affect uniqueness, or any other logical behavior.
:
256 | {
257 | /// Response data still unprocessed. The stage typically contains no transformers.
258 | public static let rawData = PipelineStageKey(description: "rawData")
| |- warning: static property 'rawData' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'rawData' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
259 |
260 | /// Any bytes-to-bytes processing, such as decryption or decompression, not already performed by the network lib.
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineConfiguration.swift:261:23: warning: static property 'decoding' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
242 | }
243 | */
244 | public final class PipelineStageKey: _OpenEnum, CustomStringConvertible
| `- note: class 'PipelineStageKey' does not conform to the 'Sendable' protocol
245 | {
246 | /// A human-readable name for this key. Does not affect uniqueness, or any other logical behavior.
:
259 |
260 | /// Any bytes-to-bytes processing, such as decryption or decompression, not already performed by the network lib.
261 | public static let decoding = PipelineStageKey(description: "decoding")
| |- warning: static property 'decoding' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'decoding' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
262 |
263 | /// Transformation of bytes to an ADT or other generic data structure, e.g. a string, dictionary, or image.
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineConfiguration.swift:264:23: warning: static property 'parsing' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
242 | }
243 | */
244 | public final class PipelineStageKey: _OpenEnum, CustomStringConvertible
| `- note: class 'PipelineStageKey' does not conform to the 'Sendable' protocol
245 | {
246 | /// A human-readable name for this key. Does not affect uniqueness, or any other logical behavior.
:
262 |
263 | /// Transformation of bytes to an ADT or other generic data structure, e.g. a string, dictionary, or image.
264 | public static let parsing = PipelineStageKey(description: "parsing")
| |- warning: static property 'parsing' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'parsing' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
265 |
266 | /// Transformation from an ADT to a domain-specific model.
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineConfiguration.swift:267:23: warning: static property 'model' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
242 | }
243 | */
244 | public final class PipelineStageKey: _OpenEnum, CustomStringConvertible
| `- note: class 'PipelineStageKey' does not conform to the 'Sendable' protocol
245 | {
246 | /// A human-readable name for this key. Does not affect uniqueness, or any other logical behavior.
:
265 |
266 | /// Transformation from an ADT to a domain-specific model.
267 | public static let model = PipelineStageKey(description: "model")
| |- warning: static property 'model' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'model' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
268 |
269 | /// Error handling, validation, or any other general mop-up.
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineConfiguration.swift:270:23: warning: static property 'cleanup' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
242 | }
243 | */
244 | public final class PipelineStageKey: _OpenEnum, CustomStringConvertible
| `- note: class 'PipelineStageKey' does not conform to the 'Sendable' protocol
245 | {
246 | /// A human-readable name for this key. Does not affect uniqueness, or any other logical behavior.
:
268 |
269 | /// Error handling, validation, or any other general mop-up.
270 | public static let cleanup = PipelineStageKey(description: "cleanup")
| |- warning: static property 'cleanup' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'cleanup' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
271 | }
272 |
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:154:17: warning: capture of 'rawInfo' with non-sendable type 'ResponseInfo' in a `@Sendable` closure; this is an error in the Swift 6 language mode
152 | {
153 | let processedInfo =
154 | rawInfo.isNew
| `- warning: capture of 'rawInfo' with non-sendable type 'ResponseInfo' in a `@Sendable` closure; this is an error in the Swift 6 language mode
155 | ? ResponseInfo(response: processor(), isNew: true)
156 | : rawInfo
/host/spi-builder-workspace/Source/Siesta/Request/Request.swift:246:15: note: consider making struct 'ResponseInfo' conform to the 'Sendable' protocol
244 |
245 | /// A `Response`, plus metadata about the nature of the response.
246 | public struct ResponseInfo
| `- note: consider making struct 'ResponseInfo' conform to the 'Sendable' protocol
247 | {
248 | /// The result of a `Request`.
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:155:46: warning: capture of 'processor' with non-sendable type '() -> Response' (aka '() -> Result<Entity<Any>, RequestError>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
153 | let processedInfo =
154 | rawInfo.isNew
155 | ? ResponseInfo(response: processor(), isNew: true)
| |- warning: capture of 'processor' with non-sendable type '() -> Response' (aka '() -> Result<Entity<Any>, RequestError>') 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'
156 | : rawInfo
157 |
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:159:19: warning: capture of 'afterTransformation' with non-sendable type '(ResponseInfo) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
157 |
158 | DispatchQueue.main.async
159 | { afterTransformation(processedInfo) }
| |- warning: capture of 'afterTransformation' with non-sendable type '(ResponseInfo) -> 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'
160 | }
161 | }
/host/spi-builder-workspace/Source/Siesta/Request/ProgressTracker.swift:31:13: error: cannot find 'CFRunLoopTimerCreateWithHandler' in scope
29 |
30 | progressUpdateTimer =
31 | CFRunLoopTimerCreateWithHandler(
| `- error: cannot find 'CFRunLoopTimerCreateWithHandler' in scope
32 | kCFAllocatorDefault,
33 | CFAbsoluteTimeGetCurrent(),
/host/spi-builder-workspace/Source/Siesta/Request/ProgressTracker.swift:32:21: error: cannot find 'kCFAllocatorDefault' in scope
30 | progressUpdateTimer =
31 | CFRunLoopTimerCreateWithHandler(
32 | kCFAllocatorDefault,
| `- error: cannot find 'kCFAllocatorDefault' in scope
33 | CFAbsoluteTimeGetCurrent(),
34 | reportingInterval, 0, 0)
/host/spi-builder-workspace/Source/Siesta/Request/ProgressTracker.swift:33:21: error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
31 | CFRunLoopTimerCreateWithHandler(
32 | kCFAllocatorDefault,
33 | CFAbsoluteTimeGetCurrent(),
| `- error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
34 | reportingInterval, 0, 0)
35 | { [weak self] _ in self?.updateProgress() }
/host/spi-builder-workspace/Source/Siesta/Request/ProgressTracker.swift:35:31: error: cannot infer type of closure parameter '_' without a type annotation
33 | CFAbsoluteTimeGetCurrent(),
34 | reportingInterval, 0, 0)
35 | { [weak self] _ in self?.updateProgress() }
| `- error: cannot infer type of closure parameter '_' without a type annotation
36 | CFRunLoopAddTimer(CFRunLoopGetCurrent(), progressUpdateTimer, CFRunLoopMode.commonModes)
37 | }
/host/spi-builder-workspace/Source/Siesta/Request/ProgressTracker.swift:36:9: error: cannot find 'CFRunLoopAddTimer' in scope
34 | reportingInterval, 0, 0)
35 | { [weak self] _ in self?.updateProgress() }
36 | CFRunLoopAddTimer(CFRunLoopGetCurrent(), progressUpdateTimer, CFRunLoopMode.commonModes)
| `- error: cannot find 'CFRunLoopAddTimer' in scope
37 | }
38 |
/host/spi-builder-workspace/Source/Siesta/Request/ProgressTracker.swift:36:27: error: cannot find 'CFRunLoopGetCurrent' in scope
34 | reportingInterval, 0, 0)
35 | { [weak self] _ in self?.updateProgress() }
36 | CFRunLoopAddTimer(CFRunLoopGetCurrent(), progressUpdateTimer, CFRunLoopMode.commonModes)
| `- error: cannot find 'CFRunLoopGetCurrent' in scope
37 | }
38 |
/host/spi-builder-workspace/Source/Siesta/Request/ProgressTracker.swift:36:71: error: cannot find 'CFRunLoopMode' in scope
34 | reportingInterval, 0, 0)
35 | { [weak self] _ in self?.updateProgress() }
36 | CFRunLoopAddTimer(CFRunLoopGetCurrent(), progressUpdateTimer, CFRunLoopMode.commonModes)
| `- error: cannot find 'CFRunLoopMode' in scope
37 | }
38 |
/host/spi-builder-workspace/Source/Siesta/Request/Request.swift:232:1: warning: extension declares a conformance of imported type 'Result' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
230 | }
231 |
232 | extension Response: CustomStringConvertible
| |- warning: extension declares a conformance of imported type 'Result' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
233 | {
234 | /// :nodoc:
[56/89] Compiling Siesta Request.swift
/host/spi-builder-workspace/Source/Siesta/Request/Request.swift:262:25: warning: static property 'cancellation' is not concurrency-safe because non-'Sendable' type 'ResponseInfo' may have shared mutable state; this is an error in the Swift 6 language mode
244 |
245 | /// A `Response`, plus metadata about the nature of the response.
246 | public struct ResponseInfo
| `- note: consider making struct 'ResponseInfo' conform to the 'Sendable' protocol
247 | {
248 | /// The result of a `Request`.
:
260 | }
261 |
262 | internal static let cancellation =
| |- warning: static property 'cancellation' is not concurrency-safe because non-'Sendable' type 'ResponseInfo' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'cancellation' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
263 | ResponseInfo(
264 | response: .failure(RequestError(
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:20:39: error: cannot find type 'URLRequest' in scope
18 |
19 | // Networking
20 | private let requestBuilder: () -> URLRequest // so repeated() can re-read config
| `- error: cannot find type 'URLRequest' in scope
21 | private let underlyingRequest: URLRequest
22 | internal var networking: RequestNetworking? // present only after start()
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:21:36: error: cannot find type 'URLRequest' in scope
19 | // Networking
20 | private let requestBuilder: () -> URLRequest // so repeated() can re-read config
21 | private let underlyingRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
22 | internal var networking: RequestNetworking? // present only after start()
23 |
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:29:62: error: cannot find type 'URLRequest' in scope
27 | // MARK: Managing request
28 |
29 | init(resource: Resource, requestBuilder: @escaping () -> URLRequest)
| `- error: cannot find type 'URLRequest' in scope
30 | {
31 | self.resource = resource
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:29:46: error: @escaping attribute only applies to function types
27 | // MARK: Managing request
28 |
29 | init(resource: Resource, requestBuilder: @escaping () -> URLRequest)
| `- error: @escaping attribute only applies to function types
30 | {
31 | self.resource = resource
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:86:33: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
84 | // Entry point for response handling. Triggered by RequestNetworking completion callback.
85 | private func responseReceived(
86 | underlyingResponse: HTTPURLResponse?,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
87 | body: Data?,
88 | error: Error?,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:115:35: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |
114 | private func interpretResponse(
115 | _ underlyingResponse: HTTPURLResponse?,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | _ body: Data?,
117 | _ error: Error?)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:71:46: error: cannot find type 'URLRequest' in scope
69 | }
70 |
71 | internal func configuration(for request: URLRequest) -> Configuration
| `- error: cannot find type 'URLRequest' in scope
72 | {
73 | configuration(for:
/host/spi-builder-workspace/Source/Siesta/Networking.swift:34:24: error: cannot find type 'URLRequest' in scope
32 | */
33 | func startRequest(
34 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
35 | completion: @escaping RequestNetworkingCompletionCallback)
36 | -> RequestNetworking
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:93:68: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
91 | DispatchQueue.mainThreadPrecondition()
92 |
93 | SiestaLog.log(.network, ["Response: ", underlyingResponse?.statusCode ?? error, "←", requestDescription])
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
94 | SiestaLog.log(.networkDetails, ["Raw response headers:", underlyingResponse?.allHeaderFields])
95 | SiestaLog.log(.networkDetails, ["Raw response body:", body?.count ?? 0, "bytes"])
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:94:86: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
92 |
93 | SiestaLog.log(.network, ["Response: ", underlyingResponse?.statusCode ?? error, "←", requestDescription])
94 | SiestaLog.log(.networkDetails, ["Raw response headers:", underlyingResponse?.allHeaderFields])
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
95 | SiestaLog.log(.networkDetails, ["Raw response body:", body?.count ?? 0, "bytes"])
96 |
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:120:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
118 | -> ResponseInfo
119 | {
120 | if isError(httpStatusCode: underlyingResponse?.statusCode) || error != nil
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
121 | {
122 | return ResponseInfo(
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:125:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
123 | response: .failure(RequestError(response: underlyingResponse, content: body, cause: error)))
124 | }
125 | else if underlyingResponse?.statusCode == 304
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
126 | {
127 | if let entity = resource.latestData
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineConfiguration.swift:258:23: warning: static property 'rawData' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
242 | }
243 | */
244 | public final class PipelineStageKey: _OpenEnum, CustomStringConvertible
| `- note: class 'PipelineStageKey' does not conform to the 'Sendable' protocol
245 | {
246 | /// A human-readable name for this key. Does not affect uniqueness, or any other logical behavior.
:
256 | {
257 | /// Response data still unprocessed. The stage typically contains no transformers.
258 | public static let rawData = PipelineStageKey(description: "rawData")
| |- warning: static property 'rawData' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'rawData' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
259 |
260 | /// Any bytes-to-bytes processing, such as decryption or decompression, not already performed by the network lib.
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineConfiguration.swift:261:23: warning: static property 'decoding' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
242 | }
243 | */
244 | public final class PipelineStageKey: _OpenEnum, CustomStringConvertible
| `- note: class 'PipelineStageKey' does not conform to the 'Sendable' protocol
245 | {
246 | /// A human-readable name for this key. Does not affect uniqueness, or any other logical behavior.
:
259 |
260 | /// Any bytes-to-bytes processing, such as decryption or decompression, not already performed by the network lib.
261 | public static let decoding = PipelineStageKey(description: "decoding")
| |- warning: static property 'decoding' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'decoding' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
262 |
263 | /// Transformation of bytes to an ADT or other generic data structure, e.g. a string, dictionary, or image.
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineConfiguration.swift:264:23: warning: static property 'parsing' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
242 | }
243 | */
244 | public final class PipelineStageKey: _OpenEnum, CustomStringConvertible
| `- note: class 'PipelineStageKey' does not conform to the 'Sendable' protocol
245 | {
246 | /// A human-readable name for this key. Does not affect uniqueness, or any other logical behavior.
:
262 |
263 | /// Transformation of bytes to an ADT or other generic data structure, e.g. a string, dictionary, or image.
264 | public static let parsing = PipelineStageKey(description: "parsing")
| |- warning: static property 'parsing' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'parsing' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
265 |
266 | /// Transformation from an ADT to a domain-specific model.
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineConfiguration.swift:267:23: warning: static property 'model' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
242 | }
243 | */
244 | public final class PipelineStageKey: _OpenEnum, CustomStringConvertible
| `- note: class 'PipelineStageKey' does not conform to the 'Sendable' protocol
245 | {
246 | /// A human-readable name for this key. Does not affect uniqueness, or any other logical behavior.
:
265 |
266 | /// Transformation from an ADT to a domain-specific model.
267 | public static let model = PipelineStageKey(description: "model")
| |- warning: static property 'model' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'model' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
268 |
269 | /// Error handling, validation, or any other general mop-up.
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineConfiguration.swift:270:23: warning: static property 'cleanup' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
242 | }
243 | */
244 | public final class PipelineStageKey: _OpenEnum, CustomStringConvertible
| `- note: class 'PipelineStageKey' does not conform to the 'Sendable' protocol
245 | {
246 | /// A human-readable name for this key. Does not affect uniqueness, or any other logical behavior.
:
268 |
269 | /// Error handling, validation, or any other general mop-up.
270 | public static let cleanup = PipelineStageKey(description: "cleanup")
| |- warning: static property 'cleanup' is not concurrency-safe because non-'Sendable' type 'PipelineStageKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'cleanup' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
271 | }
272 |
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:154:17: warning: capture of 'rawInfo' with non-sendable type 'ResponseInfo' in a `@Sendable` closure; this is an error in the Swift 6 language mode
152 | {
153 | let processedInfo =
154 | rawInfo.isNew
| `- warning: capture of 'rawInfo' with non-sendable type 'ResponseInfo' in a `@Sendable` closure; this is an error in the Swift 6 language mode
155 | ? ResponseInfo(response: processor(), isNew: true)
156 | : rawInfo
/host/spi-builder-workspace/Source/Siesta/Request/Request.swift:246:15: note: consider making struct 'ResponseInfo' conform to the 'Sendable' protocol
244 |
245 | /// A `Response`, plus metadata about the nature of the response.
246 | public struct ResponseInfo
| `- note: consider making struct 'ResponseInfo' conform to the 'Sendable' protocol
247 | {
248 | /// The result of a `Request`.
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:155:46: warning: capture of 'processor' with non-sendable type '() -> Response' (aka '() -> Result<Entity<Any>, RequestError>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
153 | let processedInfo =
154 | rawInfo.isNew
155 | ? ResponseInfo(response: processor(), isNew: true)
| |- warning: capture of 'processor' with non-sendable type '() -> Response' (aka '() -> Result<Entity<Any>, RequestError>') 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'
156 | : rawInfo
157 |
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:159:19: warning: capture of 'afterTransformation' with non-sendable type '(ResponseInfo) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
157 |
158 | DispatchQueue.main.async
159 | { afterTransformation(processedInfo) }
| |- warning: capture of 'afterTransformation' with non-sendable type '(ResponseInfo) -> 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'
160 | }
161 | }
/host/spi-builder-workspace/Source/Siesta/Request/ProgressTracker.swift:31:13: error: cannot find 'CFRunLoopTimerCreateWithHandler' in scope
29 |
30 | progressUpdateTimer =
31 | CFRunLoopTimerCreateWithHandler(
| `- error: cannot find 'CFRunLoopTimerCreateWithHandler' in scope
32 | kCFAllocatorDefault,
33 | CFAbsoluteTimeGetCurrent(),
/host/spi-builder-workspace/Source/Siesta/Request/ProgressTracker.swift:32:21: error: cannot find 'kCFAllocatorDefault' in scope
30 | progressUpdateTimer =
31 | CFRunLoopTimerCreateWithHandler(
32 | kCFAllocatorDefault,
| `- error: cannot find 'kCFAllocatorDefault' in scope
33 | CFAbsoluteTimeGetCurrent(),
34 | reportingInterval, 0, 0)
/host/spi-builder-workspace/Source/Siesta/Request/ProgressTracker.swift:33:21: error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
31 | CFRunLoopTimerCreateWithHandler(
32 | kCFAllocatorDefault,
33 | CFAbsoluteTimeGetCurrent(),
| `- error: cannot find 'CFAbsoluteTimeGetCurrent' in scope
34 | reportingInterval, 0, 0)
35 | { [weak self] _ in self?.updateProgress() }
/host/spi-builder-workspace/Source/Siesta/Request/ProgressTracker.swift:35:31: error: cannot infer type of closure parameter '_' without a type annotation
33 | CFAbsoluteTimeGetCurrent(),
34 | reportingInterval, 0, 0)
35 | { [weak self] _ in self?.updateProgress() }
| `- error: cannot infer type of closure parameter '_' without a type annotation
36 | CFRunLoopAddTimer(CFRunLoopGetCurrent(), progressUpdateTimer, CFRunLoopMode.commonModes)
37 | }
/host/spi-builder-workspace/Source/Siesta/Request/ProgressTracker.swift:36:9: error: cannot find 'CFRunLoopAddTimer' in scope
34 | reportingInterval, 0, 0)
35 | { [weak self] _ in self?.updateProgress() }
36 | CFRunLoopAddTimer(CFRunLoopGetCurrent(), progressUpdateTimer, CFRunLoopMode.commonModes)
| `- error: cannot find 'CFRunLoopAddTimer' in scope
37 | }
38 |
/host/spi-builder-workspace/Source/Siesta/Request/ProgressTracker.swift:36:27: error: cannot find 'CFRunLoopGetCurrent' in scope
34 | reportingInterval, 0, 0)
35 | { [weak self] _ in self?.updateProgress() }
36 | CFRunLoopAddTimer(CFRunLoopGetCurrent(), progressUpdateTimer, CFRunLoopMode.commonModes)
| `- error: cannot find 'CFRunLoopGetCurrent' in scope
37 | }
38 |
/host/spi-builder-workspace/Source/Siesta/Request/ProgressTracker.swift:36:71: error: cannot find 'CFRunLoopMode' in scope
34 | reportingInterval, 0, 0)
35 | { [weak self] _ in self?.updateProgress() }
36 | CFRunLoopAddTimer(CFRunLoopGetCurrent(), progressUpdateTimer, CFRunLoopMode.commonModes)
| `- error: cannot find 'CFRunLoopMode' in scope
37 | }
38 |
/host/spi-builder-workspace/Source/Siesta/Request/Request.swift:232:1: warning: extension declares a conformance of imported type 'Result' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
230 | }
231 |
232 | extension Response: CustomStringConvertible
| |- warning: extension declares a conformance of imported type 'Result' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
233 | {
234 | /// :nodoc:
[61/89] Compiling Alamofire ResponseSerialization.swift
[85/89] Compiling Alamofire RetryPolicy.swift
[86/89] Compiling Alamofire ServerTrustEvaluation.swift
[87/89] Compiling Alamofire URLEncodedFormEncoder.swift
[88/89] Compiling Alamofire Validation.swift
[89/89] Compiling Alamofire resource_bundle_accessor.swift
BUILD FAILURE 6.0 linux