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 Files, reference master (d273b5), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 09:34:48 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/JohnSundell/files.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/JohnSundell/files
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at d273b5b Add `isEmpty` method for `Folder` (#119)
Cloned https://github.com/JohnSundell/files.git
Revision (git rev-parse @):
d273b5b7025d386feef79ef6bad7de762e106eaf
SUCCESS checkout https://github.com/JohnSundell/files.git at master
========================================
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": "files",
      "name": "Files",
      "url": "https://github.com/JohnSundell/files.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/files",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/JohnSundell/files.git
[1/1231] Fetching files
Fetched https://github.com/JohnSundell/files.git from cache (0.93s)
Creating working copy for https://github.com/JohnSundell/files.git
Working copy of https://github.com/JohnSundell/files.git resolved at master (d273b5b)
warning: '.resolve-product-dependencies': dependency 'files' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/JohnSundell/files.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/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/4] Emitting module Files
/Users/admin/builder/spi-builder-workspace/Sources/Files.swift:939:16: warning: stored property 'reason' of 'Sendable'-conforming generic struct 'FilesError' has non-sendable type 'Reason'; this is an error in the Swift 6 language mode
 933 |
 934 | /// Error type thrown by all of Files' throwing APIs.
 935 | public struct FilesError<Reason>: Error {
     |                          `- note: consider making generic parameter 'Reason' conform to the 'Sendable' protocol
 936 |     /// The absolute path that the error occured at.
 937 |     public var path: String
 938 |     /// The reason that the error occured.
 939 |     public var reason: Reason
     |                `- warning: stored property 'reason' of 'Sendable'-conforming generic struct 'FilesError' has non-sendable type 'Reason'; this is an error in the Swift 6 language mode
 940 |
 941 |     /// Initialize an instance with a path and a reason.
[4/4] Compiling Files Files.swift
/Users/admin/builder/spi-builder-workspace/Sources/Files.swift:939:16: warning: stored property 'reason' of 'Sendable'-conforming generic struct 'FilesError' has non-sendable type 'Reason'; this is an error in the Swift 6 language mode
 933 |
 934 | /// Error type thrown by all of Files' throwing APIs.
 935 | public struct FilesError<Reason>: Error {
     |                          `- note: consider making generic parameter 'Reason' conform to the 'Sendable' protocol
 936 |     /// The absolute path that the error occured at.
 937 |     public var path: String
 938 |     /// The reason that the error occured.
 939 |     public var reason: Reason
     |                `- warning: stored property 'reason' of 'Sendable'-conforming generic struct 'FilesError' has non-sendable type 'Reason'; this is an error in the Swift 6 language mode
 940 |
 941 |     /// Initialize an instance with a path and a reason.
Build complete! (9.16s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Files",
  "name" : "Files",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Files",
      "targets" : [
        "Files"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FilesTests",
      "module_type" : "SwiftTarget",
      "name" : "FilesTests",
      "path" : "Tests/FilesTests",
      "sources" : [
        "FilesTests.swift"
      ],
      "target_dependencies" : [
        "Files"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Files",
      "module_type" : "SwiftTarget",
      "name" : "Files",
      "path" : "Sources",
      "product_memberships" : [
        "Files"
      ],
      "sources" : [
        "Files.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.