Build Information
Successful build of ModelGen, reference master (d2e7c2
), with Swift 6.1 for Linux on 25 Apr 2025 15:17:15 UTC.
Swift 6 data race errors: 9
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -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.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/hebertialmeida/modelgen.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/hebertialmeida/modelgen
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at d2e7c28 Sort imports
Cloned https://github.com/hebertialmeida/modelgen.git
Revision (git rev-parse @):
d2e7c28897fd4cd449995c98f0c4f16f8e3d3d28
SUCCESS checkout https://github.com/hebertialmeida/modelgen.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.1
Building package at path: $PWD
https://github.com/hebertialmeida/modelgen.git
https://github.com/hebertialmeida/modelgen.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "commander",
"requirement" : {
"range" : [
{
"lower_bound" : "0.8.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/kylef/Commander.git"
},
{
"identity" : "pathkit",
"requirement" : {
"range" : [
{
"lower_bound" : "0.9.2",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/kylef/PathKit.git"
},
{
"identity" : "stencil",
"requirement" : {
"range" : [
{
"lower_bound" : "0.13.1",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/kylef/Stencil.git"
},
{
"identity" : "stencilswiftkit",
"requirement" : {
"range" : [
{
"lower_bound" : "2.7.2",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/SwiftGen/StencilSwiftKit.git"
},
{
"identity" : "yams",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.1",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/jpsim/Yams.git"
}
],
"manifest_display_name" : "ModelGen",
"name" : "ModelGen",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "modelgen",
"targets" : [
"ModelGen"
],
"type" : {
"executable" : null
}
},
{
"name" : "ModelGenKit",
"targets" : [
"ModelGenKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ModelGenTests",
"module_type" : "SwiftTarget",
"name" : "ModelGenTests",
"path" : "Tests/ModelGenTests",
"sources" : [
"Core/TestUtils.swift",
"Tests/ConfigurationTest.swift",
"Tests/ErrorTests.swift",
"Tests/FiltersTest.swift",
"Tests/SchemaTests.swift",
"Tests/YamlParserTest.swift"
],
"target_dependencies" : [
"ModelGenKit"
],
"type" : "test"
},
{
"c99name" : "ModelGenKit",
"module_type" : "SwiftTarget",
"name" : "ModelGenKit",
"path" : "Sources/ModelGenKit",
"product_dependencies" : [
"Commander",
"PathKit",
"Stencil",
"StencilSwiftKit",
"Yams"
],
"product_memberships" : [
"modelgen",
"ModelGenKit"
],
"sources" : [
"Configuration.swift",
"Error.swift",
"Filters.swift",
"JsonParser+Context.swift",
"JsonParser.swift",
"LanguageType.swift",
"Schema.swift",
"String+Helpers.swift",
"Utils.swift",
"YamlParser.swift"
],
"type" : "library"
},
{
"c99name" : "ModelGen",
"module_type" : "SwiftTarget",
"name" : "ModelGen",
"path" : "Sources/ModelGen",
"product_memberships" : [
"modelgen"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"ModelGenKit"
],
"type" : "executable"
}
],
"tools_version" : "4.2"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -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
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/kylef/PathKit.git
Fetching https://github.com/kylef/Commander.git
Fetching https://github.com/jpsim/Yams.git
Fetching https://github.com/SwiftGen/StencilSwiftKit.git
Fetching https://github.com/kylef/Stencil.git
[1/1411] Fetching pathkit
[58/2999] Fetching pathkit, commander
[3000/7007] Fetching pathkit, commander, stencilswiftkit
[3562/17296] Fetching pathkit, commander, stencilswiftkit, yams
[3603/22589] Fetching pathkit, commander, stencilswiftkit, yams, stencil
Fetched https://github.com/kylef/Commander.git from cache (0.30s)
[5331/21001] Fetching pathkit, stencilswiftkit, yams, stencil
Fetched https://github.com/kylef/PathKit.git from cache (1.30s)
Fetched https://github.com/kylef/Stencil.git from cache (1.31s)
Fetched https://github.com/jpsim/Yams.git from cache (1.50s)
Fetched https://github.com/SwiftGen/StencilSwiftKit.git from cache (1.72s)
Computing version for https://github.com/kylef/PathKit.git
Computed https://github.com/kylef/PathKit.git at 0.9.2 (2.87s)
Fetching https://github.com/kylef/Spectre.git
[1/1021] Fetching spectre
Fetched https://github.com/kylef/Spectre.git from cache (0.24s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 1.0.2 (2.20s)
Computing version for https://github.com/kylef/Spectre.git
Computed https://github.com/kylef/Spectre.git at 0.9.2 (0.56s)
Computing version for https://github.com/kylef/Commander.git
Computed https://github.com/kylef/Commander.git at 0.9.1 (0.62s)
Computing version for https://github.com/SwiftGen/StencilSwiftKit.git
Computed https://github.com/SwiftGen/StencilSwiftKit.git at 2.10.1 (0.49s)
Fetching https://github.com/shibapm/Komondor.git
[1/509] Fetching komondor
Fetched https://github.com/shibapm/Komondor.git from cache (0.22s)
Computing version for https://github.com/shibapm/Komondor.git
Computed https://github.com/shibapm/Komondor.git at 1.1.3 (0.90s)
Fetching https://github.com/shibapm/PackageConfig.git
Fetching https://github.com/JohnSundell/ShellOut.git
[1/960] Fetching shellout
[789/1540] Fetching shellout, packageconfig
Fetched https://github.com/JohnSundell/ShellOut.git from cache (0.76s)
Fetched https://github.com/shibapm/PackageConfig.git from cache (0.76s)
Computing version for https://github.com/kylef/Stencil.git
Computed https://github.com/jpsim/Yams.git at 1.0.2 (0.00s)
Computed https://github.com/kylef/Spectre.git at 0.9.2 (0.00s)
Computed https://github.com/kylef/Stencil.git at 0.13.1 (0.86s)
Computed https://github.com/kylef/Commander.git at 0.9.1 (0.00s)
Computed https://github.com/SwiftGen/StencilSwiftKit.git at 2.7.2 (0.47s)
Creating working copy for https://github.com/SwiftGen/StencilSwiftKit.git
Working copy of https://github.com/SwiftGen/StencilSwiftKit.git resolved at 2.7.2
Creating working copy for https://github.com/kylef/Commander.git
Working copy of https://github.com/kylef/Commander.git resolved at 0.9.1
Creating working copy for https://github.com/kylef/PathKit.git
Working copy of https://github.com/kylef/PathKit.git resolved at 0.9.2
Creating working copy for https://github.com/kylef/Stencil.git
Working copy of https://github.com/kylef/Stencil.git resolved at 0.13.1
Creating working copy for https://github.com/jpsim/Yams.git
Working copy of https://github.com/jpsim/Yams.git resolved at 1.0.2
Creating working copy for https://github.com/kylef/Spectre.git
Working copy of https://github.com/kylef/Spectre.git resolved at 0.9.2
warning: 'stencilswiftkit': 'stencilswiftkit' dependency on 'https://github.com/stencilproject/Stencil.git' conflicts with dependency on 'https://github.com/kylef/Stencil.git' which has the same identity 'stencil'. this will be escalated to an error in future versions of SwiftPM.
Building for debugging...
[0/23] Write sources
[7/23] Compiling writer.c
[8/23] Compiling reader.c
[9/23] Compiling parser.c
[10/23] Compiling api.c
[11/23] Write swift-version-24593BA9C3E375BF.txt
[12/23] Compiling scanner.c
[13/23] Compiling emitter.c
[15/49] Compiling Yams Mark.swift
[16/49] Compiling Yams Node.Mapping.swift
[17/51] Compiling Yams YamlError.swift
[18/51] Compiling Yams shim.swift
[19/51] Compiling Commander Error.swift
[20/52] Emitting module Yams
[21/52] Compiling Yams Emitter.swift
[22/52] Compiling Yams Encoder.swift
[23/52] Compiling Yams Constructor.swift
[24/52] Compiling Yams Decoder.swift
[25/52] Compiling Yams String+Yams.swift
[26/52] Compiling Yams Tag.swift
[27/52] Compiling Yams Node.Scalar.swift
[28/52] Compiling Yams Node.Sequence.swift
[29/52] Compiling Yams Representer.swift
[30/52] Compiling Yams Resolver.swift
[31/52] Compiling Yams Node.swift
[32/52] Compiling Yams Parser.swift
[34/53] Compiling Commander Group.swift
[35/53] Emitting module PathKit
[36/53] Compiling PathKit PathKit.swift
[37/54] Compiling Commander CommandType.swift
[38/54] Compiling Commander CommandRunner.swift
[41/54] Compiling Commander Command.swift
[42/54] Compiling Commander ArgumentParser.swift
[43/54] Compiling Commander Commands.swift
[44/54] Emitting module Commander
[45/55] Wrapping AST for Yams for debugging
[47/55] Wrapping AST for PathKit for debugging
[48/55] Wrapping AST for Commander for debugging
[50/74] Emitting module Stencil
[51/76] Compiling Stencil Parser.swift
[52/76] Compiling Stencil Template.swift
[53/76] Compiling Stencil Include.swift
[54/76] Compiling Stencil Inheritence.swift
[55/76] Compiling Stencil KeyPath.swift
[56/76] Compiling Stencil Context.swift
[57/76] Compiling Stencil Environment.swift
[58/76] Compiling Stencil Errors.swift
[59/76] Compiling Stencil Lexer.swift
[60/76] Compiling Stencil Loader.swift
[61/76] Compiling Stencil Node.swift
[62/76] Compiling Stencil NowTag.swift
[63/76] Compiling Stencil Filters.swift
[64/76] Compiling Stencil ForTag.swift
[65/76] Compiling Stencil IfTag.swift
[66/76] Compiling Stencil Expression.swift
[67/76] Compiling Stencil Extension.swift
[68/76] Compiling Stencil FilterTag.swift
[69/76] Compiling Stencil Tokenizer.swift
[70/76] Compiling Stencil Variable.swift
[71/77] Wrapping AST for Stencil for debugging
[73/88] Compiling StencilSwiftKit MapNode.swift
[74/89] Compiling StencilSwiftKit StencilSwiftTemplate.swift
[75/89] Compiling StencilSwiftKit SetNode.swift
[76/89] Compiling StencilSwiftKit Parameters.swift
[77/89] Emitting module StencilSwiftKit
[78/89] Compiling StencilSwiftKit Environment.swift
[79/89] Compiling StencilSwiftKit Filters+Numbers.swift
[80/89] Compiling StencilSwiftKit CallMacroNodes.swift
[81/89] Compiling StencilSwiftKit Context.swift
[82/89] Compiling StencilSwiftKit Filters+Strings.swift
[83/89] Compiling StencilSwiftKit Filters.swift
[84/89] Compiling StencilSwiftKit SwiftIdentifier.swift
[85/100] Wrapping AST for StencilSwiftKit for debugging
[87/100] Compiling ModelGenKit String+Helpers.swift
[88/101] Compiling ModelGenKit Utils.swift
/host/spi-builder-workspace/Sources/ModelGenKit/Utils.swift:15:5: warning: var 'jsonAbsolutePath' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 | // MARK: - Global
14 |
15 | var jsonAbsolutePath = Path()
| |- warning: var 'jsonAbsolutePath' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'jsonAbsolutePath' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'jsonAbsolutePath' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | var currentFile = Path()
17 |
/host/spi-builder-workspace/Sources/ModelGenKit/Utils.swift:16:5: warning: var 'currentFile' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | var jsonAbsolutePath = Path()
16 | var currentFile = Path()
| |- warning: var 'currentFile' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'currentFile' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'currentFile' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 | // MARK: - Validators
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/ModelGenKit/Utils.swift:27:12: warning: let 'pathExists' is not concurrency-safe because non-'Sendable' type '(Path) throws -> Path' may have shared mutable state; this is an error in the Swift 6 language mode
25 | }
26 |
27 | public let pathExists = checkPath(type: "path") { $0.exists }
| |- warning: let 'pathExists' is not concurrency-safe because non-'Sendable' type '(Path) throws -> Path' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'pathExists' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | let fileExists = checkPath(type: "file") { $0.isFile }
29 | let dirExists = checkPath(type: "directory") { $0.isDirectory }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/ModelGenKit/Utils.swift:28:5: warning: let 'fileExists' is not concurrency-safe because non-'Sendable' type '(Path) throws -> Path' may have shared mutable state; this is an error in the Swift 6 language mode
26 |
27 | public let pathExists = checkPath(type: "path") { $0.exists }
28 | let fileExists = checkPath(type: "file") { $0.isFile }
| |- warning: let 'fileExists' is not concurrency-safe because non-'Sendable' type '(Path) throws -> Path' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'fileExists' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | let dirExists = checkPath(type: "directory") { $0.isDirectory }
30 | let pathsExist = { (paths: [Path]) throws -> [Path] in try paths.map(pathExists) }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/ModelGenKit/Utils.swift:29:5: warning: let 'dirExists' is not concurrency-safe because non-'Sendable' type '(Path) throws -> Path' may have shared mutable state; this is an error in the Swift 6 language mode
27 | public let pathExists = checkPath(type: "path") { $0.exists }
28 | let fileExists = checkPath(type: "file") { $0.isFile }
29 | let dirExists = checkPath(type: "directory") { $0.isDirectory }
| |- warning: let 'dirExists' is not concurrency-safe because non-'Sendable' type '(Path) throws -> Path' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'dirExists' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 | let pathsExist = { (paths: [Path]) throws -> [Path] in try paths.map(pathExists) }
31 | let filesExist = { (paths: [Path]) throws -> [Path] in try paths.map(fileExists) }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/ModelGenKit/Utils.swift:30:5: warning: let 'pathsExist' is not concurrency-safe because non-'Sendable' type '([Path]) throws -> [Path]' may have shared mutable state; this is an error in the Swift 6 language mode
28 | let fileExists = checkPath(type: "file") { $0.isFile }
29 | let dirExists = checkPath(type: "directory") { $0.isDirectory }
30 | let pathsExist = { (paths: [Path]) throws -> [Path] in try paths.map(pathExists) }
| |- warning: let 'pathsExist' is not concurrency-safe because non-'Sendable' type '([Path]) throws -> [Path]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'pathsExist' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | let filesExist = { (paths: [Path]) throws -> [Path] in try paths.map(fileExists) }
32 | let dirsExist = { (paths: [Path]) throws -> [Path] in try paths.map(dirExists) }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/ModelGenKit/Utils.swift:31:5: warning: let 'filesExist' is not concurrency-safe because non-'Sendable' type '([Path]) throws -> [Path]' may have shared mutable state; this is an error in the Swift 6 language mode
29 | let dirExists = checkPath(type: "directory") { $0.isDirectory }
30 | let pathsExist = { (paths: [Path]) throws -> [Path] in try paths.map(pathExists) }
31 | let filesExist = { (paths: [Path]) throws -> [Path] in try paths.map(fileExists) }
| |- warning: let 'filesExist' is not concurrency-safe because non-'Sendable' type '([Path]) throws -> [Path]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'filesExist' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 | let dirsExist = { (paths: [Path]) throws -> [Path] in try paths.map(dirExists) }
33 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/ModelGenKit/Utils.swift:32:5: warning: let 'dirsExist' is not concurrency-safe because non-'Sendable' type '([Path]) throws -> [Path]' may have shared mutable state; this is an error in the Swift 6 language mode
30 | let pathsExist = { (paths: [Path]) throws -> [Path] in try paths.map(pathExists) }
31 | let filesExist = { (paths: [Path]) throws -> [Path] in try paths.map(fileExists) }
32 | let dirsExist = { (paths: [Path]) throws -> [Path] in try paths.map(dirExists) }
| |- warning: let 'dirsExist' is not concurrency-safe because non-'Sendable' type '([Path]) throws -> [Path]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'dirsExist' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | // MARK: - Path as Input Argument
/host/spi-builder-workspace/Sources/ModelGenKit/Utils.swift:36:1: warning: extension declares a conformance of imported type 'Path' to imported protocol 'ArgumentConvertible'; this will not behave correctly if the owners of 'PathKit' introduce this conformance in the future
34 | // MARK: - Path as Input Argument
35 |
36 | extension Path: ArgumentConvertible {
| |- warning: extension declares a conformance of imported type 'Path' to imported protocol 'ArgumentConvertible'; this will not behave correctly if the owners of 'PathKit' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
37 | public init(parser: ArgumentParser) throws {
38 | guard let path = parser.shift() else {
[89/101] Compiling ModelGenKit YamlParser.swift
[90/101] Compiling ModelGenKit LanguageType.swift
[91/101] Compiling ModelGenKit JsonParser.swift
[92/101] Compiling ModelGenKit Schema.swift
[93/101] Compiling ModelGenKit Configuration.swift
/host/spi-builder-workspace/Sources/ModelGenKit/Error.swift:73:10: warning: associated value 'templatePathNotFound(path:)' of 'Sendable'-conforming enum 'TemplateError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
71 |
72 | public enum TemplateError: Error, LocalizedError {
73 | case templatePathNotFound(path: Path)
| `- warning: associated value 'templatePathNotFound(path:)' of 'Sendable'-conforming enum 'TemplateError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
74 | case noTemplateProvided
75 |
/host/spi-builder-workspace/.build/checkouts/PathKit/Sources/PathKit.swift:17:15: note: struct 'Path' does not conform to the 'Sendable' protocol
15 |
16 | /// Represents a filesystem path.
17 | public struct Path {
| `- note: struct 'Path' does not conform to the 'Sendable' protocol
18 | /// The character used by the OS to separate two path elements
19 | public static let separator = "/"
/host/spi-builder-workspace/Sources/ModelGenKit/Error.swift:10:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'PathKit'
8 |
9 | import Foundation
10 | import PathKit
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'PathKit'
11 |
12 | public enum JsonParserError: Error, LocalizedError {
/host/spi-builder-workspace/Sources/ModelGenKit/Error.swift:107:48: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
105 |
106 | func fputs(_ message: String, color: ANSI, shouldExit: Bool = false) {
107 | fputs("\(color)\(message)\(ANSI.reset)\n", stderr)
| `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
108 | guard shouldExit else { return }
109 | exit(1)
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin; /* Standard input stream. */
144 | extern FILE *stdout; /* Standard output stream. */
145 | extern FILE *stderr; /* Standard error output stream. */
| `- note: var declared here
146 | /* C89/C99 say they're macros. Make them happy. */
147 | #define stdin stdin
[94/101] Compiling ModelGenKit Error.swift
/host/spi-builder-workspace/Sources/ModelGenKit/Error.swift:73:10: warning: associated value 'templatePathNotFound(path:)' of 'Sendable'-conforming enum 'TemplateError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
71 |
72 | public enum TemplateError: Error, LocalizedError {
73 | case templatePathNotFound(path: Path)
| `- warning: associated value 'templatePathNotFound(path:)' of 'Sendable'-conforming enum 'TemplateError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
74 | case noTemplateProvided
75 |
/host/spi-builder-workspace/.build/checkouts/PathKit/Sources/PathKit.swift:17:15: note: struct 'Path' does not conform to the 'Sendable' protocol
15 |
16 | /// Represents a filesystem path.
17 | public struct Path {
| `- note: struct 'Path' does not conform to the 'Sendable' protocol
18 | /// The character used by the OS to separate two path elements
19 | public static let separator = "/"
/host/spi-builder-workspace/Sources/ModelGenKit/Error.swift:10:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'PathKit'
8 |
9 | import Foundation
10 | import PathKit
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'PathKit'
11 |
12 | public enum JsonParserError: Error, LocalizedError {
/host/spi-builder-workspace/Sources/ModelGenKit/Error.swift:107:48: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
105 |
106 | func fputs(_ message: String, color: ANSI, shouldExit: Bool = false) {
107 | fputs("\(color)\(message)\(ANSI.reset)\n", stderr)
| `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
108 | guard shouldExit else { return }
109 | exit(1)
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin; /* Standard input stream. */
144 | extern FILE *stdout; /* Standard output stream. */
145 | extern FILE *stderr; /* Standard error output stream. */
| `- note: var declared here
146 | /* C89/C99 say they're macros. Make them happy. */
147 | #define stdin stdin
[95/101] Emitting module ModelGenKit
/host/spi-builder-workspace/Sources/ModelGenKit/Error.swift:73:10: warning: associated value 'templatePathNotFound(path:)' of 'Sendable'-conforming enum 'TemplateError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
71 |
72 | public enum TemplateError: Error, LocalizedError {
73 | case templatePathNotFound(path: Path)
| `- warning: associated value 'templatePathNotFound(path:)' of 'Sendable'-conforming enum 'TemplateError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
74 | case noTemplateProvided
75 |
/host/spi-builder-workspace/.build/checkouts/PathKit/Sources/PathKit.swift:17:15: note: struct 'Path' does not conform to the 'Sendable' protocol
15 |
16 | /// Represents a filesystem path.
17 | public struct Path {
| `- note: struct 'Path' does not conform to the 'Sendable' protocol
18 | /// The character used by the OS to separate two path elements
19 | public static let separator = "/"
/host/spi-builder-workspace/Sources/ModelGenKit/Error.swift:10:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'PathKit'
8 |
9 | import Foundation
10 | import PathKit
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'PathKit'
11 |
12 | public enum JsonParserError: Error, LocalizedError {
/host/spi-builder-workspace/Sources/ModelGenKit/Utils.swift:15:5: warning: var 'jsonAbsolutePath' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 | // MARK: - Global
14 |
15 | var jsonAbsolutePath = Path()
| |- warning: var 'jsonAbsolutePath' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'jsonAbsolutePath' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'jsonAbsolutePath' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | var currentFile = Path()
17 |
/host/spi-builder-workspace/Sources/ModelGenKit/Utils.swift:16:5: warning: var 'currentFile' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | var jsonAbsolutePath = Path()
16 | var currentFile = Path()
| |- warning: var 'currentFile' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'currentFile' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'currentFile' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 | // MARK: - Validators
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/ModelGenKit/Utils.swift:27:12: warning: let 'pathExists' is not concurrency-safe because non-'Sendable' type '(Path) throws -> Path' may have shared mutable state; this is an error in the Swift 6 language mode
25 | }
26 |
27 | public let pathExists = checkPath(type: "path") { $0.exists }
| |- warning: let 'pathExists' is not concurrency-safe because non-'Sendable' type '(Path) throws -> Path' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'pathExists' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | let fileExists = checkPath(type: "file") { $0.isFile }
29 | let dirExists = checkPath(type: "directory") { $0.isDirectory }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/ModelGenKit/Utils.swift:28:5: warning: let 'fileExists' is not concurrency-safe because non-'Sendable' type '(Path) throws -> Path' may have shared mutable state; this is an error in the Swift 6 language mode
26 |
27 | public let pathExists = checkPath(type: "path") { $0.exists }
28 | let fileExists = checkPath(type: "file") { $0.isFile }
| |- warning: let 'fileExists' is not concurrency-safe because non-'Sendable' type '(Path) throws -> Path' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'fileExists' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | let dirExists = checkPath(type: "directory") { $0.isDirectory }
30 | let pathsExist = { (paths: [Path]) throws -> [Path] in try paths.map(pathExists) }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/ModelGenKit/Utils.swift:29:5: warning: let 'dirExists' is not concurrency-safe because non-'Sendable' type '(Path) throws -> Path' may have shared mutable state; this is an error in the Swift 6 language mode
27 | public let pathExists = checkPath(type: "path") { $0.exists }
28 | let fileExists = checkPath(type: "file") { $0.isFile }
29 | let dirExists = checkPath(type: "directory") { $0.isDirectory }
| |- warning: let 'dirExists' is not concurrency-safe because non-'Sendable' type '(Path) throws -> Path' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'dirExists' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 | let pathsExist = { (paths: [Path]) throws -> [Path] in try paths.map(pathExists) }
31 | let filesExist = { (paths: [Path]) throws -> [Path] in try paths.map(fileExists) }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/ModelGenKit/Utils.swift:30:5: warning: let 'pathsExist' is not concurrency-safe because non-'Sendable' type '([Path]) throws -> [Path]' may have shared mutable state; this is an error in the Swift 6 language mode
28 | let fileExists = checkPath(type: "file") { $0.isFile }
29 | let dirExists = checkPath(type: "directory") { $0.isDirectory }
30 | let pathsExist = { (paths: [Path]) throws -> [Path] in try paths.map(pathExists) }
| |- warning: let 'pathsExist' is not concurrency-safe because non-'Sendable' type '([Path]) throws -> [Path]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'pathsExist' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | let filesExist = { (paths: [Path]) throws -> [Path] in try paths.map(fileExists) }
32 | let dirsExist = { (paths: [Path]) throws -> [Path] in try paths.map(dirExists) }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/ModelGenKit/Utils.swift:31:5: warning: let 'filesExist' is not concurrency-safe because non-'Sendable' type '([Path]) throws -> [Path]' may have shared mutable state; this is an error in the Swift 6 language mode
29 | let dirExists = checkPath(type: "directory") { $0.isDirectory }
30 | let pathsExist = { (paths: [Path]) throws -> [Path] in try paths.map(pathExists) }
31 | let filesExist = { (paths: [Path]) throws -> [Path] in try paths.map(fileExists) }
| |- warning: let 'filesExist' is not concurrency-safe because non-'Sendable' type '([Path]) throws -> [Path]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'filesExist' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 | let dirsExist = { (paths: [Path]) throws -> [Path] in try paths.map(dirExists) }
33 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/ModelGenKit/Utils.swift:32:5: warning: let 'dirsExist' is not concurrency-safe because non-'Sendable' type '([Path]) throws -> [Path]' may have shared mutable state; this is an error in the Swift 6 language mode
30 | let pathsExist = { (paths: [Path]) throws -> [Path] in try paths.map(pathExists) }
31 | let filesExist = { (paths: [Path]) throws -> [Path] in try paths.map(fileExists) }
32 | let dirsExist = { (paths: [Path]) throws -> [Path] in try paths.map(dirExists) }
| |- warning: let 'dirsExist' is not concurrency-safe because non-'Sendable' type '([Path]) throws -> [Path]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'dirsExist' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | // MARK: - Path as Input Argument
/host/spi-builder-workspace/Sources/ModelGenKit/Utils.swift:36:1: warning: extension declares a conformance of imported type 'Path' to imported protocol 'ArgumentConvertible'; this will not behave correctly if the owners of 'PathKit' introduce this conformance in the future
34 | // MARK: - Path as Input Argument
35 |
36 | extension Path: ArgumentConvertible {
| |- warning: extension declares a conformance of imported type 'Path' to imported protocol 'ArgumentConvertible'; this will not behave correctly if the owners of 'PathKit' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
37 | public init(parser: ArgumentParser) throws {
38 | guard let path = parser.shift() else {
[96/101] Compiling ModelGenKit Filters.swift
[97/101] Compiling ModelGenKit JsonParser+Context.swift
[98/102] Wrapping AST for ModelGenKit for debugging
[100/104] Emitting module ModelGen
[101/104] Compiling ModelGen main.swift
[102/105] Wrapping AST for ModelGen for debugging
[103/105] Write Objects.LinkFileList
[104/105] Linking modelgen
Build complete! (33.89s)
Build complete.
{
"dependencies" : [
{
"identity" : "commander",
"requirement" : {
"range" : [
{
"lower_bound" : "0.8.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/kylef/Commander.git"
},
{
"identity" : "pathkit",
"requirement" : {
"range" : [
{
"lower_bound" : "0.9.2",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/kylef/PathKit.git"
},
{
"identity" : "stencil",
"requirement" : {
"range" : [
{
"lower_bound" : "0.13.1",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/kylef/Stencil.git"
},
{
"identity" : "stencilswiftkit",
"requirement" : {
"range" : [
{
"lower_bound" : "2.7.2",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/SwiftGen/StencilSwiftKit.git"
},
{
"identity" : "yams",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.1",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/jpsim/Yams.git"
}
],
"manifest_display_name" : "ModelGen",
"name" : "ModelGen",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "modelgen",
"targets" : [
"ModelGen"
],
"type" : {
"executable" : null
}
},
{
"name" : "ModelGenKit",
"targets" : [
"ModelGenKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ModelGenTests",
"module_type" : "SwiftTarget",
"name" : "ModelGenTests",
"path" : "Tests/ModelGenTests",
"sources" : [
"Core/TestUtils.swift",
"Tests/ConfigurationTest.swift",
"Tests/ErrorTests.swift",
"Tests/FiltersTest.swift",
"Tests/SchemaTests.swift",
"Tests/YamlParserTest.swift"
],
"target_dependencies" : [
"ModelGenKit"
],
"type" : "test"
},
{
"c99name" : "ModelGenKit",
"module_type" : "SwiftTarget",
"name" : "ModelGenKit",
"path" : "Sources/ModelGenKit",
"product_dependencies" : [
"Commander",
"PathKit",
"Stencil",
"StencilSwiftKit",
"Yams"
],
"product_memberships" : [
"modelgen",
"ModelGenKit"
],
"sources" : [
"Configuration.swift",
"Error.swift",
"Filters.swift",
"JsonParser+Context.swift",
"JsonParser.swift",
"LanguageType.swift",
"Schema.swift",
"String+Helpers.swift",
"Utils.swift",
"YamlParser.swift"
],
"type" : "library"
},
{
"c99name" : "ModelGen",
"module_type" : "SwiftTarget",
"name" : "ModelGen",
"path" : "Sources/ModelGen",
"product_memberships" : [
"modelgen"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"ModelGenKit"
],
"type" : "executable"
}
],
"tools_version" : "4.2"
}
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Done.