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 main (4104ae), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 22:04:19 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: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/nashysolutions/Directory
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 4104ae5 Update Changelog.md
Cloned https://github.com/nashysolutions/Directory.git
Revision (git rev-parse @):
4104ae5582e72ab307783e5b7483d9df0a539cb4
SUCCESS checkout https://github.com/nashysolutions/Directory.git at main
Fetching https://github.com/JohnSundell/Files
Fetching https://github.com/nashysolutions/Cache.git
[1/1231] Fetching files
[149/1317] Fetching files, cache
Fetched https://github.com/JohnSundell/Files from cache (0.96s)
Fetched https://github.com/nashysolutions/Cache.git from cache (0.96s)
Computing version for https://github.com/JohnSundell/Files
Computed https://github.com/JohnSundell/Files at 4.2.0 (0.57s)
Computing version for https://github.com/nashysolutions/Cache.git
Computed https://github.com/nashysolutions/Cache.git at 2.0.0 (0.56s)
Creating working copy for https://github.com/JohnSundell/Files
Working copy of https://github.com/JohnSundell/Files resolved at 4.2.0
Creating working copy for https://github.com/nashysolutions/Cache.git
Working copy of https://github.com/nashysolutions/Cache.git resolved at 2.0.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
[1/285] Fetching directory
Fetched https://github.com/nashysolutions/Directory.git from cache (0.86s)
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.03s)
Computing version for https://github.com/nashysolutions/Cache.git
Computed https://github.com/nashysolutions/Cache.git at 2.0.0 (0.03s)
Creating working copy for https://github.com/nashysolutions/Directory.git
Working copy of https://github.com/nashysolutions/Directory.git resolved at main (4104ae5)
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
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 Expiry.swift
[6/11] Compiling Cache Database.swift
[7/11] Compiling Cache Resource.swift
[8/11] Emitting module Cache
[9/11] Compiling Cache Cache.swift
[10/11] Emitting module Files
[11/11] Compiling Files Files.swift
[12/26] Compiling Directory SovereignContainer.swift
[13/27] Compiling Directory PortableImage.swift
[14/27] Compiling Directory PhotoStore.swift
[15/27] Compiling Directory PhotosDirectory.swift
[16/27] Compiling Directory SerializableContainer.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 MemoryConscious.swift
[21/27] Compiling Directory Photo.swift
[22/27] Compiling Directory TempPhoto.swift
[23/27] Compiling Directory DiskLocationAware.swift
[24/27] Compiling Directory DiskResource.swift
[25/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>
[26/27] Compiling Directory Database.swift
[27/27] Compiling Directory Directory.swift
Build complete! (16.23s)
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.