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 SwiftCheck, reference 0.12.1 (748359), with Swift 6.1 for Linux on 28 Apr 2025 04:56:00 UTC.

Swift 6 data race errors: 5

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/bow-swift/SwiftCheck.git
Reference: 0.12.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/bow-swift/SwiftCheck
 * tag               0.12.1     -> FETCH_HEAD
HEAD is now at 748359f Update Package.swift
Submodule path 'Carthage/Checkouts/FileCheck': checked out 'bd9cb30ceee1f21c02f51a7168f58471449807d8'
Submodule 'Carthage/Checkouts/FileCheck' (https://github.com/trill-lang/FileCheck.git) registered for path 'Carthage/Checkouts/FileCheck'
Cloning into '/host/spi-builder-workspace/Carthage/Checkouts/FileCheck'...
Cloned https://github.com/bow-swift/SwiftCheck.git
Revision (git rev-parse @):
748359f9a95edf94d0c4664102f104f56b1ff1fb
SUCCESS checkout https://github.com/bow-swift/SwiftCheck.git at 0.12.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/bow-swift/SwiftCheck.git
https://github.com/bow-swift/SwiftCheck.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftCheck",
  "name" : "SwiftCheck",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftCheck",
      "targets" : [
        "SwiftCheck"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftCheck",
      "module_type" : "SwiftTarget",
      "name" : "SwiftCheck",
      "path" : "Sources/SwiftCheck",
      "product_memberships" : [
        "SwiftCheck"
      ],
      "sources" : [
        "Arbitrary.swift",
        "Cartesian.swift",
        "Check.swift",
        "CoArbitrary.swift",
        "Compose.swift",
        "Gen.swift",
        "Lattice.swift",
        "Modifiers.swift",
        "Property.swift",
        "Random.swift",
        "Rose.swift",
        "State.swift",
        "Test.swift",
        "Testable.swift",
        "WitnessedArbitrary.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/17] Compiling SwiftCheck Rose.swift
[4/17] Compiling SwiftCheck State.swift
[5/18] Compiling SwiftCheck WitnessedArbitrary.swift
[6/18] Compiling SwiftCheck Test.swift
[7/18] Compiling SwiftCheck Testable.swift
[8/18] Compiling SwiftCheck Compose.swift
[9/18] Compiling SwiftCheck Gen.swift
[10/18] Compiling SwiftCheck Lattice.swift
/host/spi-builder-workspace/Sources/SwiftCheck/Lattice.swift:111:13: warning: var 'FLT_MAX' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
109 |
110 | 	/// Maximum value of `Float`.
111 | 	public var FLT_MAX: Float = 3.40282347e+38
    |             |- warning: var 'FLT_MAX' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'FLT_MAX' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'FLT_MAX' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
112 | 	/// Minimum value of `Float`.
113 | 	public var FLT_MIN: Float = 1.17549435e-38
/host/spi-builder-workspace/Sources/SwiftCheck/Lattice.swift:113:13: warning: var 'FLT_MIN' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
111 | 	public var FLT_MAX: Float = 3.40282347e+38
112 | 	/// Minimum value of `Float`.
113 | 	public var FLT_MIN: Float = 1.17549435e-38
    |             |- warning: var 'FLT_MIN' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'FLT_MIN' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'FLT_MIN' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
114 |
115 | 	/// Maximum value of `Double`.
/host/spi-builder-workspace/Sources/SwiftCheck/Lattice.swift:116:13: warning: var 'DBL_MAX' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
114 |
115 | 	/// Maximum value of `Double`.
116 | 	public var DBL_MAX: Double = 1.7976931348623157e+308
    |             |- warning: var 'DBL_MAX' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'DBL_MAX' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'DBL_MAX' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 | 	/// Minimum value of `Double`.
118 | 	public var DBL_MIN: Double = 2.2250738585072014e-308
/host/spi-builder-workspace/Sources/SwiftCheck/Lattice.swift:118:13: warning: var 'DBL_MIN' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
116 | 	public var DBL_MAX: Double = 1.7976931348623157e+308
117 | 	/// Minimum value of `Double`.
118 | 	public var DBL_MIN: Double = 2.2250738585072014e-308
    |             |- warning: var 'DBL_MIN' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'DBL_MIN' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'DBL_MIN' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
119 | #else
120 | 	import Darwin
/host/spi-builder-workspace/Sources/SwiftCheck/Lattice.swift:113:30: warning: '1.17549435e-38' underflows and loses precision during conversion to 'Float'
111 | 	public var FLT_MAX: Float = 3.40282347e+38
112 | 	/// Minimum value of `Float`.
113 | 	public var FLT_MIN: Float = 1.17549435e-38
    |                              `- warning: '1.17549435e-38' underflows and loses precision during conversion to 'Float'
114 |
115 | 	/// Maximum value of `Double`.
[11/18] Compiling SwiftCheck Modifiers.swift
/host/spi-builder-workspace/Sources/SwiftCheck/Lattice.swift:111:13: warning: var 'FLT_MAX' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
109 |
110 | 	/// Maximum value of `Float`.
111 | 	public var FLT_MAX: Float = 3.40282347e+38
    |             |- warning: var 'FLT_MAX' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'FLT_MAX' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'FLT_MAX' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
112 | 	/// Minimum value of `Float`.
113 | 	public var FLT_MIN: Float = 1.17549435e-38
/host/spi-builder-workspace/Sources/SwiftCheck/Lattice.swift:113:13: warning: var 'FLT_MIN' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
111 | 	public var FLT_MAX: Float = 3.40282347e+38
112 | 	/// Minimum value of `Float`.
113 | 	public var FLT_MIN: Float = 1.17549435e-38
    |             |- warning: var 'FLT_MIN' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'FLT_MIN' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'FLT_MIN' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
114 |
115 | 	/// Maximum value of `Double`.
/host/spi-builder-workspace/Sources/SwiftCheck/Lattice.swift:116:13: warning: var 'DBL_MAX' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
114 |
115 | 	/// Maximum value of `Double`.
116 | 	public var DBL_MAX: Double = 1.7976931348623157e+308
    |             |- warning: var 'DBL_MAX' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'DBL_MAX' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'DBL_MAX' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 | 	/// Minimum value of `Double`.
118 | 	public var DBL_MIN: Double = 2.2250738585072014e-308
/host/spi-builder-workspace/Sources/SwiftCheck/Lattice.swift:118:13: warning: var 'DBL_MIN' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
116 | 	public var DBL_MAX: Double = 1.7976931348623157e+308
117 | 	/// Minimum value of `Double`.
118 | 	public var DBL_MIN: Double = 2.2250738585072014e-308
    |             |- warning: var 'DBL_MIN' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'DBL_MIN' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'DBL_MIN' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
119 | #else
120 | 	import Darwin
/host/spi-builder-workspace/Sources/SwiftCheck/Lattice.swift:113:30: warning: '1.17549435e-38' underflows and loses precision during conversion to 'Float'
111 | 	public var FLT_MAX: Float = 3.40282347e+38
112 | 	/// Minimum value of `Float`.
113 | 	public var FLT_MIN: Float = 1.17549435e-38
    |                              `- warning: '1.17549435e-38' underflows and loses precision during conversion to 'Float'
114 |
115 | 	/// Maximum value of `Double`.
[12/18] Compiling SwiftCheck Property.swift
/host/spi-builder-workspace/Sources/SwiftCheck/Random.swift:103:13: warning: var 'theStdGen' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
101 | }
102 |
103 | private var theStdGen : StdGen = mkStdRNG(0)
    |             |- warning: var 'theStdGen' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'theStdGen' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'theStdGen' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
104 |
105 | /// A library-provided standard random number generator.
[13/18] Compiling SwiftCheck Random.swift
/host/spi-builder-workspace/Sources/SwiftCheck/Random.swift:103:13: warning: var 'theStdGen' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
101 | }
102 |
103 | private var theStdGen : StdGen = mkStdRNG(0)
    |             |- warning: var 'theStdGen' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'theStdGen' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'theStdGen' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
104 |
105 | /// A library-provided standard random number generator.
[14/18] Compiling SwiftCheck Check.swift
[15/18] Compiling SwiftCheck CoArbitrary.swift
[16/18] Emitting module SwiftCheck
/host/spi-builder-workspace/Sources/SwiftCheck/Lattice.swift:111:13: warning: var 'FLT_MAX' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
109 |
110 | 	/// Maximum value of `Float`.
111 | 	public var FLT_MAX: Float = 3.40282347e+38
    |             |- warning: var 'FLT_MAX' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'FLT_MAX' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'FLT_MAX' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
112 | 	/// Minimum value of `Float`.
113 | 	public var FLT_MIN: Float = 1.17549435e-38
/host/spi-builder-workspace/Sources/SwiftCheck/Lattice.swift:113:13: warning: var 'FLT_MIN' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
111 | 	public var FLT_MAX: Float = 3.40282347e+38
112 | 	/// Minimum value of `Float`.
113 | 	public var FLT_MIN: Float = 1.17549435e-38
    |             |- warning: var 'FLT_MIN' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'FLT_MIN' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'FLT_MIN' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
114 |
115 | 	/// Maximum value of `Double`.
/host/spi-builder-workspace/Sources/SwiftCheck/Lattice.swift:116:13: warning: var 'DBL_MAX' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
114 |
115 | 	/// Maximum value of `Double`.
116 | 	public var DBL_MAX: Double = 1.7976931348623157e+308
    |             |- warning: var 'DBL_MAX' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'DBL_MAX' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'DBL_MAX' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 | 	/// Minimum value of `Double`.
118 | 	public var DBL_MIN: Double = 2.2250738585072014e-308
/host/spi-builder-workspace/Sources/SwiftCheck/Lattice.swift:118:13: warning: var 'DBL_MIN' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
116 | 	public var DBL_MAX: Double = 1.7976931348623157e+308
117 | 	/// Minimum value of `Double`.
118 | 	public var DBL_MIN: Double = 2.2250738585072014e-308
    |             |- warning: var 'DBL_MIN' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'DBL_MIN' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'DBL_MIN' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
119 | #else
120 | 	import Darwin
/host/spi-builder-workspace/Sources/SwiftCheck/Random.swift:103:13: warning: var 'theStdGen' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
101 | }
102 |
103 | private var theStdGen : StdGen = mkStdRNG(0)
    |             |- warning: var 'theStdGen' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'theStdGen' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: add '@MainActor' to make var 'theStdGen' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
104 |
105 | /// A library-provided standard random number generator.
/host/spi-builder-workspace/Sources/SwiftCheck/Lattice.swift:113:30: warning: '1.17549435e-38' underflows and loses precision during conversion to 'Float'
111 | 	public var FLT_MAX: Float = 3.40282347e+38
112 | 	/// Minimum value of `Float`.
113 | 	public var FLT_MIN: Float = 1.17549435e-38
    |                              `- warning: '1.17549435e-38' underflows and loses precision during conversion to 'Float'
114 |
115 | 	/// Maximum value of `Double`.
[17/18] Compiling SwiftCheck Arbitrary.swift
[18/18] Compiling SwiftCheck Cartesian.swift
Build complete! (6.62s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftCheck",
  "name" : "SwiftCheck",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftCheck",
      "targets" : [
        "SwiftCheck"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftCheck",
      "module_type" : "SwiftTarget",
      "name" : "SwiftCheck",
      "path" : "Sources/SwiftCheck",
      "product_memberships" : [
        "SwiftCheck"
      ],
      "sources" : [
        "Arbitrary.swift",
        "Cartesian.swift",
        "Check.swift",
        "CoArbitrary.swift",
        "Compose.swift",
        "Gen.swift",
        "Lattice.swift",
        "Modifiers.swift",
        "Property.swift",
        "Random.swift",
        "Rose.swift",
        "State.swift",
        "Test.swift",
        "Testable.swift",
        "WitnessedArbitrary.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Done.