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 Directory, reference 5.0.0 (c55f8a), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 22:05:31 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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/nashysolutions/Directory.git
Reference: 5.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/nashysolutions/Directory
 * tag               5.0.0      -> FETCH_HEAD
HEAD is now at c55f8a6 Update changelog.
Cloned https://github.com/nashysolutions/Directory.git
Revision (git rev-parse @):
c55f8a61b3feb9a9e349a9747569f43157c56bdb
SUCCESS checkout https://github.com/nashysolutions/Directory.git at 5.0.0
Fetching https://github.com/JohnSundell/Files
Fetching https://github.com/nashysolutions/Cache.git
[1/86] Fetching cache
[87/1317] Fetching cache, files
Fetched https://github.com/nashysolutions/Cache.git from cache (0.88s)
Fetched https://github.com/JohnSundell/Files from cache (0.88s)
Computing version for https://github.com/JohnSundell/Files
Computed https://github.com/JohnSundell/Files at 4.2.0 (0.53s)
Computing version for https://github.com/nashysolutions/Cache.git
Computed https://github.com/nashysolutions/Cache.git at 2.0.0 (0.53s)
Creating working copy for https://github.com/nashysolutions/Cache.git
Working copy of https://github.com/nashysolutions/Cache.git resolved at 2.0.0
Creating working copy for https://github.com/JohnSundell/Files
Working copy of https://github.com/JohnSundell/Files resolved at 4.2.0
========================================
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": "directory",
      "name": "Directory",
      "url": "https://github.com/nashysolutions/Directory.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Directory",
      "dependencies": [
        {
          "identity": "cache",
          "name": "Cache",
          "url": "https://github.com/nashysolutions/Cache.git",
          "version": "2.0.0",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Cache",
          "dependencies": [
          ]
        },
        {
          "identity": "files",
          "name": "Files",
          "url": "https://github.com/JohnSundell/Files",
          "version": "4.2.0",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Files",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/nashysolutions/Directory.git
[3/285] Fetching directory
Fetched https://github.com/nashysolutions/Directory.git from cache (0.96s)
Fetching https://github.com/JohnSundell/Files from cache
Fetching https://github.com/nashysolutions/Cache.git from cache
Fetched https://github.com/nashysolutions/Cache.git from cache (0.47s)
Fetched https://github.com/JohnSundell/Files from cache (0.47s)
Computing version for https://github.com/JohnSundell/Files
Computed https://github.com/JohnSundell/Files at 4.2.0 (0.02s)
Computing version for https://github.com/nashysolutions/Cache.git
Computed https://github.com/nashysolutions/Cache.git at 2.0.0 (0.02s)
Creating working copy for https://github.com/nashysolutions/Cache.git
Working copy of https://github.com/nashysolutions/Cache.git resolved at 2.0.0
Creating working copy for https://github.com/nashysolutions/Directory.git
Working copy of https://github.com/nashysolutions/Directory.git resolved at 5.0.0 (c55f8a6)
Creating working copy for https://github.com/JohnSundell/Files
Working copy of https://github.com/JohnSundell/Files resolved at 4.2.0
warning: '.resolve-product-dependencies': dependency 'directory' is not used by any target
Found 2 product dependencies
  - Cache
  - Files
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/nashysolutions/Directory.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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version--7754E27361AE5C74.txt
[5/11] Compiling Cache Resource.swift
[6/11] Compiling Cache Cache.swift
[7/11] Compiling Cache Expiry.swift
[8/11] Emitting module Cache
[9/11] Compiling Cache Database.swift
[10/11] Emitting module Files
[11/11] Compiling Files Files.swift
[12/26] Compiling Directory SovereignContainer.swift
[13/27] Compiling Directory SerializableContainer.swift
[14/27] Compiling Directory DiskLocationAware.swift
[15/27] Compiling Directory DiskResource.swift
[16/27] Compiling Directory TempPhoto.swift
[17/27] Compiling Directory SerializableSovereignContainer.swift
[18/27] Compiling Directory PhotoCache.swift
/Users/admin/builder/spi-builder-workspace/Sources/Directory/PhotoCache.swift:18:24: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PhotoCache' may have shared mutable state; this is an error in the Swift 6 language mode
14 | #endif
15 |
16 | final class PhotoCache  {
   |             `- note: class 'PhotoCache' does not conform to the 'Sendable' protocol
17 |
18 |     private static let shared = PhotoCache()
   |                        |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PhotoCache' may have shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: annotate 'shared' 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
19 |
20 |     private let cache: Cache<PortableImage>
[19/27] Compiling Directory PhotoError.swift
/Users/admin/builder/spi-builder-workspace/Sources/Directory/PhotoCache.swift:18:24: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PhotoCache' may have shared mutable state; this is an error in the Swift 6 language mode
14 | #endif
15 |
16 | final class PhotoCache  {
   |             `- note: class 'PhotoCache' does not conform to the 'Sendable' protocol
17 |
18 |     private static let shared = PhotoCache()
   |                        |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PhotoCache' may have shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: annotate 'shared' 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
19 |
20 |     private let cache: Cache<PortableImage>
[20/27] Compiling Directory PortableImage.swift
[21/27] Compiling Directory MemoryConscious.swift
[22/27] Compiling Directory Photo.swift
[23/27] Emitting module Directory
/Users/admin/builder/spi-builder-workspace/Sources/Directory/PhotoCache.swift:18:24: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PhotoCache' may have shared mutable state; this is an error in the Swift 6 language mode
14 | #endif
15 |
16 | final class PhotoCache  {
   |             `- note: class 'PhotoCache' does not conform to the 'Sendable' protocol
17 |
18 |     private static let shared = PhotoCache()
   |                        |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PhotoCache' may have shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: annotate 'shared' 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
19 |
20 |     private let cache: Cache<PortableImage>
[24/27] Compiling Directory PhotoStore.swift
[25/27] Compiling Directory PhotosDirectory.swift
[26/27] Compiling Directory Database.swift
[27/27] Compiling Directory Directory.swift
Build complete! (16.46s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "cache",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.0.0",
            "upper_bound" : "2.1.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/nashysolutions/Cache.git"
    },
    {
      "identity" : "files",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "4.2.0",
            "upper_bound" : "4.3.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/JohnSundell/Files"
    }
  ],
  "manifest_display_name" : "Directory",
  "name" : "Directory",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "Directory",
      "targets" : [
        "Directory"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "DirectoryTests",
      "module_type" : "SwiftTarget",
      "name" : "DirectoryTests",
      "path" : "Tests/DirectoryTests",
      "product_dependencies" : [
        "Files"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/DirectoryTests/Resources/cat.png",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "DirectoryTests.swift"
      ],
      "target_dependencies" : [
        "Directory"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Directory",
      "module_type" : "SwiftTarget",
      "name" : "Directory",
      "path" : "Sources/Directory",
      "product_dependencies" : [
        "Files",
        "Cache"
      ],
      "product_memberships" : [
        "Directory"
      ],
      "sources" : [
        "Database.swift",
        "Directory.swift",
        "DiskLocationAware.swift",
        "DiskResource.swift",
        "MemoryConscious.swift",
        "Photo.swift",
        "PhotoCache.swift",
        "PhotoError.swift",
        "PhotoStore.swift",
        "PhotosDirectory.swift",
        "PortableImage.swift",
        "SerializableContainer.swift",
        "SerializableSovereignContainer.swift",
        "SovereignContainer.swift",
        "TempPhoto.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.