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 ANSITerminal, reference 0.0.3 (8e24fa), with Swift 6.0 for macOS (SPM) on 30 Oct 2024 17:42:29 UTC.

Swift 6 data race errors: 6

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/paklebah/ansiterminal.git
Reference: 0.0.3
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/paklebah/ansiterminal
 * tag               0.0.3      -> FETCH_HEAD
HEAD is now at 8e24fab Add some useful functions
Cloned https://github.com/paklebah/ansiterminal.git
Revision (git rev-parse @):
8e24fab68c660eca1244a95019ec69a11400d62b
SUCCESS checkout https://github.com/paklebah/ansiterminal.git at 0.0.3
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "ansiterminal",
      "name": "ANSITerminal",
      "url": "https://github.com/paklebah/ansiterminal.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ansiterminal",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/paklebah/ansiterminal.git
[1/95] Fetching ansiterminal
Fetched https://github.com/paklebah/ansiterminal.git from cache (0.86s)
Creating working copy for https://github.com/paklebah/ansiterminal.git
Working copy of https://github.com/paklebah/ansiterminal.git resolved at 0.0.3 (8e24fab)
warning: '.resolve-product-dependencies': dependency 'ansiterminal' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/paklebah/ansiterminal.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/7] Compiling ANSITerminal ansiKeyboard.swift
/Users/admin/builder/spi-builder-workspace/Sources/ANSITerminal.swift:21:27: warning: var 'isNonBlockingMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 19 |
 20 | internal private(set) var defaultTerminal = termios()
 21 | public   private(set) var isNonBlockingMode = false
    |                           |- warning: var 'isNonBlockingMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: convert 'isNonBlockingMode' to a 'let' constant to make 'Sendable' shared state immutable
    |                           |- note: annotate 'isNonBlockingMode' 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 |
 23 | @inlinable public func delay(_ ms: Int) {
[4/7] Compiling ANSITerminal ansiScreen.swift
/Users/admin/builder/spi-builder-workspace/Sources/ansiScreen.swift:1:25: warning: var 'isReplacingMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  1 | public private(set) var isReplacingMode = false
    |                         |- warning: var 'isReplacingMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                         |- note: convert 'isReplacingMode' to a 'let' constant to make 'Sendable' shared state immutable
    |                         |- note: annotate 'isReplacingMode' 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
  2 | public private(set) var isCursorVisible = true
  3 |
/Users/admin/builder/spi-builder-workspace/Sources/ansiScreen.swift:2:25: warning: var 'isCursorVisible' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  1 | public private(set) var isReplacingMode = false
  2 | public private(set) var isCursorVisible = true
    |                         |- warning: var 'isCursorVisible' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                         |- note: convert 'isCursorVisible' to a 'let' constant to make 'Sendable' shared state immutable
    |                         |- note: annotate 'isCursorVisible' 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
  3 |
  4 | // Reference: https://invisible-island.net/xterm/ctlseqs/ctlseqs.html
[5/7] Compiling ANSITerminal ansiAttribute.swift
/Users/admin/builder/spi-builder-workspace/Sources/ansiAttribute.swift:62:27: warning: var 'isOpenedColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 60 | }
 61 |
 62 | internal private(set) var isOpenedColor = false
    |                           |- warning: var 'isOpenedColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: convert 'isOpenedColor' to a 'let' constant to make 'Sendable' shared state immutable
    |                           |- note: annotate 'isOpenedColor' 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 | internal private(set) var isOpenedStyle = false
 64 |
/Users/admin/builder/spi-builder-workspace/Sources/ansiAttribute.swift:63:27: warning: var 'isOpenedStyle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 61 |
 62 | internal private(set) var isOpenedColor = false
 63 | internal private(set) var isOpenedStyle = false
    |                           |- warning: var 'isOpenedStyle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: convert 'isOpenedStyle' to a 'let' constant to make 'Sendable' shared state immutable
    |                           |- note: annotate 'isOpenedStyle' 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 |
 65 | public extension String {
[6/7] Emitting module ANSITerminal
/Users/admin/builder/spi-builder-workspace/Sources/ANSITerminal.swift:20:27: warning: var 'defaultTerminal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 18 | public let LPA = "\u{e0b3}"   // left pointing angle
 19 |
 20 | internal private(set) var defaultTerminal = termios()
    |                           |- warning: var 'defaultTerminal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: convert 'defaultTerminal' to a 'let' constant to make 'Sendable' shared state immutable
    |                           |- note: annotate 'defaultTerminal' 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
 21 | public   private(set) var isNonBlockingMode = false
 22 |
/Users/admin/builder/spi-builder-workspace/Sources/ANSITerminal.swift:21:27: warning: var 'isNonBlockingMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 19 |
 20 | internal private(set) var defaultTerminal = termios()
 21 | public   private(set) var isNonBlockingMode = false
    |                           |- warning: var 'isNonBlockingMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: convert 'isNonBlockingMode' to a 'let' constant to make 'Sendable' shared state immutable
    |                           |- note: annotate 'isNonBlockingMode' 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 |
 23 | @inlinable public func delay(_ ms: Int) {
/Users/admin/builder/spi-builder-workspace/Sources/ansiAttribute.swift:62:27: warning: var 'isOpenedColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 60 | }
 61 |
 62 | internal private(set) var isOpenedColor = false
    |                           |- warning: var 'isOpenedColor' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: convert 'isOpenedColor' to a 'let' constant to make 'Sendable' shared state immutable
    |                           |- note: annotate 'isOpenedColor' 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 | internal private(set) var isOpenedStyle = false
 64 |
/Users/admin/builder/spi-builder-workspace/Sources/ansiAttribute.swift:63:27: warning: var 'isOpenedStyle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 61 |
 62 | internal private(set) var isOpenedColor = false
 63 | internal private(set) var isOpenedStyle = false
    |                           |- warning: var 'isOpenedStyle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: convert 'isOpenedStyle' to a 'let' constant to make 'Sendable' shared state immutable
    |                           |- note: annotate 'isOpenedStyle' 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 |
 65 | public extension String {
/Users/admin/builder/spi-builder-workspace/Sources/ansiScreen.swift:1:25: warning: var 'isReplacingMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  1 | public private(set) var isReplacingMode = false
    |                         |- warning: var 'isReplacingMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                         |- note: convert 'isReplacingMode' to a 'let' constant to make 'Sendable' shared state immutable
    |                         |- note: annotate 'isReplacingMode' 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
  2 | public private(set) var isCursorVisible = true
  3 |
/Users/admin/builder/spi-builder-workspace/Sources/ansiScreen.swift:2:25: warning: var 'isCursorVisible' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  1 | public private(set) var isReplacingMode = false
  2 | public private(set) var isCursorVisible = true
    |                         |- warning: var 'isCursorVisible' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                         |- note: convert 'isCursorVisible' to a 'let' constant to make 'Sendable' shared state immutable
    |                         |- note: annotate 'isCursorVisible' 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
  3 |
  4 | // Reference: https://invisible-island.net/xterm/ctlseqs/ctlseqs.html
[7/7] Compiling ANSITerminal ANSITerminal.swift
/Users/admin/builder/spi-builder-workspace/Sources/ANSITerminal.swift:20:27: warning: var 'defaultTerminal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 18 | public let LPA = "\u{e0b3}"   // left pointing angle
 19 |
 20 | internal private(set) var defaultTerminal = termios()
    |                           |- warning: var 'defaultTerminal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: convert 'defaultTerminal' to a 'let' constant to make 'Sendable' shared state immutable
    |                           |- note: annotate 'defaultTerminal' 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
 21 | public   private(set) var isNonBlockingMode = false
 22 |
/Users/admin/builder/spi-builder-workspace/Sources/ANSITerminal.swift:21:27: warning: var 'isNonBlockingMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 19 |
 20 | internal private(set) var defaultTerminal = termios()
 21 | public   private(set) var isNonBlockingMode = false
    |                           |- warning: var 'isNonBlockingMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: convert 'isNonBlockingMode' to a 'let' constant to make 'Sendable' shared state immutable
    |                           |- note: annotate 'isNonBlockingMode' 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 |
 23 | @inlinable public func delay(_ ms: Int) {
Build complete! (4.16s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "ANSITerminal",
  "name" : "ANSITerminal",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "ANSITerminal",
      "targets" : [
        "ANSITerminal"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ANSITerminal",
      "module_type" : "SwiftTarget",
      "name" : "ANSITerminal",
      "path" : "Sources",
      "product_memberships" : [
        "ANSITerminal"
      ],
      "sources" : [
        "ANSITerminal.swift",
        "ansiAttribute.swift",
        "ansiKeyboard.swift",
        "ansiScreen.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.