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, reference 0.5.0 (a7f58e), with Swift 6.0 for Linux on 29 Nov 2024 20:19:15 UTC.

Swift 6 data race errors: 8

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-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.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mxcl/chalk.git
Reference: 0.5.0
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/mxcl/chalk
 * tag               0.5.0      -> FETCH_HEAD
HEAD is now at a7f58e4 Merge pull request #7 from mickeyl/master
Cloned https://github.com/mxcl/chalk.git
Revision (git rev-parse @):
a7f58e47a08ca5a84f73acc4bcf6c2c19d990609
SUCCESS checkout https://github.com/mxcl/chalk.git at 0.5.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/mxcl/chalk.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-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.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/4] Emitting module Chalk
/host/spi-builder-workspace/Chalk.swift:59:23: warning: static property 'bold' is not concurrency-safe because non-'Sendable' type 'Style' may have shared mutable state; this is an error in the Swift 6 language mode
 56 | }
 57 |
 58 | public struct Style: OptionSet {
    |               `- note: consider making struct 'Style' conform to the 'Sendable' protocol
 59 |     public static let bold = Style(rawValue: 1 << 0)
    |                       |- warning: static property 'bold' 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 'bold' 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
 60 |     public static let dim = Style(rawValue: 1 << 1)
 61 |     public static let italic = Style(rawValue: 1 << 2)
/host/spi-builder-workspace/Chalk.swift:60:23: warning: static property 'dim' is not concurrency-safe because non-'Sendable' type 'Style' may have shared mutable state; this is an error in the Swift 6 language mode
 56 | }
 57 |
 58 | public struct Style: OptionSet {
    |               `- note: consider making struct 'Style' conform to the 'Sendable' protocol
 59 |     public static let bold = Style(rawValue: 1 << 0)
 60 |     public static let dim = Style(rawValue: 1 << 1)
    |                       |- warning: static property 'dim' 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 'dim' 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
 61 |     public static let italic = Style(rawValue: 1 << 2)
 62 |     public static let underlined = Style(rawValue: 1 << 3)
/host/spi-builder-workspace/Chalk.swift:61:23: warning: static property 'italic' is not concurrency-safe because non-'Sendable' type 'Style' may have shared mutable state; this is an error in the Swift 6 language mode
 56 | }
 57 |
 58 | public struct Style: OptionSet {
    |               `- note: consider making struct 'Style' conform to the 'Sendable' protocol
 59 |     public static let bold = Style(rawValue: 1 << 0)
 60 |     public static let dim = Style(rawValue: 1 << 1)
 61 |     public static let italic = Style(rawValue: 1 << 2)
    |                       |- warning: static property 'italic' 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 'italic' 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
 62 |     public static let underlined = Style(rawValue: 1 << 3)
 63 |     public static let blink = Style(rawValue: 1 << 4)
/host/spi-builder-workspace/Chalk.swift:62:23: warning: static property 'underlined' is not concurrency-safe because non-'Sendable' type 'Style' may have shared mutable state; this is an error in the Swift 6 language mode
 56 | }
 57 |
 58 | public struct Style: OptionSet {
    |               `- note: consider making struct 'Style' conform to the 'Sendable' protocol
 59 |     public static let bold = Style(rawValue: 1 << 0)
 60 |     public static let dim = Style(rawValue: 1 << 1)
 61 |     public static let italic = Style(rawValue: 1 << 2)
 62 |     public static let underlined = Style(rawValue: 1 << 3)
    |                       |- warning: static property 'underlined' 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 'underlined' 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
 63 |     public static let blink = Style(rawValue: 1 << 4)
 64 |     public static let inverse = Style(rawValue: 1 << 5)
/host/spi-builder-workspace/Chalk.swift:63:23: warning: static property 'blink' is not concurrency-safe because non-'Sendable' type 'Style' may have shared mutable state; this is an error in the Swift 6 language mode
 56 | }
 57 |
 58 | public struct Style: OptionSet {
    |               `- note: consider making struct 'Style' conform to the 'Sendable' protocol
 59 |     public static let bold = Style(rawValue: 1 << 0)
 60 |     public static let dim = Style(rawValue: 1 << 1)
 61 |     public static let italic = Style(rawValue: 1 << 2)
 62 |     public static let underlined = Style(rawValue: 1 << 3)
 63 |     public static let blink = Style(rawValue: 1 << 4)
    |                       |- warning: static property 'blink' 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 'blink' 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
 64 |     public static let inverse = Style(rawValue: 1 << 5)
 65 |     public static let hidden = Style(rawValue: 1 << 6)  // for eg. passwords
/host/spi-builder-workspace/Chalk.swift:64:23: warning: static property 'inverse' is not concurrency-safe because non-'Sendable' type 'Style' may have shared mutable state; this is an error in the Swift 6 language mode
 56 | }
 57 |
 58 | public struct Style: OptionSet {
    |               `- note: consider making struct 'Style' conform to the 'Sendable' protocol
 59 |     public static let bold = Style(rawValue: 1 << 0)
 60 |     public static let dim = Style(rawValue: 1 << 1)
    :
 62 |     public static let underlined = Style(rawValue: 1 << 3)
 63 |     public static let blink = Style(rawValue: 1 << 4)
 64 |     public static let inverse = Style(rawValue: 1 << 5)
    |                       |- warning: static property 'inverse' 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 'inverse' 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 |     public static let hidden = Style(rawValue: 1 << 6)  // for eg. passwords
 66 |     public static let strikethrough = Style(rawValue: 1 << 7)  // not implemented in Terminal.app
/host/spi-builder-workspace/Chalk.swift:65:23: warning: static property 'hidden' is not concurrency-safe because non-'Sendable' type 'Style' may have shared mutable state; this is an error in the Swift 6 language mode
 56 | }
 57 |
 58 | public struct Style: OptionSet {
    |               `- note: consider making struct 'Style' conform to the 'Sendable' protocol
 59 |     public static let bold = Style(rawValue: 1 << 0)
 60 |     public static let dim = Style(rawValue: 1 << 1)
    :
 63 |     public static let blink = Style(rawValue: 1 << 4)
 64 |     public static let inverse = Style(rawValue: 1 << 5)
 65 |     public static let hidden = Style(rawValue: 1 << 6)  // for eg. passwords
    |                       |- warning: static property 'hidden' 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 'hidden' 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
 66 |     public static let strikethrough = Style(rawValue: 1 << 7)  // not implemented in Terminal.app
 67 |
/host/spi-builder-workspace/Chalk.swift:66:23: warning: static property 'strikethrough' is not concurrency-safe because non-'Sendable' type 'Style' may have shared mutable state; this is an error in the Swift 6 language mode
 56 | }
 57 |
 58 | public struct Style: OptionSet {
    |               `- note: consider making struct 'Style' conform to the 'Sendable' protocol
 59 |     public static let bold = Style(rawValue: 1 << 0)
 60 |     public static let dim = Style(rawValue: 1 << 1)
    :
 64 |     public static let inverse = Style(rawValue: 1 << 5)
 65 |     public static let hidden = Style(rawValue: 1 << 6)  // for eg. passwords
 66 |     public static let strikethrough = Style(rawValue: 1 << 7)  // not implemented in Terminal.app
    |                       |- warning: static property 'strikethrough' 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 'strikethrough' 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
 67 |
 68 |     public let rawValue: Int
[4/4] Compiling Chalk Chalk.swift
/host/spi-builder-workspace/Chalk.swift:59:23: warning: static property 'bold' is not concurrency-safe because non-'Sendable' type 'Style' may have shared mutable state; this is an error in the Swift 6 language mode
 56 | }
 57 |
 58 | public struct Style: OptionSet {
    |               `- note: consider making struct 'Style' conform to the 'Sendable' protocol
 59 |     public static let bold = Style(rawValue: 1 << 0)
    |                       |- warning: static property 'bold' 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 'bold' 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
 60 |     public static let dim = Style(rawValue: 1 << 1)
 61 |     public static let italic = Style(rawValue: 1 << 2)
/host/spi-builder-workspace/Chalk.swift:60:23: warning: static property 'dim' is not concurrency-safe because non-'Sendable' type 'Style' may have shared mutable state; this is an error in the Swift 6 language mode
 56 | }
 57 |
 58 | public struct Style: OptionSet {
    |               `- note: consider making struct 'Style' conform to the 'Sendable' protocol
 59 |     public static let bold = Style(rawValue: 1 << 0)
 60 |     public static let dim = Style(rawValue: 1 << 1)
    |                       |- warning: static property 'dim' 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 'dim' 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
 61 |     public static let italic = Style(rawValue: 1 << 2)
 62 |     public static let underlined = Style(rawValue: 1 << 3)
/host/spi-builder-workspace/Chalk.swift:61:23: warning: static property 'italic' is not concurrency-safe because non-'Sendable' type 'Style' may have shared mutable state; this is an error in the Swift 6 language mode
 56 | }
 57 |
 58 | public struct Style: OptionSet {
    |               `- note: consider making struct 'Style' conform to the 'Sendable' protocol
 59 |     public static let bold = Style(rawValue: 1 << 0)
 60 |     public static let dim = Style(rawValue: 1 << 1)
 61 |     public static let italic = Style(rawValue: 1 << 2)
    |                       |- warning: static property 'italic' 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 'italic' 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
 62 |     public static let underlined = Style(rawValue: 1 << 3)
 63 |     public static let blink = Style(rawValue: 1 << 4)
/host/spi-builder-workspace/Chalk.swift:62:23: warning: static property 'underlined' is not concurrency-safe because non-'Sendable' type 'Style' may have shared mutable state; this is an error in the Swift 6 language mode
 56 | }
 57 |
 58 | public struct Style: OptionSet {
    |               `- note: consider making struct 'Style' conform to the 'Sendable' protocol
 59 |     public static let bold = Style(rawValue: 1 << 0)
 60 |     public static let dim = Style(rawValue: 1 << 1)
 61 |     public static let italic = Style(rawValue: 1 << 2)
 62 |     public static let underlined = Style(rawValue: 1 << 3)
    |                       |- warning: static property 'underlined' 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 'underlined' 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
 63 |     public static let blink = Style(rawValue: 1 << 4)
 64 |     public static let inverse = Style(rawValue: 1 << 5)
/host/spi-builder-workspace/Chalk.swift:63:23: warning: static property 'blink' is not concurrency-safe because non-'Sendable' type 'Style' may have shared mutable state; this is an error in the Swift 6 language mode
 56 | }
 57 |
 58 | public struct Style: OptionSet {
    |               `- note: consider making struct 'Style' conform to the 'Sendable' protocol
 59 |     public static let bold = Style(rawValue: 1 << 0)
 60 |     public static let dim = Style(rawValue: 1 << 1)
 61 |     public static let italic = Style(rawValue: 1 << 2)
 62 |     public static let underlined = Style(rawValue: 1 << 3)
 63 |     public static let blink = Style(rawValue: 1 << 4)
    |                       |- warning: static property 'blink' 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 'blink' 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
 64 |     public static let inverse = Style(rawValue: 1 << 5)
 65 |     public static let hidden = Style(rawValue: 1 << 6)  // for eg. passwords
/host/spi-builder-workspace/Chalk.swift:64:23: warning: static property 'inverse' is not concurrency-safe because non-'Sendable' type 'Style' may have shared mutable state; this is an error in the Swift 6 language mode
 56 | }
 57 |
 58 | public struct Style: OptionSet {
    |               `- note: consider making struct 'Style' conform to the 'Sendable' protocol
 59 |     public static let bold = Style(rawValue: 1 << 0)
 60 |     public static let dim = Style(rawValue: 1 << 1)
    :
 62 |     public static let underlined = Style(rawValue: 1 << 3)
 63 |     public static let blink = Style(rawValue: 1 << 4)
 64 |     public static let inverse = Style(rawValue: 1 << 5)
    |                       |- warning: static property 'inverse' 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 'inverse' 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 |     public static let hidden = Style(rawValue: 1 << 6)  // for eg. passwords
 66 |     public static let strikethrough = Style(rawValue: 1 << 7)  // not implemented in Terminal.app
/host/spi-builder-workspace/Chalk.swift:65:23: warning: static property 'hidden' is not concurrency-safe because non-'Sendable' type 'Style' may have shared mutable state; this is an error in the Swift 6 language mode
 56 | }
 57 |
 58 | public struct Style: OptionSet {
    |               `- note: consider making struct 'Style' conform to the 'Sendable' protocol
 59 |     public static let bold = Style(rawValue: 1 << 0)
 60 |     public static let dim = Style(rawValue: 1 << 1)
    :
 63 |     public static let blink = Style(rawValue: 1 << 4)
 64 |     public static let inverse = Style(rawValue: 1 << 5)
 65 |     public static let hidden = Style(rawValue: 1 << 6)  // for eg. passwords
    |                       |- warning: static property 'hidden' 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 'hidden' 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
 66 |     public static let strikethrough = Style(rawValue: 1 << 7)  // not implemented in Terminal.app
 67 |
/host/spi-builder-workspace/Chalk.swift:66:23: warning: static property 'strikethrough' is not concurrency-safe because non-'Sendable' type 'Style' may have shared mutable state; this is an error in the Swift 6 language mode
 56 | }
 57 |
 58 | public struct Style: OptionSet {
    |               `- note: consider making struct 'Style' conform to the 'Sendable' protocol
 59 |     public static let bold = Style(rawValue: 1 << 0)
 60 |     public static let dim = Style(rawValue: 1 << 1)
    :
 64 |     public static let inverse = Style(rawValue: 1 << 5)
 65 |     public static let hidden = Style(rawValue: 1 << 6)  // for eg. passwords
 66 |     public static let strikethrough = Style(rawValue: 1 << 7)  // not implemented in Terminal.app
    |                       |- warning: static property 'strikethrough' 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 'strikethrough' 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
 67 |
 68 |     public let rawValue: Int
Build complete! (9.48s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Chalk",
  "name" : "Chalk",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Chalk",
      "targets" : [
        "Chalk"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "Chalk",
      "module_type" : "SwiftTarget",
      "name" : "Chalk",
      "path" : ".",
      "product_memberships" : [
        "Chalk"
      ],
      "sources" : [
        "Chalk.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.