The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of ModelGen, reference master (d2e7c2), with Swift 6.0 for Linux on 31 Oct 2024 17:11:24 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.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.56.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.0
Building package at path:  $PWD
https://github.com/hebertialmeida/modelgen.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/SwiftGen/StencilSwiftKit.git
Fetching https://github.com/jpsim/Yams.git
Fetching https://github.com/kylef/Stencil.git
Fetching https://github.com/kylef/Commander.git
Fetching https://github.com/kylef/PathKit.git
[1/1588] Fetching commander
[1447/2999] Fetching commander, pathkit
[3000/7007] Fetching commander, pathkit, stencilswiftkit
[3602/12196] Fetching commander, pathkit, stencilswiftkit, stencil
[8791/22098] Fetching commander, pathkit, stencilswiftkit, stencil, yams
Fetched https://github.com/kylef/Stencil.git from cache (0.31s)
[3899/16909] Fetching commander, pathkit, stencilswiftkit, yams
Fetched https://github.com/kylef/PathKit.git from cache (1.72s)
Fetched https://github.com/kylef/Commander.git from cache (1.72s)
Fetched https://github.com/jpsim/Yams.git from cache (1.75s)
Fetched https://github.com/SwiftGen/StencilSwiftKit.git from cache (1.76s)
Computing version for https://github.com/kylef/PathKit.git
Computed https://github.com/kylef/PathKit.git at 0.9.2 (0.43s)
Fetching https://github.com/kylef/Spectre.git
[1/1021] Fetching spectre
Fetched https://github.com/kylef/Spectre.git from cache (0.55s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 1.0.2 (1.81s)
Computing version for https://github.com/kylef/Spectre.git
Computed https://github.com/kylef/Spectre.git at 0.9.2 (0.43s)
Computing version for https://github.com/kylef/Commander.git
Computed https://github.com/kylef/Commander.git at 0.9.1 (0.43s)
Computing version for https://github.com/SwiftGen/StencilSwiftKit.git
Computed https://github.com/SwiftGen/StencilSwiftKit.git at 2.10.1 (0.44s)
Fetching https://github.com/shibapm/Komondor.git
[1/509] Fetching komondor
Fetched https://github.com/shibapm/Komondor.git from cache (0.26s)
Computing version for https://github.com/shibapm/Komondor.git
Computed https://github.com/shibapm/Komondor.git at 1.1.3 (0.42s)
Fetching https://github.com/JohnSundell/ShellOut.git
Fetching https://github.com/shibapm/PackageConfig.git
[1/580] Fetching packageconfig
[581/1540] Fetching packageconfig, shellout
Fetched https://github.com/shibapm/PackageConfig.git from cache (0.18s)
Fetched https://github.com/JohnSundell/ShellOut.git from cache (0.18s)
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.43s)
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.48s)
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/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/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] Compiling emitter.c
[12/23] Write swift-version-24593BA9C3E375BF.txt
[13/23] Compiling scanner.c
[15/49] Compiling Yams Mark.swift
[16/49] Compiling Yams Node.Mapping.swift
[17/51] Compiling Commander ArgumentConvertible.swift
[18/51] Compiling Commander ArgumentDescription.swift
[19/51] Emitting module Commander
[20/51] Compiling Commander ArgumentParser.swift
[21/52] Compiling Yams YamlError.swift
[22/52] Compiling Yams shim.swift
[23/52] Compiling Commander Group.swift
[24/52] Compiling Commander Command.swift
[25/52] Compiling Commander Error.swift
[26/52] Compiling Commander CommandRunner.swift
[27/52] Compiling Commander CommandType.swift
[28/52] Compiling Commander Commands.swift
[29/53] Wrapping AST for Commander for debugging
[31/53] Compiling PathKit PathKit.swift
[32/53] Emitting module PathKit
[34/54] Compiling Yams String+Yams.swift
[35/54] Compiling Yams Tag.swift
[36/54] Compiling Yams Representer.swift
[37/54] Compiling Yams Resolver.swift
[38/54] Compiling Yams Constructor.swift
[39/54] Compiling Yams Decoder.swift
[40/54] Emitting module Yams
[43/54] Compiling Yams Node.Scalar.swift
[44/54] Compiling Yams Node.Sequence.swift
[45/54] Compiling Yams Node.swift
[46/54] Compiling Yams Parser.swift
[47/55] Wrapping AST for PathKit for debugging
[48/74] Wrapping AST for Yams for debugging
[50/74] Compiling Stencil Node.swift
[51/74] Compiling Stencil NowTag.swift
[52/76] Emitting module Stencil
[53/76] Compiling Stencil Context.swift
[54/76] Compiling Stencil Environment.swift
[55/76] Compiling Stencil Errors.swift
[56/76] Compiling Stencil Include.swift
[57/76] Compiling Stencil Inheritence.swift
[58/76] Compiling Stencil KeyPath.swift
[59/76] Compiling Stencil Parser.swift
[60/76] Compiling Stencil Template.swift
[61/76] Compiling Stencil Lexer.swift
[62/76] Compiling Stencil Loader.swift
[63/76] Compiling Stencil Expression.swift
[64/76] Compiling Stencil Extension.swift
[65/76] Compiling Stencil FilterTag.swift
[66/76] Compiling Stencil Filters.swift
[67/76] Compiling Stencil ForTag.swift
[68/76] Compiling Stencil IfTag.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 SetNode.swift
[74/89] Compiling StencilSwiftKit StencilSwiftTemplate.swift
[75/89] Compiling StencilSwiftKit Environment.swift
[76/89] Compiling StencilSwiftKit Filters+Numbers.swift
[77/89] Compiling StencilSwiftKit CallMacroNodes.swift
[78/89] Compiling StencilSwiftKit Context.swift
[79/89] Emitting module StencilSwiftKit
[80/89] Compiling StencilSwiftKit Parameters.swift
[81/89] Compiling StencilSwiftKit MapNode.swift
[82/89] Compiling StencilSwiftKit Filters+Strings.swift
[83/89] Compiling StencilSwiftKit Filters.swift
[84/89] Compiling StencilSwiftKit SwiftIdentifier.swift
[85/90] Wrapping AST for StencilSwiftKit for debugging
[87/100] 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: 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 |
/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: 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'
/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: 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'
/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: 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'
/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: 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'
/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: 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'
/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: 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'
/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: 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
/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 {
[88/101] Compiling ModelGenKit Schema.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: 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 |
[89/101] Compiling ModelGenKit String+Helpers.swift
[90/101] Compiling ModelGenKit LanguageType.swift
[91/101] Compiling ModelGenKit JsonParser.swift
/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: 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
/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: 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 |
[92/101] Compiling ModelGenKit YamlParser.swift
[93/101] Compiling ModelGenKit Filters.swift
[94/101] Compiling ModelGenKit JsonParser+Context.swift
[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: 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 |
/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: 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'
/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: 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'
/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: 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'
/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: 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'
/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: 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'
/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: 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'
/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: 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
/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 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)
SwiftGlibc.stderr:1:12: note: var declared here
1 | public var stderr: UnsafeMutablePointer<FILE>!
  |            `- note: var declared here
/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: 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
[97/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)
SwiftGlibc.stderr:1:12: note: var declared here
1 | public var stderr: UnsafeMutablePointer<FILE>!
  |            `- note: var declared here
/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: 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
[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! (32.43s)
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.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.