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 MPath, reference 0.9.14 (7ccc46), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 10:28:41 UTC.

Swift 6 data race errors: 2

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/danramteke/MPath.git
Reference: 0.9.14
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/danramteke/MPath
 * tag               0.9.14     -> FETCH_HEAD
HEAD is now at 7ccc463 exclude home dir on mac catalyst
Cloned https://github.com/danramteke/MPath.git
Revision (git rev-parse @):
7ccc4639898206bba42b12a19b5696d8f8065730
SUCCESS checkout https://github.com/danramteke/MPath.git at 0.9.14
========================================
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": "mpath",
      "name": "MPath",
      "url": "https://github.com/danramteke/MPath.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/MPath",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/danramteke/MPath.git
[1/174] Fetching mpath
Fetched https://github.com/danramteke/MPath.git from cache (0.68s)
Creating working copy for https://github.com/danramteke/MPath.git
Working copy of https://github.com/danramteke/MPath.git resolved at 0.9.14 (7ccc463)
warning: '.resolve-product-dependencies': dependency 'mpath' 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/danramteke/MPath.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/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/15] Compiling MPath Path-traverse.swift
/Users/admin/builder/spi-builder-workspace/Sources/MPath/Path-filehandle.swift:4:14: warning: static property 'fileManager' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | extension Path {
 4 |   static let fileManager: FileManager = FileManager.default
   |              |- warning: static property 'fileManager' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state; this is an error in the Swift 6 language mode
   |              |- note: annotate 'fileManager' 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
 5 |
 6 |   public func createDirectories() throws {
Foundation.FileManager:1:12: note: class 'FileManager' does not conform to the 'Sendable' protocol
  1 | open class FileManager : NSObject {
    |            `- note: class 'FileManager' does not conform to the 'Sendable' protocol
  2 |     open class var `default`: FileManager { get }
  3 |     @available(swift, obsoleted: 3, renamed: "default")
[4/15] Compiling MPath Path-permissions.swift
/Users/admin/builder/spi-builder-workspace/Sources/MPath/Path-filehandle.swift:4:14: warning: static property 'fileManager' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | extension Path {
 4 |   static let fileManager: FileManager = FileManager.default
   |              |- warning: static property 'fileManager' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state; this is an error in the Swift 6 language mode
   |              |- note: annotate 'fileManager' 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
 5 |
 6 |   public func createDirectories() throws {
Foundation.FileManager:1:12: note: class 'FileManager' does not conform to the 'Sendable' protocol
  1 | open class FileManager : NSObject {
    |            `- note: class 'FileManager' does not conform to the 'Sendable' protocol
  2 |     open class var `default`: FileManager { get }
  3 |     @available(swift, obsoleted: 3, renamed: "default")
[5/15] Compiling MPath Path.collections.swift
[6/15] Compiling MPath Path-relative.swift
[7/15] Compiling MPath Path-fileAttributes.swift
/Users/admin/builder/spi-builder-workspace/Sources/MPath/Path-fileAttributes.swift:45:13: warning: stored property 'path' of 'Sendable'-conforming struct 'FileAttributesReadingError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
43 | public struct FileAttributesReadingError: Error {
44 | 	public let key: FileAttributeKey
45 | 	public let path: Path
   |             `- warning: stored property 'path' of 'Sendable'-conforming struct 'FileAttributesReadingError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
46 | }
47 |
/Users/admin/builder/spi-builder-workspace/Sources/MPath/Path.swift:3:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
 1 | import Foundation
 2 |
 3 | public struct Path: Codable, Equatable, Comparable, Hashable {
   |               `- note: consider making struct 'Path' conform to the 'Sendable' protocol
 4 |
 5 |   public let path: String
/Users/admin/builder/spi-builder-workspace/Sources/MPath/Path-filehandle.swift:4:14: warning: static property 'fileManager' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | extension Path {
 4 |   static let fileManager: FileManager = FileManager.default
   |              |- warning: static property 'fileManager' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state; this is an error in the Swift 6 language mode
   |              |- note: annotate 'fileManager' 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
 5 |
 6 |   public func createDirectories() throws {
Foundation.FileManager:1:12: note: class 'FileManager' does not conform to the 'Sendable' protocol
  1 | open class FileManager : NSObject {
    |            `- note: class 'FileManager' does not conform to the 'Sendable' protocol
  2 |     open class var `default`: FileManager { get }
  3 |     @available(swift, obsoleted: 3, renamed: "default")
[8/15] Compiling MPath Path-IO.swift
[9/15] Compiling MPath Path-absolute.swift
[10/15] Compiling MPath Path-concat.swift
/Users/admin/builder/spi-builder-workspace/Sources/MPath/Path-filehandle.swift:4:14: warning: static property 'fileManager' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | extension Path {
 4 |   static let fileManager: FileManager = FileManager.default
   |              |- warning: static property 'fileManager' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state; this is an error in the Swift 6 language mode
   |              |- note: annotate 'fileManager' 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
 5 |
 6 |   public func createDirectories() throws {
Foundation.FileManager:1:12: note: class 'FileManager' does not conform to the 'Sendable' protocol
  1 | open class FileManager : NSObject {
    |            `- note: class 'FileManager' does not conform to the 'Sendable' protocol
  2 |     open class var `default`: FileManager { get }
  3 |     @available(swift, obsoleted: 3, renamed: "default")
[11/15] Compiling MPath Path-constants.swift
/Users/admin/builder/spi-builder-workspace/Sources/MPath/Path-filehandle.swift:4:14: warning: static property 'fileManager' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | extension Path {
 4 |   static let fileManager: FileManager = FileManager.default
   |              |- warning: static property 'fileManager' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state; this is an error in the Swift 6 language mode
   |              |- note: annotate 'fileManager' 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
 5 |
 6 |   public func createDirectories() throws {
Foundation.FileManager:1:12: note: class 'FileManager' does not conform to the 'Sendable' protocol
  1 | open class FileManager : NSObject {
    |            `- note: class 'FileManager' does not conform to the 'Sendable' protocol
  2 |     open class var `default`: FileManager { get }
  3 |     @available(swift, obsoleted: 3, renamed: "default")
[12/15] Emitting module MPath
/Users/admin/builder/spi-builder-workspace/Sources/MPath/Path-fileAttributes.swift:45:13: warning: stored property 'path' of 'Sendable'-conforming struct 'FileAttributesReadingError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
43 | public struct FileAttributesReadingError: Error {
44 | 	public let key: FileAttributeKey
45 | 	public let path: Path
   |             `- warning: stored property 'path' of 'Sendable'-conforming struct 'FileAttributesReadingError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
46 | }
47 |
/Users/admin/builder/spi-builder-workspace/Sources/MPath/Path.swift:3:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
 1 | import Foundation
 2 |
 3 | public struct Path: Codable, Equatable, Comparable, Hashable {
   |               `- note: consider making struct 'Path' conform to the 'Sendable' protocol
 4 |
 5 |   public let path: String
/Users/admin/builder/spi-builder-workspace/Sources/MPath/Path-filehandle.swift:4:14: warning: static property 'fileManager' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | extension Path {
 4 |   static let fileManager: FileManager = FileManager.default
   |              |- warning: static property 'fileManager' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state; this is an error in the Swift 6 language mode
   |              |- note: annotate 'fileManager' 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
 5 |
 6 |   public func createDirectories() throws {
Foundation.FileManager:1:12: note: class 'FileManager' does not conform to the 'Sendable' protocol
  1 | open class FileManager : NSObject {
    |            `- note: class 'FileManager' does not conform to the 'Sendable' protocol
  2 |     open class var `default`: FileManager { get }
  3 |     @available(swift, obsoleted: 3, renamed: "default")
[13/15] Compiling MPath Path-filehandle.swift
/Users/admin/builder/spi-builder-workspace/Sources/MPath/Path-filehandle.swift:4:14: warning: static property 'fileManager' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | extension Path {
 4 |   static let fileManager: FileManager = FileManager.default
   |              |- warning: static property 'fileManager' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state; this is an error in the Swift 6 language mode
   |              |- note: annotate 'fileManager' 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
 5 |
 6 |   public func createDirectories() throws {
Foundation.FileManager:1:12: note: class 'FileManager' does not conform to the 'Sendable' protocol
  1 | open class FileManager : NSObject {
    |            `- note: class 'FileManager' does not conform to the 'Sendable' protocol
  2 |     open class var `default`: FileManager { get }
  3 |     @available(swift, obsoleted: 3, renamed: "default")
[14/15] Compiling MPath Path-CustomStringConvertible.swift
[15/15] Compiling MPath Path-ExpressibileByStringLiteral.swift
[16/16] Compiling MPath Path.swift
Build complete! (13.36s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "MPath",
  "name" : "MPath",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "MPath",
      "targets" : [
        "MPath"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MPathTests",
      "module_type" : "SwiftTarget",
      "name" : "MPathTests",
      "path" : "Tests/MPathTests",
      "sources" : [
        "BasicTests.swift",
        "CollectionTests.swift",
        "ComponentTests.swift",
        "FileAttributeTests.swift",
        "FileExtensionTests.swift",
        "IOTests.swift",
        "PermissionsTests.swift",
        "RelativePathTests.swift"
      ],
      "target_dependencies" : [
        "MPath"
      ],
      "type" : "test"
    },
    {
      "c99name" : "MPath",
      "module_type" : "SwiftTarget",
      "name" : "MPath",
      "path" : "Sources/MPath",
      "product_memberships" : [
        "MPath"
      ],
      "sources" : [
        "Path-CustomStringConvertible.swift",
        "Path-ExpressibileByStringLiteral.swift",
        "Path-IO.swift",
        "Path-absolute.swift",
        "Path-concat.swift",
        "Path-constants.swift",
        "Path-fileAttributes.swift",
        "Path-filehandle.swift",
        "Path-permissions.swift",
        "Path-relative.swift",
        "Path-traverse.swift",
        "Path.collections.swift",
        "Path.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.