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 retry-policy-service, reference 1.0.1 (2a6a1f), with Swift 6.0 (beta) for Linux on 14 Sep 2024 19:00:52 UTC.

Swift 6 data race errors: 0

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/igor11191708/retry-policy-service.git
Reference: 1.0.1
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/igor11191708/retry-policy-service
 * tag               1.0.1      -> FETCH_HEAD
HEAD is now at 2a6a1f0 update
Cloned https://github.com/igor11191708/retry-policy-service.git
Revision (git rev-parse @):
2a6a1f057fbf77337dfc73db98bd3d538127b3e2
SUCCESS checkout https://github.com/igor11191708/retry-policy-service.git at 1.0.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/igor11191708/retry-policy-service.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:9d7dab235f2b0b46edadd73b1fb0c3b5323df02053420324a4a2f8ca89cb54a5
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/6] Compiling retry_policy_service DispatchTimeInterval.swift
[4/6] Compiling retry_policy_service RetryService.swift
/host/spi-builder-workspace/Sources/retry-policy-service/RetryService.swift:16:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'RetryService' may have shared mutable state; this is an error in the Swift 6 language mode
11 | // RetryService Definition and Implementation
12 | @available(iOS 14.0, macOS 11.0, tvOS 15.0, watchOS 8.0, *)
13 | public struct RetryService: Sequence {
   |               `- note: consider making struct 'RetryService' conform to the 'Sendable' protocol
14 |
15 |     /// Default service
16 |     static let `default` = RetryService(strategy: .exponential())
   |                |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'RetryService' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'default' 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
17 |
18 |     /// Retry strategy
[5/6] Emitting module retry_policy_service
/host/spi-builder-workspace/Sources/retry-policy-service/RetryService.swift:16:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'RetryService' may have shared mutable state; this is an error in the Swift 6 language mode
11 | // RetryService Definition and Implementation
12 | @available(iOS 14.0, macOS 11.0, tvOS 15.0, watchOS 8.0, *)
13 | public struct RetryService: Sequence {
   |               `- note: consider making struct 'RetryService' conform to the 'Sendable' protocol
14 |
15 |     /// Default service
16 |     static let `default` = RetryService(strategy: .exponential())
   |                |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'RetryService' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'default' 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
17 |
18 |     /// Retry strategy
[6/6] Compiling retry_policy_service Strategy.swift
Build complete! (9.76s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "retry-policy-service",
  "name" : "retry-policy-service",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "11.0"
    },
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    }
  ],
  "products" : [
    {
      "name" : "retry-policy-service",
      "targets" : [
        "retry-policy-service"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "retry_policy_serviceTests",
      "module_type" : "SwiftTarget",
      "name" : "retry-policy-serviceTests",
      "path" : "Tests/retry-policy-serviceTests",
      "sources" : [
        "retry_policy_serviceTests.swift"
      ],
      "target_dependencies" : [
        "retry-policy-service"
      ],
      "type" : "test"
    },
    {
      "c99name" : "retry_policy_service",
      "module_type" : "SwiftTarget",
      "name" : "retry-policy-service",
      "path" : "Sources/retry-policy-service",
      "product_memberships" : [
        "retry-policy-service"
      ],
      "sources" : [
        "RetryService.swift",
        "Strategy.swift",
        "ext/DispatchTimeInterval.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:9d7dab235f2b0b46edadd73b1fb0c3b5323df02053420324a4a2f8ca89cb54a5
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.