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 swiftbar, reference main (2c6f62), with Swift 6.1 for Linux on 26 Apr 2025 18:00:09 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.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/theBreadCompany/swiftbar.git
Reference: main
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/theBreadCompany/swiftbar
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 2c6f628 make it compile on Linux as well
Cloned https://github.com/theBreadCompany/swiftbar.git
Revision (git rev-parse @):
2c6f628c95557e633bc260324e017d848fdb6d8c
SUCCESS checkout https://github.com/theBreadCompany/swiftbar.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/theBreadCompany/swiftbar.git
https://github.com/theBreadCompany/swiftbar.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "swiftbar",
  "name" : "swiftbar",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "swiftbar",
      "targets" : [
        "swiftbar"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "Example",
      "targets" : [
        "Example"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "swiftbarTests",
      "module_type" : "SwiftTarget",
      "name" : "swiftbarTests",
      "path" : "Tests/swiftbarTests",
      "sources" : [
        "swiftbarTests.swift"
      ],
      "target_dependencies" : [
        "swiftbar"
      ],
      "type" : "test"
    },
    {
      "c99name" : "swiftbar",
      "module_type" : "SwiftTarget",
      "name" : "swiftbar",
      "path" : "Sources/swiftbar",
      "product_memberships" : [
        "swiftbar",
        "Example"
      ],
      "sources" : [
        "Progressbar.swift",
        "ProgressbarConfiguration.swift",
        "ProgressingCollection.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Example",
      "module_type" : "SwiftTarget",
      "name" : "Example",
      "path" : "Sources/Example",
      "product_memberships" : [
        "Example"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "swiftbar"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
[4/11] Compiling swiftbar ProgressingCollection.swift
[5/11] Compiling swiftbar Progressbar.swift
/host/spi-builder-workspace/Sources/swiftbar/Progressbar.swift:104:16: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
102 |     private func printProgress() {
103 |         print("\u{1B}[1A\u{1B}[K" + self.currentState())
104 |         fflush(stdout)
    |                `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
105 |     }
106 | }
/usr/include/stdio.h:144:14: note: var declared here
142 | /* Standard streams.  */
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
    |              `- note: var declared here
145 | extern FILE *stderr;		/* Standard error output stream.  */
146 | /* C89/C99 say they're macros.  Make them happy.  */
[6/11] Emitting module swiftbar
/host/spi-builder-workspace/Sources/swiftbar/ProgressbarConfiguration.swift:39:32: warning: static property 'implementations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 37 |         public struct Style: Codable {
 38 |
 39 |             private static var implementations = Dictionary<String, Creator>()
    |                                |- warning: static property 'implementations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                                |- note: convert 'implementations' to a 'let' constant to make 'Sendable' shared state immutable
    |                                |- note: add '@MainActor' to make static property 'implementations' part of global actor 'MainActor'
    |                                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 40 |
 41 |             public init(_ name: String, createdWith creator: @escaping Creator) {
/host/spi-builder-workspace/Sources/swiftbar/ProgressbarConfiguration.swift:64:31: warning: static property 'simpleBar' is not concurrency-safe because non-'Sendable' type 'Progressbar.Configuration.Style' may have shared mutable state; this is an error in the Swift 6 language mode
 35 |          which is basically a function receiving several parameters and returning the 'rendered' bar
 36 |          */
 37 |         public struct Style: Codable {
    |                       `- note: consider making struct 'Style' conform to the 'Sendable' protocol
 38 |
 39 |             private static var implementations = Dictionary<String, Creator>()
    :
 62 |
 63 |             public typealias Creator = (Int, Configuration) -> String
 64 |             public static let simpleBar = Style("simpleBar", createdWith: { progress, config in
    |                               |- warning: static property 'simpleBar' is not concurrency-safe because non-'Sendable' type 'Progressbar.Configuration.Style' may have shared mutable state; this is an error in the Swift 6 language mode
    |                               |- note: add '@MainActor' to make static property 'simpleBar' part of global actor 'MainActor'
    |                               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 65 |                 let counterContent = " [\(progress)/\(config.total)]"
 66 |                 let barWidth = config.maxWidth - (counterContent.count)
/host/spi-builder-workspace/Sources/swiftbar/ProgressbarConfiguration.swift:76:31: warning: static property 'preciseBar' is not concurrency-safe because non-'Sendable' type 'Progressbar.Configuration.Style' may have shared mutable state; this is an error in the Swift 6 language mode
 35 |          which is basically a function receiving several parameters and returning the 'rendered' bar
 36 |          */
 37 |         public struct Style: Codable {
    |                       `- note: consider making struct 'Style' conform to the 'Sendable' protocol
 38 |
 39 |             private static var implementations = Dictionary<String, Creator>()
    :
 74 |                 return barContent
 75 |             })
 76 |             public static let preciseBar = Style("preciseBar", createdWith: { progress, config in
    |                               |- warning: static property 'preciseBar' is not concurrency-safe because non-'Sendable' type 'Progressbar.Configuration.Style' may have shared mutable state; this is an error in the Swift 6 language mode
    |                               |- note: add '@MainActor' to make static property 'preciseBar' part of global actor 'MainActor'
    |                               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 77 |                 let counterContent = " [\(progress)/\(config.total)]"
 78 |                 let percentCounter = "[\(Int(Float(progress) / Float(config.total) * 100))%] "
[7/11] Compiling swiftbar ProgressbarConfiguration.swift
/host/spi-builder-workspace/Sources/swiftbar/ProgressbarConfiguration.swift:39:32: warning: static property 'implementations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 37 |         public struct Style: Codable {
 38 |
 39 |             private static var implementations = Dictionary<String, Creator>()
    |                                |- warning: static property 'implementations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                                |- note: convert 'implementations' to a 'let' constant to make 'Sendable' shared state immutable
    |                                |- note: add '@MainActor' to make static property 'implementations' part of global actor 'MainActor'
    |                                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 40 |
 41 |             public init(_ name: String, createdWith creator: @escaping Creator) {
/host/spi-builder-workspace/Sources/swiftbar/ProgressbarConfiguration.swift:64:31: warning: static property 'simpleBar' is not concurrency-safe because non-'Sendable' type 'Progressbar.Configuration.Style' may have shared mutable state; this is an error in the Swift 6 language mode
 35 |          which is basically a function receiving several parameters and returning the 'rendered' bar
 36 |          */
 37 |         public struct Style: Codable {
    |                       `- note: consider making struct 'Style' conform to the 'Sendable' protocol
 38 |
 39 |             private static var implementations = Dictionary<String, Creator>()
    :
 62 |
 63 |             public typealias Creator = (Int, Configuration) -> String
 64 |             public static let simpleBar = Style("simpleBar", createdWith: { progress, config in
    |                               |- warning: static property 'simpleBar' is not concurrency-safe because non-'Sendable' type 'Progressbar.Configuration.Style' may have shared mutable state; this is an error in the Swift 6 language mode
    |                               |- note: add '@MainActor' to make static property 'simpleBar' part of global actor 'MainActor'
    |                               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 65 |                 let counterContent = " [\(progress)/\(config.total)]"
 66 |                 let barWidth = config.maxWidth - (counterContent.count)
/host/spi-builder-workspace/Sources/swiftbar/ProgressbarConfiguration.swift:76:31: warning: static property 'preciseBar' is not concurrency-safe because non-'Sendable' type 'Progressbar.Configuration.Style' may have shared mutable state; this is an error in the Swift 6 language mode
 35 |          which is basically a function receiving several parameters and returning the 'rendered' bar
 36 |          */
 37 |         public struct Style: Codable {
    |                       `- note: consider making struct 'Style' conform to the 'Sendable' protocol
 38 |
 39 |             private static var implementations = Dictionary<String, Creator>()
    :
 74 |                 return barContent
 75 |             })
 76 |             public static let preciseBar = Style("preciseBar", createdWith: { progress, config in
    |                               |- warning: static property 'preciseBar' is not concurrency-safe because non-'Sendable' type 'Progressbar.Configuration.Style' may have shared mutable state; this is an error in the Swift 6 language mode
    |                               |- note: add '@MainActor' to make static property 'preciseBar' part of global actor 'MainActor'
    |                               `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 77 |                 let counterContent = " [\(progress)/\(config.total)]"
 78 |                 let percentCounter = "[\(Int(Float(progress) / Float(config.total) * 100))%] "
[8/12] Wrapping AST for swiftbar for debugging
[10/14] Emitting module Example
[11/14] Compiling Example main.swift
[12/15] Wrapping AST for Example for debugging
[13/15] Write Objects.LinkFileList
[14/15] Linking Example
Build complete! (6.42s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "swiftbar",
  "name" : "swiftbar",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "swiftbar",
      "targets" : [
        "swiftbar"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "Example",
      "targets" : [
        "Example"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "swiftbarTests",
      "module_type" : "SwiftTarget",
      "name" : "swiftbarTests",
      "path" : "Tests/swiftbarTests",
      "sources" : [
        "swiftbarTests.swift"
      ],
      "target_dependencies" : [
        "swiftbar"
      ],
      "type" : "test"
    },
    {
      "c99name" : "swiftbar",
      "module_type" : "SwiftTarget",
      "name" : "swiftbar",
      "path" : "Sources/swiftbar",
      "product_memberships" : [
        "swiftbar",
        "Example"
      ],
      "sources" : [
        "Progressbar.swift",
        "ProgressbarConfiguration.swift",
        "ProgressingCollection.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Example",
      "module_type" : "SwiftTarget",
      "name" : "Example",
      "path" : "Sources/Example",
      "product_memberships" : [
        "Example"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "swiftbar"
      ],
      "type" : "executable"
    }
  ],
  "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.