Build Information
Successful build of TypeSwift, reference 0.0.14 (9e7d2d), with Swift 6.1 for Android on 27 May 2025 12:16:36 UTC.
Swift 6 data race errors: 1
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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>&1Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/momeno/typeswift.git
Reference: 0.0.14
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
* tag 0.0.14 -> FETCH_HEAD
HEAD is now at 9e7d2d3 Fix model to support SuperInterfaces as associated types within Generic components
Cloned https://github.com/momeno/typeswift.git
Revision (git rev-parse @):
9e7d2d3a13d270ccb76435d6fb01b585b66d2c31
SUCCESS checkout https://github.com/momeno/typeswift.git at 0.0.14
========================================
Build
========================================
Selected platform: android
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-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:9f3c606dcd2a4f06d17ba472aa533c43685ba7ba19a5c9bc23518a066eb7f86a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-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 TypeScript+Constants.swift
[8/28] Compiling TypeSwift TypeScript.swift
[9/28] Compiling TypeSwift TypeScriptElement.swift
[10/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)
[11/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)
[12/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)
[13/28] Compiling TypeSwift InterfaceDeclaration.swift
[14/28] Compiling TypeSwift Model.swift
[15/28] Compiling TypeSwift ModelBody.swift
[16/28] Compiling TypeSwift Protocols.swift
[17/28] Compiling TypeSwift String+Help.swift
[18/28] Compiling TypeSwift String+RegexHelpers.swift
[19/28] Compiling TypeSwift ModelDeclaration.swift
[20/28] Compiling TypeSwift Permission.swift
[21/28] Compiling TypeSwift PropertyDefinition.swift
[22/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)
[23/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)
[24/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)
[25/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)
[26/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
[27/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
[28/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
Build complete! (13.63s)
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"
}
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:9f3c606dcd2a4f06d17ba472aa533c43685ba7ba19a5c9bc23518a066eb7f86a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Done.