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 macOS (SPM) on 3 Nov 2024 21:40:04 UTC.

Swift 6 data race errors: 3

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/Frizlab/swift-action.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
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
Fetching https://github.com/apple/swift-log.git
[1/3660] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (1.03s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.4.0 (0.68s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.4.0
========================================
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": "swift-action",
      "name": "swift-action",
      "url": "https://github.com/Frizlab/swift-action.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-action",
      "dependencies": [
        {
          "identity": "swift-log",
          "name": "swift-log",
          "url": "https://github.com/apple/swift-log.git",
          "version": "1.6.1",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-log",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/Frizlab/swift-action.git
[2/26] Fetching swift-action
Fetched https://github.com/Frizlab/swift-action.git from cache (0.65s)
Fetching https://github.com/apple/swift-log.git from cache
Fetched https://github.com/apple/swift-log.git from cache (0.56s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.1 (0.53s)
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
Creating working copy for https://github.com/Frizlab/swift-action.git
Working copy of https://github.com/Frizlab/swift-action.git resolved at master (9f24a2e)
warning: '.resolve-product-dependencies': dependency 'swift-action' is not used by any target
Found 1 product dependencies
  - swift-log
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/Frizlab/swift-action.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] Emitting module Logging
[5/7] Compiling Logging LogHandler.swift
[6/7] Compiling Logging Locks.swift
[7/7] Compiling Logging Logging.swift
[8/13] Compiling Action AnyAction.swift
[9/13] Compiling Action ActionError.swift
[10/13] Compiling Action Util.swift
[11/13] Compiling Action Action.swift
/Users/admin/builder/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. */
/Users/admin/builder/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 | }
/Users/admin/builder/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/13] Emitting module Action
/Users/admin/builder/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. */
/Users/admin/builder/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 | }
/Users/admin/builder/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/13] Compiling Action ActionConfig.swift
/Users/admin/builder/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. */
Build complete! (9.05s)
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" : "/Users/admin/builder/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"
}
Done.