The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build SimpleNetworking, reference master (bd2bd4), with Swift 6.0 for Linux on 27 Nov 2024 11:47:14 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -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

========================================
RunAll
========================================
Builder version: 4.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/gonzalezreal/SimpleNetworking.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/gonzalezreal/SimpleNetworking
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at bd2bd41 Update README
Cloned https://github.com/gonzalezreal/SimpleNetworking.git
Revision (git rev-parse @):
bd2bd41ab92d83a0de1991c4b10d5f182fafee2f
SUCCESS checkout https://github.com/gonzalezreal/SimpleNetworking.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/gonzalezreal/SimpleNetworking.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/apple/swift-log
[1/3698] Fetching swift-log
Fetched https://github.com/apple/swift-log from cache (0.39s)
Computing version for https://github.com/apple/swift-log
Computed https://github.com/apple/swift-log at 1.6.2 (0.37s)
Creating working copy for https://github.com/apple/swift-log
Working copy of https://github.com/apple/swift-log resolved at 1.6.2
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/8] Compiling Logging MetadataProvider.swift
[5/8] Compiling Logging LogHandler.swift
[6/8] Compiling Logging Locks.swift
[7/8] Compiling Logging Logging.swift
[8/8] Emitting module Logging
[10/24] Compiling SimpleNetworking APIRequest+Convenience.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/HeaderField.swift:55:16: warning: static property 'accept' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
43 | ///     )
44 | ///
45 | public struct HeaderField: Hashable, Equatable, RawRepresentable {
   |               `- note: consider making struct 'HeaderField' conform to the 'Sendable' protocol
46 |     public let rawValue: String
47 |
   :
53 | public extension HeaderField {
54 |     /// `"Accept"` header field.
55 |     static let accept = HeaderField(rawValue: "Accept")
   |                |- warning: static property 'accept' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'accept' 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
56 |
57 |     /// `"Authorization"` header field.
/host/spi-builder-workspace/Sources/SimpleNetworking/ContentType.swift:39:16: warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'ContentType' may have shared mutable state; this is an error in the Swift 6 language mode
24 | import Foundation
25 |
26 | public struct ContentType: Hashable, Equatable, RawRepresentable, CustomStringConvertible {
   |               `- note: consider making struct 'ContentType' conform to the 'Sendable' protocol
27 |     public let rawValue: String
28 |
   :
37 |
38 | public extension ContentType {
39 |     static let json = ContentType(rawValue: "application/json")
   |                |- warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'ContentType' 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
40 | }
41 |
/host/spi-builder-workspace/Sources/SimpleNetworking/HeaderField.swift:61:16: warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
43 | ///     )
44 | ///
45 | public struct HeaderField: Hashable, Equatable, RawRepresentable {
   |               `- note: consider making struct 'HeaderField' conform to the 'Sendable' protocol
46 |     public let rawValue: String
47 |
   :
59 |
60 |     /// `"Content-Type"` header field.
61 |     static let contentType = HeaderField(rawValue: "Content-Type")
   |                |- warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'contentType' 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
62 | }
63 |
[11/24] Compiling SimpleNetworking APIRequest.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/HeaderField.swift:55:16: warning: static property 'accept' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
43 | ///     )
44 | ///
45 | public struct HeaderField: Hashable, Equatable, RawRepresentable {
   |               `- note: consider making struct 'HeaderField' conform to the 'Sendable' protocol
46 |     public let rawValue: String
47 |
   :
53 | public extension HeaderField {
54 |     /// `"Accept"` header field.
55 |     static let accept = HeaderField(rawValue: "Accept")
   |                |- warning: static property 'accept' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'accept' 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
56 |
57 |     /// `"Authorization"` header field.
/host/spi-builder-workspace/Sources/SimpleNetworking/ContentType.swift:39:16: warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'ContentType' may have shared mutable state; this is an error in the Swift 6 language mode
24 | import Foundation
25 |
26 | public struct ContentType: Hashable, Equatable, RawRepresentable, CustomStringConvertible {
   |               `- note: consider making struct 'ContentType' conform to the 'Sendable' protocol
27 |     public let rawValue: String
28 |
   :
37 |
38 | public extension ContentType {
39 |     static let json = ContentType(rawValue: "application/json")
   |                |- warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'ContentType' 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
40 | }
41 |
/host/spi-builder-workspace/Sources/SimpleNetworking/HeaderField.swift:61:16: warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
43 | ///     )
44 | ///
45 | public struct HeaderField: Hashable, Equatable, RawRepresentable {
   |               `- note: consider making struct 'HeaderField' conform to the 'Sendable' protocol
46 |     public let rawValue: String
47 |
   :
59 |
60 |     /// `"Content-Type"` header field.
61 |     static let contentType = HeaderField(rawValue: "Content-Type")
   |                |- warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'contentType' 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
62 | }
63 |
[12/25] Compiling SimpleNetworking Exports.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/URLRequest+APIRequest.swift:26:11: error: cannot find type 'URLRequest' in scope
 24 | import Foundation
 25 |
 26 | extension URLRequest {
    |           `- error: cannot find type 'URLRequest' in scope
 27 |     @available(macOS 10.13, iOS 11.0, tvOS 11.0, watchOS 4.0, *)
 28 |     internal var logDescription: String {
/host/spi-builder-workspace/Sources/SimpleNetworking/URLRequest+APIRequest.swift:70:86: error: cannot find type 'URLRequest' in scope
 68 |
 69 |     /// Returns a new URL request by adding the given query parameters to this request.
 70 |     public func addingParameters(_ parameters: [String: CustomStringConvertible]) -> URLRequest {
    |                                                                                      `- error: cannot find type 'URLRequest' in scope
 71 |         guard !parameters.isEmpty else { return self }
 72 |
/host/spi-builder-workspace/Sources/SimpleNetworking/URLRequest+APIRequest.swift:88:68: error: cannot find type 'URLRequest' in scope
 86 |
 87 |     /// Returns a new URL request by adding the given headers to this request.
 88 |     public func addingHeaders(_ headers: [HeaderField: String]) -> URLRequest {
    |                                                                    `- error: cannot find type 'URLRequest' in scope
 89 |         guard !headers.isEmpty else { return self }
 90 |
[13/25] Compiling SimpleNetworking URLRequest+APIRequest.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/URLRequest+APIRequest.swift:26:11: error: cannot find type 'URLRequest' in scope
 24 | import Foundation
 25 |
 26 | extension URLRequest {
    |           `- error: cannot find type 'URLRequest' in scope
 27 |     @available(macOS 10.13, iOS 11.0, tvOS 11.0, watchOS 4.0, *)
 28 |     internal var logDescription: String {
/host/spi-builder-workspace/Sources/SimpleNetworking/URLRequest+APIRequest.swift:70:86: error: cannot find type 'URLRequest' in scope
 68 |
 69 |     /// Returns a new URL request by adding the given query parameters to this request.
 70 |     public func addingParameters(_ parameters: [String: CustomStringConvertible]) -> URLRequest {
    |                                                                                      `- error: cannot find type 'URLRequest' in scope
 71 |         guard !parameters.isEmpty else { return self }
 72 |
/host/spi-builder-workspace/Sources/SimpleNetworking/URLRequest+APIRequest.swift:88:68: error: cannot find type 'URLRequest' in scope
 86 |
 87 |     /// Returns a new URL request by adding the given headers to this request.
 88 |     public func addingHeaders(_ headers: [HeaderField: String]) -> URLRequest {
    |                                                                    `- error: cannot find type 'URLRequest' in scope
 89 |         guard !headers.isEmpty else { return self }
 90 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[14/25] Compiling SimpleNetworking APIClient.swift
[15/25] Compiling SimpleNetworking APIClientConfiguration.swift
[16/25] Emitting module SimpleNetworking
/host/spi-builder-workspace/Sources/SimpleNetworking/APIError.swift:32:16: warning: stored property 'error' of 'Sendable'-conforming generic struct 'APIError' has non-sendable type 'Error?'; this is an error in the Swift 6 language mode
25 |
26 | /// The `APIError` type encapsulates an error returned by an API.
27 | public struct APIError<Error>: Swift.Error {
   |                        `- note: consider making generic parameter 'Error' conform to the 'Sendable' protocol
28 |     /// The HTTP status code.
29 |     public let statusCode: Int
30 |
31 |     /// The error response.
32 |     public let error: Error?
   |                `- warning: stored property 'error' of 'Sendable'-conforming generic struct 'APIError' has non-sendable type 'Error?'; this is an error in the Swift 6 language mode
33 |
34 |     public init(statusCode: Int, error: Error?) {
/host/spi-builder-workspace/Sources/SimpleNetworking/ContentType.swift:39:16: warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'ContentType' may have shared mutable state; this is an error in the Swift 6 language mode
24 | import Foundation
25 |
26 | public struct ContentType: Hashable, Equatable, RawRepresentable, CustomStringConvertible {
   |               `- note: consider making struct 'ContentType' conform to the 'Sendable' protocol
27 |     public let rawValue: String
28 |
   :
37 |
38 | public extension ContentType {
39 |     static let json = ContentType(rawValue: "application/json")
   |                |- warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'ContentType' 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
40 | }
41 |
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:68:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |     private struct Stub {
 67 |         let data: Data
 68 |         let response: HTTPURLResponse
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     }
 70 |
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/Sources/SimpleNetworking/HTTPStubProtocol.swift:71:32: error: cannot find type 'URLRequest' in scope
 69 |     }
 70 |
 71 |     private static var stubs: [URLRequest: Stub] = [:]
    |                                `- error: cannot find type 'URLRequest' in scope
 72 |
 73 |     /// Stubs a valid response for a given API request.
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:71:24: warning: static property 'stubs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 69 |     }
 70 |
 71 |     private static var stubs: [URLRequest: Stub] = [:]
    |                        |- warning: static property 'stubs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'stubs' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'stubs' 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
 72 |
 73 |     /// Stubs a valid response for a given API request.
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:183:22: error: cannot find type 'URLRequest' in scope
181 |         statusCode: Int,
182 |         headers: [String: String]? = nil,
183 |         for request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
184 |     ) {
185 |         stubs[request] = Stub(
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:200:54: error: cannot find type 'URLRequest' in scope
198 |     }
199 |
200 |     override public class func canInit(with request: URLRequest) -> Bool {
    |                                                      `- error: cannot find type 'URLRequest' in scope
201 |         stubs.keys.contains(request)
202 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:200:32: error: method does not override any method from its superclass
198 |     }
199 |
200 |     override public class func canInit(with request: URLRequest) -> Bool {
    |                                `- error: method does not override any method from its superclass
201 |         stubs.keys.contains(request)
202 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:204:77: error: cannot find type 'URLRequest' in scope
202 |     }
203 |
204 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                                             `- error: cannot find type 'URLRequest' in scope
205 |         request
206 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:204:62: error: cannot find type 'URLRequest' in scope
202 |     }
203 |
204 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                              `- error: cannot find type 'URLRequest' in scope
205 |         request
206 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:204:32: error: method does not override any method from its superclass
202 |     }
203 |
204 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                `- error: method does not override any method from its superclass
205 |         request
206 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:208:60: error: cannot find type 'URLRequest' in scope
206 |     }
207 |
208 |     override public class func requestIsCacheEquivalent(_: URLRequest, to _: URLRequest) -> Bool {
    |                                                            `- error: cannot find type 'URLRequest' in scope
209 |         false
210 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:208:78: error: cannot find type 'URLRequest' in scope
206 |     }
207 |
208 |     override public class func requestIsCacheEquivalent(_: URLRequest, to _: URLRequest) -> Bool {
    |                                                                              `- error: cannot find type 'URLRequest' in scope
209 |         false
210 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:208:32: error: method does not override any method from its superclass
206 |     }
207 |
208 |     override public class func requestIsCacheEquivalent(_: URLRequest, to _: URLRequest) -> Bool {
    |                                `- error: method does not override any method from its superclass
209 |         false
210 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:212:26: error: method does not override any method from its superclass
210 |     }
211 |
212 |     override public func startLoading() {
    |                          `- error: method does not override any method from its superclass
213 |         guard let stub = HTTPStubProtocol.stubs[request] else {
214 |             fatalError("Couldn't find stub for request \(request)")
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:222:26: error: method does not override any method from its superclass
220 |     }
221 |
222 |     override public func stopLoading() {}
    |                          `- error: method does not override any method from its superclass
223 | }
224 |
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:65:38: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 | ///     )
 64 | ///
 65 | public final class HTTPStubProtocol: URLProtocol {
    |                                      `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |     private struct Stub {
 67 |         let data: Data
Foundation.URLProtocol:2:18: note: 'URLProtocol' 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 URLProtocol = AnyObject
  |                  `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPURLResponse+Logging.swift:26:10: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
24 | import Foundation
25 |
26 | internal extension HTTPURLResponse {
   |          `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
27 |     func logDescription(content: String) -> String {
28 |         var result = "[RESPONSE] \(statusCode) \(url!)"
/host/spi-builder-workspace/Sources/SimpleNetworking/HeaderField.swift:55:16: warning: static property 'accept' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
43 | ///     )
44 | ///
45 | public struct HeaderField: Hashable, Equatable, RawRepresentable {
   |               `- note: consider making struct 'HeaderField' conform to the 'Sendable' protocol
46 |     public let rawValue: String
47 |
   :
53 | public extension HeaderField {
54 |     /// `"Accept"` header field.
55 |     static let accept = HeaderField(rawValue: "Accept")
   |                |- warning: static property 'accept' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'accept' 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
56 |
57 |     /// `"Authorization"` header field.
/host/spi-builder-workspace/Sources/SimpleNetworking/HeaderField.swift:58:16: warning: static property 'authorization' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
43 | ///     )
44 | ///
45 | public struct HeaderField: Hashable, Equatable, RawRepresentable {
   |               `- note: consider making struct 'HeaderField' conform to the 'Sendable' protocol
46 |     public let rawValue: String
47 |
   :
56 |
57 |     /// `"Authorization"` header field.
58 |     static let authorization = HeaderField(rawValue: "Authorization")
   |                |- warning: static property 'authorization' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'authorization' 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
59 |
60 |     /// `"Content-Type"` header field.
/host/spi-builder-workspace/Sources/SimpleNetworking/HeaderField.swift:61:16: warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
43 | ///     )
44 | ///
45 | public struct HeaderField: Hashable, Equatable, RawRepresentable {
   |               `- note: consider making struct 'HeaderField' conform to the 'Sendable' protocol
46 |     public let rawValue: String
47 |
   :
59 |
60 |     /// `"Content-Type"` header field.
61 |     static let contentType = HeaderField(rawValue: "Content-Type")
   |                |- warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'contentType' 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
62 | }
63 |
/host/spi-builder-workspace/Sources/SimpleNetworking/URLRequest+APIRequest.swift:26:11: error: cannot find type 'URLRequest' in scope
 24 | import Foundation
 25 |
 26 | extension URLRequest {
    |           `- error: cannot find type 'URLRequest' in scope
 27 |     @available(macOS 10.13, iOS 11.0, tvOS 11.0, watchOS 4.0, *)
 28 |     internal var logDescription: String {
/host/spi-builder-workspace/Sources/SimpleNetworking/URLSession+Stubbed.swift:26:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
24 | import Foundation
25 |
26 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
27 |     /// A URL session whose requests can be stubbed with `HTTPStubProtocol`.
28 |     public static var stubbed: URLSession {
[17/25] Compiling SimpleNetworking URLSession+Stubbed.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/URLSession+Stubbed.swift:26:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
24 | import Foundation
25 |
26 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
27 |     /// A URL session whose requests can be stubbed with `HTTPStubProtocol`.
28 |     public static var stubbed: URLSession {
[18/25] Compiling SimpleNetworking ContentType.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/ContentType.swift:39:16: warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'ContentType' may have shared mutable state; this is an error in the Swift 6 language mode
24 | import Foundation
25 |
26 | public struct ContentType: Hashable, Equatable, RawRepresentable, CustomStringConvertible {
   |               `- note: consider making struct 'ContentType' conform to the 'Sendable' protocol
27 |     public let rawValue: String
28 |
   :
37 |
38 | public extension ContentType {
39 |     static let json = ContentType(rawValue: "application/json")
   |                |- warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'ContentType' 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
40 | }
41 |
[19/25] Compiling SimpleNetworking Data+LogDescription.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/ContentType.swift:39:16: warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'ContentType' may have shared mutable state; this is an error in the Swift 6 language mode
24 | import Foundation
25 |
26 | public struct ContentType: Hashable, Equatable, RawRepresentable, CustomStringConvertible {
   |               `- note: consider making struct 'ContentType' conform to the 'Sendable' protocol
27 |     public let rawValue: String
28 |
   :
37 |
38 | public extension ContentType {
39 |     static let json = ContentType(rawValue: "application/json")
   |                |- warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'ContentType' 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
40 | }
41 |
[20/25] Compiling SimpleNetworking APIClientError.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/APIError.swift:32:16: warning: stored property 'error' of 'Sendable'-conforming generic struct 'APIError' has non-sendable type 'Error?'; this is an error in the Swift 6 language mode
25 |
26 | /// The `APIError` type encapsulates an error returned by an API.
27 | public struct APIError<Error>: Swift.Error {
   |                        `- note: consider making generic parameter 'Error' conform to the 'Sendable' protocol
28 |     /// The HTTP status code.
29 |     public let statusCode: Int
30 |
31 |     /// The error response.
32 |     public let error: Error?
   |                `- warning: stored property 'error' of 'Sendable'-conforming generic struct 'APIError' has non-sendable type 'Error?'; this is an error in the Swift 6 language mode
33 |
34 |     public init(statusCode: Int, error: Error?) {
[21/25] Compiling SimpleNetworking APIError.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/APIError.swift:32:16: warning: stored property 'error' of 'Sendable'-conforming generic struct 'APIError' has non-sendable type 'Error?'; this is an error in the Swift 6 language mode
25 |
26 | /// The `APIError` type encapsulates an error returned by an API.
27 | public struct APIError<Error>: Swift.Error {
   |                        `- note: consider making generic parameter 'Error' conform to the 'Sendable' protocol
28 |     /// The HTTP status code.
29 |     public let statusCode: Int
30 |
31 |     /// The error response.
32 |     public let error: Error?
   |                `- warning: stored property 'error' of 'Sendable'-conforming generic struct 'APIError' has non-sendable type 'Error?'; this is an error in the Swift 6 language mode
33 |
34 |     public init(statusCode: Int, error: Error?) {
[22/25] Compiling SimpleNetworking HTTPURLResponse+Logging.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPURLResponse+Logging.swift:26:10: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
24 | import Foundation
25 |
26 | internal extension HTTPURLResponse {
   |          `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
27 |     func logDescription(content: String) -> String {
28 |         var result = "[RESPONSE] \(statusCode) \(url!)"
/host/spi-builder-workspace/Sources/SimpleNetworking/HeaderField.swift:55:16: warning: static property 'accept' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
43 | ///     )
44 | ///
45 | public struct HeaderField: Hashable, Equatable, RawRepresentable {
   |               `- note: consider making struct 'HeaderField' conform to the 'Sendable' protocol
46 |     public let rawValue: String
47 |
   :
53 | public extension HeaderField {
54 |     /// `"Accept"` header field.
55 |     static let accept = HeaderField(rawValue: "Accept")
   |                |- warning: static property 'accept' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'accept' 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
56 |
57 |     /// `"Authorization"` header field.
/host/spi-builder-workspace/Sources/SimpleNetworking/HeaderField.swift:58:16: warning: static property 'authorization' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
43 | ///     )
44 | ///
45 | public struct HeaderField: Hashable, Equatable, RawRepresentable {
   |               `- note: consider making struct 'HeaderField' conform to the 'Sendable' protocol
46 |     public let rawValue: String
47 |
   :
56 |
57 |     /// `"Authorization"` header field.
58 |     static let authorization = HeaderField(rawValue: "Authorization")
   |                |- warning: static property 'authorization' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'authorization' 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
59 |
60 |     /// `"Content-Type"` header field.
/host/spi-builder-workspace/Sources/SimpleNetworking/HeaderField.swift:61:16: warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
43 | ///     )
44 | ///
45 | public struct HeaderField: Hashable, Equatable, RawRepresentable {
   |               `- note: consider making struct 'HeaderField' conform to the 'Sendable' protocol
46 |     public let rawValue: String
47 |
   :
59 |
60 |     /// `"Content-Type"` header field.
61 |     static let contentType = HeaderField(rawValue: "Content-Type")
   |                |- warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'contentType' 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
62 | }
63 |
[23/25] Compiling SimpleNetworking HeaderField.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPURLResponse+Logging.swift:26:10: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
24 | import Foundation
25 |
26 | internal extension HTTPURLResponse {
   |          `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
27 |     func logDescription(content: String) -> String {
28 |         var result = "[RESPONSE] \(statusCode) \(url!)"
/host/spi-builder-workspace/Sources/SimpleNetworking/HeaderField.swift:55:16: warning: static property 'accept' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
43 | ///     )
44 | ///
45 | public struct HeaderField: Hashable, Equatable, RawRepresentable {
   |               `- note: consider making struct 'HeaderField' conform to the 'Sendable' protocol
46 |     public let rawValue: String
47 |
   :
53 | public extension HeaderField {
54 |     /// `"Accept"` header field.
55 |     static let accept = HeaderField(rawValue: "Accept")
   |                |- warning: static property 'accept' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'accept' 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
56 |
57 |     /// `"Authorization"` header field.
/host/spi-builder-workspace/Sources/SimpleNetworking/HeaderField.swift:58:16: warning: static property 'authorization' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
43 | ///     )
44 | ///
45 | public struct HeaderField: Hashable, Equatable, RawRepresentable {
   |               `- note: consider making struct 'HeaderField' conform to the 'Sendable' protocol
46 |     public let rawValue: String
47 |
   :
56 |
57 |     /// `"Authorization"` header field.
58 |     static let authorization = HeaderField(rawValue: "Authorization")
   |                |- warning: static property 'authorization' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'authorization' 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
59 |
60 |     /// `"Content-Type"` header field.
/host/spi-builder-workspace/Sources/SimpleNetworking/HeaderField.swift:61:16: warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
43 | ///     )
44 | ///
45 | public struct HeaderField: Hashable, Equatable, RawRepresentable {
   |               `- note: consider making struct 'HeaderField' conform to the 'Sendable' protocol
46 |     public let rawValue: String
47 |
   :
59 |
60 |     /// `"Content-Type"` header field.
61 |     static let contentType = HeaderField(rawValue: "Content-Type")
   |                |- warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'contentType' 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
62 | }
63 |
[24/25] Compiling SimpleNetworking Dictionary+LogDescription.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:68:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |     private struct Stub {
 67 |         let data: Data
 68 |         let response: HTTPURLResponse
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     }
 70 |
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/Sources/SimpleNetworking/HTTPStubProtocol.swift:71:32: error: cannot find type 'URLRequest' in scope
 69 |     }
 70 |
 71 |     private static var stubs: [URLRequest: Stub] = [:]
    |                                `- error: cannot find type 'URLRequest' in scope
 72 |
 73 |     /// Stubs a valid response for a given API request.
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:71:24: warning: static property 'stubs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 69 |     }
 70 |
 71 |     private static var stubs: [URLRequest: Stub] = [:]
    |                        |- warning: static property 'stubs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'stubs' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'stubs' 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
 72 |
 73 |     /// Stubs a valid response for a given API request.
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:183:22: error: cannot find type 'URLRequest' in scope
181 |         statusCode: Int,
182 |         headers: [String: String]? = nil,
183 |         for request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
184 |     ) {
185 |         stubs[request] = Stub(
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:200:54: error: cannot find type 'URLRequest' in scope
198 |     }
199 |
200 |     override public class func canInit(with request: URLRequest) -> Bool {
    |                                                      `- error: cannot find type 'URLRequest' in scope
201 |         stubs.keys.contains(request)
202 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:200:32: error: method does not override any method from its superclass
198 |     }
199 |
200 |     override public class func canInit(with request: URLRequest) -> Bool {
    |                                `- error: method does not override any method from its superclass
201 |         stubs.keys.contains(request)
202 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:204:77: error: cannot find type 'URLRequest' in scope
202 |     }
203 |
204 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                                             `- error: cannot find type 'URLRequest' in scope
205 |         request
206 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:204:62: error: cannot find type 'URLRequest' in scope
202 |     }
203 |
204 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                              `- error: cannot find type 'URLRequest' in scope
205 |         request
206 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:204:32: error: method does not override any method from its superclass
202 |     }
203 |
204 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                `- error: method does not override any method from its superclass
205 |         request
206 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:208:60: error: cannot find type 'URLRequest' in scope
206 |     }
207 |
208 |     override public class func requestIsCacheEquivalent(_: URLRequest, to _: URLRequest) -> Bool {
    |                                                            `- error: cannot find type 'URLRequest' in scope
209 |         false
210 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:208:78: error: cannot find type 'URLRequest' in scope
206 |     }
207 |
208 |     override public class func requestIsCacheEquivalent(_: URLRequest, to _: URLRequest) -> Bool {
    |                                                                              `- error: cannot find type 'URLRequest' in scope
209 |         false
210 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:208:32: error: method does not override any method from its superclass
206 |     }
207 |
208 |     override public class func requestIsCacheEquivalent(_: URLRequest, to _: URLRequest) -> Bool {
    |                                `- error: method does not override any method from its superclass
209 |         false
210 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:212:26: error: method does not override any method from its superclass
210 |     }
211 |
212 |     override public func startLoading() {
    |                          `- error: method does not override any method from its superclass
213 |         guard let stub = HTTPStubProtocol.stubs[request] else {
214 |             fatalError("Couldn't find stub for request \(request)")
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:222:26: error: method does not override any method from its superclass
220 |     }
221 |
222 |     override public func stopLoading() {}
    |                          `- error: method does not override any method from its superclass
223 | }
224 |
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:65:38: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 | ///     )
 64 | ///
 65 | public final class HTTPStubProtocol: URLProtocol {
    |                                      `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |     private struct Stub {
 67 |         let data: Data
Foundation.URLProtocol:2:18: note: 'URLProtocol' 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 URLProtocol = AnyObject
  |                  `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:95:18: error: cannot find 'URLRequest' in scope
 93 |             statusCode: statusCode,
 94 |             headers: headers,
 95 |             for: URLRequest(baseURL: baseURL, apiRequest: request)
    |                  `- error: cannot find 'URLRequest' in scope
 96 |         )
 97 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:96:9: error: missing argument for parameter 'baseURL' in call
 81 |     ///   - baseURL: The base URL for the API request.
 82 |     ///
 83 |     public static func stub<Output, Error>(
    |                        `- note: 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)' declared here
 84 |         _ output: Output,
 85 |         jsonEncoder: JSONEncoder = JSONEncoder(),
    :
 94 |             headers: headers,
 95 |             for: URLRequest(baseURL: baseURL, apiRequest: request)
 96 |         )
    |         `- error: missing argument for parameter 'baseURL' in call
 97 |     }
 98 |
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:91:9: error: generic parameter 'Error' could not be inferred
 81 |     ///   - baseURL: The base URL for the API request.
 82 |     ///
 83 |     public static func stub<Output, Error>(
    |                        `- note: in call to function 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)'
 84 |         _ output: Output,
 85 |         jsonEncoder: JSONEncoder = JSONEncoder(),
    :
 89 |         baseURL: URL
 90 |     ) throws where Output: Encodable {
 91 |         stub(
    |         `- error: generic parameter 'Error' could not be inferred
 92 |             try jsonEncoder.encode(output),
 93 |             statusCode: statusCode,
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:121:18: error: cannot find 'URLRequest' in scope
119 |             statusCode: statusCode,
120 |             headers: headers,
121 |             for: URLRequest(baseURL: baseURL, apiRequest: request)
    |                  `- error: cannot find 'URLRequest' in scope
122 |         )
123 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:122:9: error: missing argument for parameter 'baseURL' in call
 81 |     ///   - baseURL: The base URL for the API request.
 82 |     ///
 83 |     public static func stub<Output, Error>(
    |                        `- note: 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)' declared here
 84 |         _ output: Output,
 85 |         jsonEncoder: JSONEncoder = JSONEncoder(),
    :
120 |             headers: headers,
121 |             for: URLRequest(baseURL: baseURL, apiRequest: request)
122 |         )
    |         `- error: missing argument for parameter 'baseURL' in call
123 |     }
124 |
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:117:9: error: generic parameter 'Error' could not be inferred
 81 |     ///   - baseURL: The base URL for the API request.
 82 |     ///
 83 |     public static func stub<Output, Error>(
    |                        `- note: in call to function 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)'
 84 |         _ output: Output,
 85 |         jsonEncoder: JSONEncoder = JSONEncoder(),
    :
115 |         baseURL: URL
116 |     ) throws where Error: Encodable {
117 |         stub(
    |         `- error: generic parameter 'Error' could not be inferred
118 |             try jsonEncoder.encode(error),
119 |             statusCode: statusCode,
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:145:18: error: cannot find 'URLRequest' in scope
143 |             statusCode: statusCode,
144 |             headers: headers,
145 |             for: URLRequest(baseURL: baseURL, apiRequest: request)
    |                  `- error: cannot find 'URLRequest' in scope
146 |         )
147 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:141:16: error: no exact matches in call to static method 'stub'
 81 |     ///   - baseURL: The base URL for the API request.
 82 |     ///
 83 |     public static func stub<Output, Error>(
    |                        `- note: found this candidate
 84 |         _ output: Output,
 85 |         jsonEncoder: JSONEncoder = JSONEncoder(),
    :
107 |     ///   - baseURL: The base URL for the API request.
108 |     ///
109 |     public static func stub<Output, Error>(
    |                        `- note: found this candidate
110 |         _ error: Error,
111 |         jsonEncoder: JSONEncoder = JSONEncoder(),
    :
139 |         baseURL: URL
140 |     ) {
141 |         return stub(
    |                `- error: no exact matches in call to static method 'stub'
142 |             text.data(using: .utf8)!,
143 |             statusCode: statusCode,
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:167:18: error: cannot find 'URLRequest' in scope
165 |             statusCode: statusCode,
166 |             headers: headers,
167 |             for: URLRequest(baseURL: baseURL, apiRequest: request)
    |                  `- error: cannot find 'URLRequest' in scope
168 |         )
169 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:163:16: error: no exact matches in call to static method 'stub'
 81 |     ///   - baseURL: The base URL for the API request.
 82 |     ///
 83 |     public static func stub<Output, Error>(
    |                        `- note: found this candidate
 84 |         _ output: Output,
 85 |         jsonEncoder: JSONEncoder = JSONEncoder(),
    :
107 |     ///   - baseURL: The base URL for the API request.
108 |     ///
109 |     public static func stub<Output, Error>(
    |                        `- note: found this candidate
110 |         _ error: Error,
111 |         jsonEncoder: JSONEncoder = JSONEncoder(),
    :
161 |         baseURL: URL
162 |     ) {
163 |         return stub(
    |                `- error: no exact matches in call to static method 'stub'
164 |             Data(),
165 |             statusCode: statusCode,
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:187:23: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
185 |         stubs[request] = Stub(
186 |             data: data,
187 |             response: HTTPURLResponse(
    |                       `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
188 |                 url: request.url!,
189 |                 statusCode: statusCode,
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:213:49: error: cannot find 'request' in scope
211 |
212 |     override public func startLoading() {
213 |         guard let stub = HTTPStubProtocol.stubs[request] else {
    |                                                 `- error: cannot find 'request' in scope
214 |             fatalError("Couldn't find stub for request \(request)")
215 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:214:58: error: cannot find 'request' in scope
212 |     override public func startLoading() {
213 |         guard let stub = HTTPStubProtocol.stubs[request] else {
214 |             fatalError("Couldn't find stub for request \(request)")
    |                                                          `- error: cannot find 'request' in scope
215 |         }
216 |
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:217:9: error: cannot find 'client' in scope
215 |         }
216 |
217 |         client!.urlProtocol(self, didReceive: stub.response, cacheStoragePolicy: .notAllowed)
    |         `- error: cannot find 'client' in scope
218 |         client!.urlProtocol(self, didLoad: stub.data)
219 |         client!.urlProtocolDidFinishLoading(self)
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:217:83: error: cannot infer contextual base in reference to member 'notAllowed'
215 |         }
216 |
217 |         client!.urlProtocol(self, didReceive: stub.response, cacheStoragePolicy: .notAllowed)
    |                                                                                   `- error: cannot infer contextual base in reference to member 'notAllowed'
218 |         client!.urlProtocol(self, didLoad: stub.data)
219 |         client!.urlProtocolDidFinishLoading(self)
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:218:9: error: cannot find 'client' in scope
216 |
217 |         client!.urlProtocol(self, didReceive: stub.response, cacheStoragePolicy: .notAllowed)
218 |         client!.urlProtocol(self, didLoad: stub.data)
    |         `- error: cannot find 'client' in scope
219 |         client!.urlProtocolDidFinishLoading(self)
220 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:219:9: error: cannot find 'client' in scope
217 |         client!.urlProtocol(self, didReceive: stub.response, cacheStoragePolicy: .notAllowed)
218 |         client!.urlProtocol(self, didLoad: stub.data)
219 |         client!.urlProtocolDidFinishLoading(self)
    |         `- error: cannot find 'client' in scope
220 |     }
221 |
[25/25] Compiling SimpleNetworking HTTPStubProtocol.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:68:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |     private struct Stub {
 67 |         let data: Data
 68 |         let response: HTTPURLResponse
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     }
 70 |
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/Sources/SimpleNetworking/HTTPStubProtocol.swift:71:32: error: cannot find type 'URLRequest' in scope
 69 |     }
 70 |
 71 |     private static var stubs: [URLRequest: Stub] = [:]
    |                                `- error: cannot find type 'URLRequest' in scope
 72 |
 73 |     /// Stubs a valid response for a given API request.
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:71:24: warning: static property 'stubs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 69 |     }
 70 |
 71 |     private static var stubs: [URLRequest: Stub] = [:]
    |                        |- warning: static property 'stubs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'stubs' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'stubs' 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
 72 |
 73 |     /// Stubs a valid response for a given API request.
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:183:22: error: cannot find type 'URLRequest' in scope
181 |         statusCode: Int,
182 |         headers: [String: String]? = nil,
183 |         for request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
184 |     ) {
185 |         stubs[request] = Stub(
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:200:54: error: cannot find type 'URLRequest' in scope
198 |     }
199 |
200 |     override public class func canInit(with request: URLRequest) -> Bool {
    |                                                      `- error: cannot find type 'URLRequest' in scope
201 |         stubs.keys.contains(request)
202 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:200:32: error: method does not override any method from its superclass
198 |     }
199 |
200 |     override public class func canInit(with request: URLRequest) -> Bool {
    |                                `- error: method does not override any method from its superclass
201 |         stubs.keys.contains(request)
202 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:204:77: error: cannot find type 'URLRequest' in scope
202 |     }
203 |
204 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                                             `- error: cannot find type 'URLRequest' in scope
205 |         request
206 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:204:62: error: cannot find type 'URLRequest' in scope
202 |     }
203 |
204 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                              `- error: cannot find type 'URLRequest' in scope
205 |         request
206 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:204:32: error: method does not override any method from its superclass
202 |     }
203 |
204 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                `- error: method does not override any method from its superclass
205 |         request
206 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:208:60: error: cannot find type 'URLRequest' in scope
206 |     }
207 |
208 |     override public class func requestIsCacheEquivalent(_: URLRequest, to _: URLRequest) -> Bool {
    |                                                            `- error: cannot find type 'URLRequest' in scope
209 |         false
210 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:208:78: error: cannot find type 'URLRequest' in scope
206 |     }
207 |
208 |     override public class func requestIsCacheEquivalent(_: URLRequest, to _: URLRequest) -> Bool {
    |                                                                              `- error: cannot find type 'URLRequest' in scope
209 |         false
210 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:208:32: error: method does not override any method from its superclass
206 |     }
207 |
208 |     override public class func requestIsCacheEquivalent(_: URLRequest, to _: URLRequest) -> Bool {
    |                                `- error: method does not override any method from its superclass
209 |         false
210 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:212:26: error: method does not override any method from its superclass
210 |     }
211 |
212 |     override public func startLoading() {
    |                          `- error: method does not override any method from its superclass
213 |         guard let stub = HTTPStubProtocol.stubs[request] else {
214 |             fatalError("Couldn't find stub for request \(request)")
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:222:26: error: method does not override any method from its superclass
220 |     }
221 |
222 |     override public func stopLoading() {}
    |                          `- error: method does not override any method from its superclass
223 | }
224 |
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:65:38: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 | ///     )
 64 | ///
 65 | public final class HTTPStubProtocol: URLProtocol {
    |                                      `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |     private struct Stub {
 67 |         let data: Data
Foundation.URLProtocol:2:18: note: 'URLProtocol' 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 URLProtocol = AnyObject
  |                  `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:95:18: error: cannot find 'URLRequest' in scope
 93 |             statusCode: statusCode,
 94 |             headers: headers,
 95 |             for: URLRequest(baseURL: baseURL, apiRequest: request)
    |                  `- error: cannot find 'URLRequest' in scope
 96 |         )
 97 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:96:9: error: missing argument for parameter 'baseURL' in call
 81 |     ///   - baseURL: The base URL for the API request.
 82 |     ///
 83 |     public static func stub<Output, Error>(
    |                        `- note: 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)' declared here
 84 |         _ output: Output,
 85 |         jsonEncoder: JSONEncoder = JSONEncoder(),
    :
 94 |             headers: headers,
 95 |             for: URLRequest(baseURL: baseURL, apiRequest: request)
 96 |         )
    |         `- error: missing argument for parameter 'baseURL' in call
 97 |     }
 98 |
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:91:9: error: generic parameter 'Error' could not be inferred
 81 |     ///   - baseURL: The base URL for the API request.
 82 |     ///
 83 |     public static func stub<Output, Error>(
    |                        `- note: in call to function 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)'
 84 |         _ output: Output,
 85 |         jsonEncoder: JSONEncoder = JSONEncoder(),
    :
 89 |         baseURL: URL
 90 |     ) throws where Output: Encodable {
 91 |         stub(
    |         `- error: generic parameter 'Error' could not be inferred
 92 |             try jsonEncoder.encode(output),
 93 |             statusCode: statusCode,
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:121:18: error: cannot find 'URLRequest' in scope
119 |             statusCode: statusCode,
120 |             headers: headers,
121 |             for: URLRequest(baseURL: baseURL, apiRequest: request)
    |                  `- error: cannot find 'URLRequest' in scope
122 |         )
123 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:122:9: error: missing argument for parameter 'baseURL' in call
 81 |     ///   - baseURL: The base URL for the API request.
 82 |     ///
 83 |     public static func stub<Output, Error>(
    |                        `- note: 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)' declared here
 84 |         _ output: Output,
 85 |         jsonEncoder: JSONEncoder = JSONEncoder(),
    :
120 |             headers: headers,
121 |             for: URLRequest(baseURL: baseURL, apiRequest: request)
122 |         )
    |         `- error: missing argument for parameter 'baseURL' in call
123 |     }
124 |
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:117:9: error: generic parameter 'Error' could not be inferred
 81 |     ///   - baseURL: The base URL for the API request.
 82 |     ///
 83 |     public static func stub<Output, Error>(
    |                        `- note: in call to function 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)'
 84 |         _ output: Output,
 85 |         jsonEncoder: JSONEncoder = JSONEncoder(),
    :
115 |         baseURL: URL
116 |     ) throws where Error: Encodable {
117 |         stub(
    |         `- error: generic parameter 'Error' could not be inferred
118 |             try jsonEncoder.encode(error),
119 |             statusCode: statusCode,
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:145:18: error: cannot find 'URLRequest' in scope
143 |             statusCode: statusCode,
144 |             headers: headers,
145 |             for: URLRequest(baseURL: baseURL, apiRequest: request)
    |                  `- error: cannot find 'URLRequest' in scope
146 |         )
147 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:141:16: error: no exact matches in call to static method 'stub'
 81 |     ///   - baseURL: The base URL for the API request.
 82 |     ///
 83 |     public static func stub<Output, Error>(
    |                        `- note: found this candidate
 84 |         _ output: Output,
 85 |         jsonEncoder: JSONEncoder = JSONEncoder(),
    :
107 |     ///   - baseURL: The base URL for the API request.
108 |     ///
109 |     public static func stub<Output, Error>(
    |                        `- note: found this candidate
110 |         _ error: Error,
111 |         jsonEncoder: JSONEncoder = JSONEncoder(),
    :
139 |         baseURL: URL
140 |     ) {
141 |         return stub(
    |                `- error: no exact matches in call to static method 'stub'
142 |             text.data(using: .utf8)!,
143 |             statusCode: statusCode,
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:167:18: error: cannot find 'URLRequest' in scope
165 |             statusCode: statusCode,
166 |             headers: headers,
167 |             for: URLRequest(baseURL: baseURL, apiRequest: request)
    |                  `- error: cannot find 'URLRequest' in scope
168 |         )
169 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:163:16: error: no exact matches in call to static method 'stub'
 81 |     ///   - baseURL: The base URL for the API request.
 82 |     ///
 83 |     public static func stub<Output, Error>(
    |                        `- note: found this candidate
 84 |         _ output: Output,
 85 |         jsonEncoder: JSONEncoder = JSONEncoder(),
    :
107 |     ///   - baseURL: The base URL for the API request.
108 |     ///
109 |     public static func stub<Output, Error>(
    |                        `- note: found this candidate
110 |         _ error: Error,
111 |         jsonEncoder: JSONEncoder = JSONEncoder(),
    :
161 |         baseURL: URL
162 |     ) {
163 |         return stub(
    |                `- error: no exact matches in call to static method 'stub'
164 |             Data(),
165 |             statusCode: statusCode,
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:187:23: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
185 |         stubs[request] = Stub(
186 |             data: data,
187 |             response: HTTPURLResponse(
    |                       `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
188 |                 url: request.url!,
189 |                 statusCode: statusCode,
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:213:49: error: cannot find 'request' in scope
211 |
212 |     override public func startLoading() {
213 |         guard let stub = HTTPStubProtocol.stubs[request] else {
    |                                                 `- error: cannot find 'request' in scope
214 |             fatalError("Couldn't find stub for request \(request)")
215 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:214:58: error: cannot find 'request' in scope
212 |     override public func startLoading() {
213 |         guard let stub = HTTPStubProtocol.stubs[request] else {
214 |             fatalError("Couldn't find stub for request \(request)")
    |                                                          `- error: cannot find 'request' in scope
215 |         }
216 |
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:217:9: error: cannot find 'client' in scope
215 |         }
216 |
217 |         client!.urlProtocol(self, didReceive: stub.response, cacheStoragePolicy: .notAllowed)
    |         `- error: cannot find 'client' in scope
218 |         client!.urlProtocol(self, didLoad: stub.data)
219 |         client!.urlProtocolDidFinishLoading(self)
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:217:83: error: cannot infer contextual base in reference to member 'notAllowed'
215 |         }
216 |
217 |         client!.urlProtocol(self, didReceive: stub.response, cacheStoragePolicy: .notAllowed)
    |                                                                                   `- error: cannot infer contextual base in reference to member 'notAllowed'
218 |         client!.urlProtocol(self, didLoad: stub.data)
219 |         client!.urlProtocolDidFinishLoading(self)
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:218:9: error: cannot find 'client' in scope
216 |
217 |         client!.urlProtocol(self, didReceive: stub.response, cacheStoragePolicy: .notAllowed)
218 |         client!.urlProtocol(self, didLoad: stub.data)
    |         `- error: cannot find 'client' in scope
219 |         client!.urlProtocolDidFinishLoading(self)
220 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:219:9: error: cannot find 'client' in scope
217 |         client!.urlProtocol(self, didReceive: stub.response, cacheStoragePolicy: .notAllowed)
218 |         client!.urlProtocol(self, didLoad: stub.data)
219 |         client!.urlProtocolDidFinishLoading(self)
    |         `- error: cannot find 'client' in scope
220 |     }
221 |
BUILD FAILURE 6.0 linux