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

Swift 6 data race errors: 2

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/kukushechkin/OpenInTerminalButton.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/kukushechkin/OpenInTerminalButton
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 94749c4 make openInTerminal async
Cloned https://github.com/kukushechkin/OpenInTerminalButton.git
Revision (git rev-parse @):
94749c449223529844d593904645c509b377057d
SUCCESS checkout https://github.com/kukushechkin/OpenInTerminalButton.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/kukushechkin/OpenInTerminalButton.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/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/8] Compiling OpenInTerminalButton OpenInTerminal.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenInTerminalButton/OpenInTerminal.swift:46:5: warning: var 'openInTerminalInternals' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 44 | }
 45 |
 46 | var openInTerminalInternals = OpenInTerminalInernals()
    |     |- warning: var 'openInTerminalInternals' 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 'openInTerminalInternals' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: annotate 'openInTerminalInternals' 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
 47 |
 48 | // MARK: - Internal
/Users/admin/builder/spi-builder-workspace/Sources/OpenInTerminalButton/OpenInTerminal.swift:67:5: warning: let 'terminalsPriority' is not concurrency-safe because non-'Sendable' type '[SupportedTerminal]' may have shared mutable state; this is an error in the Swift 6 language mode
 16 | }
 17 |
 18 | public enum SupportedTerminal: String, CaseIterable {
    |             `- note: consider making enum 'SupportedTerminal' conform to the 'Sendable' protocol
 19 |     case terminal = "com.apple.Terminal"
 20 |     case iterm2 = "com.googlecode.iterm2"
    :
 65 |
 66 | // Select terminals based on this priority list
 67 | let terminalsPriority: [SupportedTerminal] = [.iterm2, .terminal]
    |     |- warning: let 'terminalsPriority' is not concurrency-safe because non-'Sendable' type '[SupportedTerminal]' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: annotate 'terminalsPriority' 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
 68 |
 69 | func URLFor(terminal: SupportedTerminal) -> URL? {
[4/8] Emitting module OpenInTerminalButton
/Users/admin/builder/spi-builder-workspace/Sources/OpenInTerminalButton/OpenInTerminal.swift:46:5: warning: var 'openInTerminalInternals' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 44 | }
 45 |
 46 | var openInTerminalInternals = OpenInTerminalInernals()
    |     |- warning: var 'openInTerminalInternals' 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 'openInTerminalInternals' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: annotate 'openInTerminalInternals' 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
 47 |
 48 | // MARK: - Internal
/Users/admin/builder/spi-builder-workspace/Sources/OpenInTerminalButton/OpenInTerminal.swift:67:5: warning: let 'terminalsPriority' is not concurrency-safe because non-'Sendable' type '[SupportedTerminal]' may have shared mutable state; this is an error in the Swift 6 language mode
 16 | }
 17 |
 18 | public enum SupportedTerminal: String, CaseIterable {
    |             `- note: consider making enum 'SupportedTerminal' conform to the 'Sendable' protocol
 19 |     case terminal = "com.apple.Terminal"
 20 |     case iterm2 = "com.googlecode.iterm2"
    :
 65 |
 66 | // Select terminals based on this priority list
 67 | let terminalsPriority: [SupportedTerminal] = [.iterm2, .terminal]
    |     |- warning: let 'terminalsPriority' is not concurrency-safe because non-'Sendable' type '[SupportedTerminal]' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: annotate 'terminalsPriority' 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
 68 |
 69 | func URLFor(terminal: SupportedTerminal) -> URL? {
[5/8] Compiling OpenInTerminalButton iTerm2Script.swift
[6/8] Compiling OpenInTerminalButton BorderlessButton.swift
[7/8] Compiling OpenInTerminalButton TerminalScript.swift
[8/8] Compiling OpenInTerminalButton OpenInTerminalButton.swift
/Users/admin/builder/spi-builder-workspace/Sources/OpenInTerminalButton/Buttons/OpenInTerminalButton.swift:23:69: warning: capture of 'self' with non-sendable type 'OpenInTerminalButton' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 8 | import SwiftUI
 9 |
10 | public struct OpenInTerminalButton: View {
   |               `- note: consider making struct 'OpenInTerminalButton' conform to the 'Sendable' protocol
11 |     let location: URL
12 |     let commands: [String]
   :
21 |             DispatchQueue.global().async {
22 |                 Task {
23 |                     let result = try await openInTerminal(location: location, commands: commands)
   |                                                                     `- warning: capture of 'self' with non-sendable type 'OpenInTerminalButton' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 |                     if case let .failure(error) = result {
25 |                         print("Failed to open \(self.location) with commands \(self.commands) in terminal: \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/OpenInTerminalButton/Buttons/OpenInTerminalButton.swift:23:69: warning: capture of 'self' with non-sendable type 'OpenInTerminalButton' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 8 | import SwiftUI
 9 |
10 | public struct OpenInTerminalButton: View {
   |               `- note: consider making struct 'OpenInTerminalButton' conform to the 'Sendable' protocol
11 |     let location: URL
12 |     let commands: [String]
   :
21 |             DispatchQueue.global().async {
22 |                 Task {
23 |                     let result = try await openInTerminal(location: location, commands: commands)
   |                                                                     `- warning: capture of 'self' with non-sendable type 'OpenInTerminalButton' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 |                     if case let .failure(error) = result {
25 |                         print("Failed to open \(self.location) with commands \(self.commands) in terminal: \(error)")
Build complete! (31.52s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "OpenInTerminalButton",
  "name" : "OpenInTerminalButton",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "OpenInTerminalButton",
      "targets" : [
        "OpenInTerminalButton"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "OpenInTerminalButtonTests",
      "module_type" : "SwiftTarget",
      "name" : "OpenInTerminalButtonTests",
      "path" : "Tests/OpenInTerminalButtonTests",
      "sources" : [
        "NSAppleScriptMock.swift",
        "NSWorkspaceMock.swift",
        "OpenInTerminalButtonTests.swift"
      ],
      "target_dependencies" : [
        "OpenInTerminalButton"
      ],
      "type" : "test"
    },
    {
      "c99name" : "OpenInTerminalButton",
      "module_type" : "SwiftTarget",
      "name" : "OpenInTerminalButton",
      "path" : "Sources/OpenInTerminalButton",
      "product_memberships" : [
        "OpenInTerminalButton"
      ],
      "sources" : [
        "Apple scripts/TerminalScript.swift",
        "Apple scripts/iTerm2Script.swift",
        "Buttons/BorderlessButton.swift",
        "Buttons/OpenInTerminalButton.swift",
        "OpenInTerminal.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7.1"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.