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 StreamReader, reference 1.0.1 (0cabaa), with Swift 6.0 for macOS (SPM) on 31 Oct 2024 13:32:37 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/mxcl/streamreader.git
Reference: 1.0.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/mxcl/streamreader
 * tag               1.0.1      -> FETCH_HEAD
HEAD is now at 0cabaa9 Update Path.swift dep version to 1.0.0-alpha.1
Cloned https://github.com/mxcl/streamreader.git
Revision (git rev-parse @):
0cabaa9d539037da1b25b8cbe58a8ecafaedea67
SUCCESS checkout https://github.com/mxcl/streamreader.git at 1.0.1
Fetching https://github.com/mxcl/Path.swift
[1/1059] Fetching path.swift
Fetched https://github.com/mxcl/Path.swift from cache (0.99s)
Computing version for https://github.com/mxcl/Path.swift
Computed https://github.com/mxcl/Path.swift at 1.0.0-alpha.2 (0.62s)
Creating working copy for https://github.com/mxcl/Path.swift
Working copy of https://github.com/mxcl/Path.swift resolved at 1.0.0-alpha.2
========================================
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": "streamreader",
      "name": "StreamReader",
      "url": "https://github.com/mxcl/streamreader.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/streamreader",
      "dependencies": [
        {
          "identity": "path.swift",
          "name": "Path.swift",
          "url": "https://github.com/mxcl/Path.swift",
          "version": "1.4.1",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Path.swift",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/mxcl/streamreader.git
[1/50] Fetching streamreader
Fetched https://github.com/mxcl/streamreader.git from cache (0.71s)
Fetching https://github.com/mxcl/Path.swift from cache
Fetched https://github.com/mxcl/Path.swift from cache (0.50s)
Computing version for https://github.com/mxcl/Path.swift
Computed https://github.com/mxcl/Path.swift at 1.4.1 (0.03s)
Creating working copy for https://github.com/mxcl/streamreader.git
Working copy of https://github.com/mxcl/streamreader.git resolved at 1.0.1 (0cabaa9)
Creating working copy for https://github.com/mxcl/Path.swift
Working copy of https://github.com/mxcl/Path.swift resolved at 1.4.1
warning: '.resolve-product-dependencies': dependency 'streamreader' is not used by any target
Found 1 product dependencies
  - Path.swift
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/mxcl/streamreader.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/3] Write sources
[2/3] Write swift-version--7754E27361AE5C74.txt
[4/13] Compiling Path Path+CommonDirectories.swift
[5/13] Compiling Path Path+ls.swift
[6/13] Compiling Path Path->Bool.swift
[7/13] Compiling Path Path+StringConvertibles.swift
[8/13] Compiling Path Path+FileManager.swift
[9/13] Compiling Path Extensions.swift
[10/13] Compiling Path Path+Codable.swift
[11/13] Compiling Path Path.swift
[12/13] Compiling Path Path+Attributes.swift
[13/13] Emitting module Path
[14/14] Compiling Path Pathish.swift
[15/16] Compiling StreamReader StreamReader.swift
/Users/admin/builder/spi-builder-workspace/StreamReader.swift:16:20: warning: stored property 'path' of 'Sendable'-conforming struct 'OpenError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
14 |
15 |     public struct OpenError: LocalizedError {
16 |         public let path: Path
   |                    `- warning: stored property 'path' of 'Sendable'-conforming struct 'OpenError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
17 |         public var errorDescription: String? {
18 |             return "could not open: \(path)"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Path.swift/Sources/Path.swift:41:15: note: struct 'Path' does not conform to the 'Sendable' protocol
 39 |  - SeeAlso: `Pathish` for most methods you will use on `Path` instances.
 40 |  */
 41 | public struct Path: Pathish {
    |               `- note: struct 'Path' does not conform to the 'Sendable' protocol
 42 |
 43 |     /// The normalized string representation of the underlying filesystem path
/Users/admin/builder/spi-builder-workspace/StreamReader.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Path'
 1 | import Foundation
 2 | import Path
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Path'
 3 |
 4 | // I confess I copy and pasted this from StackOverflow.com
[16/16] Emitting module StreamReader
/Users/admin/builder/spi-builder-workspace/StreamReader.swift:16:20: warning: stored property 'path' of 'Sendable'-conforming struct 'OpenError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
14 |
15 |     public struct OpenError: LocalizedError {
16 |         public let path: Path
   |                    `- warning: stored property 'path' of 'Sendable'-conforming struct 'OpenError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
17 |         public var errorDescription: String? {
18 |             return "could not open: \(path)"
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Path.swift/Sources/Path.swift:41:15: note: struct 'Path' does not conform to the 'Sendable' protocol
 39 |  - SeeAlso: `Pathish` for most methods you will use on `Path` instances.
 40 |  */
 41 | public struct Path: Pathish {
    |               `- note: struct 'Path' does not conform to the 'Sendable' protocol
 42 |
 43 |     /// The normalized string representation of the underlying filesystem path
/Users/admin/builder/spi-builder-workspace/StreamReader.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Path'
 1 | import Foundation
 2 | import Path
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Path'
 3 |
 4 | // I confess I copy and pasted this from StackOverflow.com
Build complete! (16.35s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "path.swift",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0-alpha.1",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/mxcl/Path.swift"
    }
  ],
  "manifest_display_name" : "StreamReader",
  "name" : "StreamReader",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "StreamReader",
      "targets" : [
        "StreamReader"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "StreamReader",
      "module_type" : "SwiftTarget",
      "name" : "StreamReader",
      "path" : ".",
      "product_dependencies" : [
        "Path"
      ],
      "product_memberships" : [
        "StreamReader"
      ],
      "sources" : [
        "StreamReader.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.2"
}
Done.