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 stream-reader, reference main (13c992), with Swift 6.0 for macOS (SPM) on 6 Nov 2024 07:27:03 UTC.

Swift 6 data race errors: 0

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/xcode-actions/stream-reader.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/xcode-actions/stream-reader
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 13c9928 Enhance the init interfaces
Cloned https://github.com/xcode-actions/stream-reader.git
Revision (git rev-parse @):
13c99289668e1dedfcf28c05867cb8fe0860b133
SUCCESS checkout https://github.com/xcode-actions/stream-reader.git at main
========================================
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": "stream-reader",
      "name": "stream-reader",
      "url": "https://github.com/xcode-actions/stream-reader.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/stream-reader",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/xcode-actions/stream-reader.git
[10/995] Fetching stream-reader
Fetched https://github.com/xcode-actions/stream-reader.git from cache (0.91s)
Creating working copy for https://github.com/xcode-actions/stream-reader.git
Working copy of https://github.com/xcode-actions/stream-reader.git resolved at main (13c9928)
warning: '.resolve-product-dependencies': dependency 'stream-reader' 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/xcode-actions/stream-reader.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/12] Compiling StreamReader StreamReaderErrors.swift
[4/12] Emitting module StreamReader
[5/12] Compiling StreamReader InputStreamReader.swift
[6/12] Compiling StreamReader FileDescriptorReader.swift
[7/12] Compiling StreamReader StreamReader.swift
[8/12] Compiling StreamReader DataReader.swift
[9/12] Compiling StreamReader FileHandleReader.swift
[10/12] Compiling StreamReader URLSessionStreamTaskReader.swift
/Users/admin/builder/spi-builder-workspace/Sources/StreamReader/Conveniences/URLSessionStreamTaskReader.swift:24:4: warning: mutation of captured var 'data' in concurrently-executing code; this is an error in the Swift 6 language mode
22 | 		readData(ofMinLength: 1, maxLength: len, timeout: .infinity, completionHandler: { d, eof, err in
23 | 			/* We don’t need the EOF value. */
24 | 			data = d
   |    `- warning: mutation of captured var 'data' in concurrently-executing code; this is an error in the Swift 6 language mode
25 | 			error = err
26 | 			group.leave()
/Users/admin/builder/spi-builder-workspace/Sources/StreamReader/Conveniences/URLSessionStreamTaskReader.swift:25:4: warning: mutation of captured var 'error' in concurrently-executing code; this is an error in the Swift 6 language mode
23 | 			/* We don’t need the EOF value. */
24 | 			data = d
25 | 			error = err
   |    `- warning: mutation of captured var 'error' in concurrently-executing code; this is an error in the Swift 6 language mode
26 | 			group.leave()
27 | 		})
[11/12] Compiling StreamReader GenericStreamReader.swift
[12/12] Compiling StreamReader Matching.swift
Build complete! (14.89s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "stream-reader",
  "name" : "stream-reader",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "StreamReader",
      "targets" : [
        "StreamReader"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "StreamReaderTests",
      "module_type" : "SwiftTarget",
      "name" : "StreamReaderTests",
      "path" : "Tests/StreamReaderTests",
      "sources" : [
        "MatchingTests.swift",
        "StreamReaderTests.swift",
        "TestHelpers.swift",
        "TestHelpersTests.swift",
        "URLStreamReaderTests.swift"
      ],
      "target_dependencies" : [
        "StreamReader"
      ],
      "type" : "test"
    },
    {
      "c99name" : "StreamReader",
      "module_type" : "SwiftTarget",
      "name" : "StreamReader",
      "path" : "Sources/StreamReader",
      "product_memberships" : [
        "StreamReader"
      ],
      "sources" : [
        "Conveniences/FileDescriptorReader.swift",
        "Conveniences/FileHandleReader.swift",
        "Conveniences/InputStreamReader.swift",
        "Conveniences/URLSessionStreamTaskReader.swift",
        "Core/StreamReader.swift",
        "Core/StreamReaderErrors.swift",
        "Implementations/DataReader.swift",
        "Implementations/GenericStreamReader.swift",
        "Matching.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
Done.