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 Shell, reference master (ecf028), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 11:35:32 UTC.

Swift 6 data race errors: 1

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/helje5/Shell.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/helje5/Shell
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at ecf028f Use proper triple dots
Cloned https://github.com/helje5/Shell.git
Revision (git rev-parse @):
ecf028f2a1a9786836cd1f6d8718d7844bce47b0
SUCCESS checkout https://github.com/helje5/Shell.git at master
========================================
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": "shell",
      "name": "Shell",
      "url": "https://github.com/helje5/Shell.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Shell",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/helje5/Shell.git
[1/81] Fetching shell
Fetched https://github.com/helje5/Shell.git from cache (0.68s)
Creating working copy for https://github.com/helje5/Shell.git
Working copy of https://github.com/helje5/Shell.git resolved at master (ecf028f)
warning: '.resolve-product-dependencies': dependency 'shell' 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/helje5/Shell.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/6] Compiling Shell Shell.swift
/Users/admin/builder/spi-builder-workspace/Sources/Shell/Shell.swift:103:12: warning: let 'shell' is not concurrency-safe because non-'Sendable' type 'ShellTrampoline' may have shared mutable state; this is an error in the Swift 6 language mode
 54 |
 55 | @dynamicMemberLookup
 56 | public struct ShellTrampoline {
    |               `- note: consider making struct 'ShellTrampoline' conform to the 'Sendable' protocol
 57 |
 58 |     public let root : ShellPathTrampoline
    :
101 | }
102 |
103 | public let shell = ShellTrampoline()
    |            |- warning: let 'shell' is not concurrency-safe because non-'Sendable' type 'ShellTrampoline' may have shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: annotate 'shell' 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
104 |
[4/6] Compiling Shell ProcessHelper.swift
/Users/admin/builder/spi-builder-workspace/Sources/Shell/ProcessHelper.swift:52:23: warning: mutation of captured var 'outputData' in concurrently-executing code; this is an error in the Swift 6 language mode
 50 |         stdout.fileHandleForReading.readabilityHandler = { handle in
 51 |             let data = handle.availableData
 52 |             Q.async { outputData.append(data) }
    |                       `- warning: mutation of captured var 'outputData' in concurrently-executing code; this is an error in the Swift 6 language mode
 53 |         }
 54 |         stderr.fileHandleForReading.readabilityHandler = { handle in
/Users/admin/builder/spi-builder-workspace/Sources/Shell/ProcessHelper.swift:56:23: warning: mutation of captured var 'errorData' in concurrently-executing code; this is an error in the Swift 6 language mode
 54 |         stderr.fileHandleForReading.readabilityHandler = { handle in
 55 |             let data = handle.availableData
 56 |             Q.async { errorData.append(data) }
    |                       `- warning: mutation of captured var 'errorData' in concurrently-executing code; this is an error in the Swift 6 language mode
 57 |         }
 58 |
[5/6] Compiling Shell EnvironmentTrampoline.swift
[6/6] Emitting module Shell
/Users/admin/builder/spi-builder-workspace/Sources/Shell/Shell.swift:103:12: warning: let 'shell' is not concurrency-safe because non-'Sendable' type 'ShellTrampoline' may have shared mutable state; this is an error in the Swift 6 language mode
 54 |
 55 | @dynamicMemberLookup
 56 | public struct ShellTrampoline {
    |               `- note: consider making struct 'ShellTrampoline' conform to the 'Sendable' protocol
 57 |
 58 |     public let root : ShellPathTrampoline
    :
101 | }
102 |
103 | public let shell = ShellTrampoline()
    |            |- warning: let 'shell' is not concurrency-safe because non-'Sendable' type 'ShellTrampoline' may have shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: annotate 'shell' 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
104 |
Build complete! (6.69s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Shell",
  "name" : "Shell",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Shell",
      "targets" : [
        "Shell"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ShellTests",
      "module_type" : "SwiftTarget",
      "name" : "ShellTests",
      "path" : "Tests/ShellTests",
      "sources" : [
        "ShellTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Shell"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Shell",
      "module_type" : "SwiftTarget",
      "name" : "Shell",
      "path" : "Sources/Shell",
      "product_memberships" : [
        "Shell"
      ],
      "sources" : [
        "EnvironmentTrampoline.swift",
        "ProcessHelper.swift",
        "Shell.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.