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 Packet, reference main (d1e9f8), with Swift 6.1 for macOS (SPM) on 28 Apr 2025 17:15:02 UTC.

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.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.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mattmassicotte/Packet.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/mattmassicotte/Packet
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at d1e9f82 Return the URLResponse for chunks(for:delegate:) (#4)
Cloned https://github.com/mattmassicotte/Packet.git
Revision (git rev-parse @):
d1e9f82edfce4b137591ba59c332a6a4ba972d88
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/mattmassicotte/Packet.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": "packet",
      "name": "Packet",
      "url": "https://github.com/mattmassicotte/Packet.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Packet",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/mattmassicotte/Packet.git
[1/120] Fetching packet
Fetched https://github.com/mattmassicotte/Packet.git from cache (0.66s)
Creating working copy for https://github.com/mattmassicotte/Packet.git
Working copy of https://github.com/mattmassicotte/Packet.git resolved at main (d1e9f82)
warning: '.resolve-product-dependencies': dependency 'packet' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/mattmassicotte/Packet.git
https://github.com/mattmassicotte/Packet.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Packet",
  "name" : "Packet",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "13.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "Packet",
      "targets" : [
        "Packet"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PacketTests",
      "module_type" : "SwiftTarget",
      "name" : "PacketTests",
      "path" : "Tests/PacketTests",
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/PacketTests/Resources/ipsum100k.txt",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "PacketTests.swift",
        "URLSessionTests.swift",
        "URLTest.swift",
        "Utils/AssertHelpers.swift",
        "Utils/MockURLProtocol.swift",
        "Utils/MockURLResponder.swift"
      ],
      "target_dependencies" : [
        "Packet"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Packet",
      "module_type" : "SwiftTarget",
      "name" : "Packet",
      "path" : "Sources/Packet",
      "product_memberships" : [
        "Packet"
      ],
      "sources" : [
        "AsyncByteSequence.swift",
        "FileHandle+Chunks.swift",
        "URL+Chunks.swift",
        "URLSession+Chunks.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.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-2F0A5646E1D333AE.txt
[3/7] Compiling Packet AsyncByteSequence.swift
[4/7] Compiling Packet URL+Chunks.swift
[5/7] Emitting module Packet
/Users/admin/builder/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:97:9: warning: stored property 'continuation' of 'Sendable'-conforming class 'DataChunksTaskDelegate' is mutable; this is an error in the Swift 6 language mode
 95 |
 96 | private final class DataChunksTaskDelegate: NSObject {
 97 |     var continuation: AsyncThrowingDataChunks.Continuation?
    |         `- warning: stored property 'continuation' of 'Sendable'-conforming class 'DataChunksTaskDelegate' is mutable; this is an error in the Swift 6 language mode
 98 |     let delegate: (any URLSessionTaskDelegate)?
 99 |
[6/7] Compiling Packet URLSession+Chunks.swift
/Users/admin/builder/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:97:9: warning: stored property 'continuation' of 'Sendable'-conforming class 'DataChunksTaskDelegate' is mutable; this is an error in the Swift 6 language mode
 95 |
 96 | private final class DataChunksTaskDelegate: NSObject {
 97 |     var continuation: AsyncThrowingDataChunks.Continuation?
    |         `- warning: stored property 'continuation' of 'Sendable'-conforming class 'DataChunksTaskDelegate' is mutable; this is an error in the Swift 6 language mode
 98 |     let delegate: (any URLSessionTaskDelegate)?
 99 |
[7/7] Compiling Packet FileHandle+Chunks.swift
Build complete! (4.76s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Packet",
  "name" : "Packet",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "13.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "Packet",
      "targets" : [
        "Packet"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PacketTests",
      "module_type" : "SwiftTarget",
      "name" : "PacketTests",
      "path" : "Tests/PacketTests",
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/PacketTests/Resources/ipsum100k.txt",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "PacketTests.swift",
        "URLSessionTests.swift",
        "URLTest.swift",
        "Utils/AssertHelpers.swift",
        "Utils/MockURLProtocol.swift",
        "Utils/MockURLResponder.swift"
      ],
      "target_dependencies" : [
        "Packet"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Packet",
      "module_type" : "SwiftTarget",
      "name" : "Packet",
      "path" : "Sources/Packet",
      "product_memberships" : [
        "Packet"
      ],
      "sources" : [
        "AsyncByteSequence.swift",
        "FileHandle+Chunks.swift",
        "URL+Chunks.swift",
        "URLSession+Chunks.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
✅  Doc result (pending) reported
========================================
GenerateDocs
========================================
Generating docs at path:  $PWD/.docs/mattmassicotte/packet/main
Repository:               mattmassicotte/Packet
Swift version used:       6.1
Target:                   Packet
Extracting symbol information for 'Packet'...
Finished extracting symbol information for 'Packet'. (2.44s)
Building documentation for 'Packet'...
warning: 'Data' doesn't exist at '/Packet/Foundation/URL/resourceChunks'
 --> Sources/Packet/URL+Chunks.swift:4:67-4:71
2 |
3 | extension URL {
4 +     /// The URL's resource data, as an asynchronous sequence of ``Data`` chunks
5 |     ///
6 |     /// Use this property with Swift's `for-await-in` syntax to read the contents of a URL in chunks like this:
warning: 'URLResponse' doesn't exist at '/Packet/Foundation/URLSession/chunks(for:delegate:)'
  --> Sources/Packet/URLSession+Chunks.swift:11:21-11:32
9  |     /// - Parameter delegate: A delegate that receives life cycle and authentication challenge callbacks as the transfer progresses.
10 |     /// - Returns: An asychronously-delivered tuple containing an ``AsyncThrowingDataChunks`` sequence to iterate over
11 +     /// and the ``URLResponse`` from the server.
12 |     ///
13 |     /// Use this method to when you want to process the chunks while the transfer is underway. You can use
warning: 'URLResponse' doesn't exist at '/Packet/Foundation/URLSession/chunks(for:delegate:)'
  --> Sources/Packet/URLSession+Chunks.swift:42:22-42:33
40 |     /// - Parameter delegate: A delegate that receives life cycle and authentication challenge callbacks as the transfer progresses.
41 |     /// - Returns: An asynchronously delivered tuple of ``AsyncThrowingDataChunks`` sequence to iterate over
42 +     ///  and the ``URLResponse`` from the server.
43 |     ///
44 |     /// Use this method when you want to process the bytes while the transfer is underway. You can use
Finished building documentation for 'Packet' (0.10s)
Generated documentation archive at:
  /Users/admin/builder/spi-builder-workspace/.docs/mattmassicotte/packet/main
Fetching https://github.com/swiftlang/swift-docc-plugin from cache
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (0.49s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.3 (1.25s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit from cache
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.71s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.43s)
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.4.3
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Building for debugging...
[0/8] Write sources
[2/8] Write snippet-extract-tool-entitlement.plist
[2/8] Write sources
[4/8] Write swift-version-2F0A5646E1D333AE.txt
[6/53] Emitting module Snippets
[7/53] Compiling Snippets SnippetParser.swift
[8/53] Compiling Snippets Snippet.swift
[9/53] Compiling SymbolKit Relationship.swift
[10/53] Compiling SymbolKit RelationshipKind.swift
[11/53] Compiling SymbolKit SourceOrigin.swift
[12/53] Compiling SymbolKit GenericConstraints.swift
[13/53] Compiling SymbolKit Swift.swift
[14/57] Compiling SymbolKit SourceRange.swift
[15/57] Compiling SymbolKit Metadata.swift
[16/57] Compiling SymbolKit Module.swift
[17/57] Compiling SymbolKit OperatingSystem.swift
[18/57] Compiling SymbolKit Platform.swift
[19/57] Emitting module SymbolKit
[20/57] Compiling SymbolKit Names.swift
[21/57] Compiling SymbolKit SPI.swift
[22/57] Compiling SymbolKit Snippet.swift
[23/57] Compiling SymbolKit Extension.swift
[24/57] Compiling SymbolKit Identifier.swift
[25/57] Compiling SymbolKit KindIdentifier.swift
[26/57] Compiling SymbolKit Location.swift
[27/57] Compiling SymbolKit Mutability.swift
[28/57] Compiling SymbolKit Mixin+Equals.swift
[29/57] Compiling SymbolKit Mixin+Hash.swift
[30/57] Compiling SymbolKit Mixin.swift
[31/57] Compiling SymbolKit LineList.swift
[32/57] Compiling SymbolKit Position.swift
[33/57] Compiling SymbolKit SemanticVersion.swift
[34/57] Compiling SymbolKit AccessControl.swift
[35/57] Compiling SymbolKit Availability.swift
[36/57] Compiling SymbolKit AvailabilityItem.swift
[37/57] Compiling SymbolKit Domain.swift
[38/57] Compiling SymbolKit GenericConstraint.swift
[39/57] Compiling SymbolKit GenericParameter.swift
[40/57] Compiling SymbolKit Generics.swift
[41/57] Compiling SymbolKit Namespace.swift
[42/57] Compiling SymbolKit DeclarationFragments.swift
[43/57] Compiling SymbolKit Fragment.swift
[44/57] Compiling SymbolKit FragmentKind.swift
[45/57] Compiling SymbolKit FunctionParameter.swift
[46/57] Compiling SymbolKit FunctionSignature.swift
[47/57] Compiling SymbolKit Symbol.swift
[48/57] Compiling SymbolKit SymbolKind.swift
[49/57] Compiling SymbolKit SymbolGraph.swift
[50/57] Compiling SymbolKit GraphCollector.swift
[51/57] Compiling SymbolKit UnifiedSymbol+Encodable.swift
[52/57] Compiling SymbolKit UnifiedSymbol.swift
[53/57] Compiling SymbolKit UnifiedSymbolGraph+Encodable.swift
[54/57] Compiling SymbolKit UnifiedSymbolGraph.swift
[55/61] Compiling snippet_extract URL+Status.swift
[56/61] Compiling snippet_extract SymbolGraph+Snippet.swift
[57/61] Emitting module snippet_extract
[58/61] Compiling snippet_extract SnippetBuildCommand.swift
[58/61] Write Objects.LinkFileList
[59/61] Linking snippet-extract-tool
[60/61] Applying snippet-extract-tool
Build of product 'snippet-extract' complete! (4.42s)
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/6] Compiling Packet URL+Chunks.swift
[3/6] Compiling Packet FileHandle+Chunks.swift
[4/6] Compiling Packet AsyncByteSequence.swift
[5/6] Emitting module Packet
/Users/admin/builder/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:97:9: warning: stored property 'continuation' of 'Sendable'-conforming class 'DataChunksTaskDelegate' is mutable; this is an error in the Swift 6 language mode
 95 |
 96 | private final class DataChunksTaskDelegate: NSObject {
 97 |     var continuation: AsyncThrowingDataChunks.Continuation?
    |         `- warning: stored property 'continuation' of 'Sendable'-conforming class 'DataChunksTaskDelegate' is mutable; this is an error in the Swift 6 language mode
 98 |     let delegate: (any URLSessionTaskDelegate)?
 99 |
[6/6] Compiling Packet URLSession+Chunks.swift
/Users/admin/builder/spi-builder-workspace/Sources/Packet/URLSession+Chunks.swift:97:9: warning: stored property 'continuation' of 'Sendable'-conforming class 'DataChunksTaskDelegate' is mutable; this is an error in the Swift 6 language mode
 95 |
 96 | private final class DataChunksTaskDelegate: NSObject {
 97 |     var continuation: AsyncThrowingDataChunks.Continuation?
    |         `- warning: stored property 'continuation' of 'Sendable'-conforming class 'DataChunksTaskDelegate' is mutable; this is an error in the Swift 6 language mode
 98 |     let delegate: (any URLSessionTaskDelegate)?
 99 |
Build of target: 'Packet' complete! (0.56s)
      74
2	/Users/admin/builder/spi-builder-workspace/.docs/mattmassicotte/packet/main
✅  Doc result (uploading) reported
========================================
SyncDocs
========================================
Doc archive source directory: $PWD/.docs/mattmassicotte/packet/main
File count: 74
Doc size:   2.0MB
Preparing doc bundle ...
Uploading prod-mattmassicotte-packet-main-a3b6c39b.zip to s3://spi-docs-inbox/prod-mattmassicotte-packet-main-a3b6c39b.zip
Copying... [19%]
Copying... [38%]
Copying... [57%]
Copying... [76%]
Copying... [96%]
Copying... [100%]
Done.