The Swift Package Index logo.Swift Package Index

Build Information

Failed to build JolpicaKit, reference main (7140a8), with Swift 6.1 for Wasm on 30 May 2025 11:57:36 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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/fantasia-y/JolpicaKit.git
Reference: main
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/fantasia-y/JolpicaKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 7140a84 Update README.md
Cloned https://github.com/fantasia-y/JolpicaKit.git
Revision (git rev-parse @):
7140a844957b919ada5c6211a7262694da55e4d3
SUCCESS checkout https://github.com/fantasia-y/JolpicaKit.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/fantasia-y/JolpicaKit.git
https://github.com/fantasia-y/JolpicaKit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log.git"
    }
  ],
  "manifest_display_name" : "JolpicaKit",
  "name" : "JolpicaKit",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "JolpicaKit",
      "targets" : [
        "JolpicaKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "JolpicaKit",
      "module_type" : "SwiftTarget",
      "name" : "JolpicaKit",
      "path" : "Sources/JolpicaKit",
      "product_dependencies" : [
        "Logging"
      ],
      "product_memberships" : [
        "JolpicaKit"
      ],
      "sources" : [
        "Endpoints/CircuitsEndpoint.swift",
        "Endpoints/ConstructorsEndpoint.swift",
        "Endpoints/DriversEndpoint.swift",
        "Endpoints/Endpoint.swift",
        "Endpoints/LapsEndpoint.swift",
        "Endpoints/PitstopsEndpoint.swift",
        "Endpoints/QualifyingEndpoint.swift",
        "Endpoints/RacesEndpoint.swift",
        "Endpoints/ResultsEndpoint.swift",
        "Endpoints/SeasonsEndpoint.swift",
        "Endpoints/SprintsEndpoint.swift",
        "Endpoints/StandingsEndpoint.swift",
        "Endpoints/StatusEndpoint.swift",
        "Extensions.swift",
        "JolpicaKit.swift",
        "Logger.swift",
        "Models/Circuits.swift",
        "Models/Constructors.swift",
        "Models/Drivers.swift",
        "Models/Laps.swift",
        "Models/Pitstops.swift",
        "Models/Qualifying.swift",
        "Models/Races.swift",
        "Models/Results.swift",
        "Models/Seasons.swift",
        "Models/Sprints.swift",
        "Models/Standings.swift",
        "Models/Statics.swift",
        "Models/Status.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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 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
Fetching https://github.com/apple/swift-log.git
[1/3836] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.86s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (1.47s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.3
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/8] Emitting module Logging
[5/8] Compiling Logging Logging.swift
[6/8] Compiling Logging LogHandler.swift
[7/8] Compiling Logging Locks.swift
[8/8] Compiling Logging MetadataProvider.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/36] Emitting module JolpicaKit
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:74:130: error: cannot find type 'URLRequest' in scope
 72 |     }
 73 |
 74 |     private func formRequest(season: String?, round: String?, endpoint: String, filters: [String], offset: Int?, limit: Int?) -> URLRequest {
    |                                                                                                                                  `- error: cannot find type 'URLRequest' in scope
 75 |         var baseURL = self.config.baseURL
 76 |
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:115:49: error: cannot find type 'URLRequest' in scope
113 |     }
114 |
115 |     private func request<T: Decodable>(request: URLRequest, decode: T.Type) async -> Result<T> {
    |                                                 `- error: cannot find type 'URLRequest' in scope
116 |         log("\(request.httpMethod!) \(request.url?.absoluteString ?? "")")
117 |
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:162:42: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
160 |     }
161 |
162 |     private func parseError<T>(response: HTTPURLResponse) -> Result<T> {
    |                                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
163 |         // TODO implement error parsing
164 |         // 429 rate limit
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/JolpicaKit/Extensions.swift:13:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
11 | #endif
12 |
13 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
14 |     func isSuccessful() -> Bool {
15 |         return statusCode >= 200 && statusCode <= 299
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |     let baseURL = "https://api.jolpi.ca/ergast/f1"
15 |     let enableLogging: Bool
16 |     let cachePolicy: URLRequest.CachePolicy
   |                      `- error: cannot find type 'URLRequest' in scope
17 |
18 |     init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:18:52: error: cannot find type 'URLRequest' in scope
16 |     let cachePolicy: URLRequest.CachePolicy
17 |
18 |     init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
   |                                                    `- error: cannot find type 'URLRequest' in scope
19 |         self.enableLogging = enableLogging
20 |         self.cachePolicy = cachePolicy
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:39:71: error: cannot find type 'URLRequest' in scope
37 |     public let sprints: SprintsEndpoint
38 |
39 |     public convenience init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
   |                                                                       `- error: cannot find type 'URLRequest' in scope
40 |         self.init(config: JolpicaConfig(
41 |             enableLogging: enableLogging,
[11/39] Compiling JolpicaKit LapsEndpoint.swift
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |     let baseURL = "https://api.jolpi.ca/ergast/f1"
15 |     let enableLogging: Bool
16 |     let cachePolicy: URLRequest.CachePolicy
   |                      `- error: cannot find type 'URLRequest' in scope
17 |
18 |     init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:74:130: error: cannot find type 'URLRequest' in scope
 72 |     }
 73 |
 74 |     private func formRequest(season: String?, round: String?, endpoint: String, filters: [String], offset: Int?, limit: Int?) -> URLRequest {
    |                                                                                                                                  `- error: cannot find type 'URLRequest' in scope
 75 |         var baseURL = self.config.baseURL
 76 |
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:115:49: error: cannot find type 'URLRequest' in scope
113 |     }
114 |
115 |     private func request<T: Decodable>(request: URLRequest, decode: T.Type) async -> Result<T> {
    |                                                 `- error: cannot find type 'URLRequest' in scope
116 |         log("\(request.httpMethod!) \(request.url?.absoluteString ?? "")")
117 |
[12/39] Compiling JolpicaKit PitstopsEndpoint.swift
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |     let baseURL = "https://api.jolpi.ca/ergast/f1"
15 |     let enableLogging: Bool
16 |     let cachePolicy: URLRequest.CachePolicy
   |                      `- error: cannot find type 'URLRequest' in scope
17 |
18 |     init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:74:130: error: cannot find type 'URLRequest' in scope
 72 |     }
 73 |
 74 |     private func formRequest(season: String?, round: String?, endpoint: String, filters: [String], offset: Int?, limit: Int?) -> URLRequest {
    |                                                                                                                                  `- error: cannot find type 'URLRequest' in scope
 75 |         var baseURL = self.config.baseURL
 76 |
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:115:49: error: cannot find type 'URLRequest' in scope
113 |     }
114 |
115 |     private func request<T: Decodable>(request: URLRequest, decode: T.Type) async -> Result<T> {
    |                                                 `- error: cannot find type 'URLRequest' in scope
116 |         log("\(request.httpMethod!) \(request.url?.absoluteString ?? "")")
117 |
[13/39] Compiling JolpicaKit QualifyingEndpoint.swift
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |     let baseURL = "https://api.jolpi.ca/ergast/f1"
15 |     let enableLogging: Bool
16 |     let cachePolicy: URLRequest.CachePolicy
   |                      `- error: cannot find type 'URLRequest' in scope
17 |
18 |     init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:74:130: error: cannot find type 'URLRequest' in scope
 72 |     }
 73 |
 74 |     private func formRequest(season: String?, round: String?, endpoint: String, filters: [String], offset: Int?, limit: Int?) -> URLRequest {
    |                                                                                                                                  `- error: cannot find type 'URLRequest' in scope
 75 |         var baseURL = self.config.baseURL
 76 |
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:115:49: error: cannot find type 'URLRequest' in scope
113 |     }
114 |
115 |     private func request<T: Decodable>(request: URLRequest, decode: T.Type) async -> Result<T> {
    |                                                 `- error: cannot find type 'URLRequest' in scope
116 |         log("\(request.httpMethod!) \(request.url?.absoluteString ?? "")")
117 |
[14/39] Compiling JolpicaKit RacesEndpoint.swift
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |     let baseURL = "https://api.jolpi.ca/ergast/f1"
15 |     let enableLogging: Bool
16 |     let cachePolicy: URLRequest.CachePolicy
   |                      `- error: cannot find type 'URLRequest' in scope
17 |
18 |     init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:74:130: error: cannot find type 'URLRequest' in scope
 72 |     }
 73 |
 74 |     private func formRequest(season: String?, round: String?, endpoint: String, filters: [String], offset: Int?, limit: Int?) -> URLRequest {
    |                                                                                                                                  `- error: cannot find type 'URLRequest' in scope
 75 |         var baseURL = self.config.baseURL
 76 |
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:115:49: error: cannot find type 'URLRequest' in scope
113 |     }
114 |
115 |     private func request<T: Decodable>(request: URLRequest, decode: T.Type) async -> Result<T> {
    |                                                 `- error: cannot find type 'URLRequest' in scope
116 |         log("\(request.httpMethod!) \(request.url?.absoluteString ?? "")")
117 |
[15/39] Compiling JolpicaKit Circuits.swift
[16/39] Compiling JolpicaKit Constructors.swift
[17/39] Compiling JolpicaKit Drivers.swift
[18/39] Compiling JolpicaKit Laps.swift
[19/39] Compiling JolpicaKit CircuitsEndpoint.swift
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:74:130: error: cannot find type 'URLRequest' in scope
 72 |     }
 73 |
 74 |     private func formRequest(season: String?, round: String?, endpoint: String, filters: [String], offset: Int?, limit: Int?) -> URLRequest {
    |                                                                                                                                  `- error: cannot find type 'URLRequest' in scope
 75 |         var baseURL = self.config.baseURL
 76 |
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:115:49: error: cannot find type 'URLRequest' in scope
113 |     }
114 |
115 |     private func request<T: Decodable>(request: URLRequest, decode: T.Type) async -> Result<T> {
    |                                                 `- error: cannot find type 'URLRequest' in scope
116 |         log("\(request.httpMethod!) \(request.url?.absoluteString ?? "")")
117 |
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:162:42: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
160 |     }
161 |
162 |     private func parseError<T>(response: HTTPURLResponse) -> Result<T> {
    |                                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
163 |         // TODO implement error parsing
164 |         // 429 rate limit
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/JolpicaKit/Endpoints/Endpoint.swift:105:23: error: cannot find 'URLRequest' in scope
103 |
104 |         let url = components.url!
105 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
106 |
107 |         request.cachePolicy = config.cachePolicy
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |     let baseURL = "https://api.jolpi.ca/ergast/f1"
15 |     let enableLogging: Bool
16 |     let cachePolicy: URLRequest.CachePolicy
   |                      `- error: cannot find type 'URLRequest' in scope
17 |
18 |     init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:119:57: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
117 |
118 |         do {
119 |             let (data, response) = try await URLSession.shared.data(for: request)
    |                                                         `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
120 |
121 |             guard let httpResponse = response as? HTTPURLResponse else {
[20/39] Compiling JolpicaKit ConstructorsEndpoint.swift
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:74:130: error: cannot find type 'URLRequest' in scope
 72 |     }
 73 |
 74 |     private func formRequest(season: String?, round: String?, endpoint: String, filters: [String], offset: Int?, limit: Int?) -> URLRequest {
    |                                                                                                                                  `- error: cannot find type 'URLRequest' in scope
 75 |         var baseURL = self.config.baseURL
 76 |
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:115:49: error: cannot find type 'URLRequest' in scope
113 |     }
114 |
115 |     private func request<T: Decodable>(request: URLRequest, decode: T.Type) async -> Result<T> {
    |                                                 `- error: cannot find type 'URLRequest' in scope
116 |         log("\(request.httpMethod!) \(request.url?.absoluteString ?? "")")
117 |
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:162:42: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
160 |     }
161 |
162 |     private func parseError<T>(response: HTTPURLResponse) -> Result<T> {
    |                                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
163 |         // TODO implement error parsing
164 |         // 429 rate limit
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/JolpicaKit/Endpoints/Endpoint.swift:105:23: error: cannot find 'URLRequest' in scope
103 |
104 |         let url = components.url!
105 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
106 |
107 |         request.cachePolicy = config.cachePolicy
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |     let baseURL = "https://api.jolpi.ca/ergast/f1"
15 |     let enableLogging: Bool
16 |     let cachePolicy: URLRequest.CachePolicy
   |                      `- error: cannot find type 'URLRequest' in scope
17 |
18 |     init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:119:57: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
117 |
118 |         do {
119 |             let (data, response) = try await URLSession.shared.data(for: request)
    |                                                         `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
120 |
121 |             guard let httpResponse = response as? HTTPURLResponse else {
[21/39] Compiling JolpicaKit DriversEndpoint.swift
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:74:130: error: cannot find type 'URLRequest' in scope
 72 |     }
 73 |
 74 |     private func formRequest(season: String?, round: String?, endpoint: String, filters: [String], offset: Int?, limit: Int?) -> URLRequest {
    |                                                                                                                                  `- error: cannot find type 'URLRequest' in scope
 75 |         var baseURL = self.config.baseURL
 76 |
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:115:49: error: cannot find type 'URLRequest' in scope
113 |     }
114 |
115 |     private func request<T: Decodable>(request: URLRequest, decode: T.Type) async -> Result<T> {
    |                                                 `- error: cannot find type 'URLRequest' in scope
116 |         log("\(request.httpMethod!) \(request.url?.absoluteString ?? "")")
117 |
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:162:42: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
160 |     }
161 |
162 |     private func parseError<T>(response: HTTPURLResponse) -> Result<T> {
    |                                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
163 |         // TODO implement error parsing
164 |         // 429 rate limit
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/JolpicaKit/Endpoints/Endpoint.swift:105:23: error: cannot find 'URLRequest' in scope
103 |
104 |         let url = components.url!
105 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
106 |
107 |         request.cachePolicy = config.cachePolicy
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |     let baseURL = "https://api.jolpi.ca/ergast/f1"
15 |     let enableLogging: Bool
16 |     let cachePolicy: URLRequest.CachePolicy
   |                      `- error: cannot find type 'URLRequest' in scope
17 |
18 |     init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:119:57: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
117 |
118 |         do {
119 |             let (data, response) = try await URLSession.shared.data(for: request)
    |                                                         `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
120 |
121 |             guard let httpResponse = response as? HTTPURLResponse else {
[22/39] Compiling JolpicaKit Endpoint.swift
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:74:130: error: cannot find type 'URLRequest' in scope
 72 |     }
 73 |
 74 |     private func formRequest(season: String?, round: String?, endpoint: String, filters: [String], offset: Int?, limit: Int?) -> URLRequest {
    |                                                                                                                                  `- error: cannot find type 'URLRequest' in scope
 75 |         var baseURL = self.config.baseURL
 76 |
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:115:49: error: cannot find type 'URLRequest' in scope
113 |     }
114 |
115 |     private func request<T: Decodable>(request: URLRequest, decode: T.Type) async -> Result<T> {
    |                                                 `- error: cannot find type 'URLRequest' in scope
116 |         log("\(request.httpMethod!) \(request.url?.absoluteString ?? "")")
117 |
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:162:42: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
160 |     }
161 |
162 |     private func parseError<T>(response: HTTPURLResponse) -> Result<T> {
    |                                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
163 |         // TODO implement error parsing
164 |         // 429 rate limit
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/JolpicaKit/Endpoints/Endpoint.swift:105:23: error: cannot find 'URLRequest' in scope
103 |
104 |         let url = components.url!
105 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
106 |
107 |         request.cachePolicy = config.cachePolicy
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |     let baseURL = "https://api.jolpi.ca/ergast/f1"
15 |     let enableLogging: Bool
16 |     let cachePolicy: URLRequest.CachePolicy
   |                      `- error: cannot find type 'URLRequest' in scope
17 |
18 |     init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:119:57: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
117 |
118 |         do {
119 |             let (data, response) = try await URLSession.shared.data(for: request)
    |                                                         `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
120 |
121 |             guard let httpResponse = response as? HTTPURLResponse else {
[23/39] Compiling JolpicaKit ResultsEndpoint.swift
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |     let baseURL = "https://api.jolpi.ca/ergast/f1"
15 |     let enableLogging: Bool
16 |     let cachePolicy: URLRequest.CachePolicy
   |                      `- error: cannot find type 'URLRequest' in scope
17 |
18 |     init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:74:130: error: cannot find type 'URLRequest' in scope
 72 |     }
 73 |
 74 |     private func formRequest(season: String?, round: String?, endpoint: String, filters: [String], offset: Int?, limit: Int?) -> URLRequest {
    |                                                                                                                                  `- error: cannot find type 'URLRequest' in scope
 75 |         var baseURL = self.config.baseURL
 76 |
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:115:49: error: cannot find type 'URLRequest' in scope
113 |     }
114 |
115 |     private func request<T: Decodable>(request: URLRequest, decode: T.Type) async -> Result<T> {
    |                                                 `- error: cannot find type 'URLRequest' in scope
116 |         log("\(request.httpMethod!) \(request.url?.absoluteString ?? "")")
117 |
[24/39] Compiling JolpicaKit SeasonsEndpoint.swift
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |     let baseURL = "https://api.jolpi.ca/ergast/f1"
15 |     let enableLogging: Bool
16 |     let cachePolicy: URLRequest.CachePolicy
   |                      `- error: cannot find type 'URLRequest' in scope
17 |
18 |     init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:74:130: error: cannot find type 'URLRequest' in scope
 72 |     }
 73 |
 74 |     private func formRequest(season: String?, round: String?, endpoint: String, filters: [String], offset: Int?, limit: Int?) -> URLRequest {
    |                                                                                                                                  `- error: cannot find type 'URLRequest' in scope
 75 |         var baseURL = self.config.baseURL
 76 |
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:115:49: error: cannot find type 'URLRequest' in scope
113 |     }
114 |
115 |     private func request<T: Decodable>(request: URLRequest, decode: T.Type) async -> Result<T> {
    |                                                 `- error: cannot find type 'URLRequest' in scope
116 |         log("\(request.httpMethod!) \(request.url?.absoluteString ?? "")")
117 |
[25/39] Compiling JolpicaKit SprintsEndpoint.swift
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |     let baseURL = "https://api.jolpi.ca/ergast/f1"
15 |     let enableLogging: Bool
16 |     let cachePolicy: URLRequest.CachePolicy
   |                      `- error: cannot find type 'URLRequest' in scope
17 |
18 |     init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:74:130: error: cannot find type 'URLRequest' in scope
 72 |     }
 73 |
 74 |     private func formRequest(season: String?, round: String?, endpoint: String, filters: [String], offset: Int?, limit: Int?) -> URLRequest {
    |                                                                                                                                  `- error: cannot find type 'URLRequest' in scope
 75 |         var baseURL = self.config.baseURL
 76 |
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:115:49: error: cannot find type 'URLRequest' in scope
113 |     }
114 |
115 |     private func request<T: Decodable>(request: URLRequest, decode: T.Type) async -> Result<T> {
    |                                                 `- error: cannot find type 'URLRequest' in scope
116 |         log("\(request.httpMethod!) \(request.url?.absoluteString ?? "")")
117 |
[26/39] Compiling JolpicaKit StandingsEndpoint.swift
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |     let baseURL = "https://api.jolpi.ca/ergast/f1"
15 |     let enableLogging: Bool
16 |     let cachePolicy: URLRequest.CachePolicy
   |                      `- error: cannot find type 'URLRequest' in scope
17 |
18 |     init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:74:130: error: cannot find type 'URLRequest' in scope
 72 |     }
 73 |
 74 |     private func formRequest(season: String?, round: String?, endpoint: String, filters: [String], offset: Int?, limit: Int?) -> URLRequest {
    |                                                                                                                                  `- error: cannot find type 'URLRequest' in scope
 75 |         var baseURL = self.config.baseURL
 76 |
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:115:49: error: cannot find type 'URLRequest' in scope
113 |     }
114 |
115 |     private func request<T: Decodable>(request: URLRequest, decode: T.Type) async -> Result<T> {
    |                                                 `- error: cannot find type 'URLRequest' in scope
116 |         log("\(request.httpMethod!) \(request.url?.absoluteString ?? "")")
117 |
[27/39] Compiling JolpicaKit Pitstops.swift
[28/39] Compiling JolpicaKit Qualifying.swift
[29/39] Compiling JolpicaKit Races.swift
[30/39] Compiling JolpicaKit Results.swift
[31/39] Compiling JolpicaKit Seasons.swift
[32/39] Compiling JolpicaKit Sprints.swift
[33/39] Compiling JolpicaKit StatusEndpoint.swift
/host/spi-builder-workspace/Sources/JolpicaKit/Extensions.swift:13:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
11 | #endif
12 |
13 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
14 |     func isSuccessful() -> Bool {
15 |         return statusCode >= 200 && statusCode <= 299
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |     let baseURL = "https://api.jolpi.ca/ergast/f1"
15 |     let enableLogging: Bool
16 |     let cachePolicy: URLRequest.CachePolicy
   |                      `- error: cannot find type 'URLRequest' in scope
17 |
18 |     init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:18:52: error: cannot find type 'URLRequest' in scope
16 |     let cachePolicy: URLRequest.CachePolicy
17 |
18 |     init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
   |                                                    `- error: cannot find type 'URLRequest' in scope
19 |         self.enableLogging = enableLogging
20 |         self.cachePolicy = cachePolicy
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:39:71: error: cannot find type 'URLRequest' in scope
37 |     public let sprints: SprintsEndpoint
38 |
39 |     public convenience init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
   |                                                                       `- error: cannot find type 'URLRequest' in scope
40 |         self.init(config: JolpicaConfig(
41 |             enableLogging: enableLogging,
[34/39] Compiling JolpicaKit Extensions.swift
/host/spi-builder-workspace/Sources/JolpicaKit/Extensions.swift:13:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
11 | #endif
12 |
13 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
14 |     func isSuccessful() -> Bool {
15 |         return statusCode >= 200 && statusCode <= 299
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |     let baseURL = "https://api.jolpi.ca/ergast/f1"
15 |     let enableLogging: Bool
16 |     let cachePolicy: URLRequest.CachePolicy
   |                      `- error: cannot find type 'URLRequest' in scope
17 |
18 |     init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:18:52: error: cannot find type 'URLRequest' in scope
16 |     let cachePolicy: URLRequest.CachePolicy
17 |
18 |     init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
   |                                                    `- error: cannot find type 'URLRequest' in scope
19 |         self.enableLogging = enableLogging
20 |         self.cachePolicy = cachePolicy
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:39:71: error: cannot find type 'URLRequest' in scope
37 |     public let sprints: SprintsEndpoint
38 |
39 |     public convenience init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
   |                                                                       `- error: cannot find type 'URLRequest' in scope
40 |         self.init(config: JolpicaConfig(
41 |             enableLogging: enableLogging,
[35/39] Compiling JolpicaKit JolpicaKit.swift
/host/spi-builder-workspace/Sources/JolpicaKit/Extensions.swift:13:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
11 | #endif
12 |
13 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
14 |     func isSuccessful() -> Bool {
15 |         return statusCode >= 200 && statusCode <= 299
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |     let baseURL = "https://api.jolpi.ca/ergast/f1"
15 |     let enableLogging: Bool
16 |     let cachePolicy: URLRequest.CachePolicy
   |                      `- error: cannot find type 'URLRequest' in scope
17 |
18 |     init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:18:52: error: cannot find type 'URLRequest' in scope
16 |     let cachePolicy: URLRequest.CachePolicy
17 |
18 |     init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
   |                                                    `- error: cannot find type 'URLRequest' in scope
19 |         self.enableLogging = enableLogging
20 |         self.cachePolicy = cachePolicy
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:39:71: error: cannot find type 'URLRequest' in scope
37 |     public let sprints: SprintsEndpoint
38 |
39 |     public convenience init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
   |                                                                       `- error: cannot find type 'URLRequest' in scope
40 |         self.init(config: JolpicaConfig(
41 |             enableLogging: enableLogging,
[36/39] Compiling JolpicaKit Logger.swift
/host/spi-builder-workspace/Sources/JolpicaKit/Extensions.swift:13:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
11 | #endif
12 |
13 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
14 |     func isSuccessful() -> Bool {
15 |         return statusCode >= 200 && statusCode <= 299
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |     let baseURL = "https://api.jolpi.ca/ergast/f1"
15 |     let enableLogging: Bool
16 |     let cachePolicy: URLRequest.CachePolicy
   |                      `- error: cannot find type 'URLRequest' in scope
17 |
18 |     init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:18:52: error: cannot find type 'URLRequest' in scope
16 |     let cachePolicy: URLRequest.CachePolicy
17 |
18 |     init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
   |                                                    `- error: cannot find type 'URLRequest' in scope
19 |         self.enableLogging = enableLogging
20 |         self.cachePolicy = cachePolicy
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:39:71: error: cannot find type 'URLRequest' in scope
37 |     public let sprints: SprintsEndpoint
38 |
39 |     public convenience init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
   |                                                                       `- error: cannot find type 'URLRequest' in scope
40 |         self.init(config: JolpicaConfig(
41 |             enableLogging: enableLogging,
[37/39] Compiling JolpicaKit Standings.swift
[38/39] Compiling JolpicaKit Statics.swift
[39/39] Compiling JolpicaKit Status.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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 Logging MetadataProvider.swift
[3/6] Emitting module Logging
[4/6] Compiling Logging Locks.swift
[5/6] Compiling Logging LogHandler.swift
[6/6] Compiling Logging Logging.swift
[8/34] Compiling JolpicaKit CircuitsEndpoint.swift
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:74:130: error: cannot find type 'URLRequest' in scope
 72 |     }
 73 |
 74 |     private func formRequest(season: String?, round: String?, endpoint: String, filters: [String], offset: Int?, limit: Int?) -> URLRequest {
    |                                                                                                                                  `- error: cannot find type 'URLRequest' in scope
 75 |         var baseURL = self.config.baseURL
 76 |
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:115:49: error: cannot find type 'URLRequest' in scope
113 |     }
114 |
115 |     private func request<T: Decodable>(request: URLRequest, decode: T.Type) async -> Result<T> {
    |                                                 `- error: cannot find type 'URLRequest' in scope
116 |         log("\(request.httpMethod!) \(request.url?.absoluteString ?? "")")
117 |
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:162:42: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
160 |     }
161 |
162 |     private func parseError<T>(response: HTTPURLResponse) -> Result<T> {
    |                                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
163 |         // TODO implement error parsing
164 |         // 429 rate limit
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/JolpicaKit/Endpoints/Endpoint.swift:105:23: error: cannot find 'URLRequest' in scope
103 |
104 |         let url = components.url!
105 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
106 |
107 |         request.cachePolicy = config.cachePolicy
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |     let baseURL = "https://api.jolpi.ca/ergast/f1"
15 |     let enableLogging: Bool
16 |     let cachePolicy: URLRequest.CachePolicy
   |                      `- error: cannot find type 'URLRequest' in scope
17 |
18 |     init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:119:57: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
117 |
118 |         do {
119 |             let (data, response) = try await URLSession.shared.data(for: request)
    |                                                         `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
120 |
121 |             guard let httpResponse = response as? HTTPURLResponse else {
[9/34] Compiling JolpicaKit ConstructorsEndpoint.swift
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:74:130: error: cannot find type 'URLRequest' in scope
 72 |     }
 73 |
 74 |     private func formRequest(season: String?, round: String?, endpoint: String, filters: [String], offset: Int?, limit: Int?) -> URLRequest {
    |                                                                                                                                  `- error: cannot find type 'URLRequest' in scope
 75 |         var baseURL = self.config.baseURL
 76 |
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:115:49: error: cannot find type 'URLRequest' in scope
113 |     }
114 |
115 |     private func request<T: Decodable>(request: URLRequest, decode: T.Type) async -> Result<T> {
    |                                                 `- error: cannot find type 'URLRequest' in scope
116 |         log("\(request.httpMethod!) \(request.url?.absoluteString ?? "")")
117 |
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:162:42: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
160 |     }
161 |
162 |     private func parseError<T>(response: HTTPURLResponse) -> Result<T> {
    |                                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
163 |         // TODO implement error parsing
164 |         // 429 rate limit
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/JolpicaKit/Endpoints/Endpoint.swift:105:23: error: cannot find 'URLRequest' in scope
103 |
104 |         let url = components.url!
105 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
106 |
107 |         request.cachePolicy = config.cachePolicy
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |     let baseURL = "https://api.jolpi.ca/ergast/f1"
15 |     let enableLogging: Bool
16 |     let cachePolicy: URLRequest.CachePolicy
   |                      `- error: cannot find type 'URLRequest' in scope
17 |
18 |     init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:119:57: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
117 |
118 |         do {
119 |             let (data, response) = try await URLSession.shared.data(for: request)
    |                                                         `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
120 |
121 |             guard let httpResponse = response as? HTTPURLResponse else {
[10/34] Compiling JolpicaKit DriversEndpoint.swift
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:74:130: error: cannot find type 'URLRequest' in scope
 72 |     }
 73 |
 74 |     private func formRequest(season: String?, round: String?, endpoint: String, filters: [String], offset: Int?, limit: Int?) -> URLRequest {
    |                                                                                                                                  `- error: cannot find type 'URLRequest' in scope
 75 |         var baseURL = self.config.baseURL
 76 |
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:115:49: error: cannot find type 'URLRequest' in scope
113 |     }
114 |
115 |     private func request<T: Decodable>(request: URLRequest, decode: T.Type) async -> Result<T> {
    |                                                 `- error: cannot find type 'URLRequest' in scope
116 |         log("\(request.httpMethod!) \(request.url?.absoluteString ?? "")")
117 |
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:162:42: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
160 |     }
161 |
162 |     private func parseError<T>(response: HTTPURLResponse) -> Result<T> {
    |                                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
163 |         // TODO implement error parsing
164 |         // 429 rate limit
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/JolpicaKit/Endpoints/Endpoint.swift:105:23: error: cannot find 'URLRequest' in scope
103 |
104 |         let url = components.url!
105 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
106 |
107 |         request.cachePolicy = config.cachePolicy
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |     let baseURL = "https://api.jolpi.ca/ergast/f1"
15 |     let enableLogging: Bool
16 |     let cachePolicy: URLRequest.CachePolicy
   |                      `- error: cannot find type 'URLRequest' in scope
17 |
18 |     init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:119:57: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
117 |
118 |         do {
119 |             let (data, response) = try await URLSession.shared.data(for: request)
    |                                                         `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
120 |
121 |             guard let httpResponse = response as? HTTPURLResponse else {
[11/34] Compiling JolpicaKit Endpoint.swift
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:74:130: error: cannot find type 'URLRequest' in scope
 72 |     }
 73 |
 74 |     private func formRequest(season: String?, round: String?, endpoint: String, filters: [String], offset: Int?, limit: Int?) -> URLRequest {
    |                                                                                                                                  `- error: cannot find type 'URLRequest' in scope
 75 |         var baseURL = self.config.baseURL
 76 |
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:115:49: error: cannot find type 'URLRequest' in scope
113 |     }
114 |
115 |     private func request<T: Decodable>(request: URLRequest, decode: T.Type) async -> Result<T> {
    |                                                 `- error: cannot find type 'URLRequest' in scope
116 |         log("\(request.httpMethod!) \(request.url?.absoluteString ?? "")")
117 |
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:162:42: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
160 |     }
161 |
162 |     private func parseError<T>(response: HTTPURLResponse) -> Result<T> {
    |                                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
163 |         // TODO implement error parsing
164 |         // 429 rate limit
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/JolpicaKit/Endpoints/Endpoint.swift:105:23: error: cannot find 'URLRequest' in scope
103 |
104 |         let url = components.url!
105 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
106 |
107 |         request.cachePolicy = config.cachePolicy
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |     let baseURL = "https://api.jolpi.ca/ergast/f1"
15 |     let enableLogging: Bool
16 |     let cachePolicy: URLRequest.CachePolicy
   |                      `- error: cannot find type 'URLRequest' in scope
17 |
18 |     init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:119:57: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
117 |
118 |         do {
119 |             let (data, response) = try await URLSession.shared.data(for: request)
    |                                                         `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
120 |
121 |             guard let httpResponse = response as? HTTPURLResponse else {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[12/37] Emitting module JolpicaKit
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:74:130: error: cannot find type 'URLRequest' in scope
 72 |     }
 73 |
 74 |     private func formRequest(season: String?, round: String?, endpoint: String, filters: [String], offset: Int?, limit: Int?) -> URLRequest {
    |                                                                                                                                  `- error: cannot find type 'URLRequest' in scope
 75 |         var baseURL = self.config.baseURL
 76 |
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:115:49: error: cannot find type 'URLRequest' in scope
113 |     }
114 |
115 |     private func request<T: Decodable>(request: URLRequest, decode: T.Type) async -> Result<T> {
    |                                                 `- error: cannot find type 'URLRequest' in scope
116 |         log("\(request.httpMethod!) \(request.url?.absoluteString ?? "")")
117 |
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:162:42: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
160 |     }
161 |
162 |     private func parseError<T>(response: HTTPURLResponse) -> Result<T> {
    |                                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
163 |         // TODO implement error parsing
164 |         // 429 rate limit
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/JolpicaKit/Extensions.swift:13:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
11 | #endif
12 |
13 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
14 |     func isSuccessful() -> Bool {
15 |         return statusCode >= 200 && statusCode <= 299
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |     let baseURL = "https://api.jolpi.ca/ergast/f1"
15 |     let enableLogging: Bool
16 |     let cachePolicy: URLRequest.CachePolicy
   |                      `- error: cannot find type 'URLRequest' in scope
17 |
18 |     init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:18:52: error: cannot find type 'URLRequest' in scope
16 |     let cachePolicy: URLRequest.CachePolicy
17 |
18 |     init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
   |                                                    `- error: cannot find type 'URLRequest' in scope
19 |         self.enableLogging = enableLogging
20 |         self.cachePolicy = cachePolicy
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:39:71: error: cannot find type 'URLRequest' in scope
37 |     public let sprints: SprintsEndpoint
38 |
39 |     public convenience init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
   |                                                                       `- error: cannot find type 'URLRequest' in scope
40 |         self.init(config: JolpicaConfig(
41 |             enableLogging: enableLogging,
[13/37] Compiling JolpicaKit ResultsEndpoint.swift
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |     let baseURL = "https://api.jolpi.ca/ergast/f1"
15 |     let enableLogging: Bool
16 |     let cachePolicy: URLRequest.CachePolicy
   |                      `- error: cannot find type 'URLRequest' in scope
17 |
18 |     init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:74:130: error: cannot find type 'URLRequest' in scope
 72 |     }
 73 |
 74 |     private func formRequest(season: String?, round: String?, endpoint: String, filters: [String], offset: Int?, limit: Int?) -> URLRequest {
    |                                                                                                                                  `- error: cannot find type 'URLRequest' in scope
 75 |         var baseURL = self.config.baseURL
 76 |
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:115:49: error: cannot find type 'URLRequest' in scope
113 |     }
114 |
115 |     private func request<T: Decodable>(request: URLRequest, decode: T.Type) async -> Result<T> {
    |                                                 `- error: cannot find type 'URLRequest' in scope
116 |         log("\(request.httpMethod!) \(request.url?.absoluteString ?? "")")
117 |
[14/37] Compiling JolpicaKit SeasonsEndpoint.swift
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |     let baseURL = "https://api.jolpi.ca/ergast/f1"
15 |     let enableLogging: Bool
16 |     let cachePolicy: URLRequest.CachePolicy
   |                      `- error: cannot find type 'URLRequest' in scope
17 |
18 |     init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:74:130: error: cannot find type 'URLRequest' in scope
 72 |     }
 73 |
 74 |     private func formRequest(season: String?, round: String?, endpoint: String, filters: [String], offset: Int?, limit: Int?) -> URLRequest {
    |                                                                                                                                  `- error: cannot find type 'URLRequest' in scope
 75 |         var baseURL = self.config.baseURL
 76 |
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:115:49: error: cannot find type 'URLRequest' in scope
113 |     }
114 |
115 |     private func request<T: Decodable>(request: URLRequest, decode: T.Type) async -> Result<T> {
    |                                                 `- error: cannot find type 'URLRequest' in scope
116 |         log("\(request.httpMethod!) \(request.url?.absoluteString ?? "")")
117 |
[15/37] Compiling JolpicaKit SprintsEndpoint.swift
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |     let baseURL = "https://api.jolpi.ca/ergast/f1"
15 |     let enableLogging: Bool
16 |     let cachePolicy: URLRequest.CachePolicy
   |                      `- error: cannot find type 'URLRequest' in scope
17 |
18 |     init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:74:130: error: cannot find type 'URLRequest' in scope
 72 |     }
 73 |
 74 |     private func formRequest(season: String?, round: String?, endpoint: String, filters: [String], offset: Int?, limit: Int?) -> URLRequest {
    |                                                                                                                                  `- error: cannot find type 'URLRequest' in scope
 75 |         var baseURL = self.config.baseURL
 76 |
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:115:49: error: cannot find type 'URLRequest' in scope
113 |     }
114 |
115 |     private func request<T: Decodable>(request: URLRequest, decode: T.Type) async -> Result<T> {
    |                                                 `- error: cannot find type 'URLRequest' in scope
116 |         log("\(request.httpMethod!) \(request.url?.absoluteString ?? "")")
117 |
[16/37] Compiling JolpicaKit StandingsEndpoint.swift
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |     let baseURL = "https://api.jolpi.ca/ergast/f1"
15 |     let enableLogging: Bool
16 |     let cachePolicy: URLRequest.CachePolicy
   |                      `- error: cannot find type 'URLRequest' in scope
17 |
18 |     init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:74:130: error: cannot find type 'URLRequest' in scope
 72 |     }
 73 |
 74 |     private func formRequest(season: String?, round: String?, endpoint: String, filters: [String], offset: Int?, limit: Int?) -> URLRequest {
    |                                                                                                                                  `- error: cannot find type 'URLRequest' in scope
 75 |         var baseURL = self.config.baseURL
 76 |
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:115:49: error: cannot find type 'URLRequest' in scope
113 |     }
114 |
115 |     private func request<T: Decodable>(request: URLRequest, decode: T.Type) async -> Result<T> {
    |                                                 `- error: cannot find type 'URLRequest' in scope
116 |         log("\(request.httpMethod!) \(request.url?.absoluteString ?? "")")
117 |
[17/37] Compiling JolpicaKit StatusEndpoint.swift
/host/spi-builder-workspace/Sources/JolpicaKit/Extensions.swift:13:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
11 | #endif
12 |
13 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
14 |     func isSuccessful() -> Bool {
15 |         return statusCode >= 200 && statusCode <= 299
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |     let baseURL = "https://api.jolpi.ca/ergast/f1"
15 |     let enableLogging: Bool
16 |     let cachePolicy: URLRequest.CachePolicy
   |                      `- error: cannot find type 'URLRequest' in scope
17 |
18 |     init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:18:52: error: cannot find type 'URLRequest' in scope
16 |     let cachePolicy: URLRequest.CachePolicy
17 |
18 |     init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
   |                                                    `- error: cannot find type 'URLRequest' in scope
19 |         self.enableLogging = enableLogging
20 |         self.cachePolicy = cachePolicy
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:39:71: error: cannot find type 'URLRequest' in scope
37 |     public let sprints: SprintsEndpoint
38 |
39 |     public convenience init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
   |                                                                       `- error: cannot find type 'URLRequest' in scope
40 |         self.init(config: JolpicaConfig(
41 |             enableLogging: enableLogging,
[18/37] Compiling JolpicaKit Extensions.swift
/host/spi-builder-workspace/Sources/JolpicaKit/Extensions.swift:13:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
11 | #endif
12 |
13 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
14 |     func isSuccessful() -> Bool {
15 |         return statusCode >= 200 && statusCode <= 299
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |     let baseURL = "https://api.jolpi.ca/ergast/f1"
15 |     let enableLogging: Bool
16 |     let cachePolicy: URLRequest.CachePolicy
   |                      `- error: cannot find type 'URLRequest' in scope
17 |
18 |     init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:18:52: error: cannot find type 'URLRequest' in scope
16 |     let cachePolicy: URLRequest.CachePolicy
17 |
18 |     init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
   |                                                    `- error: cannot find type 'URLRequest' in scope
19 |         self.enableLogging = enableLogging
20 |         self.cachePolicy = cachePolicy
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:39:71: error: cannot find type 'URLRequest' in scope
37 |     public let sprints: SprintsEndpoint
38 |
39 |     public convenience init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
   |                                                                       `- error: cannot find type 'URLRequest' in scope
40 |         self.init(config: JolpicaConfig(
41 |             enableLogging: enableLogging,
[19/37] Compiling JolpicaKit JolpicaKit.swift
/host/spi-builder-workspace/Sources/JolpicaKit/Extensions.swift:13:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
11 | #endif
12 |
13 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
14 |     func isSuccessful() -> Bool {
15 |         return statusCode >= 200 && statusCode <= 299
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |     let baseURL = "https://api.jolpi.ca/ergast/f1"
15 |     let enableLogging: Bool
16 |     let cachePolicy: URLRequest.CachePolicy
   |                      `- error: cannot find type 'URLRequest' in scope
17 |
18 |     init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:18:52: error: cannot find type 'URLRequest' in scope
16 |     let cachePolicy: URLRequest.CachePolicy
17 |
18 |     init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
   |                                                    `- error: cannot find type 'URLRequest' in scope
19 |         self.enableLogging = enableLogging
20 |         self.cachePolicy = cachePolicy
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:39:71: error: cannot find type 'URLRequest' in scope
37 |     public let sprints: SprintsEndpoint
38 |
39 |     public convenience init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
   |                                                                       `- error: cannot find type 'URLRequest' in scope
40 |         self.init(config: JolpicaConfig(
41 |             enableLogging: enableLogging,
[20/37] Compiling JolpicaKit Logger.swift
/host/spi-builder-workspace/Sources/JolpicaKit/Extensions.swift:13:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
11 | #endif
12 |
13 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
14 |     func isSuccessful() -> Bool {
15 |         return statusCode >= 200 && statusCode <= 299
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |     let baseURL = "https://api.jolpi.ca/ergast/f1"
15 |     let enableLogging: Bool
16 |     let cachePolicy: URLRequest.CachePolicy
   |                      `- error: cannot find type 'URLRequest' in scope
17 |
18 |     init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:18:52: error: cannot find type 'URLRequest' in scope
16 |     let cachePolicy: URLRequest.CachePolicy
17 |
18 |     init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
   |                                                    `- error: cannot find type 'URLRequest' in scope
19 |         self.enableLogging = enableLogging
20 |         self.cachePolicy = cachePolicy
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:39:71: error: cannot find type 'URLRequest' in scope
37 |     public let sprints: SprintsEndpoint
38 |
39 |     public convenience init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
   |                                                                       `- error: cannot find type 'URLRequest' in scope
40 |         self.init(config: JolpicaConfig(
41 |             enableLogging: enableLogging,
[21/37] Compiling JolpicaKit Results.swift
[22/37] Compiling JolpicaKit Seasons.swift
[23/37] Compiling JolpicaKit Sprints.swift
[24/37] Compiling JolpicaKit LapsEndpoint.swift
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |     let baseURL = "https://api.jolpi.ca/ergast/f1"
15 |     let enableLogging: Bool
16 |     let cachePolicy: URLRequest.CachePolicy
   |                      `- error: cannot find type 'URLRequest' in scope
17 |
18 |     init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:74:130: error: cannot find type 'URLRequest' in scope
 72 |     }
 73 |
 74 |     private func formRequest(season: String?, round: String?, endpoint: String, filters: [String], offset: Int?, limit: Int?) -> URLRequest {
    |                                                                                                                                  `- error: cannot find type 'URLRequest' in scope
 75 |         var baseURL = self.config.baseURL
 76 |
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:115:49: error: cannot find type 'URLRequest' in scope
113 |     }
114 |
115 |     private func request<T: Decodable>(request: URLRequest, decode: T.Type) async -> Result<T> {
    |                                                 `- error: cannot find type 'URLRequest' in scope
116 |         log("\(request.httpMethod!) \(request.url?.absoluteString ?? "")")
117 |
[25/37] Compiling JolpicaKit PitstopsEndpoint.swift
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |     let baseURL = "https://api.jolpi.ca/ergast/f1"
15 |     let enableLogging: Bool
16 |     let cachePolicy: URLRequest.CachePolicy
   |                      `- error: cannot find type 'URLRequest' in scope
17 |
18 |     init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:74:130: error: cannot find type 'URLRequest' in scope
 72 |     }
 73 |
 74 |     private func formRequest(season: String?, round: String?, endpoint: String, filters: [String], offset: Int?, limit: Int?) -> URLRequest {
    |                                                                                                                                  `- error: cannot find type 'URLRequest' in scope
 75 |         var baseURL = self.config.baseURL
 76 |
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:115:49: error: cannot find type 'URLRequest' in scope
113 |     }
114 |
115 |     private func request<T: Decodable>(request: URLRequest, decode: T.Type) async -> Result<T> {
    |                                                 `- error: cannot find type 'URLRequest' in scope
116 |         log("\(request.httpMethod!) \(request.url?.absoluteString ?? "")")
117 |
[26/37] Compiling JolpicaKit QualifyingEndpoint.swift
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |     let baseURL = "https://api.jolpi.ca/ergast/f1"
15 |     let enableLogging: Bool
16 |     let cachePolicy: URLRequest.CachePolicy
   |                      `- error: cannot find type 'URLRequest' in scope
17 |
18 |     init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:74:130: error: cannot find type 'URLRequest' in scope
 72 |     }
 73 |
 74 |     private func formRequest(season: String?, round: String?, endpoint: String, filters: [String], offset: Int?, limit: Int?) -> URLRequest {
    |                                                                                                                                  `- error: cannot find type 'URLRequest' in scope
 75 |         var baseURL = self.config.baseURL
 76 |
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:115:49: error: cannot find type 'URLRequest' in scope
113 |     }
114 |
115 |     private func request<T: Decodable>(request: URLRequest, decode: T.Type) async -> Result<T> {
    |                                                 `- error: cannot find type 'URLRequest' in scope
116 |         log("\(request.httpMethod!) \(request.url?.absoluteString ?? "")")
117 |
[27/37] Compiling JolpicaKit RacesEndpoint.swift
/host/spi-builder-workspace/Sources/JolpicaKit/JolpicaKit.swift:16:22: error: cannot find type 'URLRequest' in scope
14 |     let baseURL = "https://api.jolpi.ca/ergast/f1"
15 |     let enableLogging: Bool
16 |     let cachePolicy: URLRequest.CachePolicy
   |                      `- error: cannot find type 'URLRequest' in scope
17 |
18 |     init(enableLogging: Bool = false, cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy) {
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:74:130: error: cannot find type 'URLRequest' in scope
 72 |     }
 73 |
 74 |     private func formRequest(season: String?, round: String?, endpoint: String, filters: [String], offset: Int?, limit: Int?) -> URLRequest {
    |                                                                                                                                  `- error: cannot find type 'URLRequest' in scope
 75 |         var baseURL = self.config.baseURL
 76 |
/host/spi-builder-workspace/Sources/JolpicaKit/Endpoints/Endpoint.swift:115:49: error: cannot find type 'URLRequest' in scope
113 |     }
114 |
115 |     private func request<T: Decodable>(request: URLRequest, decode: T.Type) async -> Result<T> {
    |                                                 `- error: cannot find type 'URLRequest' in scope
116 |         log("\(request.httpMethod!) \(request.url?.absoluteString ?? "")")
117 |
[28/37] Compiling JolpicaKit Circuits.swift
[29/37] Compiling JolpicaKit Constructors.swift
[30/37] Compiling JolpicaKit Drivers.swift
[31/37] Compiling JolpicaKit Laps.swift
[32/37] Compiling JolpicaKit Pitstops.swift
[33/37] Compiling JolpicaKit Qualifying.swift
[34/37] Compiling JolpicaKit Races.swift
[35/37] Compiling JolpicaKit Standings.swift
[36/37] Compiling JolpicaKit Statics.swift
[37/37] Compiling JolpicaKit Status.swift
BUILD FAILURE 6.1 wasm