The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build StormGlass, reference 1.0.0 (917c32), with Swift 6.1 for Wasm on 28 May 2025 01:09:29 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>&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: 1.0.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/cruisea-app/stormglass-swift
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at 917c32b Enable code coverage
Cloned https://github.com/cruisea-app/stormglass-swift.git
Revision (git rev-parse @):
917c32b003b0c5d16dcdbcb9f5784f07814df042
SUCCESS checkout https://github.com/cruisea-app/stormglass-swift.git at 1.0.0
========================================
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-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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/19] Compiling StormGlass SGTideStationsAreaRequest.swift
[4/19] Compiling StormGlass SGTideStationsListRequest.swift
[5/19] Compiling StormGlass SGSolarPointRequest.swift
[6/19] Compiling StormGlass SGTideDatum.swift
[7/19] 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 |
[8/19] 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 |
[9/19] 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 |
[10/19] 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 |
[11/19] 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 |
[12/19] Compiling StormGlass SGTideExtremesPointRequest.swift
[13/19] Compiling StormGlass SGTideSeaLevelPointRequest.swift
[14/19] 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))
[15/19] 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))
error: emit-module command failed with exit code 1 (use -v to see invocation)
[16/21] Compiling StormGlass SGAstronomyPointRequest.swift
[17/21] Compiling StormGlass SGBioPointRequest.swift
[18/21] Compiling StormGlass SGElevationPointRequest.swift
[19/21] 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 {
[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-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/18] Compiling StormGlass SGTideStationsAreaRequest.swift
[3/18] Compiling StormGlass SGTideStationsListRequest.swift
[4/20] Compiling StormGlass SGParameterEncodable.swift
[5/20] Compiling StormGlass SGConfiguration.swift
[6/20] Compiling StormGlass SGCoordinate.swift
[7/20] Compiling StormGlass SGEndpoint.swift
[8/20] Compiling StormGlass SGResponseMetadata.swift
[9/20] Compiling StormGlass SGSolarPointRequest.swift
[10/20] Compiling StormGlass SGTideDatum.swift
[11/20] Compiling StormGlass SGTideExtremesPointRequest.swift
[12/20] Compiling StormGlass SGTideSeaLevelPointRequest.swift
[13/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))
[14/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))
[15/20] Compiling StormGlass SGDataSource.swift
[16/20] Compiling StormGlass SGServiceError.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[17/20] Compiling StormGlass SGAstronomyPointRequest.swift
[18/20] Compiling StormGlass SGBioPointRequest.swift
[19/20] Compiling StormGlass SGElevationPointRequest.swift
[20/20] 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
BUILD FAILURE 6.1 wasm