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 v1.4.6 (9a5624), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 20:11:34 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/igor11191708/async-http-client.git
Reference: v1.4.6
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/igor11191708/async-http-client
 * tag               v1.4.6     -> FETCH_HEAD
HEAD is now at 9a56240 support for new retry
Cloned https://github.com/igor11191708/async-http-client.git
Revision (git rev-parse @):
9a56240b21baff71f5399194a1f2af9ab8c4c076
SUCCESS checkout https://github.com/igor11191708/async-http-client.git at v1.4.6
Fetching https://github.com/The-Igor/retry-policy-service.git
[1/95] Fetching retry-policy-service
Fetched https://github.com/The-Igor/retry-policy-service.git from cache (0.69s)
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.65s)
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
========================================
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": "async-http-client",
      "name": "async-http-client",
      "url": "https://github.com/igor11191708/async-http-client.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/async-http-client",
      "dependencies": [
        {
          "identity": "retry-policy-service",
          "name": "retry-policy-service",
          "url": "https://github.com/The-Igor/retry-policy-service.git",
          "version": "1.0.1",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/retry-policy-service",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/igor11191708/async-http-client.git
[1/884] Fetching async-http-client
Fetched https://github.com/igor11191708/async-http-client.git from cache (0.78s)
Fetching https://github.com/The-Igor/retry-policy-service.git from cache
Fetched https://github.com/The-Igor/retry-policy-service.git from cache (0.46s)
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.03s)
Creating working copy for https://github.com/igor11191708/async-http-client.git
Working copy of https://github.com/igor11191708/async-http-client.git resolved at v1.4.6 (9a56240)
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
warning: '.resolve-product-dependencies': dependency 'async-http-client' is not used by any target
Found 1 product dependencies
  - retry-policy-service
========================================
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.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/7] Compiling retry_policy_service DispatchTimeInterval.swift
[5/7] Compiling retry_policy_service RetryService.swift
[6/7] Emitting module retry_policy_service
[7/7] Compiling retry_policy_service Strategy.swift
[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 Response.swift
[13/30] Compiling async_http_client HttpMethod.swift
[14/30] Compiling async_http_client Status.swift
[15/30] Compiling async_http_client JsonWriter.swift
[16/30] Compiling async_http_client Direct.swift
[17/30] Compiling async_http_client Http.swift
[18/30] Compiling async_http_client IReader.swift
[19/30] Compiling async_http_client IWriter.swift
[20/30] Compiling async_http_client IValidate.swift
[21/30] Compiling async_http_client JsonReader.swift
[22/30] Compiling async_http_client Validate.swift
[23/30] Compiling async_http_client Errors.swift
[24/30] Compiling async_http_client ITaskDelegate.swift
[25/30] Compiling async_http_client RequestHelper.swift
[26/30] Compiling async_http_client SendHelper.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! (10.03s)
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.