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

Swift 6 data race errors: 1

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/dduan/terminalpaint.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/dduan/terminalpaint
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 8395f8e Update for Swift 5.0 and Termbox 1.0
Cloned https://github.com/dduan/terminalpaint.git
Revision (git rev-parse @):
8395f8ee9768e88954766b787b05b83b57d67280
SUCCESS checkout https://github.com/dduan/terminalpaint.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/dduan/terminalpaint.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/9] Write sources
[2/9] Write TerminalPaint-entitlement.plist
[3/9] Write swift-version-6F35C1178C84523A.txt
[4/9] Compiling ctermbox utf8.c
[5/9] Compiling ctermbox termbox.c
[7/11] Emitting module Termbox
[8/11] Compiling Termbox Termbox.swift
[9/13] Compiling TerminalPaint main.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Termbox/Sources/Termbox/Termbox.swift:109:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Attributes' may have shared mutable state; this is an error in the Swift 6 language mode
 99 | /// combine attributes and a single color. See also `Cell`'s `foreground` and
100 | /// `background` fields.
101 | public struct Attributes: OptionSet {
    |               `- note: consider making struct 'Attributes' conform to the 'Sendable' protocol
102 |     public let rawValue: UInt16
103 |
    :
107 |
108 |     // colors
109 |     public static let `default` = Attributes(rawValue: 0x00)
    |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Attributes' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'default' 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
110 |     public static let black     = Attributes(rawValue: 0x01)
111 |     public static let red       = Attributes(rawValue: 0x02)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Termbox/Sources/Termbox/Termbox.swift:117:23: warning: static property 'white' is not concurrency-safe because non-'Sendable' type 'Attributes' may have shared mutable state; this is an error in the Swift 6 language mode
 99 | /// combine attributes and a single color. See also `Cell`'s `foreground` and
100 | /// `background` fields.
101 | public struct Attributes: OptionSet {
    |               `- note: consider making struct 'Attributes' conform to the 'Sendable' protocol
102 |     public let rawValue: UInt16
103 |
    :
115 |     public static let magenta   = Attributes(rawValue: 0x06)
116 |     public static let cyan      = Attributes(rawValue: 0x07)
117 |     public static let white     = Attributes(rawValue: 0x08)
    |                       |- warning: static property 'white' is not concurrency-safe because non-'Sendable' type 'Attributes' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'white' 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
118 |
119 |     // other
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Termbox/Sources/Termbox/Termbox.swift:114:23: warning: static property 'blue' is not concurrency-safe because non-'Sendable' type 'Attributes' may have shared mutable state; this is an error in the Swift 6 language mode
 99 | /// combine attributes and a single color. See also `Cell`'s `foreground` and
100 | /// `background` fields.
101 | public struct Attributes: OptionSet {
    |               `- note: consider making struct 'Attributes' conform to the 'Sendable' protocol
102 |     public let rawValue: UInt16
103 |
    :
112 |     public static let green     = Attributes(rawValue: 0x03)
113 |     public static let yellow    = Attributes(rawValue: 0x04)
114 |     public static let blue      = Attributes(rawValue: 0x05)
    |                       |- warning: static property 'blue' is not concurrency-safe because non-'Sendable' type 'Attributes' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'blue' 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
115 |     public static let magenta   = Attributes(rawValue: 0x06)
116 |     public static let cyan      = Attributes(rawValue: 0x07)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Termbox/Sources/Termbox/Termbox.swift:233:23: warning: static property 'esc' is not concurrency-safe because non-'Sendable' type 'InputModes' may have shared mutable state; this is an error in the Swift 6 language mode
226 | }
227 |
228 | public struct InputModes: OptionSet {
    |               `- note: consider making struct 'InputModes' conform to the 'Sendable' protocol
229 |     public let rawValue: Int32
230 |
231 |     public init(rawValue: Int32) { self.rawValue = rawValue }
232 |
233 |     public static let esc     = InputModes(rawValue: 1)
    |                       |- warning: static property 'esc' is not concurrency-safe because non-'Sendable' type 'InputModes' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'esc' 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
234 |     public static let alt     = InputModes(rawValue: 2)
235 |     public static let mouse   = InputModes(rawValue: 4)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Termbox/Sources/Termbox/Termbox.swift:235:23: warning: static property 'mouse' is not concurrency-safe because non-'Sendable' type 'InputModes' may have shared mutable state; this is an error in the Swift 6 language mode
226 | }
227 |
228 | public struct InputModes: OptionSet {
    |               `- note: consider making struct 'InputModes' conform to the 'Sendable' protocol
229 |     public let rawValue: Int32
230 |
    :
233 |     public static let esc     = InputModes(rawValue: 1)
234 |     public static let alt     = InputModes(rawValue: 2)
235 |     public static let mouse   = InputModes(rawValue: 4)
    |                       |- warning: static property 'mouse' is not concurrency-safe because non-'Sendable' type 'InputModes' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'mouse' 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
236 | }
237 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Termbox/Sources/Termbox/Termbox.swift:83:23: warning: static property 'space' is not concurrency-safe because non-'Sendable' type 'Key' may have shared mutable state; this is an error in the Swift 6 language mode
  1 | import ctermbox
  2 |
  3 | public struct Key: Equatable {
    |               `- note: consider making struct 'Key' conform to the 'Sendable' protocol
  4 |     let rawValue: UInt16
  5 |
    :
 81 |     public static let ctrlSlash        = Key(rawValue: 0x1f)
 82 |     public static let ctrlUnderscore   = Key(rawValue: 0x1f)
 83 |     public static let space            = Key(rawValue: 0x20)
    |                       |- warning: static property 'space' is not concurrency-safe because non-'Sendable' type 'Key' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'space' 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
 84 |     public static let backspace2       = Key(rawValue: 0x7f)
 85 |     public static let ctrl8            = Key(rawValue: 0x7f)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Termbox/Sources/Termbox/Termbox.swift:111:23: warning: static property 'red' is not concurrency-safe because non-'Sendable' type 'Attributes' may have shared mutable state; this is an error in the Swift 6 language mode
 99 | /// combine attributes and a single color. See also `Cell`'s `foreground` and
100 | /// `background` fields.
101 | public struct Attributes: OptionSet {
    |               `- note: consider making struct 'Attributes' conform to the 'Sendable' protocol
102 |     public let rawValue: UInt16
103 |
    :
109 |     public static let `default` = Attributes(rawValue: 0x00)
110 |     public static let black     = Attributes(rawValue: 0x01)
111 |     public static let red       = Attributes(rawValue: 0x02)
    |                       |- warning: static property 'red' is not concurrency-safe because non-'Sendable' type 'Attributes' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'red' 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
112 |     public static let green     = Attributes(rawValue: 0x03)
113 |     public static let yellow    = Attributes(rawValue: 0x04)
[10/13] Emitting module TerminalPaint
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Termbox/Sources/Termbox/Termbox.swift:109:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Attributes' may have shared mutable state; this is an error in the Swift 6 language mode
 99 | /// combine attributes and a single color. See also `Cell`'s `foreground` and
100 | /// `background` fields.
101 | public struct Attributes: OptionSet {
    |               `- note: consider making struct 'Attributes' conform to the 'Sendable' protocol
102 |     public let rawValue: UInt16
103 |
    :
107 |
108 |     // colors
109 |     public static let `default` = Attributes(rawValue: 0x00)
    |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Attributes' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'default' 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
110 |     public static let black     = Attributes(rawValue: 0x01)
111 |     public static let red       = Attributes(rawValue: 0x02)
[10/13] Write Objects.LinkFileList
[11/13] Linking TerminalPaint
[12/13] Applying TerminalPaint
Build complete! (12.93s)
Fetching https://github.com/dduan/Termbox.git
[1/236] Fetching termbox
Fetched https://github.com/dduan/Termbox.git from cache (0.83s)
Computing version for https://github.com/dduan/Termbox.git
Computed https://github.com/dduan/Termbox.git at 1.0.0 (2.71s)
Creating working copy for https://github.com/dduan/Termbox.git
Working copy of https://github.com/dduan/Termbox.git resolved at 1.0.0
Build complete.
{
  "dependencies" : [
    {
      "identity" : "termbox",
      "requirement" : {
        "exact" : [
          "1.0.0"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/dduan/Termbox.git"
    }
  ],
  "manifest_display_name" : "TerminalPaint",
  "name" : "TerminalPaint",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "TerminalPaint",
      "targets" : [
        "TerminalPaint"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TerminalPaint",
      "module_type" : "SwiftTarget",
      "name" : "TerminalPaint",
      "path" : "Sources/TerminalPaint",
      "product_dependencies" : [
        "Termbox"
      ],
      "product_memberships" : [
        "TerminalPaint"
      ],
      "sources" : [
        "main.swift"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.0"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.