The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build swift-talk-shared, reference master (023816), with Swift 6.1 for Wasm on 27 May 2025 08:01:15 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/objcio/swift-talk-shared.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/objcio/swift-talk-shared
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 0238161 sessionid.
Cloned https://github.com/objcio/swift-talk-shared.git
Revision (git rev-parse @):
0238161c1bf1a3db01c6d51b801e6d02656199b4
SUCCESS checkout https://github.com/objcio/swift-talk-shared.git at master
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/objcio/swift-talk-shared.git
https://github.com/objcio/swift-talk-shared.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "tiny-networking",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.2.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/objcio/tiny-networking"
    }
  ],
  "manifest_display_name" : "swift-talk-shared",
  "name" : "swift-talk-shared",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Model",
      "targets" : [
        "Model"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "ViewHelpers",
      "targets" : [
        "ViewHelpers"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "swift_talk_sharedTests",
      "module_type" : "SwiftTarget",
      "name" : "swift-talk-sharedTests",
      "path" : "Tests/swift-talk-sharedTests",
      "sources" : [
        "XCTestManifests.swift",
        "swift_talk_sharedTests.swift"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ViewHelpers",
      "module_type" : "SwiftTarget",
      "name" : "ViewHelpers",
      "path" : "Sources/ViewHelpers",
      "product_memberships" : [
        "ViewHelpers"
      ],
      "sources" : [
        "ViewHelpers.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Model",
      "module_type" : "SwiftTarget",
      "name" : "Model",
      "path" : "Sources/Model",
      "product_dependencies" : [
        "TinyNetworking"
      ],
      "product_memberships" : [
        "Model"
      ],
      "sources" : [
        "Model.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:059e0fdbe549369b902c0d423739510ddee50a4a70258d1404125eb9394ef31c
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/objcio/tiny-networking
[1/305] Fetching tiny-networking
Fetched https://github.com/objcio/tiny-networking from cache (0.78s)
Computing version for https://github.com/objcio/tiny-networking
Computed https://github.com/objcio/tiny-networking at 0.5.0 (1.35s)
Creating working copy for https://github.com/objcio/tiny-networking
Working copy of https://github.com/objcio/tiny-networking resolved at 0.5.0
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/8] Emitting module ViewHelpers
[6/8] Compiling ViewHelpers ViewHelpers.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/9] Emitting module TinyNetworking
/host/spi-builder-workspace/.build/checkouts/tiny-networking/Sources/TinyNetworking/Endpoint.swift:31:25: error: cannot find type 'URLRequest' in scope
 29 |
 30 |     /// The request for this endpoint
 31 |     public var request: URLRequest
    |                         `- error: cannot find type 'URLRequest' in scope
 32 |
 33 |     /// This is used to (try to) parse a response into an `A`.
/host/spi-builder-workspace/.build/checkouts/tiny-networking/Sources/TinyNetworking/Endpoint.swift:34:24: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |
 33 |     /// This is used to (try to) parse a response into an `A`.
 34 |     var parse: (Data?, URLResponse?) -> Result<A, Error>
    |                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 35 |
 36 |     /// This is used to check the status code of a response.
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/tiny-networking/Sources/TinyNetworking/Endpoint.swift:66:312: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |     ///   - query: query parameters to append to the url
 65 |     ///   - parse: this converts a response into an `A`.
 66 |     public init(_ method: Method, url: URL, accept: ContentType? = nil, contentType: ContentType? = nil, body: Data? = nil, headers: [String:String] = [:], expectedStatusCode: @escaping (Int) -> Bool = expected200to300, timeOutInterval: TimeInterval = 10, query: [String:String] = [:], parse: @escaping (Data?, URLResponse?) -> Result<A, Error>) {
    |                                                                                                                                                                                                                                                                                                                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 67 |         var requestUrl : URL
 68 |         if query.isEmpty {
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/tiny-networking/Sources/TinyNetworking/Endpoint.swift:103:26: error: cannot find type 'URLRequest' in scope
101 |     ///   - expectedStatusCode: the status code that's expected. If this returns false for a given status code, parsing fails.
102 |     ///   - parse: this converts a response into an `A`.
103 |     public init(request: URLRequest, expectedStatusCode: @escaping (Int) -> Bool = expected200to300, parse: @escaping (Data?, URLResponse?) -> Result<A, Error>) {
    |                          `- error: cannot find type 'URLRequest' in scope
104 |         self.request = request
105 |         self.expectedStatusCode = expectedStatusCode
/host/spi-builder-workspace/.build/checkouts/tiny-networking/Sources/TinyNetworking/Endpoint.swift:103:127: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 |     ///   - expectedStatusCode: the status code that's expected. If this returns false for a given status code, parsing fails.
102 |     ///   - parse: this converts a response into an `A`.
103 |     public init(request: URLRequest, expectedStatusCode: @escaping (Int) -> Bool = expected200to300, parse: @escaping (Data?, URLResponse?) -> Result<A, Error>) {
    |                                                                                                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 |         self.request = request
105 |         self.expectedStatusCode = expectedStatusCode
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/tiny-networking/Sources/TinyNetworking/Endpoint.swift:214:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
212 | public struct WrongStatusCodeError: Error {
213 |     public let statusCode: Int
214 |     public let response: HTTPURLResponse?
    |                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
215 |     public let responseBody: Data?
216 |     public init(statusCode: Int, response: HTTPURLResponse?, responseBody: Data?) {
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/.build/checkouts/tiny-networking/Sources/TinyNetworking/Endpoint.swift:216:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 |     public let response: HTTPURLResponse?
215 |     public let responseBody: Data?
216 |     public init(statusCode: Int, response: HTTPURLResponse?, responseBody: Data?) {
    |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
217 |         self.statusCode = statusCode
218 |         self.response = response
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/.build/checkouts/tiny-networking/Sources/TinyNetworking/Endpoint.swift:223:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
221 | }
222 |
223 | extension URLSession {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
224 |     @discardableResult
225 |     /// Loads an endpoint by creating (and directly resuming) a data task.
[8/9] Compiling TinyNetworking Endpoint.swift
/host/spi-builder-workspace/.build/checkouts/tiny-networking/Sources/TinyNetworking/Endpoint.swift:31:25: error: cannot find type 'URLRequest' in scope
 29 |
 30 |     /// The request for this endpoint
 31 |     public var request: URLRequest
    |                         `- error: cannot find type 'URLRequest' in scope
 32 |
 33 |     /// This is used to (try to) parse a response into an `A`.
/host/spi-builder-workspace/.build/checkouts/tiny-networking/Sources/TinyNetworking/Endpoint.swift:34:24: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |
 33 |     /// This is used to (try to) parse a response into an `A`.
 34 |     var parse: (Data?, URLResponse?) -> Result<A, Error>
    |                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 35 |
 36 |     /// This is used to check the status code of a response.
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/tiny-networking/Sources/TinyNetworking/Endpoint.swift:66:312: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |     ///   - query: query parameters to append to the url
 65 |     ///   - parse: this converts a response into an `A`.
 66 |     public init(_ method: Method, url: URL, accept: ContentType? = nil, contentType: ContentType? = nil, body: Data? = nil, headers: [String:String] = [:], expectedStatusCode: @escaping (Int) -> Bool = expected200to300, timeOutInterval: TimeInterval = 10, query: [String:String] = [:], parse: @escaping (Data?, URLResponse?) -> Result<A, Error>) {
    |                                                                                                                                                                                                                                                                                                                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 67 |         var requestUrl : URL
 68 |         if query.isEmpty {
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/tiny-networking/Sources/TinyNetworking/Endpoint.swift:103:26: error: cannot find type 'URLRequest' in scope
101 |     ///   - expectedStatusCode: the status code that's expected. If this returns false for a given status code, parsing fails.
102 |     ///   - parse: this converts a response into an `A`.
103 |     public init(request: URLRequest, expectedStatusCode: @escaping (Int) -> Bool = expected200to300, parse: @escaping (Data?, URLResponse?) -> Result<A, Error>) {
    |                          `- error: cannot find type 'URLRequest' in scope
104 |         self.request = request
105 |         self.expectedStatusCode = expectedStatusCode
/host/spi-builder-workspace/.build/checkouts/tiny-networking/Sources/TinyNetworking/Endpoint.swift:103:127: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 |     ///   - expectedStatusCode: the status code that's expected. If this returns false for a given status code, parsing fails.
102 |     ///   - parse: this converts a response into an `A`.
103 |     public init(request: URLRequest, expectedStatusCode: @escaping (Int) -> Bool = expected200to300, parse: @escaping (Data?, URLResponse?) -> Result<A, Error>) {
    |                                                                                                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 |         self.request = request
105 |         self.expectedStatusCode = expectedStatusCode
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/tiny-networking/Sources/TinyNetworking/Endpoint.swift:214:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
212 | public struct WrongStatusCodeError: Error {
213 |     public let statusCode: Int
214 |     public let response: HTTPURLResponse?
    |                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
215 |     public let responseBody: Data?
216 |     public init(statusCode: Int, response: HTTPURLResponse?, responseBody: Data?) {
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/.build/checkouts/tiny-networking/Sources/TinyNetworking/Endpoint.swift:216:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 |     public let response: HTTPURLResponse?
215 |     public let responseBody: Data?
216 |     public init(statusCode: Int, response: HTTPURLResponse?, responseBody: Data?) {
    |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
217 |         self.statusCode = statusCode
218 |         self.response = response
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/.build/checkouts/tiny-networking/Sources/TinyNetworking/Endpoint.swift:223:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
221 | }
222 |
223 | extension URLSession {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
224 |     @discardableResult
225 |     /// Loads an endpoint by creating (and directly resuming) a data task.
/host/spi-builder-workspace/.build/checkouts/tiny-networking/Sources/TinyNetworking/Endpoint.swift:41:27: error: extraneous argument label 'request:' in call
 39 |     /// Transforms the result
 40 |     public func map<B>(_ f: @escaping (A) -> B) -> Endpoint<B> {
 41 |         return Endpoint<B>(request: request, expectedStatusCode: expectedStatusCode, parse: { value, response in
    |                           `- error: extraneous argument label 'request:' in call
 42 |             self.parse(value, response).map(f)
 43 |         })
/host/spi-builder-workspace/.build/checkouts/tiny-networking/Sources/TinyNetworking/Endpoint.swift:41:44: error: missing argument for parameter 'url' in call
 39 |     /// Transforms the result
 40 |     public func map<B>(_ f: @escaping (A) -> B) -> Endpoint<B> {
 41 |         return Endpoint<B>(request: request, expectedStatusCode: expectedStatusCode, parse: { value, response in
    |                                            `- error: missing argument for parameter 'url' in call
 42 |             self.parse(value, response).map(f)
 43 |         })
    :
 64 |     ///   - query: query parameters to append to the url
 65 |     ///   - parse: this converts a response into an `A`.
 66 |     public init(_ method: Method, url: URL, accept: ContentType? = nil, contentType: ContentType? = nil, body: Data? = nil, headers: [String:String] = [:], expectedStatusCode: @escaping (Int) -> Bool = expected200to300, timeOutInterval: TimeInterval = 10, query: [String:String] = [:], parse: @escaping (Data?, URLResponse?) -> Result<A, Error>) {
    |            `- note: 'init(_:url:accept:contentType:body:headers:expectedStatusCode:timeOutInterval:query:parse:)' declared here
 67 |         var requestUrl : URL
 68 |         if query.isEmpty {
/host/spi-builder-workspace/.build/checkouts/tiny-networking/Sources/TinyNetworking/Endpoint.swift:48:27: error: extraneous argument label 'request:' in call
 46 |     /// Transforms the result
 47 |     public func compactMap<B>(_ transform: @escaping (A) -> Result<B, Error>) -> Endpoint<B> {
 48 |         return Endpoint<B>(request: request, expectedStatusCode: expectedStatusCode, parse: { data, response in
    |                           `- error: extraneous argument label 'request:' in call
 49 |             self.parse(data, response).flatMap(transform)
 50 |         })
/host/spi-builder-workspace/.build/checkouts/tiny-networking/Sources/TinyNetworking/Endpoint.swift:48:44: error: missing argument for parameter 'url' in call
 46 |     /// Transforms the result
 47 |     public func compactMap<B>(_ transform: @escaping (A) -> Result<B, Error>) -> Endpoint<B> {
 48 |         return Endpoint<B>(request: request, expectedStatusCode: expectedStatusCode, parse: { data, response in
    |                                            `- error: missing argument for parameter 'url' in call
 49 |             self.parse(data, response).flatMap(transform)
 50 |         })
    :
 64 |     ///   - query: query parameters to append to the url
 65 |     ///   - parse: this converts a response into an `A`.
 66 |     public init(_ method: Method, url: URL, accept: ContentType? = nil, contentType: ContentType? = nil, body: Data? = nil, headers: [String:String] = [:], expectedStatusCode: @escaping (Int) -> Bool = expected200to300, timeOutInterval: TimeInterval = 10, query: [String:String] = [:], parse: @escaping (Data?, URLResponse?) -> Result<A, Error>) {
    |            `- note: 'init(_:url:accept:contentType:body:headers:expectedStatusCode:timeOutInterval:query:parse:)' declared here
 67 |         var requestUrl : URL
 68 |         if query.isEmpty {
/host/spi-builder-workspace/.build/checkouts/tiny-networking/Sources/TinyNetworking/Endpoint.swift:76:19: error: cannot find 'URLRequest' in scope
 74 |             requestUrl = comps.url!
 75 |         }
 76 |         request = URLRequest(url: requestUrl)
    |                   `- error: cannot find 'URLRequest' in scope
 77 |         if let a = accept {
 78 |             request.setValue(a.rawValue, forHTTPHeaderField: "Accept")
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:059e0fdbe549369b902c0d423739510ddee50a4a70258d1404125eb9394ef31c
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/5] Emitting module TinyNetworking
/host/spi-builder-workspace/.build/checkouts/tiny-networking/Sources/TinyNetworking/Endpoint.swift:31:25: error: cannot find type 'URLRequest' in scope
 29 |
 30 |     /// The request for this endpoint
 31 |     public var request: URLRequest
    |                         `- error: cannot find type 'URLRequest' in scope
 32 |
 33 |     /// This is used to (try to) parse a response into an `A`.
/host/spi-builder-workspace/.build/checkouts/tiny-networking/Sources/TinyNetworking/Endpoint.swift:34:24: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |
 33 |     /// This is used to (try to) parse a response into an `A`.
 34 |     var parse: (Data?, URLResponse?) -> Result<A, Error>
    |                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 35 |
 36 |     /// This is used to check the status code of a response.
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/tiny-networking/Sources/TinyNetworking/Endpoint.swift:66:312: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |     ///   - query: query parameters to append to the url
 65 |     ///   - parse: this converts a response into an `A`.
 66 |     public init(_ method: Method, url: URL, accept: ContentType? = nil, contentType: ContentType? = nil, body: Data? = nil, headers: [String:String] = [:], expectedStatusCode: @escaping (Int) -> Bool = expected200to300, timeOutInterval: TimeInterval = 10, query: [String:String] = [:], parse: @escaping (Data?, URLResponse?) -> Result<A, Error>) {
    |                                                                                                                                                                                                                                                                                                                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 67 |         var requestUrl : URL
 68 |         if query.isEmpty {
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/tiny-networking/Sources/TinyNetworking/Endpoint.swift:103:26: error: cannot find type 'URLRequest' in scope
101 |     ///   - expectedStatusCode: the status code that's expected. If this returns false for a given status code, parsing fails.
102 |     ///   - parse: this converts a response into an `A`.
103 |     public init(request: URLRequest, expectedStatusCode: @escaping (Int) -> Bool = expected200to300, parse: @escaping (Data?, URLResponse?) -> Result<A, Error>) {
    |                          `- error: cannot find type 'URLRequest' in scope
104 |         self.request = request
105 |         self.expectedStatusCode = expectedStatusCode
/host/spi-builder-workspace/.build/checkouts/tiny-networking/Sources/TinyNetworking/Endpoint.swift:103:127: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 |     ///   - expectedStatusCode: the status code that's expected. If this returns false for a given status code, parsing fails.
102 |     ///   - parse: this converts a response into an `A`.
103 |     public init(request: URLRequest, expectedStatusCode: @escaping (Int) -> Bool = expected200to300, parse: @escaping (Data?, URLResponse?) -> Result<A, Error>) {
    |                                                                                                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 |         self.request = request
105 |         self.expectedStatusCode = expectedStatusCode
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/tiny-networking/Sources/TinyNetworking/Endpoint.swift:214:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
212 | public struct WrongStatusCodeError: Error {
213 |     public let statusCode: Int
214 |     public let response: HTTPURLResponse?
    |                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
215 |     public let responseBody: Data?
216 |     public init(statusCode: Int, response: HTTPURLResponse?, responseBody: Data?) {
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/.build/checkouts/tiny-networking/Sources/TinyNetworking/Endpoint.swift:216:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 |     public let response: HTTPURLResponse?
215 |     public let responseBody: Data?
216 |     public init(statusCode: Int, response: HTTPURLResponse?, responseBody: Data?) {
    |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
217 |         self.statusCode = statusCode
218 |         self.response = response
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/.build/checkouts/tiny-networking/Sources/TinyNetworking/Endpoint.swift:223:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
221 | }
222 |
223 | extension URLSession {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
224 |     @discardableResult
225 |     /// Loads an endpoint by creating (and directly resuming) a data task.
[3/5] Compiling TinyNetworking Endpoint.swift
/host/spi-builder-workspace/.build/checkouts/tiny-networking/Sources/TinyNetworking/Endpoint.swift:31:25: error: cannot find type 'URLRequest' in scope
 29 |
 30 |     /// The request for this endpoint
 31 |     public var request: URLRequest
    |                         `- error: cannot find type 'URLRequest' in scope
 32 |
 33 |     /// This is used to (try to) parse a response into an `A`.
/host/spi-builder-workspace/.build/checkouts/tiny-networking/Sources/TinyNetworking/Endpoint.swift:34:24: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |
 33 |     /// This is used to (try to) parse a response into an `A`.
 34 |     var parse: (Data?, URLResponse?) -> Result<A, Error>
    |                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 35 |
 36 |     /// This is used to check the status code of a response.
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/tiny-networking/Sources/TinyNetworking/Endpoint.swift:66:312: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |     ///   - query: query parameters to append to the url
 65 |     ///   - parse: this converts a response into an `A`.
 66 |     public init(_ method: Method, url: URL, accept: ContentType? = nil, contentType: ContentType? = nil, body: Data? = nil, headers: [String:String] = [:], expectedStatusCode: @escaping (Int) -> Bool = expected200to300, timeOutInterval: TimeInterval = 10, query: [String:String] = [:], parse: @escaping (Data?, URLResponse?) -> Result<A, Error>) {
    |                                                                                                                                                                                                                                                                                                                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 67 |         var requestUrl : URL
 68 |         if query.isEmpty {
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/tiny-networking/Sources/TinyNetworking/Endpoint.swift:103:26: error: cannot find type 'URLRequest' in scope
101 |     ///   - expectedStatusCode: the status code that's expected. If this returns false for a given status code, parsing fails.
102 |     ///   - parse: this converts a response into an `A`.
103 |     public init(request: URLRequest, expectedStatusCode: @escaping (Int) -> Bool = expected200to300, parse: @escaping (Data?, URLResponse?) -> Result<A, Error>) {
    |                          `- error: cannot find type 'URLRequest' in scope
104 |         self.request = request
105 |         self.expectedStatusCode = expectedStatusCode
/host/spi-builder-workspace/.build/checkouts/tiny-networking/Sources/TinyNetworking/Endpoint.swift:103:127: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 |     ///   - expectedStatusCode: the status code that's expected. If this returns false for a given status code, parsing fails.
102 |     ///   - parse: this converts a response into an `A`.
103 |     public init(request: URLRequest, expectedStatusCode: @escaping (Int) -> Bool = expected200to300, parse: @escaping (Data?, URLResponse?) -> Result<A, Error>) {
    |                                                                                                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 |         self.request = request
105 |         self.expectedStatusCode = expectedStatusCode
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/tiny-networking/Sources/TinyNetworking/Endpoint.swift:214:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
212 | public struct WrongStatusCodeError: Error {
213 |     public let statusCode: Int
214 |     public let response: HTTPURLResponse?
    |                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
215 |     public let responseBody: Data?
216 |     public init(statusCode: Int, response: HTTPURLResponse?, responseBody: Data?) {
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/.build/checkouts/tiny-networking/Sources/TinyNetworking/Endpoint.swift:216:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 |     public let response: HTTPURLResponse?
215 |     public let responseBody: Data?
216 |     public init(statusCode: Int, response: HTTPURLResponse?, responseBody: Data?) {
    |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
217 |         self.statusCode = statusCode
218 |         self.response = response
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/.build/checkouts/tiny-networking/Sources/TinyNetworking/Endpoint.swift:223:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
221 | }
222 |
223 | extension URLSession {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
224 |     @discardableResult
225 |     /// Loads an endpoint by creating (and directly resuming) a data task.
/host/spi-builder-workspace/.build/checkouts/tiny-networking/Sources/TinyNetworking/Endpoint.swift:41:27: error: extraneous argument label 'request:' in call
 39 |     /// Transforms the result
 40 |     public func map<B>(_ f: @escaping (A) -> B) -> Endpoint<B> {
 41 |         return Endpoint<B>(request: request, expectedStatusCode: expectedStatusCode, parse: { value, response in
    |                           `- error: extraneous argument label 'request:' in call
 42 |             self.parse(value, response).map(f)
 43 |         })
/host/spi-builder-workspace/.build/checkouts/tiny-networking/Sources/TinyNetworking/Endpoint.swift:41:44: error: missing argument for parameter 'url' in call
 39 |     /// Transforms the result
 40 |     public func map<B>(_ f: @escaping (A) -> B) -> Endpoint<B> {
 41 |         return Endpoint<B>(request: request, expectedStatusCode: expectedStatusCode, parse: { value, response in
    |                                            `- error: missing argument for parameter 'url' in call
 42 |             self.parse(value, response).map(f)
 43 |         })
    :
 64 |     ///   - query: query parameters to append to the url
 65 |     ///   - parse: this converts a response into an `A`.
 66 |     public init(_ method: Method, url: URL, accept: ContentType? = nil, contentType: ContentType? = nil, body: Data? = nil, headers: [String:String] = [:], expectedStatusCode: @escaping (Int) -> Bool = expected200to300, timeOutInterval: TimeInterval = 10, query: [String:String] = [:], parse: @escaping (Data?, URLResponse?) -> Result<A, Error>) {
    |            `- note: 'init(_:url:accept:contentType:body:headers:expectedStatusCode:timeOutInterval:query:parse:)' declared here
 67 |         var requestUrl : URL
 68 |         if query.isEmpty {
/host/spi-builder-workspace/.build/checkouts/tiny-networking/Sources/TinyNetworking/Endpoint.swift:48:27: error: extraneous argument label 'request:' in call
 46 |     /// Transforms the result
 47 |     public func compactMap<B>(_ transform: @escaping (A) -> Result<B, Error>) -> Endpoint<B> {
 48 |         return Endpoint<B>(request: request, expectedStatusCode: expectedStatusCode, parse: { data, response in
    |                           `- error: extraneous argument label 'request:' in call
 49 |             self.parse(data, response).flatMap(transform)
 50 |         })
/host/spi-builder-workspace/.build/checkouts/tiny-networking/Sources/TinyNetworking/Endpoint.swift:48:44: error: missing argument for parameter 'url' in call
 46 |     /// Transforms the result
 47 |     public func compactMap<B>(_ transform: @escaping (A) -> Result<B, Error>) -> Endpoint<B> {
 48 |         return Endpoint<B>(request: request, expectedStatusCode: expectedStatusCode, parse: { data, response in
    |                                            `- error: missing argument for parameter 'url' in call
 49 |             self.parse(data, response).flatMap(transform)
 50 |         })
    :
 64 |     ///   - query: query parameters to append to the url
 65 |     ///   - parse: this converts a response into an `A`.
 66 |     public init(_ method: Method, url: URL, accept: ContentType? = nil, contentType: ContentType? = nil, body: Data? = nil, headers: [String:String] = [:], expectedStatusCode: @escaping (Int) -> Bool = expected200to300, timeOutInterval: TimeInterval = 10, query: [String:String] = [:], parse: @escaping (Data?, URLResponse?) -> Result<A, Error>) {
    |            `- note: 'init(_:url:accept:contentType:body:headers:expectedStatusCode:timeOutInterval:query:parse:)' declared here
 67 |         var requestUrl : URL
 68 |         if query.isEmpty {
/host/spi-builder-workspace/.build/checkouts/tiny-networking/Sources/TinyNetworking/Endpoint.swift:76:19: error: cannot find 'URLRequest' in scope
 74 |             requestUrl = comps.url!
 75 |         }
 76 |         request = URLRequest(url: requestUrl)
    |                   `- error: cannot find 'URLRequest' in scope
 77 |         if let a = accept {
 78 |             request.setValue(a.rawValue, forHTTPHeaderField: "Accept")
[4/5] Emitting module ViewHelpers
BUILD FAILURE 6.1 wasm