Build Information
Successful build of ModelGen with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 10
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/hebertialmeida/modelgen.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
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: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/hebertialmeida/modelgen.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/18] Write sources
[5/18] Write modelgen-entitlement.plist
[8/18] Write swift-version-6F35C1178C84523A.txt
[9/30] Compiling writer.c
[10/30] Compiling reader.c
[11/30] Compiling emitter.c
[12/30] Compiling scanner.c
[13/30] Compiling api.c
[14/30] Compiling parser.c
[16/46] Compiling Commander CommandType.swift
[17/46] Compiling Commander Group.swift
[18/46] Compiling Commander ArgumentParser.swift
[19/46] Compiling Commander ArgumentDescription.swift
[20/46] Compiling Commander ArgumentConvertible.swift
[21/46] Emitting module Commander
[22/46] Compiling Commander Command.swift
[23/46] Compiling Commander CommandRunner.swift
[24/46] Compiling Commander Error.swift
[25/46] Compiling Commander Commands.swift
[26/46] Compiling Yams Tag.swift
[27/47] Compiling Yams shim.swift
[28/47] Compiling Yams String+Yams.swift
[29/47] Compiling Yams YamlError.swift
[30/47] Compiling PathKit PathKit.swift
[31/47] Emitting module PathKit
[32/47] Compiling Yams Node.Scalar.swift
[33/47] Compiling Yams Node.Sequence.swift
[34/47] Compiling Yams Representer.swift
[35/47] Compiling Yams Resolver.swift
[36/47] Compiling Yams Mark.swift
[37/47] Compiling Yams Node.Mapping.swift
[38/47] Compiling Yams Node.swift
[39/47] Compiling Yams Parser.swift
[40/47] Compiling Yams Emitter.swift
[41/47] Compiling Yams Encoder.swift
[42/47] Emitting module Yams
[43/47] Compiling Yams Constructor.swift
[44/47] Compiling Yams Decoder.swift
[45/66] Compiling Stencil Lexer.swift
[46/66] Compiling Stencil Loader.swift
[47/68] Compiling Stencil Parser.swift
[48/68] Compiling Stencil Template.swift
[49/68] Compiling Stencil IfTag.swift
[50/68] Compiling Stencil Include.swift
[51/68] Compiling Stencil Inheritence.swift
[52/68] Compiling Stencil KeyPath.swift
[53/68] Compiling Stencil Node.swift
[54/68] Compiling Stencil NowTag.swift
[55/68] Compiling Stencil Extension.swift
[56/68] Compiling Stencil FilterTag.swift
[57/68] Compiling Stencil Filters.swift
[58/68] Compiling Stencil ForTag.swift
[59/68] Emitting module Stencil
[60/68] Compiling Stencil Errors.swift
[61/68] Compiling Stencil Expression.swift
[62/68] Compiling Stencil Context.swift
[63/68] Compiling Stencil Environment.swift
[64/68] Compiling Stencil Tokenizer.swift
[65/68] Compiling Stencil Variable.swift
[66/79] Compiling StencilSwiftKit SetNode.swift
[67/79] Compiling StencilSwiftKit StencilSwiftTemplate.swift
[68/79] Compiling StencilSwiftKit Parameters.swift
[69/79] Compiling StencilSwiftKit MapNode.swift
[70/80] Compiling StencilSwiftKit Filters.swift
[71/80] Compiling StencilSwiftKit Filters+Numbers.swift
[72/80] Compiling StencilSwiftKit CallMacroNodes.swift
[73/80] Compiling StencilSwiftKit Context.swift
[74/80] Emitting module StencilSwiftKit
[75/80] Compiling StencilSwiftKit Filters+Strings.swift
[76/80] Compiling StencilSwiftKit Environment.swift
[77/80] Compiling StencilSwiftKit SwiftIdentifier.swift
[78/90] Compiling ModelGenKit Utils.swift
/Users/admin/builder/spi-builder-workspace/Sources/ModelGenKit/Utils.swift:15:5: warning: var 'jsonAbsolutePath' is not concurrency-safe because it is non-isolated 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 non-isolated 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
16 | var currentFile = Path()
17 |
/Users/admin/builder/spi-builder-workspace/Sources/ModelGenKit/Utils.swift:16:5: warning: var 'currentFile' is not concurrency-safe because it is non-isolated 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 non-isolated 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
17 |
18 | // MARK: - Validators
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/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: 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
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'
/Users/admin/builder/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: 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
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'
/Users/admin/builder/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: 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
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'
/Users/admin/builder/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: 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
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'
/Users/admin/builder/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: 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
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'
/Users/admin/builder/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: 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
33 |
34 | // MARK: - Path as Input Argument
/Users/admin/builder/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 {
[79/91] Compiling ModelGenKit String+Helpers.swift
[80/91] Compiling ModelGenKit JsonParser+Context.swift
[81/91] Compiling ModelGenKit LanguageType.swift
[82/91] Compiling ModelGenKit JsonParser.swift
/Users/admin/builder/spi-builder-workspace/Sources/ModelGenKit/Utils.swift:16:5: warning: var 'currentFile' is not concurrency-safe because it is non-isolated 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 non-isolated 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
17 |
18 | // MARK: - Validators
/Users/admin/builder/spi-builder-workspace/Sources/ModelGenKit/Utils.swift:15:5: warning: var 'jsonAbsolutePath' is not concurrency-safe because it is non-isolated 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 non-isolated 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
16 | var currentFile = Path()
17 |
[83/91] Compiling ModelGenKit Filters.swift
[84/91] Compiling ModelGenKit Configuration.swift
[85/91] Emitting module ModelGenKit
/Users/admin/builder/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 |
/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/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 {
/Users/admin/builder/spi-builder-workspace/Sources/ModelGenKit/Utils.swift:15:5: warning: var 'jsonAbsolutePath' is not concurrency-safe because it is non-isolated 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 non-isolated 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
16 | var currentFile = Path()
17 |
/Users/admin/builder/spi-builder-workspace/Sources/ModelGenKit/Utils.swift:16:5: warning: var 'currentFile' is not concurrency-safe because it is non-isolated 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 non-isolated 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
17 |
18 | // MARK: - Validators
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/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: 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
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'
/Users/admin/builder/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: 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
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'
/Users/admin/builder/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: 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
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'
/Users/admin/builder/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: 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
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'
/Users/admin/builder/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: 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
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'
/Users/admin/builder/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: 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
33 |
34 | // MARK: - Path as Input Argument
/Users/admin/builder/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 {
[86/91] Compiling ModelGenKit Schema.swift
/Users/admin/builder/spi-builder-workspace/Sources/ModelGenKit/Utils.swift:15:5: warning: var 'jsonAbsolutePath' is not concurrency-safe because it is non-isolated 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 non-isolated 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
16 | var currentFile = Path()
17 |
[87/91] Compiling ModelGenKit Error.swift
/Users/admin/builder/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 |
/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/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 {
/Users/admin/builder/spi-builder-workspace/Sources/ModelGenKit/Utils.swift:16:5: warning: var 'currentFile' is not concurrency-safe because it is non-isolated 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 non-isolated 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
17 |
18 | // MARK: - Validators
[88/91] Compiling ModelGenKit YamlParser.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Yams/Sources/Yams/Resolver.swift:99:23: warning: class property 'default' is not concurrency-safe because non-'Sendable' type 'Resolver' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | /// Class used to resolve nodes to tags based on customizable rules.
12 | public final class Resolver {
| `- note: class 'Resolver' does not conform to the 'Sendable' protocol
13 | /// Rule describing how to resolve tags from regex patterns.
14 | public struct Rule {
:
97 | public static let basic = Resolver()
98 | /// Resolver with a default set of rules.
99 | public static let `default` = Resolver([.bool, .int, .float, .merge, .null, .timestamp, .value])
| |- warning: class property 'default' is not concurrency-safe because non-'Sendable' type 'Resolver' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
100 | }
101 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Yams/Sources/Yams/Constructor.swift:69:23: warning: class property 'default' is not concurrency-safe because non-'Sendable' type 'Constructor' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | /// Constructors are used to translate `Node`s to Swift values.
12 | public final class Constructor {
| `- note: class 'Constructor' does not conform to the 'Sendable' protocol
13 | /// Maps `Tag.Name`s to `Node.Scalar`s.
14 | public typealias ScalarMap = [Tag.Name: (Node.Scalar) -> Any?]
:
67 | extension Constructor {
68 | /// The default `Constructor` to be used with APIs where none is explicitly provided.
69 | public static let `default` = Constructor()
| |- warning: class property 'default' is not concurrency-safe because non-'Sendable' type 'Constructor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
70 |
71 | /// The default `Tag.Name` to `Node.Scalar` map.
[89/93] Emitting module ModelGen
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/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: 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
28 | let fileExists = checkPath(type: "file") { $0.isFile }
29 | let dirExists = checkPath(type: "directory") { $0.isDirectory }
[90/93] 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/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: 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
28 | let fileExists = checkPath(type: "file") { $0.isFile }
29 | let dirExists = checkPath(type: "directory") { $0.isDirectory }
[90/93] Write Objects.LinkFileList
[91/93] Linking modelgen
[92/93] Applying modelgen
Build complete! (36.72s)
Fetching https://github.com/SwiftGen/StencilSwiftKit.git
Fetching https://github.com/kylef/Stencil.git
Fetching https://github.com/kylef/Commander.git
Fetching https://github.com/kylef/PathKit.git
Fetching https://github.com/kylef/Spectre.git
Fetching https://github.com/jpsim/Yams.git
[1/1588] Fetching commander
[33/2999] Fetching commander, pathkit
[231/4020] Fetching commander, pathkit, spectre
[614/9209] Fetching commander, pathkit, spectre, stencil
[1236/13217] Fetching commander, pathkit, spectre, stencil, stencilswiftkit
[1317/22554] Fetching commander, pathkit, spectre, stencil, stencilswiftkit, yams
Fetched https://github.com/kylef/Spectre.git from cache (1.87s)
Fetched https://github.com/kylef/Stencil.git from cache (1.87s)
Fetched https://github.com/jpsim/Yams.git from cache (1.87s)
Fetched https://github.com/kylef/PathKit.git from cache (1.87s)
[3272/5596] Fetching commander, stencilswiftkit
Fetched https://github.com/SwiftGen/StencilSwiftKit.git from cache (2.24s)
Fetched https://github.com/kylef/Commander.git from cache (2.24s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 1.0.2 (0.79s)
Computing version for https://github.com/SwiftGen/StencilSwiftKit.git
Computed https://github.com/SwiftGen/StencilSwiftKit.git at 2.7.2 (0.70s)
Computing version for https://github.com/kylef/Stencil.git
Computed https://github.com/kylef/Stencil.git at 0.13.1 (0.70s)
Computing version for https://github.com/kylef/PathKit.git
Computed https://github.com/kylef/PathKit.git at 0.9.2 (0.72s)
Computing version for https://github.com/kylef/Commander.git
Computed https://github.com/kylef/Commander.git at 0.9.0 (2.41s)
Computing version for https://github.com/kylef/Spectre.git
Computed https://github.com/kylef/Spectre.git at 0.9.0 (0.74s)
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/kylef/Commander.git
Working copy of https://github.com/kylef/Commander.git resolved at 0.9.0
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/PathKit.git
Working copy of https://github.com/kylef/PathKit.git resolved at 0.9.2
Creating working copy for https://github.com/kylef/Spectre.git
Working copy of https://github.com/kylef/Spectre.git resolved at 0.9.0
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
}
},
{
"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"
}
Done.