The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Resourceful, reference 1.1.0 (d97d6d), with Swift 6.1 for Wasm on 28 May 2025 05:31:42 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-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/danielctull/Resourceful.git
Reference: 1.1.0
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/danielctull/Resourceful
 * tag               1.1.0      -> FETCH_HEAD
HEAD is now at d97d6d4 Add a check for the swift version to make sure it supports concurrency
Cloned https://github.com/danielctull/Resourceful.git
Revision (git rev-parse @):
d97d6d4798dd3de1097496b07f92b967ded8b783
SUCCESS checkout https://github.com/danielctull/Resourceful.git at 1.1.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/danielctull/Resourceful.git
https://github.com/danielctull/Resourceful.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Resourceful",
  "name" : "Resourceful",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Resourceful",
      "targets" : [
        "Resourceful"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ResourcefulTests",
      "module_type" : "SwiftTarget",
      "name" : "ResourcefulTests",
      "path" : "Tests/ResourcefulTests",
      "sources" : [
        "AsyncTests.swift",
        "CombineTests.swift",
        "FetchTests.swift",
        "Helper.swift",
        "ResourceTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Resourceful"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Resourceful",
      "module_type" : "SwiftTarget",
      "name" : "Resourceful",
      "path" : "Sources/Resourceful",
      "product_memberships" : [
        "Resourceful"
      ],
      "sources" : [
        "Resource+Async.swift",
        "Resource+Combine.swift",
        "Resource+Fetch.swift",
        "Resource.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/7] Emitting module Resourceful
/host/spi-builder-workspace/Sources/Resourceful/Resource+Async.swift:14:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
12 | @available(tvOS 13.0, *)
13 | @available(watchOS 6.0, *)
14 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
15 |
16 |     /// Asynchronously retrieves the value of the resource.
/host/spi-builder-workspace/Sources/Resourceful/Resource+Fetch.swift:8:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 6 | #endif
 7 |
 8 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 9 |
10 |     /// Fetches a resource using its request and transforms the returned data
/host/spi-builder-workspace/Sources/Resourceful/Resource.swift:12:56: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | public struct Resource<Value> {
11 |
12 |     public typealias Response = (data: Data, response: URLResponse)
   |                                                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 |     /// A request used to fetch the data.
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/Sources/Resourceful/Resource.swift:16:25: error: cannot find type 'URLRequest' in scope
14 |     /// A request used to fetch the data.
15 |     @available(*, deprecated, message: "Use makeRequest() instead.")
16 |     public var request: URLRequest { return try! makeRequest() }
   |                         `- error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Makes the request for the resource.
/host/spi-builder-workspace/Sources/Resourceful/Resource.swift:19:42: error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Makes the request for the resource.
19 |     public let makeRequest: () throws -> URLRequest
   |                                          `- error: cannot find type 'URLRequest' in scope
20 |
21 |     /// Transforms the network response into the desired value.
/host/spi-builder-workspace/Sources/Resourceful/Resource.swift:30:26: error: cannot find type 'URLRequest' in scope
28 |     ///   - request: A request for this resource.
29 |     ///   - transform: Used to transform the response into the desired value.
30 |     public init(request: URLRequest,
   |                          `- error: cannot find type 'URLRequest' in scope
31 |                 transform: @escaping (Response) throws -> Value) {
32 |         self.init(makeRequest: { request }, transform: transform)
/host/spi-builder-workspace/Sources/Resourceful/Resource.swift:45:53: error: cannot find type 'URLRequest' in scope
43 |     ///   - makeRequest: Used to create a request for this resource.
44 |     ///   - transform: Used to transform the response into the desired value.
45 |     public init(makeRequest: @escaping () throws -> URLRequest,
   |                                                     `- error: cannot find type 'URLRequest' in scope
46 |                 transform: @escaping (Response) throws -> Value) {
47 |         self.makeRequest = makeRequest
/host/spi-builder-workspace/Sources/Resourceful/Resource.swift:45:30: error: @escaping attribute only applies to function types
43 |     ///   - makeRequest: Used to create a request for this resource.
44 |     ///   - transform: Used to transform the response into the desired value.
45 |     public init(makeRequest: @escaping () throws -> URLRequest,
   |                              `- error: @escaping attribute only applies to function types
46 |                 transform: @escaping (Response) throws -> Value) {
47 |         self.makeRequest = makeRequest
/host/spi-builder-workspace/Sources/Resourceful/Resource.swift:70:30: error: cannot find type 'URLRequest' in scope
68 |
69 |     public func mapRequest(
70 |         _ modify: @escaping (URLRequest) throws -> URLRequest
   |                              `- error: cannot find type 'URLRequest' in scope
71 |     ) -> Resource {
72 |         return Resource(
/host/spi-builder-workspace/Sources/Resourceful/Resource.swift:70:52: error: cannot find type 'URLRequest' in scope
68 |
69 |     public func mapRequest(
70 |         _ modify: @escaping (URLRequest) throws -> URLRequest
   |                                                    `- error: cannot find type 'URLRequest' in scope
71 |     ) -> Resource {
72 |         return Resource(
/host/spi-builder-workspace/Sources/Resourceful/Resource.swift:70:19: error: @escaping attribute only applies to function types
68 |
69 |     public func mapRequest(
70 |         _ modify: @escaping (URLRequest) throws -> URLRequest
   |                   `- error: @escaping attribute only applies to function types
71 |     ) -> Resource {
72 |         return Resource(
/host/spi-builder-workspace/Sources/Resourceful/Resource.swift:78:36: error: cannot find type 'URLRequest' in scope
76 |
77 |     public func modifyRequest(
78 |         _ modify: @escaping (inout URLRequest) throws -> ()
   |                                    `- error: cannot find type 'URLRequest' in scope
79 |     ) -> Resource {
80 |         return mapRequest { request in
[4/7] Compiling Resourceful Resource+Combine.swift
[5/7] Compiling Resourceful Resource.swift
/host/spi-builder-workspace/Sources/Resourceful/Resource.swift:12:56: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | public struct Resource<Value> {
11 |
12 |     public typealias Response = (data: Data, response: URLResponse)
   |                                                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 |     /// A request used to fetch the data.
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/Sources/Resourceful/Resource.swift:16:25: error: cannot find type 'URLRequest' in scope
14 |     /// A request used to fetch the data.
15 |     @available(*, deprecated, message: "Use makeRequest() instead.")
16 |     public var request: URLRequest { return try! makeRequest() }
   |                         `- error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Makes the request for the resource.
/host/spi-builder-workspace/Sources/Resourceful/Resource.swift:19:42: error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Makes the request for the resource.
19 |     public let makeRequest: () throws -> URLRequest
   |                                          `- error: cannot find type 'URLRequest' in scope
20 |
21 |     /// Transforms the network response into the desired value.
/host/spi-builder-workspace/Sources/Resourceful/Resource.swift:30:26: error: cannot find type 'URLRequest' in scope
28 |     ///   - request: A request for this resource.
29 |     ///   - transform: Used to transform the response into the desired value.
30 |     public init(request: URLRequest,
   |                          `- error: cannot find type 'URLRequest' in scope
31 |                 transform: @escaping (Response) throws -> Value) {
32 |         self.init(makeRequest: { request }, transform: transform)
/host/spi-builder-workspace/Sources/Resourceful/Resource.swift:45:53: error: cannot find type 'URLRequest' in scope
43 |     ///   - makeRequest: Used to create a request for this resource.
44 |     ///   - transform: Used to transform the response into the desired value.
45 |     public init(makeRequest: @escaping () throws -> URLRequest,
   |                                                     `- error: cannot find type 'URLRequest' in scope
46 |                 transform: @escaping (Response) throws -> Value) {
47 |         self.makeRequest = makeRequest
/host/spi-builder-workspace/Sources/Resourceful/Resource.swift:45:30: error: @escaping attribute only applies to function types
43 |     ///   - makeRequest: Used to create a request for this resource.
44 |     ///   - transform: Used to transform the response into the desired value.
45 |     public init(makeRequest: @escaping () throws -> URLRequest,
   |                              `- error: @escaping attribute only applies to function types
46 |                 transform: @escaping (Response) throws -> Value) {
47 |         self.makeRequest = makeRequest
/host/spi-builder-workspace/Sources/Resourceful/Resource.swift:70:30: error: cannot find type 'URLRequest' in scope
68 |
69 |     public func mapRequest(
70 |         _ modify: @escaping (URLRequest) throws -> URLRequest
   |                              `- error: cannot find type 'URLRequest' in scope
71 |     ) -> Resource {
72 |         return Resource(
/host/spi-builder-workspace/Sources/Resourceful/Resource.swift:70:52: error: cannot find type 'URLRequest' in scope
68 |
69 |     public func mapRequest(
70 |         _ modify: @escaping (URLRequest) throws -> URLRequest
   |                                                    `- error: cannot find type 'URLRequest' in scope
71 |     ) -> Resource {
72 |         return Resource(
/host/spi-builder-workspace/Sources/Resourceful/Resource.swift:70:19: error: @escaping attribute only applies to function types
68 |
69 |     public func mapRequest(
70 |         _ modify: @escaping (URLRequest) throws -> URLRequest
   |                   `- error: @escaping attribute only applies to function types
71 |     ) -> Resource {
72 |         return Resource(
/host/spi-builder-workspace/Sources/Resourceful/Resource.swift:78:36: error: cannot find type 'URLRequest' in scope
76 |
77 |     public func modifyRequest(
78 |         _ modify: @escaping (inout URLRequest) throws -> ()
   |                                    `- error: cannot find type 'URLRequest' in scope
79 |     ) -> Resource {
80 |         return mapRequest { request in
[6/7] Compiling Resourceful Resource+Fetch.swift
/host/spi-builder-workspace/Sources/Resourceful/Resource+Fetch.swift:8:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 6 | #endif
 7 |
 8 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 9 |
10 |     /// Fetches a resource using its request and transforms the returned data
/host/spi-builder-workspace/Sources/Resourceful/Resource+Fetch.swift:21:30: error: cannot find type 'DispatchQueue' in scope
19 |     public func fetch<Value>(
20 |         _ resource: Resource<Value>,
21 |         callbackQueue queue: DispatchQueue = .main,
   |                              `- error: cannot find type 'DispatchQueue' in scope
22 |         completion: @escaping (Result<Value, Error>) -> Void
23 |     ) -> URLSessionDataTask {
/host/spi-builder-workspace/Sources/Resourceful/Resource+Fetch.swift:42:18: error: cannot find type 'URLRequest' in scope
40 |
41 |     private func perform(
42 |         request: URLRequest,
   |                  `- error: cannot find type 'URLRequest' in scope
43 |         completion: @escaping (Result<(Data, URLResponse), URLError>) -> Void
44 |     ) -> URLSessionDataTask {
[7/7] Compiling Resourceful Resource+Async.swift
/host/spi-builder-workspace/Sources/Resourceful/Resource+Async.swift:14:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
12 | @available(tvOS 13.0, *)
13 | @available(watchOS 6.0, *)
14 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
15 |
16 |     /// Asynchronously retrieves the value of the resource.
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
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
[2/6] Compiling Resourceful Resource+Fetch.swift
/host/spi-builder-workspace/Sources/Resourceful/Resource+Fetch.swift:8:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 6 | #endif
 7 |
 8 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 9 |
10 |     /// Fetches a resource using its request and transforms the returned data
/host/spi-builder-workspace/Sources/Resourceful/Resource+Fetch.swift:21:30: error: cannot find type 'DispatchQueue' in scope
19 |     public func fetch<Value>(
20 |         _ resource: Resource<Value>,
21 |         callbackQueue queue: DispatchQueue = .main,
   |                              `- error: cannot find type 'DispatchQueue' in scope
22 |         completion: @escaping (Result<Value, Error>) -> Void
23 |     ) -> URLSessionDataTask {
/host/spi-builder-workspace/Sources/Resourceful/Resource+Fetch.swift:42:18: error: cannot find type 'URLRequest' in scope
40 |
41 |     private func perform(
42 |         request: URLRequest,
   |                  `- error: cannot find type 'URLRequest' in scope
43 |         completion: @escaping (Result<(Data, URLResponse), URLError>) -> Void
44 |     ) -> URLSessionDataTask {
[3/6] Compiling Resourceful Resource+Combine.swift
[4/6] Compiling Resourceful Resource+Async.swift
/host/spi-builder-workspace/Sources/Resourceful/Resource+Async.swift:14:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
12 | @available(tvOS 13.0, *)
13 | @available(watchOS 6.0, *)
14 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
15 |
16 |     /// Asynchronously retrieves the value of the resource.
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/6] Emitting module Resourceful
/host/spi-builder-workspace/Sources/Resourceful/Resource+Async.swift:14:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
12 | @available(tvOS 13.0, *)
13 | @available(watchOS 6.0, *)
14 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
15 |
16 |     /// Asynchronously retrieves the value of the resource.
/host/spi-builder-workspace/Sources/Resourceful/Resource+Fetch.swift:8:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 6 | #endif
 7 |
 8 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 9 |
10 |     /// Fetches a resource using its request and transforms the returned data
/host/spi-builder-workspace/Sources/Resourceful/Resource.swift:12:56: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | public struct Resource<Value> {
11 |
12 |     public typealias Response = (data: Data, response: URLResponse)
   |                                                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 |     /// A request used to fetch the data.
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/Sources/Resourceful/Resource.swift:16:25: error: cannot find type 'URLRequest' in scope
14 |     /// A request used to fetch the data.
15 |     @available(*, deprecated, message: "Use makeRequest() instead.")
16 |     public var request: URLRequest { return try! makeRequest() }
   |                         `- error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Makes the request for the resource.
/host/spi-builder-workspace/Sources/Resourceful/Resource.swift:19:42: error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Makes the request for the resource.
19 |     public let makeRequest: () throws -> URLRequest
   |                                          `- error: cannot find type 'URLRequest' in scope
20 |
21 |     /// Transforms the network response into the desired value.
/host/spi-builder-workspace/Sources/Resourceful/Resource.swift:30:26: error: cannot find type 'URLRequest' in scope
28 |     ///   - request: A request for this resource.
29 |     ///   - transform: Used to transform the response into the desired value.
30 |     public init(request: URLRequest,
   |                          `- error: cannot find type 'URLRequest' in scope
31 |                 transform: @escaping (Response) throws -> Value) {
32 |         self.init(makeRequest: { request }, transform: transform)
/host/spi-builder-workspace/Sources/Resourceful/Resource.swift:45:53: error: cannot find type 'URLRequest' in scope
43 |     ///   - makeRequest: Used to create a request for this resource.
44 |     ///   - transform: Used to transform the response into the desired value.
45 |     public init(makeRequest: @escaping () throws -> URLRequest,
   |                                                     `- error: cannot find type 'URLRequest' in scope
46 |                 transform: @escaping (Response) throws -> Value) {
47 |         self.makeRequest = makeRequest
/host/spi-builder-workspace/Sources/Resourceful/Resource.swift:45:30: error: @escaping attribute only applies to function types
43 |     ///   - makeRequest: Used to create a request for this resource.
44 |     ///   - transform: Used to transform the response into the desired value.
45 |     public init(makeRequest: @escaping () throws -> URLRequest,
   |                              `- error: @escaping attribute only applies to function types
46 |                 transform: @escaping (Response) throws -> Value) {
47 |         self.makeRequest = makeRequest
/host/spi-builder-workspace/Sources/Resourceful/Resource.swift:70:30: error: cannot find type 'URLRequest' in scope
68 |
69 |     public func mapRequest(
70 |         _ modify: @escaping (URLRequest) throws -> URLRequest
   |                              `- error: cannot find type 'URLRequest' in scope
71 |     ) -> Resource {
72 |         return Resource(
/host/spi-builder-workspace/Sources/Resourceful/Resource.swift:70:52: error: cannot find type 'URLRequest' in scope
68 |
69 |     public func mapRequest(
70 |         _ modify: @escaping (URLRequest) throws -> URLRequest
   |                                                    `- error: cannot find type 'URLRequest' in scope
71 |     ) -> Resource {
72 |         return Resource(
/host/spi-builder-workspace/Sources/Resourceful/Resource.swift:70:19: error: @escaping attribute only applies to function types
68 |
69 |     public func mapRequest(
70 |         _ modify: @escaping (URLRequest) throws -> URLRequest
   |                   `- error: @escaping attribute only applies to function types
71 |     ) -> Resource {
72 |         return Resource(
/host/spi-builder-workspace/Sources/Resourceful/Resource.swift:78:36: error: cannot find type 'URLRequest' in scope
76 |
77 |     public func modifyRequest(
78 |         _ modify: @escaping (inout URLRequest) throws -> ()
   |                                    `- error: cannot find type 'URLRequest' in scope
79 |     ) -> Resource {
80 |         return mapRequest { request in
[6/6] Compiling Resourceful Resource.swift
/host/spi-builder-workspace/Sources/Resourceful/Resource.swift:12:56: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | public struct Resource<Value> {
11 |
12 |     public typealias Response = (data: Data, response: URLResponse)
   |                                                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 |     /// A request used to fetch the data.
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/Sources/Resourceful/Resource.swift:16:25: error: cannot find type 'URLRequest' in scope
14 |     /// A request used to fetch the data.
15 |     @available(*, deprecated, message: "Use makeRequest() instead.")
16 |     public var request: URLRequest { return try! makeRequest() }
   |                         `- error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Makes the request for the resource.
/host/spi-builder-workspace/Sources/Resourceful/Resource.swift:19:42: error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Makes the request for the resource.
19 |     public let makeRequest: () throws -> URLRequest
   |                                          `- error: cannot find type 'URLRequest' in scope
20 |
21 |     /// Transforms the network response into the desired value.
/host/spi-builder-workspace/Sources/Resourceful/Resource.swift:30:26: error: cannot find type 'URLRequest' in scope
28 |     ///   - request: A request for this resource.
29 |     ///   - transform: Used to transform the response into the desired value.
30 |     public init(request: URLRequest,
   |                          `- error: cannot find type 'URLRequest' in scope
31 |                 transform: @escaping (Response) throws -> Value) {
32 |         self.init(makeRequest: { request }, transform: transform)
/host/spi-builder-workspace/Sources/Resourceful/Resource.swift:45:53: error: cannot find type 'URLRequest' in scope
43 |     ///   - makeRequest: Used to create a request for this resource.
44 |     ///   - transform: Used to transform the response into the desired value.
45 |     public init(makeRequest: @escaping () throws -> URLRequest,
   |                                                     `- error: cannot find type 'URLRequest' in scope
46 |                 transform: @escaping (Response) throws -> Value) {
47 |         self.makeRequest = makeRequest
/host/spi-builder-workspace/Sources/Resourceful/Resource.swift:45:30: error: @escaping attribute only applies to function types
43 |     ///   - makeRequest: Used to create a request for this resource.
44 |     ///   - transform: Used to transform the response into the desired value.
45 |     public init(makeRequest: @escaping () throws -> URLRequest,
   |                              `- error: @escaping attribute only applies to function types
46 |                 transform: @escaping (Response) throws -> Value) {
47 |         self.makeRequest = makeRequest
/host/spi-builder-workspace/Sources/Resourceful/Resource.swift:70:30: error: cannot find type 'URLRequest' in scope
68 |
69 |     public func mapRequest(
70 |         _ modify: @escaping (URLRequest) throws -> URLRequest
   |                              `- error: cannot find type 'URLRequest' in scope
71 |     ) -> Resource {
72 |         return Resource(
/host/spi-builder-workspace/Sources/Resourceful/Resource.swift:70:52: error: cannot find type 'URLRequest' in scope
68 |
69 |     public func mapRequest(
70 |         _ modify: @escaping (URLRequest) throws -> URLRequest
   |                                                    `- error: cannot find type 'URLRequest' in scope
71 |     ) -> Resource {
72 |         return Resource(
/host/spi-builder-workspace/Sources/Resourceful/Resource.swift:70:19: error: @escaping attribute only applies to function types
68 |
69 |     public func mapRequest(
70 |         _ modify: @escaping (URLRequest) throws -> URLRequest
   |                   `- error: @escaping attribute only applies to function types
71 |     ) -> Resource {
72 |         return Resource(
/host/spi-builder-workspace/Sources/Resourceful/Resource.swift:78:36: error: cannot find type 'URLRequest' in scope
76 |
77 |     public func modifyRequest(
78 |         _ modify: @escaping (inout URLRequest) throws -> ()
   |                                    `- error: cannot find type 'URLRequest' in scope
79 |     ) -> Resource {
80 |         return mapRequest { request in
BUILD FAILURE 6.1 wasm