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 PerfectMustache, reference 4.0.0 (0d5e45), with Swift 6.0 for macOS (SPM) on 31 Oct 2024 12:43:54 UTC.

Swift 6 data race errors: 1

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/perfectlysoft/perfect-mustache.git
Reference: 4.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/perfectlysoft/perfect-mustache
 * tag               4.0.0      -> FETCH_HEAD
HEAD is now at 0d5e45e Updated for swift 5. Removed Perfect-Thread dependency
Cloned https://github.com/perfectlysoft/perfect-mustache.git
Revision (git rev-parse @):
0d5e45e95ca06c4ba7696a0cfc250e0ed35aff00
SUCCESS checkout https://github.com/perfectlysoft/perfect-mustache.git at 4.0.0
Fetching https://github.com/PerfectlySoft/PerfectLib.git
[1/10784] Fetching perfectlib
Fetched https://github.com/PerfectlySoft/PerfectLib.git from cache (6.19s)
Computing version for https://github.com/PerfectlySoft/PerfectLib.git
Computed https://github.com/PerfectlySoft/PerfectLib.git at 4.0.1 (0.64s)
Creating working copy for https://github.com/PerfectlySoft/PerfectLib.git
Working copy of https://github.com/PerfectlySoft/PerfectLib.git resolved at 4.0.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": "perfect-mustache",
      "name": "PerfectMustache",
      "url": "https://github.com/perfectlysoft/perfect-mustache.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/perfect-mustache",
      "dependencies": [
        {
          "identity": "perfectlib",
          "name": "PerfectLib",
          "url": "https://github.com/PerfectlySoft/PerfectLib.git",
          "version": "4.0.1",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/PerfectLib",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/perfectlysoft/perfect-mustache.git
[1/234] Fetching perfect-mustache
Fetched https://github.com/perfectlysoft/perfect-mustache.git from cache (0.84s)
Fetching https://github.com/PerfectlySoft/PerfectLib.git from cache
Fetched https://github.com/PerfectlySoft/PerfectLib.git from cache (0.54s)
Computing version for https://github.com/PerfectlySoft/PerfectLib.git
Computed https://github.com/PerfectlySoft/PerfectLib.git at 4.0.1 (0.02s)
Creating working copy for https://github.com/PerfectlySoft/PerfectLib.git
Working copy of https://github.com/PerfectlySoft/PerfectLib.git resolved at 4.0.1
Creating working copy for https://github.com/perfectlysoft/perfect-mustache.git
Working copy of https://github.com/perfectlysoft/perfect-mustache.git resolved at 4.0.0 (0d5e45e)
warning: '.resolve-product-dependencies': dependency 'perfect-mustache' is not used by any target
Found 1 product dependencies
  - PerfectLib
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/perfectlysoft/perfect-mustache.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/3] Write sources
[2/3] Write swift-version--7754E27361AE5C74.txt
[4/13] Compiling PerfectLib PerfectServer.swift
[5/13] Compiling PerfectLib PerfectError.swift
[6/13] Compiling PerfectLib Log.swift
[7/13] Compiling PerfectLib File.swift
[8/13] Compiling PerfectLib Bytes.swift
[9/13] Compiling PerfectLib Dir.swift
[10/13] Emitting module PerfectLib
[11/13] Compiling PerfectLib JSONConvertible.swift
[12/13] Compiling PerfectLib Utilities.swift
[13/13] Compiling PerfectLib SysProcess.swift
[14/15] Emitting module PerfectMustache
/Users/admin/builder/spi-builder-workspace/Sources/PerfectMustache/Mustache.swift:25:13: warning: var 'mustacheTemplateCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 23 | let mustacheExtension = "mustache"
 24 |
 25 | private var mustacheTemplateCache = [String: (Int, MustacheTemplate)]()
    |             |- warning: var 'mustacheTemplateCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'mustacheTemplateCache' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: annotate 'mustacheTemplateCache' 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
 26 | private let mustacheTemplateCacheQueue = DispatchQueue(label: "mustacheTemplateCache", attributes: .concurrent)
 27 |
[15/15] Compiling PerfectMustache Mustache.swift
/Users/admin/builder/spi-builder-workspace/Sources/PerfectMustache/Mustache.swift:25:13: warning: var 'mustacheTemplateCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 23 | let mustacheExtension = "mustache"
 24 |
 25 | private var mustacheTemplateCache = [String: (Int, MustacheTemplate)]()
    |             |- warning: var 'mustacheTemplateCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'mustacheTemplateCache' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: annotate 'mustacheTemplateCache' 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
 26 | private let mustacheTemplateCacheQueue = DispatchQueue(label: "mustacheTemplateCache", attributes: .concurrent)
 27 |
Build complete! (11.64s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "perfectlib",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "4.0.0",
            "upper_bound" : "5.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/PerfectlySoft/PerfectLib.git"
    }
  ],
  "manifest_display_name" : "PerfectMustache",
  "name" : "PerfectMustache",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "PerfectMustache",
      "targets" : [
        "PerfectMustache"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PerfectMustacheTests",
      "module_type" : "SwiftTarget",
      "name" : "PerfectMustacheTests",
      "path" : "Tests/PerfectMustacheTests",
      "sources" : [
        "PerfectMustacheTests.swift"
      ],
      "target_dependencies" : [
        "PerfectMustache"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PerfectMustache",
      "module_type" : "SwiftTarget",
      "name" : "PerfectMustache",
      "path" : "Sources/PerfectMustache",
      "product_dependencies" : [
        "PerfectLib"
      ],
      "product_memberships" : [
        "PerfectMustache"
      ],
      "sources" : [
        "Mustache.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Done.