This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 4

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/theBreadCompany/swiftbar.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
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:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/theBreadCompany/swiftbar.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/7] Write sources
[2/7] Write Example-entitlement.plist
[3/7] Write swift-version-6F35C1178C84523A.txt
[5/11] Compiling swiftbar ProgressingCollection.swift
[6/11] Compiling swiftbar ProgressbarConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Sources/swiftbar/ProgressbarConfiguration.swift:39:32: warning: static property 'implementations' is not concurrency-safe because it is non-isolated 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 non-isolated 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: annotate 'implementations' 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
 40 |
 41 |             public init(_ name: String, createdWith creator: @escaping Creator) {
/Users/admin/builder/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: annotate 'simpleBar' 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
 65 |                 let counterContent = " [\(progress)/\(config.total)]"
 66 |                 let barWidth = config.maxWidth - (counterContent.count)
/Users/admin/builder/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: annotate 'preciseBar' 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
 77 |                 let counterContent = " [\(progress)/\(config.total)]"
 78 |                 let percentCounter = "[\(Int(Float(progress) / Float(config.total) * 100))%] "
[7/11] Emitting module swiftbar
/Users/admin/builder/spi-builder-workspace/Sources/swiftbar/ProgressbarConfiguration.swift:39:32: warning: static property 'implementations' is not concurrency-safe because it is non-isolated 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 non-isolated 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: annotate 'implementations' 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
 40 |
 41 |             public init(_ name: String, createdWith creator: @escaping Creator) {
/Users/admin/builder/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: annotate 'simpleBar' 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
 65 |                 let counterContent = " [\(progress)/\(config.total)]"
 66 |                 let barWidth = config.maxWidth - (counterContent.count)
/Users/admin/builder/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: annotate 'preciseBar' 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
 77 |                 let counterContent = " [\(progress)/\(config.total)]"
 78 |                 let percentCounter = "[\(Int(Float(progress) / Float(config.total) * 100))%] "
[8/11] Compiling swiftbar Progressbar.swift
/Users/admin/builder/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: annotate 'simpleBar' 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
 65 |                 let counterContent = " [\(progress)/\(config.total)]"
 66 |                 let barWidth = config.maxWidth - (counterContent.count)
[9/13] Compiling Example main.swift
/Users/admin/builder/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: annotate 'preciseBar' 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
 77 |                 let counterContent = " [\(progress)/\(config.total)]"
 78 |                 let percentCounter = "[\(Int(Float(progress) / Float(config.total) * 100))%] "
[10/13] Emitting module Example
/Users/admin/builder/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: annotate 'preciseBar' 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
 77 |                 let counterContent = " [\(progress)/\(config.total)]"
 78 |                 let percentCounter = "[\(Int(Float(progress) / Float(config.total) * 100))%] "
[10/13] Write Objects.LinkFileList
[11/13] Linking Example
[12/13] Applying Example
Build complete! (20.12s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "swiftbar",
  "name" : "swiftbar",
  "path" : "/Users/admin/builder/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"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.