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 swift-action, reference master (9f24a2), with Swift 6.0 for Linux on 3 Nov 2024 21:32:13 UTC.

Swift 6 data race errors: 3

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Frizlab/swift-action.git
Reference: master
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/Frizlab/swift-action
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 9f24a2e Add Apache license to the project
Cloned https://github.com/Frizlab/swift-action.git
Revision (git rev-parse @):
9f24a2e76b0810831a60754809a93f559e6c24ce
SUCCESS checkout https://github.com/Frizlab/swift-action.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/Frizlab/swift-action.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/apple/swift-log.git
[1/3660] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.31s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.1 (0.36s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.1
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/8] Compiling Logging Locks.swift
[5/8] Emitting module Logging
[6/8] Compiling Logging Logging.swift
[7/8] Compiling Logging LogHandler.swift
[8/8] Compiling Logging MetadataProvider.swift
[10/15] Compiling Action ActionError.swift
[11/15] Compiling Action Action.swift
/host/spi-builder-workspace/Sources/Action/Action.swift:33:20: warning: static property 'alwaysInstantly' is not concurrency-safe because non-'Sendable' type 'WeakeningMode' may have shared mutable state; this is an error in the Swift 6 language mode
 24 | interval value, the weakening is done asynchronously after the handler is
 25 | called, on an internal queue. */
 26 | public enum WeakeningMode {
    |             `- note: consider making enum 'WeakeningMode' conform to the 'Sendable' protocol
 27 |
 28 | 	case never
    :
 31 | 	case always(successDelay: TimeInterval?, errorDelay: TimeInterval?)
 32 |
 33 | 	public static let alwaysInstantly = WeakeningMode.always(successDelay: nil, errorDelay: nil)
    |                    |- warning: static property 'alwaysInstantly' is not concurrency-safe because non-'Sendable' type 'WeakeningMode' may have shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: annotate 'alwaysInstantly' 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
 34 |
 35 | 	/** Customizable default, used by Action, when running it. */
/host/spi-builder-workspace/Sources/Action/Action.swift:36:20: warning: static property 'defaultMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 34 |
 35 | 	/** Customizable default, used by Action, when running it. */
 36 | 	public static var defaultMode = WeakeningMode.alwaysInstantly
    |                    |- warning: static property 'defaultMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: convert 'defaultMode' to a 'let' constant to make 'Sendable' shared state immutable
    |                    |- note: annotate 'defaultMode' 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
 37 |
 38 | }
/host/spi-builder-workspace/Sources/Action/ActionConfig.swift:26:20: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 | public struct ActionConfig {
25 |
26 | 	public static var logger: Logger? = nil
   |                    |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'logger' 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
27 |
28 | 	/** This struct is simply a container for static configuration properties. */
[12/15] Emitting module Action
/host/spi-builder-workspace/Sources/Action/Action.swift:33:20: warning: static property 'alwaysInstantly' is not concurrency-safe because non-'Sendable' type 'WeakeningMode' may have shared mutable state; this is an error in the Swift 6 language mode
 24 | interval value, the weakening is done asynchronously after the handler is
 25 | called, on an internal queue. */
 26 | public enum WeakeningMode {
    |             `- note: consider making enum 'WeakeningMode' conform to the 'Sendable' protocol
 27 |
 28 | 	case never
    :
 31 | 	case always(successDelay: TimeInterval?, errorDelay: TimeInterval?)
 32 |
 33 | 	public static let alwaysInstantly = WeakeningMode.always(successDelay: nil, errorDelay: nil)
    |                    |- warning: static property 'alwaysInstantly' is not concurrency-safe because non-'Sendable' type 'WeakeningMode' may have shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: annotate 'alwaysInstantly' 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
 34 |
 35 | 	/** Customizable default, used by Action, when running it. */
/host/spi-builder-workspace/Sources/Action/Action.swift:36:20: warning: static property 'defaultMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 34 |
 35 | 	/** Customizable default, used by Action, when running it. */
 36 | 	public static var defaultMode = WeakeningMode.alwaysInstantly
    |                    |- warning: static property 'defaultMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: convert 'defaultMode' to a 'let' constant to make 'Sendable' shared state immutable
    |                    |- note: annotate 'defaultMode' 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
 37 |
 38 | }
/host/spi-builder-workspace/Sources/Action/ActionConfig.swift:26:20: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 | public struct ActionConfig {
25 |
26 | 	public static var logger: Logger? = nil
   |                    |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'logger' 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
27 |
28 | 	/** This struct is simply a container for static configuration properties. */
[13/15] Compiling Action Util.swift
[14/15] Compiling Action ActionConfig.swift
/host/spi-builder-workspace/Sources/Action/ActionConfig.swift:26:20: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 | public struct ActionConfig {
25 |
26 | 	public static var logger: Logger? = nil
   |                    |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'logger' 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
27 |
28 | 	/** This struct is simply a container for static configuration properties. */
[15/15] Compiling Action AnyAction.swift
Build complete! (10.13s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.4.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log.git"
    }
  ],
  "manifest_display_name" : "swift-action",
  "name" : "swift-action",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Action",
      "targets" : [
        "Action"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "Action",
      "module_type" : "SwiftTarget",
      "name" : "Action",
      "path" : "Sources/Action",
      "product_dependencies" : [
        "Logging"
      ],
      "product_memberships" : [
        "Action"
      ],
      "sources" : [
        "Action.swift",
        "ActionConfig.swift",
        "ActionError.swift",
        "AnyAction.swift",
        "Util.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.