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

Swift 6 data race errors: 0

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/rhysforyou/Superhighway.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/rhysforyou/Superhighway
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at deb5bcb add support for swift-http-types
Cloned https://github.com/rhysforyou/Superhighway.git
Revision (git rev-parse @):
deb5bcb28b34fa5f9d47f7a9dbc5e7b82a558d2f
SPI manifest file found: $workDir/.spi.yml
SUCCESS checkout https://github.com/rhysforyou/Superhighway.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/rhysforyou/Superhighway.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
[1/1] Compiling plugin Swift-DocC
[2/2] Compiling plugin Swift-DocC Preview
Building for debugging...
[2/7] Write sources
[6/7] Write swift-version-6F35C1178C84523A.txt
[8/17] Emitting module HTTPTypes
[9/17] Compiling HTTPTypes ISOLatin1String.swift
[10/17] Compiling HTTPTypes HTTPResponse.swift
[11/17] Compiling HTTPTypes HTTPFieldName.swift
[12/17] Compiling HTTPTypes HTTPField.swift
[13/17] Compiling HTTPTypes HTTPRequest.swift
[14/17] Compiling HTTPTypes HTTPFields.swift
[15/23] Compiling HTTPTypesFoundation URLResponse+HTTPTypes.swift
[16/23] Compiling Superhighway Endpoint.swift
[17/23] Emitting module Superhighway
[18/23] Compiling Superhighway URLSession+Endpoint.swift
/Users/admin/builder/spi-builder-workspace/Sources/Superhighway/URLSession+Endpoint.swift:21:11: warning: capture of 'onComplete' with non-sendable type '(Result<Response, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 |       completionHandler: { data, response, error in
 20 |         if let error {
 21 |           onComplete(.failure(error))
    |           |- warning: capture of 'onComplete' with non-sendable type '(Result<Response, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |           `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 22 |           return
 23 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Superhighway/URLSession+Endpoint.swift:30:15: warning: capture of 'endpoint' with non-sendable type 'Endpoint<Response>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 28 |         }
 29 |
 30 |         guard endpoint.expectedStatusCode(urlResponse.statusCode) else {
    |               `- warning: capture of 'endpoint' with non-sendable type 'Endpoint<Response>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 31 |           onComplete(
 32 |             .failure(
/Users/admin/builder/spi-builder-workspace/Sources/Superhighway/Endpoint.swift:74:15: note: consider making generic struct 'Endpoint' conform to the 'Sendable' protocol
 72 | /// let (people, _) = try await URLSession.shared.response(for: endpoint)
 73 | /// ```
 74 | public struct Endpoint<Response> {
    |               `- note: consider making generic struct 'Endpoint' conform to the 'Sendable' protocol
 75 |   /// The underlying `URLRequest` for this endpoint
 76 |   public let request: URLRequest
/Users/admin/builder/spi-builder-workspace/Sources/Superhighway/URLSession+Endpoint.swift:42:38: warning: capture of 'endpoint' with non-sendable type 'Endpoint<Response>' in an isolated closure; this is an error in the Swift 6 language mode
 40 |         }
 41 |
 42 |         onComplete(Result.init { try endpoint.parse(data, response) })
    |                                      `- warning: capture of 'endpoint' with non-sendable type 'Endpoint<Response>' in an isolated closure; this is an error in the Swift 6 language mode
 43 |       }
 44 |     )
/Users/admin/builder/spi-builder-workspace/Sources/Superhighway/Endpoint.swift:74:15: note: consider making generic struct 'Endpoint' conform to the 'Sendable' protocol
 72 | /// let (people, _) = try await URLSession.shared.response(for: endpoint)
 73 | /// ```
 74 | public struct Endpoint<Response> {
    |               `- note: consider making generic struct 'Endpoint' conform to the 'Sendable' protocol
 75 |   /// The underlying `URLRequest` for this endpoint
 76 |   public let request: URLRequest
[19/23] Compiling HTTPTypesFoundation URLSession+HTTPTypes.swift
[20/23] Compiling HTTPTypesFoundation HTTPRequest+URL.swift
[21/23] Compiling HTTPTypesFoundation URLRequest+HTTPTypes.swift
[22/23] Emitting module HTTPTypesFoundation
[23/23] Compiling HTTPTypesFoundation HTTPTypes+ISOLatin1.swift
[24/25] Emitting module HTTPTypesSuperhighway
[25/25] Compiling HTTPTypesSuperhighway Endpoint+HTTPTypes.swift
Build complete! (33.54s)
Fetching https://github.com/apple/swift-http-types.git
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/apple/swift-docc-symbolkit
[5/414] Fetching swift-http-types
[51/1872] Fetching swift-http-types, swift-docc-plugin
[1290/4731] Fetching swift-http-types, swift-docc-plugin, swift-docc-symbolkit
Fetched https://github.com/apple/swift-docc-plugin from cache (1.34s)
Fetched https://github.com/apple/swift-http-types.git from cache (1.34s)
Computing version for https://github.com/apple/swift-docc-plugin
Fetched https://github.com/apple/swift-docc-symbolkit from cache (1.34s)
Computed https://github.com/apple/swift-docc-plugin at 1.3.0 (0.63s)
Computing version for https://github.com/apple/swift-http-types.git
Computed https://github.com/apple/swift-http-types.git at 0.2.0 (0.66s)
Computing version for https://github.com/apple/swift-docc-symbolkit
Computed https://github.com/apple/swift-docc-symbolkit at 1.0.0 (0.72s)
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-docc-symbolkit
Working copy of https://github.com/apple/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-http-types.git
Working copy of https://github.com/apple/swift-http-types.git resolved at 0.2.0
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-http-types",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.1.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-http-types.git"
    },
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.2.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-docc-plugin"
    }
  ],
  "manifest_display_name" : "Superhighway",
  "name" : "Superhighway",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "Superhighway",
      "targets" : [
        "Superhighway"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "SuperhighwayTests",
      "module_type" : "SwiftTarget",
      "name" : "SuperhighwayTests",
      "path" : "Tests/SuperhighwayTests",
      "sources" : [
        "CombineIntegrationTests.swift",
        "ConcurrencyIntegrationTests.swift",
        "EndpointTests.swift",
        "HTTPStubURLProtocol.swift",
        "TestFixtures.swift",
        "URLSessionIntegrationTests.swift"
      ],
      "target_dependencies" : [
        "Superhighway"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Superhighway",
      "module_type" : "SwiftTarget",
      "name" : "Superhighway",
      "path" : "Sources/Superhighway",
      "product_memberships" : [
        "Superhighway"
      ],
      "sources" : [
        "Endpoint.swift",
        "URLSession+Endpoint.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "HTTPTypesSuperhighway",
      "module_type" : "SwiftTarget",
      "name" : "HTTPTypesSuperhighway",
      "path" : "Sources/HTTPTypesSuperhighway",
      "product_dependencies" : [
        "HTTPTypes",
        "HTTPTypesFoundation"
      ],
      "sources" : [
        "Endpoint+HTTPTypes.swift"
      ],
      "target_dependencies" : [
        "Superhighway"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.