The Swift Package Index logo.Swift Package Index

Build Information

Successful build of TypeSwift, reference master (7f5f5a), with Swift 6.1 for Wasm on 27 May 2025 12:16:19 UTC.

Swift 6 data race errors: 1

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-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

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/momeno/typeswift.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/momeno/typeswift
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 7f5f5ac Update README.md
Cloned https://github.com/momeno/typeswift.git
Revision (git rev-parse @):
7f5f5ac71055191ae0d4adc088a0073165ba9402
SUCCESS checkout https://github.com/momeno/typeswift.git at master
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/momeno/typeswift.git
https://github.com/momeno/typeswift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "TypeSwift",
  "name" : "TypeSwift",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "TypeSwift",
      "targets" : [
        "TypeSwift"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TypeSwiftTests",
      "module_type" : "SwiftTarget",
      "name" : "TypeSwiftTests",
      "path" : "Tests/TypeSwiftTests",
      "sources" : [
        "StringHelperTests.swift",
        "TypeSwiftTests.swift"
      ],
      "target_dependencies" : [
        "TypeSwift"
      ],
      "type" : "test"
    },
    {
      "c99name" : "TypeSwift",
      "module_type" : "SwiftTarget",
      "name" : "TypeSwift",
      "path" : "Sources/TypeSwift",
      "product_memberships" : [
        "TypeSwift"
      ],
      "sources" : [
        "AccessLevel.swift",
        "CodeBlock.swift",
        "Expression.swift",
        "Function.swift",
        "FunctionDeclaration.swift",
        "Interface.swift",
        "InterfaceBody.swift",
        "InterfaceDeclaration.swift",
        "Model.swift",
        "ModelBody.swift",
        "ModelDeclaration.swift",
        "Permission.swift",
        "PropertyDefinition.swift",
        "Protocols.swift",
        "String+Help.swift",
        "String+RegexHelpers.swift",
        "String+Trim.swift",
        "SwiftNumber.swift",
        "Type.swift",
        "TypeScript+Constants.swift",
        "TypeScript.swift",
        "TypeScriptElement.swift",
        "TypeScriptError.swift",
        "TypeSwift.swift",
        "VariableType.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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:059e0fdbe549369b902c0d423739510ddee50a4a70258d1404125eb9394ef31c
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/25] Emitting module TypeSwift
/host/spi-builder-workspace/Sources/TypeSwift/TypeSwift.swift:9:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'TypeSwift' may have shared mutable state; this is an error in the Swift 6 language mode
 5 | }
 6 |
 7 | public struct TypeSwift {
   |               `- note: consider making struct 'TypeSwift' conform to the 'Sendable' protocol
 8 |
 9 |     public static let shared = TypeSwift()
   |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'TypeSwift' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- 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
10 |
11 |     public func convert(file: URL, to language: Language, output url: URL) throws {
[4/28] Compiling TypeSwift TypeScriptError.swift
/host/spi-builder-workspace/Sources/TypeSwift/TypeSwift.swift:9:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'TypeSwift' may have shared mutable state; this is an error in the Swift 6 language mode
 5 | }
 6 |
 7 | public struct TypeSwift {
   |               `- note: consider making struct 'TypeSwift' conform to the 'Sendable' protocol
 8 |
 9 |     public static let shared = TypeSwift()
   |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'TypeSwift' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- 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
10 |
11 |     public func convert(file: URL, to language: Language, output url: URL) throws {
[5/28] Compiling TypeSwift TypeSwift.swift
/host/spi-builder-workspace/Sources/TypeSwift/TypeSwift.swift:9:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'TypeSwift' may have shared mutable state; this is an error in the Swift 6 language mode
 5 | }
 6 |
 7 | public struct TypeSwift {
   |               `- note: consider making struct 'TypeSwift' conform to the 'Sendable' protocol
 8 |
 9 |     public static let shared = TypeSwift()
   |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'TypeSwift' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- 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
10 |
11 |     public func convert(file: URL, to language: Language, output url: URL) throws {
[6/28] Compiling TypeSwift VariableType.swift
/host/spi-builder-workspace/Sources/TypeSwift/TypeSwift.swift:9:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'TypeSwift' may have shared mutable state; this is an error in the Swift 6 language mode
 5 | }
 6 |
 7 | public struct TypeSwift {
   |               `- note: consider making struct 'TypeSwift' conform to the 'Sendable' protocol
 8 |
 9 |     public static let shared = TypeSwift()
   |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'TypeSwift' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- 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
10 |
11 |     public func convert(file: URL, to language: Language, output url: URL) throws {
[7/28] Compiling TypeSwift FunctionDeclaration.swift
/host/spi-builder-workspace/Sources/TypeSwift/FunctionDeclaration.swift:85:14: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
83 |
84 |         self.functionParams = try params.componentsWithoutPadding(separatedBy: ",")
85 |             .flatMap(PropertyDefinition.init)
   |              |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
   |              `- note: use 'compactMap(_:)' instead
86 |
87 |         self.typescript = typescript
[8/28] Compiling TypeSwift Interface.swift
/host/spi-builder-workspace/Sources/TypeSwift/FunctionDeclaration.swift:85:14: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
83 |
84 |         self.functionParams = try params.componentsWithoutPadding(separatedBy: ",")
85 |             .flatMap(PropertyDefinition.init)
   |              |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
   |              `- note: use 'compactMap(_:)' instead
86 |
87 |         self.typescript = typescript
[9/28] Compiling TypeSwift InterfaceBody.swift
/host/spi-builder-workspace/Sources/TypeSwift/FunctionDeclaration.swift:85:14: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
83 |
84 |         self.functionParams = try params.componentsWithoutPadding(separatedBy: ",")
85 |             .flatMap(PropertyDefinition.init)
   |              |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
   |              `- note: use 'compactMap(_:)' instead
86 |
87 |         self.typescript = typescript
[10/28] Compiling TypeSwift AccessLevel.swift
/host/spi-builder-workspace/Sources/TypeSwift/CodeBlock.swift:40:14: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
38 |         let expressionEndingSet = CharacterSet(charactersIn: "\n;")
39 |         let expressions = try innerString.componentsWithoutPadding(separatedBy: expressionEndingSet)
40 |             .flatMap(Expression.init(typescript:))
   |              |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
   |              `- note: use 'compactMap(_:)' instead
41 |
42 |         self = .expressions(expressions)
[11/28] Compiling TypeSwift CodeBlock.swift
/host/spi-builder-workspace/Sources/TypeSwift/CodeBlock.swift:40:14: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
38 |         let expressionEndingSet = CharacterSet(charactersIn: "\n;")
39 |         let expressions = try innerString.componentsWithoutPadding(separatedBy: expressionEndingSet)
40 |             .flatMap(Expression.init(typescript:))
   |              |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
   |              `- note: use 'compactMap(_:)' instead
41 |
42 |         self = .expressions(expressions)
[12/28] Compiling TypeSwift Expression.swift
/host/spi-builder-workspace/Sources/TypeSwift/CodeBlock.swift:40:14: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
38 |         let expressionEndingSet = CharacterSet(charactersIn: "\n;")
39 |         let expressions = try innerString.componentsWithoutPadding(separatedBy: expressionEndingSet)
40 |             .flatMap(Expression.init(typescript:))
   |              |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
   |              `- note: use 'compactMap(_:)' instead
41 |
42 |         self = .expressions(expressions)
[13/28] Compiling TypeSwift Function.swift
/host/spi-builder-workspace/Sources/TypeSwift/CodeBlock.swift:40:14: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
38 |         let expressionEndingSet = CharacterSet(charactersIn: "\n;")
39 |         let expressions = try innerString.componentsWithoutPadding(separatedBy: expressionEndingSet)
40 |             .flatMap(Expression.init(typescript:))
   |              |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
   |              `- note: use 'compactMap(_:)' instead
41 |
42 |         self = .expressions(expressions)
[14/28] Compiling TypeSwift InterfaceDeclaration.swift
[15/28] Compiling TypeSwift Model.swift
[16/28] Compiling TypeSwift ModelBody.swift
[17/28] Compiling TypeSwift ModelDeclaration.swift
[18/28] Compiling TypeSwift Permission.swift
[19/28] Compiling TypeSwift PropertyDefinition.swift
[20/28] Compiling TypeSwift TypeScript+Constants.swift
[21/28] Compiling TypeSwift TypeScript.swift
[22/28] Compiling TypeSwift TypeScriptElement.swift
[23/28] Compiling TypeSwift Protocols.swift
[24/28] Compiling TypeSwift String+Help.swift
[25/28] Compiling TypeSwift String+RegexHelpers.swift
[26/28] Compiling TypeSwift String+Trim.swift
/host/spi-builder-workspace/Sources/TypeSwift/Type.swift:96:66: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
 94 |             self = .tuple(type1, type2)
 95 |         } else if let generic = typescript.extractGenericType() {
 96 |             self = .generic(generic.name, try generic.associates.flatMap(Type.init(typescript:)))
    |                                                                  |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
    |                                                                  `- note: use 'compactMap(_:)' instead
 97 |         } else {
 98 |             self = .custom(typescript)
[27/28] Compiling TypeSwift SwiftNumber.swift
/host/spi-builder-workspace/Sources/TypeSwift/Type.swift:96:66: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
 94 |             self = .tuple(type1, type2)
 95 |         } else if let generic = typescript.extractGenericType() {
 96 |             self = .generic(generic.name, try generic.associates.flatMap(Type.init(typescript:)))
    |                                                                  |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
    |                                                                  `- note: use 'compactMap(_:)' instead
 97 |         } else {
 98 |             self = .custom(typescript)
[28/28] Compiling TypeSwift Type.swift
/host/spi-builder-workspace/Sources/TypeSwift/Type.swift:96:66: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
 94 |             self = .tuple(type1, type2)
 95 |         } else if let generic = typescript.extractGenericType() {
 96 |             self = .generic(generic.name, try generic.associates.flatMap(Type.init(typescript:)))
    |                                                                  |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
    |                                                                  `- note: use 'compactMap(_:)' instead
 97 |         } else {
 98 |             self = .custom(typescript)
Build complete! (9.47s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "TypeSwift",
  "name" : "TypeSwift",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "TypeSwift",
      "targets" : [
        "TypeSwift"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TypeSwiftTests",
      "module_type" : "SwiftTarget",
      "name" : "TypeSwiftTests",
      "path" : "Tests/TypeSwiftTests",
      "sources" : [
        "StringHelperTests.swift",
        "TypeSwiftTests.swift"
      ],
      "target_dependencies" : [
        "TypeSwift"
      ],
      "type" : "test"
    },
    {
      "c99name" : "TypeSwift",
      "module_type" : "SwiftTarget",
      "name" : "TypeSwift",
      "path" : "Sources/TypeSwift",
      "product_memberships" : [
        "TypeSwift"
      ],
      "sources" : [
        "AccessLevel.swift",
        "CodeBlock.swift",
        "Expression.swift",
        "Function.swift",
        "FunctionDeclaration.swift",
        "Interface.swift",
        "InterfaceBody.swift",
        "InterfaceDeclaration.swift",
        "Model.swift",
        "ModelBody.swift",
        "ModelDeclaration.swift",
        "Permission.swift",
        "PropertyDefinition.swift",
        "Protocols.swift",
        "String+Help.swift",
        "String+RegexHelpers.swift",
        "String+Trim.swift",
        "SwiftNumber.swift",
        "Type.swift",
        "TypeScript+Constants.swift",
        "TypeScript.swift",
        "TypeScriptElement.swift",
        "TypeScriptError.swift",
        "TypeSwift.swift",
        "VariableType.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:059e0fdbe549369b902c0d423739510ddee50a4a70258d1404125eb9394ef31c
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Done.