Build Information
Failed to build JolpicaKit, reference v1.1.0 (7140a8), with Swift 6.1 for Wasm on 30 May 2025 11:57:32 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>&1Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/fantasia-y/JolpicaKit.git
Reference: v1.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/fantasia-y/JolpicaKit
* tag v1.1.0 -> FETCH_HEAD
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 v1.1.0
========================================
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-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 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.78s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (1.28s)
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] Compiling Logging MetadataProvider.swift
[5/8] Compiling Logging LogHandler.swift
[6/8] Compiling Logging Locks.swift
[7/8] Emitting module Logging
[8/8] Compiling Logging Logging.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 Circuits.swift
[12/39] Compiling JolpicaKit Constructors.swift
[13/39] Compiling JolpicaKit Drivers.swift
[14/39] Compiling JolpicaKit Laps.swift
[15/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 |
[16/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 |
[17/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 |
[18/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 |
[19/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,
[20/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,
[21/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,
[22/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,
[23/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 {
[24/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 {
[25/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 {
[26/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 {
[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 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 |
[34/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 |
[35/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 |
[36/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 |
[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-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 Logging MetadataProvider.swift
[3/6] Emitting module Logging
[4/6] Compiling Logging LogHandler.swift
[5/6] Compiling Logging Locks.swift
[6/6] Compiling Logging Logging.swift
[8/34] 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 |
[9/34] 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 |
[10/34] 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 |
[11/34] 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 |
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 Results.swift
[14/37] Compiling JolpicaKit Seasons.swift
[15/37] Compiling JolpicaKit Sprints.swift
[16/37] Compiling JolpicaKit Pitstops.swift
[17/37] Compiling JolpicaKit Qualifying.swift
[18/37] Compiling JolpicaKit Races.swift
[19/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,
[20/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,
[21/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,
[22/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,
[23/37] 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 {
[24/37] 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 {
[25/37] 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 {
[26/37] 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 {
[27/37] Compiling JolpicaKit Circuits.swift
[28/37] Compiling JolpicaKit Constructors.swift
[29/37] Compiling JolpicaKit Drivers.swift
[30/37] Compiling JolpicaKit Laps.swift
[31/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 |
[32/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 |
[33/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 |
[34/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 |
[35/37] Compiling JolpicaKit Standings.swift
[36/37] Compiling JolpicaKit Statics.swift
[37/37] Compiling JolpicaKit Status.swift
BUILD FAILURE 6.1 wasm