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 macOS (SPM) on 31 Oct 2024 17:07:50 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: 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
Fetching https://github.com/jpsim/Yams.git
Fetching https://github.com/SwiftGen/StencilSwiftKit.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/kylef/Stencil.git
[1/1021] Fetching spectre
[42/2609] Fetching spectre, commander
[356/4020] Fetching spectre, commander, pathkit
[526/8028] Fetching spectre, commander, pathkit, stencilswiftkit
[639/13217] Fetching spectre, commander, pathkit, stencilswiftkit, stencil
[800/23119] Fetching spectre, commander, pathkit, stencilswiftkit, stencil, yams
Fetched https://github.com/kylef/Commander.git from cache (4.16s)
Fetched https://github.com/kylef/PathKit.git from cache (4.17s)
Fetched https://github.com/jpsim/Yams.git from cache (4.17s)
Fetched https://github.com/kylef/Stencil.git from cache (4.17s)
Fetched https://github.com/kylef/Spectre.git from cache (4.17s)
Fetched https://github.com/SwiftGen/StencilSwiftKit.git from cache (4.17s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 1.0.2 (2.87s)
Computing version for https://github.com/SwiftGen/StencilSwiftKit.git
Computed https://github.com/SwiftGen/StencilSwiftKit.git at 2.7.2 (0.72s)
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.71s)
Computing version for https://github.com/kylef/Commander.git
Computed https://github.com/kylef/Commander.git at 0.9.0 (2.70s)
Computing version for https://github.com/kylef/Spectre.git
Computed https://github.com/kylef/Spectre.git at 0.9.0 (0.69s)
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/Spectre.git
Working copy of https://github.com/kylef/Spectre.git resolved at 0.9.0
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/kylef/PathKit.git
Working copy of https://github.com/kylef/PathKit.git resolved at 0.9.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/Stencil.git
Working copy of https://github.com/kylef/Stencil.git resolved at 0.13.1
========================================
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 (1.00s)
Fetching https://github.com/kylef/Stencil.git from cache
Fetching https://github.com/SwiftGen/StencilSwiftKit.git from cache
Fetching https://github.com/kylef/Commander.git from cache
Fetching https://github.com/jpsim/Yams.git from cache
Fetching https://github.com/kylef/PathKit.git from cache
Fetched https://github.com/kylef/Stencil.git from cache (0.59s)
Fetched https://github.com/SwiftGen/StencilSwiftKit.git from cache (0.61s)
Fetched https://github.com/jpsim/Yams.git from cache (0.61s)
Fetched https://github.com/kylef/Commander.git from cache (0.61s)
Fetched https://github.com/kylef/PathKit.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.04s)
Fetching https://github.com/kylef/Spectre.git from cache
Fetched https://github.com/kylef/Spectre.git from cache (0.50s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 1.0.2 (0.04s)
Computing version for https://github.com/kylef/Spectre.git
Computed https://github.com/kylef/Spectre.git at 0.9.2 (0.71s)
Computing version for https://github.com/kylef/Commander.git
Computed https://github.com/kylef/Commander.git at 0.9.1 (0.02s)
Computing version for https://github.com/SwiftGen/StencilSwiftKit.git
Computed https://github.com/SwiftGen/StencilSwiftKit.git at 2.10.1 (0.69s)
Fetching https://github.com/shibapm/Komondor.git
[1/509] Fetching komondor
Fetched https://github.com/shibapm/Komondor.git from cache (0.93s)
Computing version for https://github.com/shibapm/Komondor.git
Computed https://github.com/shibapm/Komondor.git at 1.1.3 (0.67s)
Fetching https://github.com/shibapm/PackageConfig.git
Fetching https://github.com/JohnSundell/ShellOut.git
[1/960] Fetching shellout
[174/1540] Fetching shellout, packageconfig
Fetched https://github.com/shibapm/PackageConfig.git from cache (0.88s)
Fetched https://github.com/JohnSundell/ShellOut.git from cache (0.88s)
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/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 master (d2e7c28)
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/PathKit.git
Working copy of https://github.com/kylef/PathKit.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.
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/18] Write sources
[5/18] Write modelgen-entitlement.plist
[5/18] Write sources
[8/18] Write swift-version--7754E27361AE5C74.txt
[9/30] Compiling reader.c
[10/30] Compiling writer.c
[11/30] Compiling parser.c
[12/30] Compiling scanner.c
[13/30] Compiling emitter.c
[14/30] Compiling api.c
[16/46] Compiling Commander Group.swift
[17/46] Emitting module Commander
[18/46] Compiling Commander Error.swift
[19/46] Compiling Commander CommandType.swift
[20/46] Compiling Commander Command.swift
[21/46] Compiling Commander ArgumentParser.swift
[22/46] Compiling Commander CommandRunner.swift
[23/46] Compiling Commander ArgumentDescription.swift
[24/46] Compiling Commander Commands.swift
[25/46] Compiling Commander ArgumentConvertible.swift
[26/46] Compiling Yams Mark.swift
[27/46] Compiling Yams Node.Mapping.swift
[28/47] Compiling Yams shim.swift
[29/47] Compiling Yams String+Yams.swift
[30/47] Compiling Yams Node.Scalar.swift
[31/47] Compiling Yams Node.Sequence.swift
[32/47] Compiling Yams Node.swift
[33/47] Compiling Yams Parser.swift
[34/47] Compiling Yams YamlError.swift
[35/47] Compiling Yams Representer.swift
[36/47] Compiling Yams Resolver.swift
[37/47] Compiling Yams Tag.swift
[38/47] Compiling Yams Emitter.swift
[39/47] Compiling Yams Encoder.swift
[40/47] Emitting module PathKit
[41/47] Compiling PathKit PathKit.swift
[42/47] Emitting module Yams
[43/47] Compiling Yams Constructor.swift
[44/47] Compiling Yams Decoder.swift
[45/66] Compiling Stencil Parser.swift
[46/66] Compiling Stencil Template.swift
[47/66] Compiling Stencil Node.swift
[48/66] Compiling Stencil NowTag.swift
[49/68] Compiling Stencil Lexer.swift
[50/68] Compiling Stencil Loader.swift
[51/68] Compiling Stencil IfTag.swift
[52/68] Compiling Stencil Include.swift
[53/68] Compiling Stencil Inheritence.swift
[54/68] Compiling Stencil KeyPath.swift
[55/68] Compiling Stencil Context.swift
[56/68] Compiling Stencil Environment.swift
[57/68] Compiling Stencil Filters.swift
[58/68] Compiling Stencil ForTag.swift
[59/68] Compiling Stencil Extension.swift
[60/68] Compiling Stencil FilterTag.swift
[61/68] Emitting module Stencil
[62/68] Compiling Stencil Errors.swift
[63/68] Compiling Stencil Expression.swift
[64/68] Compiling Stencil Tokenizer.swift
[65/68] Compiling Stencil Variable.swift
[66/79] Compiling StencilSwiftKit StencilSwiftTemplate.swift
[67/80] Compiling StencilSwiftKit Parameters.swift
[68/80] Compiling StencilSwiftKit SetNode.swift
[69/80] Compiling StencilSwiftKit Filters.swift
[70/80] Compiling StencilSwiftKit CallMacroNodes.swift
[71/80] Compiling StencilSwiftKit Context.swift
[72/80] Compiling StencilSwiftKit MapNode.swift
[73/80] Compiling StencilSwiftKit Environment.swift
[74/80] Emitting module StencilSwiftKit
[75/80] Compiling StencilSwiftKit Filters+Numbers.swift
[76/80] Compiling StencilSwiftKit Filters+Strings.swift
[77/80] Compiling StencilSwiftKit SwiftIdentifier.swift
[78/90] Compiling ModelGenKit Configuration.swift
[79/91] 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 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 |
/Users/admin/builder/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'
/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 {
[80/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 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
/Users/admin/builder/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 |
[81/91] Compiling ModelGenKit String+Helpers.swift
[82/91] Compiling ModelGenKit Filters.swift
[83/91] Compiling ModelGenKit LanguageType.swift
[84/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 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 |
/Users/admin/builder/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'
/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 {
[85/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 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
[86/91] Compiling ModelGenKit JsonParser+Context.swift
[87/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 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 |
[88/91] Compiling ModelGenKit YamlParser.swift
[89/93] Emitting module ModelGen
[90/93] Compiling ModelGen main.swift
[90/93] Write Objects.LinkFileList
[91/93] Linking modelgen
[92/93] Applying modelgen
Build complete! (24.50s)
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.