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 async-http-client, reference main (8e82f6), with Swift 6.0 (beta) for macOS (SPM) on 14 Sep 2024 20:09:27 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.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.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/igor11191708/async-http-client.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/igor11191708/async-http-client
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 8e82f6b Update .spi.yml
Cloned https://github.com/igor11191708/async-http-client.git
Revision (git rev-parse @):
8e82f6b5b59bdae2de019a36ca38a2da3aa6a9e8
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/igor11191708/async-http-client.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/igor11191708/async-http-client.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.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-117DEE11B69C53C9.txt
[4/7] Compiling retry_policy_service Strategy.swift
[5/7] Compiling retry_policy_service DispatchTimeInterval.swift
[6/7] Compiling retry_policy_service RetryService.swift
[7/7] Emitting module retry_policy_service
[8/28] Emitting module async_http_client
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/async-http-client/proxy/http/Proxy.swift:214:17: warning: let 'strategy' is not concurrency-safe because non-'Sendable' type '(UInt) -> RetryService.Strategy' may have shared mutable state; this is an error in the Swift 6 language mode
212 |
213 | /// Get default strategy for retries
214 | fileprivate let strategy : (UInt) -> RetryService.Strategy = { retry in
    |                 |- warning: let 'strategy' is not concurrency-safe because non-'Sendable' type '(UInt) -> RetryService.Strategy' may have shared mutable state; this is an error in the Swift 6 language mode
    |                 |- note: annotate 'strategy' 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
215 |    .exponential(retry: retry)
216 | }
[9/30] Compiling async_http_client IConfiguration.swift
[10/30] Compiling async_http_client IProxy.swift
[11/30] Compiling async_http_client IResponse.swift
[12/30] Compiling async_http_client Direct.swift
[13/30] Compiling async_http_client Http.swift
[14/30] Compiling async_http_client Response.swift
[15/30] Compiling async_http_client HttpMethod.swift
[16/30] Compiling async_http_client JsonReader.swift
[17/30] Compiling async_http_client Validate.swift
[18/30] Compiling async_http_client Errors.swift
[19/30] Compiling async_http_client ITaskDelegate.swift
[20/30] Compiling async_http_client RequestHelper.swift
[21/30] Compiling async_http_client SendHelper.swift
[22/30] Compiling async_http_client Status.swift
[23/30] Compiling async_http_client JsonWriter.swift
[24/30] Compiling async_http_client IReader.swift
[25/30] Compiling async_http_client IWriter.swift
[26/30] Compiling async_http_client IValidate.swift
[27/30] Compiling async_http_client UrlHelper.swift
[28/30] Compiling async_http_client Configuration.swift
[29/30] Compiling async_http_client Proxy+.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/async-http-client/proxy/http/Proxy.swift:214:17: warning: let 'strategy' is not concurrency-safe because non-'Sendable' type '(UInt) -> RetryService.Strategy' may have shared mutable state; this is an error in the Swift 6 language mode
212 |
213 | /// Get default strategy for retries
214 | fileprivate let strategy : (UInt) -> RetryService.Strategy = { retry in
    |                 |- warning: let 'strategy' is not concurrency-safe because non-'Sendable' type '(UInt) -> RetryService.Strategy' may have shared mutable state; this is an error in the Swift 6 language mode
    |                 |- note: annotate 'strategy' 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
215 |    .exponential(retry: retry)
216 | }
[30/30] Compiling async_http_client Proxy.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/async-http-client/proxy/http/Proxy.swift:214:17: warning: let 'strategy' is not concurrency-safe because non-'Sendable' type '(UInt) -> RetryService.Strategy' may have shared mutable state; this is an error in the Swift 6 language mode
212 |
213 | /// Get default strategy for retries
214 | fileprivate let strategy : (UInt) -> RetryService.Strategy = { retry in
    |                 |- warning: let 'strategy' is not concurrency-safe because non-'Sendable' type '(UInt) -> RetryService.Strategy' may have shared mutable state; this is an error in the Swift 6 language mode
    |                 |- note: annotate 'strategy' 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
215 |    .exponential(retry: retry)
216 | }
Build complete! (12.02s)
Fetching https://github.com/The-Igor/retry-policy-service.git
[2/95] Fetching retry-policy-service
Fetched https://github.com/The-Igor/retry-policy-service.git from cache (0.68s)
Computing version for https://github.com/The-Igor/retry-policy-service.git
Computed https://github.com/The-Igor/retry-policy-service.git at 1.0.1 (0.75s)
Creating working copy for https://github.com/The-Igor/retry-policy-service.git
Working copy of https://github.com/The-Igor/retry-policy-service.git resolved at 1.0.1
Build complete.
{
  "dependencies" : [
    {
      "identity" : "retry-policy-service",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.1",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/The-Igor/retry-policy-service.git"
    }
  ],
  "manifest_display_name" : "async-http-client",
  "name" : "async-http-client",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    }
  ],
  "products" : [
    {
      "name" : "async-http-client",
      "targets" : [
        "async-http-client"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "async_http_clientTests",
      "module_type" : "SwiftTarget",
      "name" : "async-http-clientTests",
      "path" : "Tests/async-http-clientTests",
      "sources" : [
        "async_http_clientTests.swift",
        "helper/UrlHelper.swift"
      ],
      "target_dependencies" : [
        "async-http-client"
      ],
      "type" : "test"
    },
    {
      "c99name" : "async_http_client",
      "module_type" : "SwiftTarget",
      "name" : "async-http-client",
      "path" : "Sources/async-http-client",
      "product_dependencies" : [
        "retry-policy-service"
      ],
      "product_memberships" : [
        "async-http-client"
      ],
      "sources" : [
        "protocol/IConfiguration.swift",
        "protocol/IProxy.swift",
        "protocol/IResponse.swift",
        "protocol/code/IReader.swift",
        "protocol/code/IWriter.swift",
        "protocol/validate/IValidate.swift",
        "proxy/helper/RequestHelper.swift",
        "proxy/helper/SendHelper.swift",
        "proxy/helper/UrlHelper.swift",
        "proxy/http/Configuration.swift",
        "proxy/http/Direct.swift",
        "proxy/http/Http.swift",
        "proxy/http/Proxy+.swift",
        "proxy/http/Proxy.swift",
        "proxy/http/Response.swift",
        "proxy/http/enum/HttpMethod.swift",
        "proxy/http/error/Errors.swift",
        "proxy/http/protocol/ITaskDelegate.swift",
        "reader/JsonReader.swift",
        "validate/Validate.swift",
        "validate/type/Status.swift",
        "writer/JsonWriter.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.