Build Information
Failed to build SwiftEureka, reference v0.1.9-alpha (a375b9), with Swift 6.1 for Wasm on 28 May 2025 15:55:45 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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/putridparrot/SwiftEureka.git
Reference: v0.1.9-alpha
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/putridparrot/SwiftEureka
* tag v0.1.9-alpha -> FETCH_HEAD
HEAD is now at a375b9f Disable all test code for non-Linux
Cloned https://github.com/putridparrot/SwiftEureka.git
Revision (git rev-parse @):
a375b9f88789d8ea4b21115bac79124f0762a722
SUCCESS checkout https://github.com/putridparrot/SwiftEureka.git at v0.1.9-alpha
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/putridparrot/SwiftEureka.git
https://github.com/putridparrot/SwiftEureka.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.4.4",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log.git"
}
],
"manifest_display_name" : "SwiftEureka",
"name" : "SwiftEureka",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "12.0"
}
],
"products" : [
{
"name" : "SwiftEureka",
"targets" : [
"SwiftEureka"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftEurekaTests",
"module_type" : "SwiftTarget",
"name" : "SwiftEurekaTests",
"path" : "Tests/SwiftEurekaTests",
"resources" : [
{
"path" : "/host/spi-builder-workspace/Tests/SwiftEurekaTests/findAll.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/host/spi-builder-workspace/Tests/SwiftEurekaTests/findByAppId.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/host/spi-builder-workspace/Tests/SwiftEurekaTests/findByAppIdInstanceId.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/host/spi-builder-workspace/Tests/SwiftEurekaTests/findByInstanceId.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/host/spi-builder-workspace/Tests/SwiftEurekaTests/findBySecureVipAddress.json",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"SwiftEurekaTests.swift",
"URLSessionMock.swift"
],
"target_dependencies" : [
"SwiftEureka"
],
"type" : "test"
},
{
"c99name" : "SwiftEureka",
"module_type" : "SwiftTarget",
"name" : "SwiftEureka",
"path" : "Sources/SwiftEureka",
"product_dependencies" : [
"Logging"
],
"product_memberships" : [
"SwiftEureka"
],
"sources" : [
"ActionType.swift",
"BoolFromString.swift",
"DataCenterInfo.swift",
"DataCenterName.swift",
"EurekaClient.swift",
"InstanceInfo+Json.swift",
"InstanceInfo.swift",
"InstanceStatus.swift",
"LeaseInfo.swift",
"Port.swift",
"String+Dictionary.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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 -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/apple/swift-log.git
[1/3836] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.59s)
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] Emitting module Logging
[6/8] Compiling Logging LogHandler.swift
[7/8] Compiling Logging Locks.swift
[8/8] Compiling Logging Logging.swift
[10/20] Compiling SwiftEureka InstanceStatus.swift
[11/21] Compiling SwiftEureka Port.swift
[12/21] Compiling SwiftEureka LeaseInfo.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[13/21] Compiling SwiftEureka ActionType.swift
[14/21] Compiling SwiftEureka BoolFromString.swift
[15/21] Compiling SwiftEureka DataCenterInfo.swift
[16/21] Compiling SwiftEureka DataCenterName.swift
[17/21] Emitting module SwiftEureka
/host/spi-builder-workspace/Sources/SwiftEureka/EurekaClient.swift:39:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | private let rootUrl = "eureka"
38 |
39 | private let session: URLSession;
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | private let baseUrl: URL
41 | private let logger: Logger?
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftEureka/EurekaClient.swift:46:63: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | ///
45 | /// - Parameter baseUrl: The base URL, including the port of the server
46 | public init(baseUrl: URL, logger: Logger? = nil, session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | self.baseUrl = baseUrl
48 | self.logger = logger
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftEureka/EurekaClient.swift:46:77: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | ///
45 | /// - Parameter baseUrl: The base URL, including the port of the server
46 | public init(baseUrl: URL, logger: Logger? = nil, session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 | self.baseUrl = baseUrl
48 | self.logger = logger
/host/spi-builder-workspace/Sources/SwiftEureka/EurekaClient.swift:255:41: error: cannot find type 'URLRequest' in scope
253 | }
254 |
255 | private func dataTask(with request: URLRequest) async -> Result<Data?, Error> {
| `- error: cannot find type 'URLRequest' in scope
256 | await withCheckedContinuation { continuation in
257 | logger?.debug("Request: \(request)")
[18/21] Compiling SwiftEureka InstanceInfo.swift
[19/21] Compiling SwiftEureka EurekaClient.swift
/host/spi-builder-workspace/Sources/SwiftEureka/EurekaClient.swift:39:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | private let rootUrl = "eureka"
38 |
39 | private let session: URLSession;
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | private let baseUrl: URL
41 | private let logger: Logger?
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftEureka/EurekaClient.swift:46:63: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | ///
45 | /// - Parameter baseUrl: The base URL, including the port of the server
46 | public init(baseUrl: URL, logger: Logger? = nil, session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | self.baseUrl = baseUrl
48 | self.logger = logger
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftEureka/EurekaClient.swift:46:77: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | ///
45 | /// - Parameter baseUrl: The base URL, including the port of the server
46 | public init(baseUrl: URL, logger: Logger? = nil, session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 | self.baseUrl = baseUrl
48 | self.logger = logger
/host/spi-builder-workspace/Sources/SwiftEureka/EurekaClient.swift:255:41: error: cannot find type 'URLRequest' in scope
253 | }
254 |
255 | private func dataTask(with request: URLRequest) async -> Result<Data?, Error> {
| `- error: cannot find type 'URLRequest' in scope
256 | await withCheckedContinuation { continuation in
257 | logger?.debug("Request: \(request)")
/host/spi-builder-workspace/Sources/SwiftEureka/EurekaClient.swift:242:23: error: cannot find 'URLRequest' in scope
240 |
241 | private func dataTask(url: URL, httpMethod: String, httpBody: Data?) async -> Result<Data?, Error> {
242 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
243 | request.httpMethod = httpMethod
244 | request.timeoutInterval = 20
/host/spi-builder-workspace/Sources/SwiftEureka/EurekaClient.swift:252:37: error: extra argument 'with' in call
250 | }
251 |
252 | return await dataTask(with: request)
| `- error: extra argument 'with' in call
253 | }
254 |
/host/spi-builder-workspace/Sources/SwiftEureka/EurekaClient.swift:252:30: error: missing arguments for parameters 'url', 'httpMethod', 'httpBody' in call
239 | }
240 |
241 | private func dataTask(url: URL, httpMethod: String, httpBody: Data?) async -> Result<Data?, Error> {
| `- note: 'dataTask(url:httpMethod:httpBody:)' declared here
242 | var request = URLRequest(url: url)
243 | request.httpMethod = httpMethod
:
250 | }
251 |
252 | return await dataTask(with: request)
| `- error: missing arguments for parameters 'url', 'httpMethod', 'httpBody' in call
253 | }
254 |
[20/21] Compiling SwiftEureka InstanceInfo+Json.swift
/host/spi-builder-workspace/Sources/SwiftEureka/EurekaClient.swift:39:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | private let rootUrl = "eureka"
38 |
39 | private let session: URLSession;
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | private let baseUrl: URL
41 | private let logger: Logger?
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftEureka/EurekaClient.swift:46:63: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | ///
45 | /// - Parameter baseUrl: The base URL, including the port of the server
46 | public init(baseUrl: URL, logger: Logger? = nil, session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | self.baseUrl = baseUrl
48 | self.logger = logger
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftEureka/EurekaClient.swift:46:77: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | ///
45 | /// - Parameter baseUrl: The base URL, including the port of the server
46 | public init(baseUrl: URL, logger: Logger? = nil, session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 | self.baseUrl = baseUrl
48 | self.logger = logger
/host/spi-builder-workspace/Sources/SwiftEureka/EurekaClient.swift:255:41: error: cannot find type 'URLRequest' in scope
253 | }
254 |
255 | private func dataTask(with request: URLRequest) async -> Result<Data?, Error> {
| `- error: cannot find type 'URLRequest' in scope
256 | await withCheckedContinuation { continuation in
257 | logger?.debug("Request: \(request)")
/host/spi-builder-workspace/Sources/SwiftEureka/EurekaClient.swift:242:23: error: cannot find 'URLRequest' in scope
240 |
241 | private func dataTask(url: URL, httpMethod: String, httpBody: Data?) async -> Result<Data?, Error> {
242 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
243 | request.httpMethod = httpMethod
244 | request.timeoutInterval = 20
/host/spi-builder-workspace/Sources/SwiftEureka/EurekaClient.swift:252:37: error: extra argument 'with' in call
250 | }
251 |
252 | return await dataTask(with: request)
| `- error: extra argument 'with' in call
253 | }
254 |
/host/spi-builder-workspace/Sources/SwiftEureka/EurekaClient.swift:252:30: error: missing arguments for parameters 'url', 'httpMethod', 'httpBody' in call
239 | }
240 |
241 | private func dataTask(url: URL, httpMethod: String, httpBody: Data?) async -> Result<Data?, Error> {
| `- note: 'dataTask(url:httpMethod:httpBody:)' declared here
242 | var request = URLRequest(url: url)
243 | request.httpMethod = httpMethod
:
250 | }
251 |
252 | return await dataTask(with: request)
| `- error: missing arguments for parameters 'url', 'httpMethod', 'httpBody' in call
253 | }
254 |
[21/21] Compiling SwiftEureka String+Dictionary.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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] Compiling Logging Locks.swift
[4/6] Compiling Logging LogHandler.swift
[5/6] Emitting module Logging
[6/6] Compiling Logging Logging.swift
[8/18] Compiling SwiftEureka Port.swift
[9/19] Compiling SwiftEureka InstanceStatus.swift
[10/19] Compiling SwiftEureka LeaseInfo.swift
[11/19] Compiling SwiftEureka String+Dictionary.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[12/19] Compiling SwiftEureka DataCenterInfo.swift
[13/19] Compiling SwiftEureka DataCenterName.swift
[14/19] Compiling SwiftEureka ActionType.swift
[15/19] Compiling SwiftEureka BoolFromString.swift
[16/19] Compiling SwiftEureka InstanceInfo.swift
[17/19] Emitting module SwiftEureka
/host/spi-builder-workspace/Sources/SwiftEureka/EurekaClient.swift:39:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | private let rootUrl = "eureka"
38 |
39 | private let session: URLSession;
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | private let baseUrl: URL
41 | private let logger: Logger?
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftEureka/EurekaClient.swift:46:63: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | ///
45 | /// - Parameter baseUrl: The base URL, including the port of the server
46 | public init(baseUrl: URL, logger: Logger? = nil, session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | self.baseUrl = baseUrl
48 | self.logger = logger
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftEureka/EurekaClient.swift:46:77: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | ///
45 | /// - Parameter baseUrl: The base URL, including the port of the server
46 | public init(baseUrl: URL, logger: Logger? = nil, session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 | self.baseUrl = baseUrl
48 | self.logger = logger
/host/spi-builder-workspace/Sources/SwiftEureka/EurekaClient.swift:255:41: error: cannot find type 'URLRequest' in scope
253 | }
254 |
255 | private func dataTask(with request: URLRequest) async -> Result<Data?, Error> {
| `- error: cannot find type 'URLRequest' in scope
256 | await withCheckedContinuation { continuation in
257 | logger?.debug("Request: \(request)")
[18/19] Compiling SwiftEureka EurekaClient.swift
/host/spi-builder-workspace/Sources/SwiftEureka/EurekaClient.swift:39:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | private let rootUrl = "eureka"
38 |
39 | private let session: URLSession;
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | private let baseUrl: URL
41 | private let logger: Logger?
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftEureka/EurekaClient.swift:46:63: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | ///
45 | /// - Parameter baseUrl: The base URL, including the port of the server
46 | public init(baseUrl: URL, logger: Logger? = nil, session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | self.baseUrl = baseUrl
48 | self.logger = logger
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftEureka/EurekaClient.swift:46:77: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | ///
45 | /// - Parameter baseUrl: The base URL, including the port of the server
46 | public init(baseUrl: URL, logger: Logger? = nil, session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 | self.baseUrl = baseUrl
48 | self.logger = logger
/host/spi-builder-workspace/Sources/SwiftEureka/EurekaClient.swift:255:41: error: cannot find type 'URLRequest' in scope
253 | }
254 |
255 | private func dataTask(with request: URLRequest) async -> Result<Data?, Error> {
| `- error: cannot find type 'URLRequest' in scope
256 | await withCheckedContinuation { continuation in
257 | logger?.debug("Request: \(request)")
/host/spi-builder-workspace/Sources/SwiftEureka/EurekaClient.swift:242:23: error: cannot find 'URLRequest' in scope
240 |
241 | private func dataTask(url: URL, httpMethod: String, httpBody: Data?) async -> Result<Data?, Error> {
242 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
243 | request.httpMethod = httpMethod
244 | request.timeoutInterval = 20
/host/spi-builder-workspace/Sources/SwiftEureka/EurekaClient.swift:252:37: error: extra argument 'with' in call
250 | }
251 |
252 | return await dataTask(with: request)
| `- error: extra argument 'with' in call
253 | }
254 |
/host/spi-builder-workspace/Sources/SwiftEureka/EurekaClient.swift:252:30: error: missing arguments for parameters 'url', 'httpMethod', 'httpBody' in call
239 | }
240 |
241 | private func dataTask(url: URL, httpMethod: String, httpBody: Data?) async -> Result<Data?, Error> {
| `- note: 'dataTask(url:httpMethod:httpBody:)' declared here
242 | var request = URLRequest(url: url)
243 | request.httpMethod = httpMethod
:
250 | }
251 |
252 | return await dataTask(with: request)
| `- error: missing arguments for parameters 'url', 'httpMethod', 'httpBody' in call
253 | }
254 |
[19/19] Compiling SwiftEureka InstanceInfo+Json.swift
/host/spi-builder-workspace/Sources/SwiftEureka/EurekaClient.swift:39:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | private let rootUrl = "eureka"
38 |
39 | private let session: URLSession;
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | private let baseUrl: URL
41 | private let logger: Logger?
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftEureka/EurekaClient.swift:46:63: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | ///
45 | /// - Parameter baseUrl: The base URL, including the port of the server
46 | public init(baseUrl: URL, logger: Logger? = nil, session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | self.baseUrl = baseUrl
48 | self.logger = logger
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftEureka/EurekaClient.swift:46:77: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | ///
45 | /// - Parameter baseUrl: The base URL, including the port of the server
46 | public init(baseUrl: URL, logger: Logger? = nil, session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 | self.baseUrl = baseUrl
48 | self.logger = logger
/host/spi-builder-workspace/Sources/SwiftEureka/EurekaClient.swift:255:41: error: cannot find type 'URLRequest' in scope
253 | }
254 |
255 | private func dataTask(with request: URLRequest) async -> Result<Data?, Error> {
| `- error: cannot find type 'URLRequest' in scope
256 | await withCheckedContinuation { continuation in
257 | logger?.debug("Request: \(request)")
/host/spi-builder-workspace/Sources/SwiftEureka/EurekaClient.swift:242:23: error: cannot find 'URLRequest' in scope
240 |
241 | private func dataTask(url: URL, httpMethod: String, httpBody: Data?) async -> Result<Data?, Error> {
242 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
243 | request.httpMethod = httpMethod
244 | request.timeoutInterval = 20
/host/spi-builder-workspace/Sources/SwiftEureka/EurekaClient.swift:252:37: error: extra argument 'with' in call
250 | }
251 |
252 | return await dataTask(with: request)
| `- error: extra argument 'with' in call
253 | }
254 |
/host/spi-builder-workspace/Sources/SwiftEureka/EurekaClient.swift:252:30: error: missing arguments for parameters 'url', 'httpMethod', 'httpBody' in call
239 | }
240 |
241 | private func dataTask(url: URL, httpMethod: String, httpBody: Data?) async -> Result<Data?, Error> {
| `- note: 'dataTask(url:httpMethod:httpBody:)' declared here
242 | var request = URLRequest(url: url)
243 | request.httpMethod = httpMethod
:
250 | }
251 |
252 | return await dataTask(with: request)
| `- error: missing arguments for parameters 'url', 'httpMethod', 'httpBody' in call
253 | }
254 |
BUILD FAILURE 6.1 wasm