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 master (0d5e45), with Swift 6.0 for macOS (SPM) on 31 Oct 2024 12:44:16 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: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/perfectlysoft/perfect-mustache
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
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 master
Fetching https://github.com/PerfectlySoft/PerfectLib.git
[1/10784] Fetching perfectlib
Fetched https://github.com/PerfectlySoft/PerfectLib.git from cache (2.87s)
Computing version for https://github.com/PerfectlySoft/PerfectLib.git
Computed https://github.com/PerfectlySoft/PerfectLib.git at 4.0.1 (0.63s)
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.75s)
Fetching https://github.com/PerfectlySoft/PerfectLib.git from cache
Fetched https://github.com/PerfectlySoft/PerfectLib.git from cache (0.57s)
Computing version for https://github.com/PerfectlySoft/PerfectLib.git
Computed https://github.com/PerfectlySoft/PerfectLib.git at 4.0.1 (0.03s)
Creating working copy for https://github.com/perfectlysoft/perfect-mustache.git
Working copy of https://github.com/perfectlysoft/perfect-mustache.git resolved at master (0d5e45e)
Creating working copy for https://github.com/PerfectlySoft/PerfectLib.git
Working copy of https://github.com/PerfectlySoft/PerfectLib.git resolved at 4.0.1
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 SysProcess.swift
[5/13] Compiling PerfectLib PerfectError.swift
[6/13] Compiling PerfectLib PerfectServer.swift
[7/13] Compiling PerfectLib File.swift
[8/13] Compiling PerfectLib JSONConvertible.swift
[9/13] Compiling PerfectLib Dir.swift
[10/13] Emitting module PerfectLib
[11/13] Compiling PerfectLib Log.swift
[12/13] Compiling PerfectLib Bytes.swift
[13/13] Compiling PerfectLib Utilities.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! (12.45s)
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.