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 Chalk 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/luoxiu/Chalk.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/luoxiu/Chalk
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 21772da swiftformat .
Cloned https://github.com/luoxiu/Chalk.git
Revision (git rev-parse @):
21772da25e1be308ea8a8ab2b67297fb35195b35
SUCCESS checkout https://github.com/luoxiu/Chalk.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/luoxiu/Chalk.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/8] Write sources
[3/8] Write chalk-app-entitlement.plist
[4/8] Write swift-version-6F35C1178C84523A.txt
[6/14] Compiling Rainbow Color.swift
[7/14] Compiling Rainbow NSRegularExpression.swift
[8/14] Compiling Rainbow Double.swift
[9/14] Compiling Rainbow Colors.swift
[10/14] Emitting module Rainbow
[11/14] Compiling Rainbow Color+Cocoa.swift
[12/22] Compiling Chalk TerminalStringConvertible.swift
[13/22] Compiling Chalk String+RegRxp.swift
[14/22] Compiling Chalk TerminalSupportedColor.swift
/Users/admin/builder/spi-builder-workspace/Sources/Chalk/TerminalSupportedColor.swift:11:5: warning: var '__preset_supported_color__' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | // test
11 | var __preset_supported_color__: TerminalSupportedColor?
   |     |- warning: var '__preset_supported_color__' 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 '__preset_supported_color__' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: annotate '__preset_supported_color__' 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
12 |
13 | // https://github.com/chalk/supports-color
/Users/admin/builder/spi-builder-workspace/Sources/Chalk/TerminalSupportedColor.swift:21:23: warning: static property 'current' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
19 |     case ansi16m
20 |
21 |     public static var current: TerminalSupportedColor = {
   |                       |- warning: static property 'current' 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 'current' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'current' 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
22 |         if let color = __preset_supported_color__ {
23 |             return color
[15/22] Compiling Chalk Modifier.swift
[16/22] Compiling Chalk Style.swift
/Users/admin/builder/spi-builder-workspace/Sources/Chalk/Style.swift:10:12: warning: let 'chalk' is not concurrency-safe because non-'Sendable' type 'Style' may have shared mutable state; this is an error in the Swift 6 language mode
  8 | import Foundation
  9 |
 10 | public let chalk = Style()
    |            |- warning: let 'chalk' is not concurrency-safe because non-'Sendable' type 'Style' may have shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: annotate 'chalk' 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
 11 | public let ck = Style()
 12 |
 13 | public struct Style {
    |               `- note: consider making struct 'Style' conform to the 'Sendable' protocol
 14 |     public var fgColor: TerminalColor?
 15 |
/Users/admin/builder/spi-builder-workspace/Sources/Chalk/Style.swift:11:12: warning: let 'ck' is not concurrency-safe because non-'Sendable' type 'Style' may have shared mutable state; this is an error in the Swift 6 language mode
  9 |
 10 | public let chalk = Style()
 11 | public let ck = Style()
    |            |- warning: let 'ck' is not concurrency-safe because non-'Sendable' type 'Style' may have shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: annotate 'ck' 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
 12 |
 13 | public struct Style {
    |               `- note: consider making struct 'Style' conform to the 'Sendable' protocol
 14 |     public var fgColor: TerminalColor?
 15 |
[17/22] Compiling Chalk TerminalString.swift
/Users/admin/builder/spi-builder-workspace/Sources/Chalk/TerminalSupportedColor.swift:21:23: warning: static property 'current' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
19 |     case ansi16m
20 |
21 |     public static var current: TerminalSupportedColor = {
   |                       |- warning: static property 'current' 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 'current' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'current' 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
22 |         if let color = __preset_supported_color__ {
23 |             return color
[18/22] Compiling Chalk Color.swift
/Users/admin/builder/spi-builder-workspace/Sources/Chalk/TerminalSupportedColor.swift:21:23: warning: static property 'current' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
19 |     case ansi16m
20 |
21 |     public static var current: TerminalSupportedColor = {
   |                       |- warning: static property 'current' 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 'current' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'current' 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
22 |         if let color = __preset_supported_color__ {
23 |             return color
[19/22] Emitting module Chalk
/Users/admin/builder/spi-builder-workspace/Sources/Chalk/Style.swift:10:12: warning: let 'chalk' is not concurrency-safe because non-'Sendable' type 'Style' may have shared mutable state; this is an error in the Swift 6 language mode
  8 | import Foundation
  9 |
 10 | public let chalk = Style()
    |            |- warning: let 'chalk' is not concurrency-safe because non-'Sendable' type 'Style' may have shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: annotate 'chalk' 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
 11 | public let ck = Style()
 12 |
 13 | public struct Style {
    |               `- note: consider making struct 'Style' conform to the 'Sendable' protocol
 14 |     public var fgColor: TerminalColor?
 15 |
/Users/admin/builder/spi-builder-workspace/Sources/Chalk/Style.swift:11:12: warning: let 'ck' is not concurrency-safe because non-'Sendable' type 'Style' may have shared mutable state; this is an error in the Swift 6 language mode
  9 |
 10 | public let chalk = Style()
 11 | public let ck = Style()
    |            |- warning: let 'ck' is not concurrency-safe because non-'Sendable' type 'Style' may have shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: annotate 'ck' 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
 12 |
 13 | public struct Style {
    |               `- note: consider making struct 'Style' conform to the 'Sendable' protocol
 14 |     public var fgColor: TerminalColor?
 15 |
/Users/admin/builder/spi-builder-workspace/Sources/Chalk/TerminalSupportedColor.swift:11:5: warning: var '__preset_supported_color__' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | // test
11 | var __preset_supported_color__: TerminalSupportedColor?
   |     |- warning: var '__preset_supported_color__' 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 '__preset_supported_color__' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: annotate '__preset_supported_color__' 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
12 |
13 | // https://github.com/chalk/supports-color
/Users/admin/builder/spi-builder-workspace/Sources/Chalk/TerminalSupportedColor.swift:21:23: warning: static property 'current' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
19 |     case ansi16m
20 |
21 |     public static var current: TerminalSupportedColor = {
   |                       |- warning: static property 'current' 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 'current' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'current' 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
22 |         if let color = __preset_supported_color__ {
23 |             return color
[20/24] Emitting module chalk_app
/Users/admin/builder/spi-builder-workspace/Sources/Chalk/Style.swift:11:12: warning: let 'ck' is not concurrency-safe because non-'Sendable' type 'Style' may have shared mutable state; this is an error in the Swift 6 language mode
  9 |
 10 | public let chalk = Style()
 11 | public let ck = Style()
    |            |- warning: let 'ck' is not concurrency-safe because non-'Sendable' type 'Style' may have shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: annotate 'ck' 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
 12 |
 13 | public struct Style {
    |               `- note: consider making struct 'Style' conform to the 'Sendable' protocol
 14 |     public var fgColor: TerminalColor?
 15 |
[21/24] Compiling chalk_app main.swift
/Users/admin/builder/spi-builder-workspace/Sources/Chalk/Style.swift:11:12: warning: let 'ck' is not concurrency-safe because non-'Sendable' type 'Style' may have shared mutable state; this is an error in the Swift 6 language mode
  9 |
 10 | public let chalk = Style()
 11 | public let ck = Style()
    |            |- warning: let 'ck' is not concurrency-safe because non-'Sendable' type 'Style' may have shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: annotate 'ck' 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
 12 |
 13 | public struct Style {
    |               `- note: consider making struct 'Style' conform to the 'Sendable' protocol
 14 |     public var fgColor: TerminalColor?
 15 |
[21/24] Write Objects.LinkFileList
[22/24] Linking chalk-app
[23/24] Applying chalk-app
Build complete! (30.48s)
Fetching https://github.com/luoxiu/Rainbow
[1/234] Fetching rainbow
Fetched https://github.com/luoxiu/Rainbow from cache (0.79s)
Computing version for https://github.com/luoxiu/Rainbow
Computed https://github.com/luoxiu/Rainbow at 0.1.1 (0.67s)
Creating working copy for https://github.com/luoxiu/Rainbow
Working copy of https://github.com/luoxiu/Rainbow resolved at 0.1.1
Build complete.
{
  "dependencies" : [
    {
      "identity" : "rainbow",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.1.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/luoxiu/Rainbow"
    }
  ],
  "manifest_display_name" : "Chalk",
  "name" : "Chalk",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Chalk",
      "targets" : [
        "Chalk"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "chalk-app",
      "targets" : [
        "chalk-app"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "chalk_app",
      "module_type" : "SwiftTarget",
      "name" : "chalk-app",
      "path" : "Sources/chalk-app",
      "product_memberships" : [
        "chalk-app"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "Chalk"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "ChalkTests",
      "module_type" : "SwiftTarget",
      "name" : "ChalkTests",
      "path" : "Tests/ChalkTests",
      "sources" : [
        "ChalkTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Chalk"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Chalk",
      "module_type" : "SwiftTarget",
      "name" : "Chalk",
      "path" : "Sources/Chalk",
      "product_dependencies" : [
        "Rainbow"
      ],
      "product_memberships" : [
        "Chalk",
        "chalk-app"
      ],
      "sources" : [
        "Color.swift",
        "Modifier.swift",
        "Style.swift",
        "TerminalString.swift",
        "TerminalStringConvertible.swift",
        "TerminalSupportedColor.swift",
        "Utils/String+RegRxp.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.