The Swift Package Index logo.Swift Package Index

Build Information

Failed to build KituraContracts, reference master (043caa), with Swift 6.1 for Wasm on 28 May 2025 01:36:53 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Kitura/KituraContracts.git
Reference: master
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/Kitura/KituraContracts
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 043caa4 README: Update shields to use Swift Package Index
Cloned https://github.com/Kitura/KituraContracts.git
Revision (git rev-parse @):
043caa4530baa5835f6549205e031efa21f9f0e1
SUCCESS checkout https://github.com/Kitura/KituraContracts.git at master
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/Kitura/KituraContracts.git
https://github.com/Kitura/KituraContracts.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "loggerapi",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.0.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Kitura/LoggerAPI.git"
    }
  ],
  "manifest_display_name" : "KituraContracts",
  "name" : "KituraContracts",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "KituraContracts",
      "targets" : [
        "KituraContracts"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "KituraContractsTests",
      "module_type" : "SwiftTarget",
      "name" : "KituraContractsTests",
      "path" : "Tests/KituraContractsTests",
      "sources" : [
        "KituraContractsTests.swift",
        "Models.swift",
        "QueryCoderTests.swift",
        "StringExtensionTests.swift"
      ],
      "target_dependencies" : [
        "KituraContracts"
      ],
      "type" : "test"
    },
    {
      "c99name" : "KituraContracts",
      "module_type" : "SwiftTarget",
      "name" : "KituraContracts",
      "path" : "Sources/KituraContracts",
      "product_dependencies" : [
        "LoggerAPI"
      ],
      "product_memberships" : [
        "KituraContracts"
      ],
      "sources" : [
        "BodyDecoder.swift",
        "BodyEncoder.swift",
        "BodyFormat.swift",
        "ClosureAliases.swift",
        "CodableQuery/Coder.swift",
        "CodableQuery/Extensions.swift",
        "CodableQuery/QueryDecoder.swift",
        "CodableQuery/QueryEncoder.swift",
        "Contracts.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -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/Kitura/LoggerAPI.git
[1/771] Fetching loggerapi
Fetched https://github.com/Kitura/LoggerAPI.git from cache (0.37s)
Computing version for https://github.com/Kitura/LoggerAPI.git
Computed https://github.com/Kitura/LoggerAPI.git at 2.0.0 (1.39s)
Fetching https://github.com/apple/swift-log.git
[1/3836] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.50s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.95s)
Creating working copy for https://github.com/Kitura/LoggerAPI.git
Working copy of https://github.com/Kitura/LoggerAPI.git resolved at 2.0.0
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/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/9] Compiling Logging LogHandler.swift
[6/9] Compiling Logging Logging.swift
[7/9] Compiling Logging Locks.swift
[8/9] Emitting module Logging
[9/9] Compiling Logging MetadataProvider.swift
[11/12] Emitting module LoggerAPI
[12/12] Compiling LoggerAPI Logger.swift
[14/22] Compiling KituraContracts Coder.swift
[15/23] Compiling KituraContracts BodyDecoder.swift
[16/23] Compiling KituraContracts BodyEncoder.swift
[17/23] Compiling KituraContracts ClosureAliases.swift
[18/23] Compiling KituraContracts BodyFormat.swift
/host/spi-builder-workspace/Sources/KituraContracts/BodyFormat.swift:60:23: warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'BodyFormat' may have shared mutable state; this is an error in the Swift 6 language mode
37 |  ````
38 |  */
39 | public struct BodyFormat: Equatable {
   |               `- note: consider making struct 'BodyFormat' conform to the 'Sendable' protocol
40 |
41 |     /**
   :
58 |      The JSON representation of the response body.
59 |      */
60 |     public static let json = BodyFormat("application/json")
   |                       |- warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'BodyFormat' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'json' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | }
62 |
/host/spi-builder-workspace/Sources/KituraContracts/BodyFormat.swift:71:16: warning: stored property 'bodyFormat' of 'Sendable'-conforming struct 'UnsupportedBodyFormatError' has non-sendable type 'BodyFormat'; this is an error in the Swift 6 language mode
37 |  ````
38 |  */
39 | public struct BodyFormat: Equatable {
   |               `- note: consider making struct 'BodyFormat' conform to the 'Sendable' protocol
40 |
41 |     /**
   :
69 |      The format of the body.
70 |      */
71 |     public let bodyFormat: BodyFormat
   |                `- warning: stored property 'bodyFormat' of 'Sendable'-conforming struct 'UnsupportedBodyFormatError' has non-sendable type 'BodyFormat'; this is an error in the Swift 6 language mode
72 |     /**
73 |      Initialize `UnsupportedBodyFormatError` with the format of the body.
[19/23] Compiling KituraContracts Extensions.swift
/host/spi-builder-workspace/Sources/KituraContracts/CodableQuery/Extensions.swift:336:5: warning: var '_iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
334 | // ISO8601 Formatter used for formatting ISO8601 dates.
335 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
336 | var _iso8601Formatter: ISO8601DateFormatter = {
    |     |- warning: var '_iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert '_iso8601Formatter' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: add '@MainActor' to make var '_iso8601Formatter' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
337 | let formatter = ISO8601DateFormatter()
338 |     formatter.formatOptions = .withInternetDateTime
/host/spi-builder-workspace/Sources/KituraContracts/CodableQuery/Extensions.swift:214:25: error: 'let' binding pattern cannot appear in an expression
212 |
213 |         switch decoderStrategy {
214 |         case .formatted(let formatter):
    |                         `- error: 'let' binding pattern cannot appear in an expression
215 |             let strs: [String] = self.components(separatedBy: ",")
216 |             let dates = strs.map { formatter.date(from: $0) }.filter { $0 != nil }.map { $0! }
[20/23] Emitting module KituraContracts
/host/spi-builder-workspace/Sources/KituraContracts/BodyFormat.swift:60:23: warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'BodyFormat' may have shared mutable state; this is an error in the Swift 6 language mode
37 |  ````
38 |  */
39 | public struct BodyFormat: Equatable {
   |               `- note: consider making struct 'BodyFormat' conform to the 'Sendable' protocol
40 |
41 |     /**
   :
58 |      The JSON representation of the response body.
59 |      */
60 |     public static let json = BodyFormat("application/json")
   |                       |- warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'BodyFormat' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'json' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | }
62 |
/host/spi-builder-workspace/Sources/KituraContracts/BodyFormat.swift:71:16: warning: stored property 'bodyFormat' of 'Sendable'-conforming struct 'UnsupportedBodyFormatError' has non-sendable type 'BodyFormat'; this is an error in the Swift 6 language mode
37 |  ````
38 |  */
39 | public struct BodyFormat: Equatable {
   |               `- note: consider making struct 'BodyFormat' conform to the 'Sendable' protocol
40 |
41 |     /**
   :
69 |      The format of the body.
70 |      */
71 |     public let bodyFormat: BodyFormat
   |                `- warning: stored property 'bodyFormat' of 'Sendable'-conforming struct 'UnsupportedBodyFormatError' has non-sendable type 'BodyFormat'; this is an error in the Swift 6 language mode
72 |     /**
73 |      Initialize `UnsupportedBodyFormatError` with the format of the body.
/host/spi-builder-workspace/Sources/KituraContracts/CodableQuery/Extensions.swift:336:5: warning: var '_iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
334 | // ISO8601 Formatter used for formatting ISO8601 dates.
335 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
336 | var _iso8601Formatter: ISO8601DateFormatter = {
    |     |- warning: var '_iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert '_iso8601Formatter' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: add '@MainActor' to make var '_iso8601Formatter' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
337 | let formatter = ISO8601DateFormatter()
338 |     formatter.formatOptions = .withInternetDateTime
/host/spi-builder-workspace/Sources/KituraContracts/Contracts.swift:162:29: warning: stored property 'body' of 'Sendable'-conforming struct 'RequestError' has non-sendable type 'RequestError.ErrorBody?'; this is an error in the Swift 6 language mode
  48 |     May be a type-erased Codable object or a Data (in a particular format).
  49 |     */
  50 |     public enum ErrorBody {
     |                 `- note: consider making enum 'ErrorBody' conform to the 'Sendable' protocol
  51 |         /// Codable object.
  52 |         case codable(Codable)
     :
 160 |              can call the `bodyAs(_:)` function to get the converted value.
 161 |      */
 162 |     public private(set) var body: ErrorBody? = nil
     |                             `- warning: stored property 'body' of 'Sendable'-conforming struct 'RequestError' has non-sendable type 'RequestError.ErrorBody?'; this is an error in the Swift 6 language mode
 163 |
 164 |     // A closure used to hide the generic type of the Codable body
/host/spi-builder-workspace/Sources/KituraContracts/Contracts.swift:166:17: warning: stored property 'bodyDataEncoder' of 'Sendable'-conforming struct 'RequestError' has non-sendable type '((BodyFormat) throws -> Data)?'; this is an error in the Swift 6 language mode
 164 |     // A closure used to hide the generic type of the Codable body
 165 |     // for later encoding to Data.
 166 |     private var bodyDataEncoder: ((BodyFormat) throws -> Data)? = nil
     |                 |- warning: stored property 'bodyDataEncoder' of 'Sendable'-conforming struct 'RequestError' has non-sendable type '((BodyFormat) throws -> Data)?'; this is an error in the Swift 6 language mode
     |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 167 |
 168 |     /**
[21/23] Compiling KituraContracts QueryEncoder.swift
/host/spi-builder-workspace/Sources/KituraContracts/CodableQuery/QueryEncoder.swift:352:29: error: 'let' binding pattern cannot appear in an expression
350 |         case let fieldValue as Date:
351 |             switch encoder.dateEncodingStrategy {
352 |             case .formatted(let formatter):
    |                             `- error: 'let' binding pattern cannot appear in an expression
353 |                 encoder.dictionary[fieldName] = formatter.string(from: fieldValue)
354 |                 encoder.anyDictionary[fieldName] = fieldValue
/host/spi-builder-workspace/Sources/KituraContracts/CodableQuery/QueryEncoder.swift:406:29: error: 'let' binding pattern cannot appear in an expression
404 |                     fatalError("ISO8601DateFormatter is unavailable on this platform.")
405 |                 }
406 |             case .formatted(let formatter):
    |                             `- error: 'let' binding pattern cannot appear in an expression
407 |                 let strs: [String] = fieldValue.map { formatter.string(from: $0) }
408 |                 encoder.dictionary[fieldName] = strs.joined(separator: ",")
[22/23] Compiling KituraContracts QueryDecoder.swift
/host/spi-builder-workspace/Sources/KituraContracts/CodableQuery/QueryDecoder.swift:210:29: error: 'let' binding pattern cannot appear in an expression
208 |                     fatalError("ISO8601DateFormatter is unavailable on this platform.")
209 |                 }
210 |             case .formatted(let formatted):
    |                             `- error: 'let' binding pattern cannot appear in an expression
211 |                 return try decodeType(fieldValue?.date(formatted), to: T.self)
212 |             case .custom(let closure):
/host/spi-builder-workspace/Sources/KituraContracts/CodableQuery/QueryDecoder.swift:233:29: error: 'let' binding pattern cannot appear in an expression
231 |                     fatalError("ISO8601DateFormatter is unavailable on this platform.")
232 |                 }
233 |             case .formatted(let formatter):
    |                             `- error: 'let' binding pattern cannot appear in an expression
234 |                 return try decodeType(fieldValue?.dateArray(formatter), to: T.self)
235 |             case .custom(let closure):
[23/23] Compiling KituraContracts Contracts.swift
/host/spi-builder-workspace/Sources/KituraContracts/Contracts.swift:162:29: warning: stored property 'body' of 'Sendable'-conforming struct 'RequestError' has non-sendable type 'RequestError.ErrorBody?'; this is an error in the Swift 6 language mode
  48 |     May be a type-erased Codable object or a Data (in a particular format).
  49 |     */
  50 |     public enum ErrorBody {
     |                 `- note: consider making enum 'ErrorBody' conform to the 'Sendable' protocol
  51 |         /// Codable object.
  52 |         case codable(Codable)
     :
 160 |              can call the `bodyAs(_:)` function to get the converted value.
 161 |      */
 162 |     public private(set) var body: ErrorBody? = nil
     |                             `- warning: stored property 'body' of 'Sendable'-conforming struct 'RequestError' has non-sendable type 'RequestError.ErrorBody?'; this is an error in the Swift 6 language mode
 163 |
 164 |     // A closure used to hide the generic type of the Codable body
/host/spi-builder-workspace/Sources/KituraContracts/Contracts.swift:166:17: warning: stored property 'bodyDataEncoder' of 'Sendable'-conforming struct 'RequestError' has non-sendable type '((BodyFormat) throws -> Data)?'; this is an error in the Swift 6 language mode
 164 |     // A closure used to hide the generic type of the Codable body
 165 |     // for later encoding to Data.
 166 |     private var bodyDataEncoder: ((BodyFormat) throws -> Data)? = nil
     |                 |- warning: stored property 'bodyDataEncoder' of 'Sendable'-conforming struct 'RequestError' has non-sendable type '((BodyFormat) throws -> Data)?'; this is an error in the Swift 6 language mode
     |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 167 |
 168 |     /**
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/6] Emitting module Logging
[3/6] Compiling Logging LogHandler.swift
[4/6] Compiling Logging Locks.swift
[5/6] Compiling Logging Logging.swift
[6/6] Compiling Logging MetadataProvider.swift
[8/9] Emitting module LoggerAPI
[9/9] Compiling LoggerAPI Logger.swift
[11/19] Compiling KituraContracts ClosureAliases.swift
[12/20] Compiling KituraContracts BodyDecoder.swift
[13/20] Compiling KituraContracts BodyEncoder.swift
[14/20] Compiling KituraContracts BodyFormat.swift
[15/20] Compiling KituraContracts QueryEncoder.swift
/host/spi-builder-workspace/Sources/KituraContracts/CodableQuery/QueryEncoder.swift:352:29: error: 'let' binding pattern cannot appear in an expression
350 |         case let fieldValue as Date:
351 |             switch encoder.dateEncodingStrategy {
352 |             case .formatted(let formatter):
    |                             `- error: 'let' binding pattern cannot appear in an expression
353 |                 encoder.dictionary[fieldName] = formatter.string(from: fieldValue)
354 |                 encoder.anyDictionary[fieldName] = fieldValue
/host/spi-builder-workspace/Sources/KituraContracts/CodableQuery/QueryEncoder.swift:406:29: error: 'let' binding pattern cannot appear in an expression
404 |                     fatalError("ISO8601DateFormatter is unavailable on this platform.")
405 |                 }
406 |             case .formatted(let formatter):
    |                             `- error: 'let' binding pattern cannot appear in an expression
407 |                 let strs: [String] = fieldValue.map { formatter.string(from: $0) }
408 |                 encoder.dictionary[fieldName] = strs.joined(separator: ",")
[16/20] Compiling KituraContracts QueryDecoder.swift
/host/spi-builder-workspace/Sources/KituraContracts/CodableQuery/QueryDecoder.swift:210:29: error: 'let' binding pattern cannot appear in an expression
208 |                     fatalError("ISO8601DateFormatter is unavailable on this platform.")
209 |                 }
210 |             case .formatted(let formatted):
    |                             `- error: 'let' binding pattern cannot appear in an expression
211 |                 return try decodeType(fieldValue?.date(formatted), to: T.self)
212 |             case .custom(let closure):
/host/spi-builder-workspace/Sources/KituraContracts/CodableQuery/QueryDecoder.swift:233:29: error: 'let' binding pattern cannot appear in an expression
231 |                     fatalError("ISO8601DateFormatter is unavailable on this platform.")
232 |                 }
233 |             case .formatted(let formatter):
    |                             `- error: 'let' binding pattern cannot appear in an expression
234 |                 return try decodeType(fieldValue?.dateArray(formatter), to: T.self)
235 |             case .custom(let closure):
[17/20] Compiling KituraContracts Coder.swift
[18/20] Compiling KituraContracts Extensions.swift
/host/spi-builder-workspace/Sources/KituraContracts/CodableQuery/Extensions.swift:214:25: error: 'let' binding pattern cannot appear in an expression
212 |
213 |         switch decoderStrategy {
214 |         case .formatted(let formatter):
    |                         `- error: 'let' binding pattern cannot appear in an expression
215 |             let strs: [String] = self.components(separatedBy: ",")
216 |             let dates = strs.map { formatter.date(from: $0) }.filter { $0 != nil }.map { $0! }
[19/20] Emitting module KituraContracts
[20/20] Compiling KituraContracts Contracts.swift
BUILD FAILURE 6.1 wasm