Build Information
Failed to build StormGlass, reference main (4bf53a
), with Swift 6.1 for Wasm on 28 May 2025 01:09:02 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/cruisea-app/stormglass-swift.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/cruisea-app/stormglass-swift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 4bf53a5 Update README.md
Cloned https://github.com/cruisea-app/stormglass-swift.git
Revision (git rev-parse @):
4bf53a5fffb0a051ed4741be7be469fc8a5d4b4f
SUCCESS checkout https://github.com/cruisea-app/stormglass-swift.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/cruisea-app/stormglass-swift.git
https://github.com/cruisea-app/stormglass-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "StormGlass",
"name" : "StormGlass",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "9.0"
},
{
"name" : "macos",
"version" : "10.10"
},
{
"name" : "tvos",
"version" : "9.0"
},
{
"name" : "watchos",
"version" : "2.0"
}
],
"products" : [
{
"name" : "StormGlass",
"targets" : [
"StormGlass"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "StormGlassTests",
"module_type" : "SwiftTarget",
"name" : "StormGlassTests",
"path" : "Tests/StormGlassTests",
"resources" : [
{
"path" : "/host/spi-builder-workspace/Tests/StormGlassTests/Fixtures",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"SGAstronomyPointRequestTests.swift",
"SGBaseTests.swift",
"SGBioPointRequestTests.swift",
"SGElevationPointRequestTests.swift",
"SGIntegrationTests.swift",
"SGSolarPointRequestTests.swift",
"SGTideExtremesPointRequestTests.swift",
"SGTideSeaLevelPointRequestTests.swift",
"SGTideStationsAreaRequestTests.swift",
"SGTideStationsListRequestTests.swift",
"SGWeatherPointRequestTests.swift"
],
"target_dependencies" : [
"StormGlass"
],
"type" : "test"
},
{
"c99name" : "StormGlass",
"module_type" : "SwiftTarget",
"name" : "StormGlass",
"path" : "Sources/StormGlass",
"product_memberships" : [
"StormGlass"
],
"sources" : [
"Endpoints/Astronomy/SGAstronomyPointRequest.swift",
"Endpoints/Bio/SGBioPointRequest.swift",
"Endpoints/Elevation/SGElevationPointRequest.swift",
"Endpoints/SGCoordinate.swift",
"Endpoints/SGEndpoint.swift",
"Endpoints/SGResponseMetadata.swift",
"Endpoints/Solar/SGSolarPointRequest.swift",
"Endpoints/Tide/SGTideDatum.swift",
"Endpoints/Tide/SGTideExtremesPointRequest.swift",
"Endpoints/Tide/SGTideSeaLevelPointRequest.swift",
"Endpoints/Tide/SGTideStationsAreaRequest.swift",
"Endpoints/Tide/SGTideStationsListRequest.swift",
"Endpoints/Weather/SGWeatherPointRequest.swift",
"Networking/SGNetworking.swift",
"Networking/SGParameterEncodable.swift",
"SGConfiguration.swift",
"SGDataSource.swift",
"SGServiceError.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/19] Emitting module StormGlass
/host/spi-builder-workspace/Sources/StormGlass/Endpoints/SGCoordinate.swift:12:25: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'SGCoordinate' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct SGCoordinate: Equatable {
| `- note: consider making struct 'SGCoordinate' conform to the 'Sendable' protocol
4 | public let latitude: Double
5 | public let longitude: Double
:
10 | }
11 |
12 | internal static let zero = SGCoordinate(latitude: 0, longitude: 0)
| |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'SGCoordinate' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'zero' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | }
14 |
/host/spi-builder-workspace/Sources/StormGlass/Networking/SGNetworking.swift:10:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | internal let endpoint: Endpoint
9 | internal let apiKeyOverride: String?
10 | internal let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 | public init(
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/StormGlass/Networking/SGNetworking.swift:15:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | endpoint: Endpoint,
14 | apiKey: String? = nil,
15 | urlSession: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | ) {
17 | self.endpoint = endpoint
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/StormGlass/Networking/SGNetworking.swift:15:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
13 | endpoint: Endpoint,
14 | apiKey: String? = nil,
15 | urlSession: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
16 | ) {
17 | self.endpoint = endpoint
/host/spi-builder-workspace/Sources/StormGlass/Networking/SGNetworking.swift:22:43: error: cannot find type 'URLRequest' in scope
20 | }
21 |
22 | internal func makeRequest() throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
23 | guard var components = URLComponents(string: SGConfiguration.shared.host) else {
24 | throw SGServiceError.badURL
/host/spi-builder-workspace/Sources/StormGlass/SGConfiguration.swift:2:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1 | public class SGConfiguration {
2 | public static var shared = SGConfiguration()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
3 | private init() {}
4 |
/host/spi-builder-workspace/Sources/StormGlass/SGServiceError.swift:81:16: warning: stored property 'errors' of 'Sendable'-conforming struct 'SGErrorResponse' has non-sendable type 'SGErrorResponse.Item'; this is an error in the Swift 6 language mode
74 |
75 | public struct SGErrorResponse: Error, Decodable, CustomStringConvertible {
76 | public struct Item: Decodable {
| `- note: consider making struct 'Item' conform to the 'Sendable' protocol
77 | let key: String?
78 | let params: [String]?
79 | }
80 |
81 | public let errors: Item
| `- warning: stored property 'errors' of 'Sendable'-conforming struct 'SGErrorResponse' has non-sendable type 'SGErrorResponse.Item'; this is an error in the Swift 6 language mode
82 |
83 | public var description: String {
[4/21] Compiling StormGlass SGSolarPointRequest.swift
[5/21] Compiling StormGlass SGTideDatum.swift
[6/21] Compiling StormGlass SGTideStationsAreaRequest.swift
[7/21] Compiling StormGlass SGTideStationsListRequest.swift
[8/21] Compiling StormGlass SGParameterEncodable.swift
/host/spi-builder-workspace/Sources/StormGlass/SGConfiguration.swift:2:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1 | public class SGConfiguration {
2 | public static var shared = SGConfiguration()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
3 | private init() {}
4 |
[9/21] Compiling StormGlass SGConfiguration.swift
/host/spi-builder-workspace/Sources/StormGlass/SGConfiguration.swift:2:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1 | public class SGConfiguration {
2 | public static var shared = SGConfiguration()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
3 | private init() {}
4 |
[10/21] Compiling StormGlass SGCoordinate.swift
/host/spi-builder-workspace/Sources/StormGlass/Endpoints/SGCoordinate.swift:12:25: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'SGCoordinate' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct SGCoordinate: Equatable {
| `- note: consider making struct 'SGCoordinate' conform to the 'Sendable' protocol
4 | public let latitude: Double
5 | public let longitude: Double
:
10 | }
11 |
12 | internal static let zero = SGCoordinate(latitude: 0, longitude: 0)
| |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'SGCoordinate' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'zero' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | }
14 |
[11/21] Compiling StormGlass SGEndpoint.swift
/host/spi-builder-workspace/Sources/StormGlass/Endpoints/SGCoordinate.swift:12:25: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'SGCoordinate' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct SGCoordinate: Equatable {
| `- note: consider making struct 'SGCoordinate' conform to the 'Sendable' protocol
4 | public let latitude: Double
5 | public let longitude: Double
:
10 | }
11 |
12 | internal static let zero = SGCoordinate(latitude: 0, longitude: 0)
| |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'SGCoordinate' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'zero' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | }
14 |
[12/21] Compiling StormGlass SGResponseMetadata.swift
/host/spi-builder-workspace/Sources/StormGlass/Endpoints/SGCoordinate.swift:12:25: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'SGCoordinate' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct SGCoordinate: Equatable {
| `- note: consider making struct 'SGCoordinate' conform to the 'Sendable' protocol
4 | public let latitude: Double
5 | public let longitude: Double
:
10 | }
11 |
12 | internal static let zero = SGCoordinate(latitude: 0, longitude: 0)
| |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'SGCoordinate' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'zero' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | }
14 |
[13/21] Compiling StormGlass SGTideExtremesPointRequest.swift
[14/21] Compiling StormGlass SGTideSeaLevelPointRequest.swift
[15/21] Compiling StormGlass SGAstronomyPointRequest.swift
[16/21] Compiling StormGlass SGBioPointRequest.swift
[17/21] Compiling StormGlass SGElevationPointRequest.swift
[18/21] Compiling StormGlass SGWeatherPointRequest.swift
/host/spi-builder-workspace/Sources/StormGlass/Networking/SGNetworking.swift:10:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | internal let endpoint: Endpoint
9 | internal let apiKeyOverride: String?
10 | internal let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 | public init(
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/StormGlass/Networking/SGNetworking.swift:15:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | endpoint: Endpoint,
14 | apiKey: String? = nil,
15 | urlSession: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | ) {
17 | self.endpoint = endpoint
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/StormGlass/Networking/SGNetworking.swift:15:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
13 | endpoint: Endpoint,
14 | apiKey: String? = nil,
15 | urlSession: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
16 | ) {
17 | self.endpoint = endpoint
/host/spi-builder-workspace/Sources/StormGlass/Networking/SGNetworking.swift:22:43: error: cannot find type 'URLRequest' in scope
20 | }
21 |
22 | internal func makeRequest() throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
23 | guard var components = URLComponents(string: SGConfiguration.shared.host) else {
24 | throw SGServiceError.badURL
/host/spi-builder-workspace/Sources/StormGlass/Networking/SGNetworking.swift:34:23: error: cannot find 'URLRequest' in scope
32 | }
33 |
34 | var request = URLRequest(
| `- error: cannot find 'URLRequest' in scope
35 | url: url,
36 | cachePolicy: .useProtocolCachePolicy
/host/spi-builder-workspace/Sources/StormGlass/Networking/SGNetworking.swift:36:27: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
34 | var request = URLRequest(
35 | url: url,
36 | cachePolicy: .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
37 | )
38 |
/host/spi-builder-workspace/Sources/StormGlass/Networking/SGNetworking.swift:71:39: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
69 | public func fetch(completion: @escaping (Result<Endpoint.Response, Error>) -> Void) {
70 | do {
71 | let task = try urlSession.dataTask(with: makeRequest()) { data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
72 | // Network Errors
73 |
/host/spi-builder-workspace/Sources/StormGlass/Networking/SGNetworking.swift:92:72: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
90 |
91 | if let httpResponse = response as? HTTPURLResponse,
92 | let error = SGServiceError(statusCode: httpResponse.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
93 | {
94 | completion(.failure(error))
[19/21] Compiling StormGlass SGNetworking.swift
/host/spi-builder-workspace/Sources/StormGlass/Networking/SGNetworking.swift:10:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | internal let endpoint: Endpoint
9 | internal let apiKeyOverride: String?
10 | internal let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 | public init(
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/StormGlass/Networking/SGNetworking.swift:15:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | endpoint: Endpoint,
14 | apiKey: String? = nil,
15 | urlSession: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | ) {
17 | self.endpoint = endpoint
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/StormGlass/Networking/SGNetworking.swift:15:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
13 | endpoint: Endpoint,
14 | apiKey: String? = nil,
15 | urlSession: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
16 | ) {
17 | self.endpoint = endpoint
/host/spi-builder-workspace/Sources/StormGlass/Networking/SGNetworking.swift:22:43: error: cannot find type 'URLRequest' in scope
20 | }
21 |
22 | internal func makeRequest() throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
23 | guard var components = URLComponents(string: SGConfiguration.shared.host) else {
24 | throw SGServiceError.badURL
/host/spi-builder-workspace/Sources/StormGlass/Networking/SGNetworking.swift:34:23: error: cannot find 'URLRequest' in scope
32 | }
33 |
34 | var request = URLRequest(
| `- error: cannot find 'URLRequest' in scope
35 | url: url,
36 | cachePolicy: .useProtocolCachePolicy
/host/spi-builder-workspace/Sources/StormGlass/Networking/SGNetworking.swift:36:27: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
34 | var request = URLRequest(
35 | url: url,
36 | cachePolicy: .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
37 | )
38 |
/host/spi-builder-workspace/Sources/StormGlass/Networking/SGNetworking.swift:71:39: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
69 | public func fetch(completion: @escaping (Result<Endpoint.Response, Error>) -> Void) {
70 | do {
71 | let task = try urlSession.dataTask(with: makeRequest()) { data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
72 | // Network Errors
73 |
/host/spi-builder-workspace/Sources/StormGlass/Networking/SGNetworking.swift:92:72: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
90 |
91 | if let httpResponse = response as? HTTPURLResponse,
92 | let error = SGServiceError(statusCode: httpResponse.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
93 | {
94 | completion(.failure(error))
[20/21] Compiling StormGlass SGDataSource.swift
/host/spi-builder-workspace/Sources/StormGlass/SGServiceError.swift:81:16: warning: stored property 'errors' of 'Sendable'-conforming struct 'SGErrorResponse' has non-sendable type 'SGErrorResponse.Item'; this is an error in the Swift 6 language mode
74 |
75 | public struct SGErrorResponse: Error, Decodable, CustomStringConvertible {
76 | public struct Item: Decodable {
| `- note: consider making struct 'Item' conform to the 'Sendable' protocol
77 | let key: String?
78 | let params: [String]?
79 | }
80 |
81 | public let errors: Item
| `- warning: stored property 'errors' of 'Sendable'-conforming struct 'SGErrorResponse' has non-sendable type 'SGErrorResponse.Item'; this is an error in the Swift 6 language mode
82 |
83 | public var description: String {
[21/21] Compiling StormGlass SGServiceError.swift
/host/spi-builder-workspace/Sources/StormGlass/SGServiceError.swift:81:16: warning: stored property 'errors' of 'Sendable'-conforming struct 'SGErrorResponse' has non-sendable type 'SGErrorResponse.Item'; this is an error in the Swift 6 language mode
74 |
75 | public struct SGErrorResponse: Error, Decodable, CustomStringConvertible {
76 | public struct Item: Decodable {
| `- note: consider making struct 'Item' conform to the 'Sendable' protocol
77 | let key: String?
78 | let params: [String]?
79 | }
80 |
81 | public let errors: Item
| `- warning: stored property 'errors' of 'Sendable'-conforming struct 'SGErrorResponse' has non-sendable type 'SGErrorResponse.Item'; this is an error in the Swift 6 language mode
82 |
83 | public var description: String {
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/18] Emitting module StormGlass
/host/spi-builder-workspace/Sources/StormGlass/Networking/SGNetworking.swift:10:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | internal let endpoint: Endpoint
9 | internal let apiKeyOverride: String?
10 | internal let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 | public init(
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/StormGlass/Networking/SGNetworking.swift:15:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | endpoint: Endpoint,
14 | apiKey: String? = nil,
15 | urlSession: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | ) {
17 | self.endpoint = endpoint
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/StormGlass/Networking/SGNetworking.swift:15:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
13 | endpoint: Endpoint,
14 | apiKey: String? = nil,
15 | urlSession: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
16 | ) {
17 | self.endpoint = endpoint
/host/spi-builder-workspace/Sources/StormGlass/Networking/SGNetworking.swift:22:43: error: cannot find type 'URLRequest' in scope
20 | }
21 |
22 | internal func makeRequest() throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
23 | guard var components = URLComponents(string: SGConfiguration.shared.host) else {
24 | throw SGServiceError.badURL
[3/20] Compiling StormGlass SGParameterEncodable.swift
[4/20] Compiling StormGlass SGConfiguration.swift
[5/20] Compiling StormGlass SGWeatherPointRequest.swift
/host/spi-builder-workspace/Sources/StormGlass/Networking/SGNetworking.swift:10:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | internal let endpoint: Endpoint
9 | internal let apiKeyOverride: String?
10 | internal let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 | public init(
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/StormGlass/Networking/SGNetworking.swift:15:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | endpoint: Endpoint,
14 | apiKey: String? = nil,
15 | urlSession: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | ) {
17 | self.endpoint = endpoint
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/StormGlass/Networking/SGNetworking.swift:15:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
13 | endpoint: Endpoint,
14 | apiKey: String? = nil,
15 | urlSession: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
16 | ) {
17 | self.endpoint = endpoint
/host/spi-builder-workspace/Sources/StormGlass/Networking/SGNetworking.swift:22:43: error: cannot find type 'URLRequest' in scope
20 | }
21 |
22 | internal func makeRequest() throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
23 | guard var components = URLComponents(string: SGConfiguration.shared.host) else {
24 | throw SGServiceError.badURL
/host/spi-builder-workspace/Sources/StormGlass/Networking/SGNetworking.swift:34:23: error: cannot find 'URLRequest' in scope
32 | }
33 |
34 | var request = URLRequest(
| `- error: cannot find 'URLRequest' in scope
35 | url: url,
36 | cachePolicy: .useProtocolCachePolicy
/host/spi-builder-workspace/Sources/StormGlass/Networking/SGNetworking.swift:36:27: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
34 | var request = URLRequest(
35 | url: url,
36 | cachePolicy: .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
37 | )
38 |
/host/spi-builder-workspace/Sources/StormGlass/Networking/SGNetworking.swift:71:39: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
69 | public func fetch(completion: @escaping (Result<Endpoint.Response, Error>) -> Void) {
70 | do {
71 | let task = try urlSession.dataTask(with: makeRequest()) { data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
72 | // Network Errors
73 |
/host/spi-builder-workspace/Sources/StormGlass/Networking/SGNetworking.swift:92:72: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
90 |
91 | if let httpResponse = response as? HTTPURLResponse,
92 | let error = SGServiceError(statusCode: httpResponse.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
93 | {
94 | completion(.failure(error))
[6/20] Compiling StormGlass SGNetworking.swift
/host/spi-builder-workspace/Sources/StormGlass/Networking/SGNetworking.swift:10:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | internal let endpoint: Endpoint
9 | internal let apiKeyOverride: String?
10 | internal let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 | public init(
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/StormGlass/Networking/SGNetworking.swift:15:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | endpoint: Endpoint,
14 | apiKey: String? = nil,
15 | urlSession: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | ) {
17 | self.endpoint = endpoint
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/StormGlass/Networking/SGNetworking.swift:15:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
13 | endpoint: Endpoint,
14 | apiKey: String? = nil,
15 | urlSession: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
16 | ) {
17 | self.endpoint = endpoint
/host/spi-builder-workspace/Sources/StormGlass/Networking/SGNetworking.swift:22:43: error: cannot find type 'URLRequest' in scope
20 | }
21 |
22 | internal func makeRequest() throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
23 | guard var components = URLComponents(string: SGConfiguration.shared.host) else {
24 | throw SGServiceError.badURL
/host/spi-builder-workspace/Sources/StormGlass/Networking/SGNetworking.swift:34:23: error: cannot find 'URLRequest' in scope
32 | }
33 |
34 | var request = URLRequest(
| `- error: cannot find 'URLRequest' in scope
35 | url: url,
36 | cachePolicy: .useProtocolCachePolicy
/host/spi-builder-workspace/Sources/StormGlass/Networking/SGNetworking.swift:36:27: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
34 | var request = URLRequest(
35 | url: url,
36 | cachePolicy: .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
37 | )
38 |
/host/spi-builder-workspace/Sources/StormGlass/Networking/SGNetworking.swift:71:39: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
69 | public func fetch(completion: @escaping (Result<Endpoint.Response, Error>) -> Void) {
70 | do {
71 | let task = try urlSession.dataTask(with: makeRequest()) { data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
72 | // Network Errors
73 |
/host/spi-builder-workspace/Sources/StormGlass/Networking/SGNetworking.swift:92:72: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
90 |
91 | if let httpResponse = response as? HTTPURLResponse,
92 | let error = SGServiceError(statusCode: httpResponse.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
93 | {
94 | completion(.failure(error))
[7/20] Compiling StormGlass SGTideStationsAreaRequest.swift
[8/20] Compiling StormGlass SGTideStationsListRequest.swift
[9/20] Compiling StormGlass SGSolarPointRequest.swift
[10/20] Compiling StormGlass SGTideDatum.swift
[11/20] Compiling StormGlass SGCoordinate.swift
[12/20] Compiling StormGlass SGEndpoint.swift
[13/20] Compiling StormGlass SGResponseMetadata.swift
[14/20] Compiling StormGlass SGTideExtremesPointRequest.swift
[15/20] Compiling StormGlass SGTideSeaLevelPointRequest.swift
[16/20] Compiling StormGlass SGDataSource.swift
[17/20] Compiling StormGlass SGServiceError.swift
[18/20] Compiling StormGlass SGAstronomyPointRequest.swift
[19/20] Compiling StormGlass SGBioPointRequest.swift
[20/20] Compiling StormGlass SGElevationPointRequest.swift
BUILD FAILURE 6.1 wasm