Build Information
Successful build of ModelGen, reference 0.5.0 (af78ff
), with Swift 6.0 for macOS (SPM) on 31 Oct 2024 17:08:26 UTC.
Swift 6 data race errors: 9
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/hebertialmeida/modelgen.git
Reference: 0.5.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/hebertialmeida/modelgen
* tag 0.5.0 -> FETCH_HEAD
HEAD is now at af78ff3 Update main.swift
Cloned https://github.com/hebertialmeida/modelgen.git
Revision (git rev-parse @):
af78ff30926722ac381950704bef53495f517d05
SUCCESS checkout https://github.com/hebertialmeida/modelgen.git at 0.5.0
Fetching https://github.com/kylef/Commander.git
Fetching https://github.com/SwiftGen/StencilSwiftKit.git
Fetching https://github.com/jpsim/Yams.git
Fetching https://github.com/kylef/PathKit.git
Fetching https://github.com/kylef/Stencil.git
Fetching https://github.com/kylef/Spectre.git
[1/1411] Fetching pathkit
[185/2999] Fetching pathkit, commander
[360/7007] Fetching pathkit, commander, stencilswiftkit
[441/8028] Fetching pathkit, commander, stencilswiftkit, spectre
[1032/13217] Fetching pathkit, commander, stencilswiftkit, spectre, stencil
[1897/23119] Fetching pathkit, commander, stencilswiftkit, spectre, stencil, yams
Fetched https://github.com/kylef/Spectre.git from cache (1.05s)
[5574/22098] Fetching pathkit, commander, stencilswiftkit, stencil, yams
Fetched https://github.com/kylef/Stencil.git from cache (1.22s)
Fetched https://github.com/kylef/PathKit.git from cache (1.22s)
[2686/15498] Fetching commander, stencilswiftkit, yams
Fetched https://github.com/SwiftGen/StencilSwiftKit.git from cache (2.23s)
Fetched https://github.com/kylef/Commander.git from cache (2.23s)
[8120/9902] Fetching yams
Fetched https://github.com/jpsim/Yams.git from cache (2.51s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 1.0.1 (2.70s)
Computing version for https://github.com/SwiftGen/StencilSwiftKit.git
Computed https://github.com/SwiftGen/StencilSwiftKit.git at 2.7.2 (0.77s)
Computing version for https://github.com/kylef/Stencil.git
Computed https://github.com/kylef/Stencil.git at 0.13.1 (0.67s)
Computing version for https://github.com/kylef/PathKit.git
Computed https://github.com/kylef/PathKit.git at 0.9.2 (0.69s)
Computing version for https://github.com/kylef/Commander.git
Computed https://github.com/kylef/Commander.git at 0.8.0 (0.65s)
Computing version for https://github.com/kylef/Spectre.git
Computed https://github.com/kylef/Spectre.git at 0.9.0 (0.63s)
Creating working copy for https://github.com/kylef/Commander.git
Working copy of https://github.com/kylef/Commander.git resolved at 0.8.0
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/SwiftGen/StencilSwiftKit.git
Working copy of https://github.com/SwiftGen/StencilSwiftKit.git resolved at 2.7.2
Creating working copy for https://github.com/jpsim/Yams.git
Working copy of https://github.com/jpsim/Yams.git resolved at 1.0.1
Creating working copy for https://github.com/kylef/Spectre.git
Working copy of https://github.com/kylef/Spectre.git resolved at 0.9.0
Creating working copy for https://github.com/kylef/PathKit.git
Working copy of https://github.com/kylef/PathKit.git resolved at 0.9.2
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "modelgen",
"name": "ModelGen",
"url": "https://github.com/hebertialmeida/modelgen.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/modelgen",
"dependencies": [
{
"identity": "commander",
"name": "Commander",
"url": "https://github.com/kylef/Commander.git",
"version": "0.9.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Commander",
"dependencies": [
{
"identity": "spectre",
"name": "Spectre",
"url": "https://github.com/kylef/Spectre.git",
"version": "0.9.2",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Spectre",
"dependencies": [
]
}
]
},
{
"identity": "pathkit",
"name": "PathKit",
"url": "https://github.com/kylef/PathKit.git",
"version": "0.9.2",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/PathKit",
"dependencies": [
{
"identity": "spectre",
"name": "Spectre",
"url": "https://github.com/kylef/Spectre.git",
"version": "0.9.2",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Spectre",
"dependencies": [
]
}
]
},
{
"identity": "stencil",
"name": "Stencil",
"url": "https://github.com/kylef/Stencil.git",
"version": "0.13.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Stencil",
"dependencies": [
{
"identity": "pathkit",
"name": "PathKit",
"url": "https://github.com/kylef/PathKit.git",
"version": "0.9.2",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/PathKit",
"dependencies": [
{
"identity": "spectre",
"name": "Spectre",
"url": "https://github.com/kylef/Spectre.git",
"version": "0.9.2",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Spectre",
"dependencies": [
]
}
]
},
{
"identity": "spectre",
"name": "Spectre",
"url": "https://github.com/kylef/Spectre.git",
"version": "0.9.2",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Spectre",
"dependencies": [
]
}
]
},
{
"identity": "stencilswiftkit",
"name": "StencilSwiftKit",
"url": "https://github.com/SwiftGen/StencilSwiftKit.git",
"version": "2.7.2",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/StencilSwiftKit",
"dependencies": [
{
"identity": "stencil",
"name": "Stencil",
"url": "https://github.com/kylef/Stencil.git",
"version": "0.13.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Stencil",
"dependencies": [
{
"identity": "pathkit",
"name": "PathKit",
"url": "https://github.com/kylef/PathKit.git",
"version": "0.9.2",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/PathKit",
"dependencies": [
{
"identity": "spectre",
"name": "Spectre",
"url": "https://github.com/kylef/Spectre.git",
"version": "0.9.2",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Spectre",
"dependencies": [
]
}
]
},
{
"identity": "spectre",
"name": "Spectre",
"url": "https://github.com/kylef/Spectre.git",
"version": "0.9.2",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Spectre",
"dependencies": [
]
}
]
}
]
},
{
"identity": "yams",
"name": "Yams",
"url": "https://github.com/jpsim/Yams.git",
"version": "1.0.2",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Yams",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/hebertialmeida/modelgen.git
[1/1309] Fetching modelgen
Fetched https://github.com/hebertialmeida/modelgen.git from cache (0.98s)
Fetching https://github.com/SwiftGen/StencilSwiftKit.git from cache
Fetching https://github.com/kylef/Stencil.git from cache
Fetching https://github.com/jpsim/Yams.git from cache
Fetching https://github.com/kylef/PathKit.git from cache
Fetching https://github.com/kylef/Commander.git from cache
Fetched https://github.com/kylef/Commander.git from cache (0.51s)
Fetched https://github.com/kylef/Stencil.git from cache (0.51s)
Fetched https://github.com/kylef/PathKit.git from cache (0.61s)
Fetched https://github.com/SwiftGen/StencilSwiftKit.git from cache (0.61s)
Fetched https://github.com/jpsim/Yams.git from cache (0.61s)
Computing version for https://github.com/kylef/PathKit.git
Computed https://github.com/kylef/PathKit.git at 0.9.2 (0.03s)
Fetching https://github.com/kylef/Spectre.git from cache
Fetched https://github.com/kylef/Spectre.git from cache (0.45s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 1.0.2 (2.70s)
Computing version for https://github.com/kylef/Spectre.git
Computed https://github.com/kylef/Spectre.git at 0.9.2 (0.70s)
Computing version for https://github.com/kylef/Commander.git
Computed https://github.com/kylef/Commander.git at 0.9.1 (0.66s)
Computing version for https://github.com/SwiftGen/StencilSwiftKit.git
Computed https://github.com/SwiftGen/StencilSwiftKit.git at 2.10.1 (0.66s)
Fetching https://github.com/shibapm/Komondor.git
[1/509] Fetching komondor
Fetched https://github.com/shibapm/Komondor.git from cache (0.92s)
Computing version for https://github.com/shibapm/Komondor.git
Computed https://github.com/shibapm/Komondor.git at 1.1.3 (0.65s)
Fetching https://github.com/shibapm/PackageConfig.git
Fetching https://github.com/JohnSundell/ShellOut.git
[1/960] Fetching shellout
[155/1540] Fetching shellout, packageconfig
Fetched https://github.com/shibapm/PackageConfig.git from cache (0.76s)
[682/960] Fetching shellout
Fetched https://github.com/JohnSundell/ShellOut.git from cache (0.85s)
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.03s)
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.04s)
Creating working copy for https://github.com/kylef/Spectre.git
Working copy of https://github.com/kylef/Spectre.git resolved at 0.9.2
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/SwiftGen/StencilSwiftKit.git
Working copy of https://github.com/SwiftGen/StencilSwiftKit.git resolved at 2.7.2
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/Commander.git
Working copy of https://github.com/kylef/Commander.git resolved at 0.9.1
Creating working copy for https://github.com/hebertialmeida/modelgen.git
Working copy of https://github.com/hebertialmeida/modelgen.git resolved at 0.5.0 (af78ff3)
Creating working copy for https://github.com/kylef/Stencil.git
Working copy of https://github.com/kylef/Stencil.git resolved at 0.13.1
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.
Found 5 product dependencies
- Commander
- PathKit
- Stencil
- StencilSwiftKit
- Yams
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/hebertialmeida/modelgen.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/17] Write sources
[4/17] Write modelgen-entitlement.plist
[5/17] Write sources
[7/17] Write swift-version--7754E27361AE5C74.txt
[8/29] Compiling writer.c
[9/29] Compiling parser.c
[10/29] Compiling reader.c
[11/29] Compiling api.c
[12/29] Compiling emitter.c
[13/29] Compiling scanner.c
[15/45] Emitting module Yams
[16/46] Compiling Commander Group.swift
[17/46] Compiling Commander Error.swift
[18/46] Emitting module Commander
[19/46] Compiling Commander ArgumentConvertible.swift
[20/46] Compiling Commander Commands.swift
[21/46] Compiling Commander CommandRunner.swift
[22/46] Compiling Commander CommandType.swift
[23/46] Compiling Commander ArgumentDescription.swift
[24/46] Compiling Commander ArgumentParser.swift
[25/46] Compiling Commander Command.swift
[26/46] Compiling Yams shim.swift
[27/46] Compiling Yams YamlError.swift
[28/46] Compiling Yams Tag.swift
[29/46] Compiling PathKit PathKit.swift
[30/46] Emitting module PathKit
[31/46] Compiling Yams Representer.swift
[32/46] Compiling Yams Resolver.swift
[33/46] Compiling Yams Emitter.swift
[34/46] Compiling Yams Encoder.swift
[35/46] Compiling Yams Mark.swift
[36/46] Compiling Yams Node.Mapping.swift
[37/46] Compiling Yams Node.swift
[38/46] Compiling Yams Parser.swift
[39/46] Compiling Yams Node.Scalar.swift
[40/46] Compiling Yams Node.Sequence.swift
[41/46] Compiling Yams String+Yams.swift
[42/46] Compiling Yams Constructor.swift
[43/46] Compiling Yams Decoder.swift
[44/65] Compiling Stencil Inheritence.swift
[45/65] Compiling Stencil KeyPath.swift
[46/67] Compiling Stencil Extension.swift
[47/67] Compiling Stencil FilterTag.swift
[48/67] Compiling Stencil Context.swift
[49/67] Compiling Stencil Environment.swift
[50/67] Compiling Stencil Errors.swift
[51/67] Compiling Stencil Expression.swift
[52/67] Emitting module Stencil
[53/67] Compiling Stencil Filters.swift
[54/67] Compiling Stencil ForTag.swift
[55/67] Compiling Stencil Parser.swift
[56/67] Compiling Stencil Template.swift
[57/67] Compiling Stencil Node.swift
[58/67] Compiling Stencil NowTag.swift
[59/67] Compiling Stencil IfTag.swift
[60/67] Compiling Stencil Include.swift
[61/67] Compiling Stencil Lexer.swift
[62/67] Compiling Stencil Loader.swift
[63/67] Compiling Stencil Tokenizer.swift
[64/67] Compiling Stencil Variable.swift
[65/78] Compiling StencilSwiftKit StencilSwiftTemplate.swift
[66/79] Compiling StencilSwiftKit MapNode.swift
[67/79] Compiling StencilSwiftKit SetNode.swift
[68/79] Compiling StencilSwiftKit Parameters.swift
[69/79] Compiling StencilSwiftKit Filters+Numbers.swift
[70/79] Emitting module StencilSwiftKit
[71/79] Compiling StencilSwiftKit Filters.swift
[72/79] Compiling StencilSwiftKit CallMacroNodes.swift
[73/79] Compiling StencilSwiftKit Context.swift
[74/79] Compiling StencilSwiftKit Filters+Strings.swift
[75/79] Compiling StencilSwiftKit Environment.swift
[76/79] Compiling StencilSwiftKit SwiftIdentifier.swift
[77/90] Compiling ModelGen Utils.swift
/Users/admin/builder/spi-builder-workspace/Sources/Utils.swift:14: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
12 | // MARK: - Global
13 |
14 | 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: annotate 'jsonAbsolutePath' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | var currentFile = Path()
16 |
/Users/admin/builder/spi-builder-workspace/Sources/Utils.swift:15: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
13 |
14 | var jsonAbsolutePath = Path()
15 | 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: annotate 'currentFile' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | // MARK: - Validators
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Utils.swift:26:5: 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
24 | }
25 |
26 | 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: annotate 'pathExists' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 | let fileExists = checkPath(type: "file") { $0.isFile }
28 | let dirExists = checkPath(type: "directory") { $0.isDirectory }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Utils.swift:27: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
25 |
26 | let pathExists = checkPath(type: "path") { $0.exists }
27 | 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: annotate 'fileExists' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | let dirExists = checkPath(type: "directory") { $0.isDirectory }
29 | 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'
/Users/admin/builder/spi-builder-workspace/Sources/Utils.swift:28: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
26 | let pathExists = checkPath(type: "path") { $0.exists }
27 | let fileExists = checkPath(type: "file") { $0.isFile }
28 | 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: annotate 'dirExists' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | let pathsExist = { (paths: [Path]) throws -> [Path] in try paths.map(pathExists) }
30 | 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'
/Users/admin/builder/spi-builder-workspace/Sources/Utils.swift:29: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
27 | let fileExists = checkPath(type: "file") { $0.isFile }
28 | let dirExists = checkPath(type: "directory") { $0.isDirectory }
29 | 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: annotate 'pathsExist' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 | let filesExist = { (paths: [Path]) throws -> [Path] in try paths.map(fileExists) }
31 | 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'
/Users/admin/builder/spi-builder-workspace/Sources/Utils.swift:30: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
28 | let dirExists = checkPath(type: "directory") { $0.isDirectory }
29 | let pathsExist = { (paths: [Path]) throws -> [Path] in try paths.map(pathExists) }
30 | 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: annotate 'filesExist' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | let dirsExist = { (paths: [Path]) throws -> [Path] in try paths.map(dirExists) }
32 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Utils.swift:31: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
29 | let pathsExist = { (paths: [Path]) throws -> [Path] in try paths.map(pathExists) }
30 | let filesExist = { (paths: [Path]) throws -> [Path] in try paths.map(fileExists) }
31 | 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: annotate 'dirsExist' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 |
33 | // MARK: - Path as Input Argument
/Users/admin/builder/spi-builder-workspace/Sources/Utils.swift:35: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
33 | // MARK: - Path as Input Argument
34 |
35 | 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
36 | public init(parser: ArgumentParser) throws {
37 | guard let path = parser.shift() else {
[78/90] Compiling ModelGen YamlParser.swift
[79/91] Emitting module ModelGen
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Utils.swift:26:5: 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
24 | }
25 |
26 | 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: annotate 'pathExists' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 | let fileExists = checkPath(type: "file") { $0.isFile }
28 | let dirExists = checkPath(type: "directory") { $0.isDirectory }
/Users/admin/builder/spi-builder-workspace/Sources/Error.swift:67: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
65 |
66 | enum TemplateError: Error, LocalizedError {
67 | 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
68 | case noTemplateProvided
69 |
/Users/admin/builder/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 = "/"
/Users/admin/builder/spi-builder-workspace/Sources/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 | enum JsonParserError: Error, LocalizedError {
/Users/admin/builder/spi-builder-workspace/Sources/Utils.swift:14: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
12 | // MARK: - Global
13 |
14 | 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: annotate 'jsonAbsolutePath' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | var currentFile = Path()
16 |
/Users/admin/builder/spi-builder-workspace/Sources/Utils.swift:15: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
13 |
14 | var jsonAbsolutePath = Path()
15 | 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: annotate 'currentFile' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | // MARK: - Validators
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Utils.swift:27: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
25 |
26 | let pathExists = checkPath(type: "path") { $0.exists }
27 | 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: annotate 'fileExists' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | let dirExists = checkPath(type: "directory") { $0.isDirectory }
29 | 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'
/Users/admin/builder/spi-builder-workspace/Sources/Utils.swift:28: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
26 | let pathExists = checkPath(type: "path") { $0.exists }
27 | let fileExists = checkPath(type: "file") { $0.isFile }
28 | 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: annotate 'dirExists' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | let pathsExist = { (paths: [Path]) throws -> [Path] in try paths.map(pathExists) }
30 | 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'
/Users/admin/builder/spi-builder-workspace/Sources/Utils.swift:29: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
27 | let fileExists = checkPath(type: "file") { $0.isFile }
28 | let dirExists = checkPath(type: "directory") { $0.isDirectory }
29 | 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: annotate 'pathsExist' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 | let filesExist = { (paths: [Path]) throws -> [Path] in try paths.map(fileExists) }
31 | 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'
/Users/admin/builder/spi-builder-workspace/Sources/Utils.swift:30: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
28 | let dirExists = checkPath(type: "directory") { $0.isDirectory }
29 | let pathsExist = { (paths: [Path]) throws -> [Path] in try paths.map(pathExists) }
30 | 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: annotate 'filesExist' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | let dirsExist = { (paths: [Path]) throws -> [Path] in try paths.map(dirExists) }
32 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Utils.swift:31: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
29 | let pathsExist = { (paths: [Path]) throws -> [Path] in try paths.map(pathExists) }
30 | let filesExist = { (paths: [Path]) throws -> [Path] in try paths.map(fileExists) }
31 | 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: annotate 'dirsExist' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 |
33 | // MARK: - Path as Input Argument
/Users/admin/builder/spi-builder-workspace/Sources/Utils.swift:35: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
33 | // MARK: - Path as Input Argument
34 |
35 | 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
36 | public init(parser: ArgumentParser) throws {
37 | guard let path = parser.shift() else {
[80/91] Compiling ModelGen Configuration.swift
/Users/admin/builder/spi-builder-workspace/Sources/Error.swift:67: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
65 |
66 | enum TemplateError: Error, LocalizedError {
67 | 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
68 | case noTemplateProvided
69 |
/Users/admin/builder/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 = "/"
/Users/admin/builder/spi-builder-workspace/Sources/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 | enum JsonParserError: Error, LocalizedError {
/Users/admin/builder/spi-builder-workspace/Sources/Utils.swift:15: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
13 |
14 | var jsonAbsolutePath = Path()
15 | 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: annotate 'currentFile' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | // MARK: - Validators
[81/91] Compiling ModelGen Error.swift
/Users/admin/builder/spi-builder-workspace/Sources/Error.swift:67: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
65 |
66 | enum TemplateError: Error, LocalizedError {
67 | 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
68 | case noTemplateProvided
69 |
/Users/admin/builder/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 = "/"
/Users/admin/builder/spi-builder-workspace/Sources/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 | enum JsonParserError: Error, LocalizedError {
/Users/admin/builder/spi-builder-workspace/Sources/Utils.swift:15: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
13 |
14 | var jsonAbsolutePath = Path()
15 | 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: annotate 'currentFile' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | // MARK: - Validators
[82/91] Compiling ModelGen Schema.swift
/Users/admin/builder/spi-builder-workspace/Sources/Utils.swift:14: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
12 | // MARK: - Global
13 |
14 | 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: annotate 'jsonAbsolutePath' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | var currentFile = Path()
16 |
[83/91] Compiling ModelGen Filters.swift
[84/91] Compiling ModelGen String+Helpers.swift
[85/91] Compiling ModelGen LanguageType.swift
[86/91] Compiling ModelGen JsonParser.swift
/Users/admin/builder/spi-builder-workspace/Sources/Utils.swift:15: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
13 |
14 | var jsonAbsolutePath = Path()
15 | 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: annotate 'currentFile' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | // MARK: - Validators
/Users/admin/builder/spi-builder-workspace/Sources/Utils.swift:14: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
12 | // MARK: - Global
13 |
14 | 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: annotate 'jsonAbsolutePath' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | var currentFile = Path()
16 |
[87/91] Compiling ModelGen JsonParser+Context.swift
[88/91] Compiling ModelGen main.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Utils.swift:26:5: 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
24 | }
25 |
26 | 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: annotate 'pathExists' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 | let fileExists = checkPath(type: "file") { $0.isFile }
28 | let dirExists = checkPath(type: "directory") { $0.isDirectory }
[88/91] Write Objects.LinkFileList
[89/91] Linking modelgen
[90/91] Applying modelgen
Build complete! (26.96s)
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Sources/Example': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Sources/Formula': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Tests/Formula': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Tests/Example': File not found.
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.
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" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "modelgen",
"targets" : [
"ModelGen"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "ModelGen",
"module_type" : "SwiftTarget",
"name" : "ModelGen",
"path" : "Sources",
"product_dependencies" : [
"Commander",
"PathKit",
"Stencil",
"StencilSwiftKit",
"Yams"
],
"product_memberships" : [
"modelgen"
],
"sources" : [
"Configuration.swift",
"Error.swift",
"Filters.swift",
"JsonParser+Context.swift",
"JsonParser.swift",
"LanguageType.swift",
"Schema.swift",
"String+Helpers.swift",
"Utils.swift",
"YamlParser.swift",
"main.swift"
],
"type" : "executable"
},
{
"c99name" : "CommandLineToolTests",
"module_type" : "SwiftTarget",
"name" : "CommandLineToolTests",
"path" : "Tests",
"sources" : [
"ModelGenTests.swift"
],
"target_dependencies" : [
"ModelGen"
],
"type" : "test"
}
],
"tools_version" : "4.2"
}
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Sources/Example': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Sources/Formula': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Tests/Formula': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Tests/Example': File not found.
Done.