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

Swift 6 data race errors: 1

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/mxcl/path.swift.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/mxcl/path.swift
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at dbdc3ae participate in tea protocol
Cloned https://github.com/mxcl/path.swift.git
Revision (git rev-parse @):
dbdc3aeef664eebd1f6fed6b1fc3789114498d85
SUCCESS checkout https://github.com/mxcl/path.swift.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/mxcl/path.swift.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/12] Compiling Path Path+FileManager.swift
[4/12] Compiling Path Path.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:4:5: warning: let '_realpath' is not concurrency-safe because non-'Sendable' type '(UnsafePointer<CChar>?, UnsafeMutablePointer<CChar>?) -> UnsafeMutablePointer<CChar>?' (aka '(Optional<UnsafePointer<Int8>>, Optional<UnsafeMutablePointer<Int8>>) -> Optional<UnsafeMutablePointer<Int8>>') may have shared mutable state; this is an error in the Swift 6 language mode
  2 | #if !os(Linux)
  3 | import func Darwin.realpath
  4 | let _realpath = Darwin.realpath
    |     |- warning: let '_realpath' is not concurrency-safe because non-'Sendable' type '(UnsafePointer<CChar>?, UnsafeMutablePointer<CChar>?) -> UnsafeMutablePointer<CChar>?' (aka '(Optional<UnsafePointer<Int8>>, Optional<UnsafeMutablePointer<Int8>>) -> Optional<UnsafeMutablePointer<Int8>>') may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: annotate '_realpath' 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 | #else
  6 | import func Glibc.realpath
[5/13] Compiling Path Path+ls.swift
[6/13] Compiling Path Path+StringConvertibles.swift
[7/13] Compiling Path PathToBool.swift
[8/13] Compiling Path Path+CommonDirectories.swift
[9/13] Compiling Path Path+Codable.swift
[10/13] Compiling Path Path+Attributes.swift
[11/13] Emitting module Path
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:4:5: warning: let '_realpath' is not concurrency-safe because non-'Sendable' type '(UnsafePointer<CChar>?, UnsafeMutablePointer<CChar>?) -> UnsafeMutablePointer<CChar>?' (aka '(Optional<UnsafePointer<Int8>>, Optional<UnsafeMutablePointer<Int8>>) -> Optional<UnsafeMutablePointer<Int8>>') may have shared mutable state; this is an error in the Swift 6 language mode
  2 | #if !os(Linux)
  3 | import func Darwin.realpath
  4 | let _realpath = Darwin.realpath
    |     |- warning: let '_realpath' is not concurrency-safe because non-'Sendable' type '(UnsafePointer<CChar>?, UnsafeMutablePointer<CChar>?) -> UnsafeMutablePointer<CChar>?' (aka '(Optional<UnsafePointer<Int8>>, Optional<UnsafeMutablePointer<Int8>>) -> Optional<UnsafeMutablePointer<Int8>>') may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: annotate '_realpath' 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 | #else
  6 | import func Glibc.realpath
[12/13] Compiling Path Extensions.swift
[13/13] Compiling Path Pathish.swift
Build complete! (20.99s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Path.swift",
  "name" : "Path.swift",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Path",
      "targets" : [
        "Path"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "4",
    "4.2",
    "5"
  ],
  "targets" : [
    {
      "c99name" : "PathTests",
      "module_type" : "SwiftTarget",
      "name" : "PathTests",
      "path" : "Tests/PathTests",
      "sources" : [
        "PathTests+ls().swift",
        "PathTests.swift",
        "TemporaryDirectory.swift",
        "XCTestManifests.swift",
        "etc.swift"
      ],
      "target_dependencies" : [
        "Path"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Path",
      "module_type" : "SwiftTarget",
      "name" : "Path",
      "path" : "Sources",
      "product_memberships" : [
        "Path"
      ],
      "sources" : [
        "Extensions.swift",
        "Path+Attributes.swift",
        "Path+Codable.swift",
        "Path+CommonDirectories.swift",
        "Path+FileManager.swift",
        "Path+StringConvertibles.swift",
        "Path+ls.swift",
        "Path.swift",
        "PathToBool.swift",
        "Pathish.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.2"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.