This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/danramteke/MPath.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/danramteke/MPath
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
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 main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/danramteke/MPath.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a 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-6F35C1178C84523A.txt
[3/15] Compiling MPath Path.collections.swift
[4/16] 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")
[5/16] 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")
[6/16] 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")
[7/16] Compiling MPath Path-relative.swift
[8/16] 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")
[9/16] 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")
[10/16] 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")
[11/16] Compiling MPath Path-IO.swift
[12/16] Compiling MPath Path-absolute.swift
[13/16] Compiling MPath Path-CustomStringConvertible.swift
[14/16] Compiling MPath Path-ExpressibileByStringLiteral.swift
[15/16] 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")
[16/16] Compiling MPath Path.swift
Build complete! (21.79s)
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.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.