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 Script.swift, reference main (92fa44), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 13:14:06 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/KS1019/Script.swift.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/KS1019/Script.swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 92fa44d Fixes renaming (#29)
Cloned https://github.com/KS1019/Script.swift.git
Revision (git rev-parse @):
92fa44d2de25aed6cea98b4183a0eedfdf0e0bf3
SUCCESS checkout https://github.com/KS1019/Script.swift.git at main
Fetching https://github.com/JohnSundell/ShellOut.git
Fetching https://github.com/JohnSundell/Files
[1/1231] Fetching files
[1232/2191] Fetching files, shellout
Fetched https://github.com/JohnSundell/ShellOut.git from cache (2.03s)
Fetched https://github.com/JohnSundell/Files from cache (2.03s)
Computing version for https://github.com/JohnSundell/Files
Computed https://github.com/JohnSundell/Files at 4.2.0 (0.70s)
Computing version for https://github.com/JohnSundell/ShellOut.git
Computed https://github.com/JohnSundell/ShellOut.git at 2.3.0 (3.10s)
Creating working copy for https://github.com/JohnSundell/ShellOut.git
Working copy of https://github.com/JohnSundell/ShellOut.git resolved at 2.3.0
Creating working copy for https://github.com/JohnSundell/Files
Working copy of https://github.com/JohnSundell/Files resolved at 4.2.0
========================================
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": "script.swift",
      "name": "Script.swift",
      "url": "https://github.com/KS1019/Script.swift.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Script.swift",
      "dependencies": [
        {
          "identity": "shellout",
          "name": "ShellOut",
          "url": "https://github.com/JohnSundell/ShellOut.git",
          "version": "2.3.0",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ShellOut",
          "dependencies": [
          ]
        },
        {
          "identity": "files",
          "name": "Files",
          "url": "https://github.com/JohnSundell/Files",
          "version": "4.2.0",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Files",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/KS1019/Script.swift.git
[1/369] Fetching script.swift
Fetched https://github.com/KS1019/Script.swift.git from cache (0.77s)
Fetching https://github.com/JohnSundell/Files from cache
Fetching https://github.com/JohnSundell/ShellOut.git from cache
Fetched https://github.com/JohnSundell/ShellOut.git from cache (0.47s)
Fetched https://github.com/JohnSundell/Files from cache (0.47s)
Computing version for https://github.com/JohnSundell/ShellOut.git
Computed https://github.com/JohnSundell/ShellOut.git at 2.3.0 (0.02s)
Computing version for https://github.com/JohnSundell/Files
Computed https://github.com/JohnSundell/Files at 4.2.0 (0.02s)
Creating working copy for https://github.com/JohnSundell/Files
Working copy of https://github.com/JohnSundell/Files resolved at 4.2.0
Creating working copy for https://github.com/KS1019/Script.swift.git
Working copy of https://github.com/KS1019/Script.swift.git resolved at main (92fa44d)
Creating working copy for https://github.com/JohnSundell/ShellOut.git
Working copy of https://github.com/JohnSundell/ShellOut.git resolved at 2.3.0
warning: '.resolve-product-dependencies': dependency 'script.swift' is not used by any target
Found 2 product dependencies
  - ShellOut
  - Files
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/KS1019/Script.swift.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/4] Write sources
[3/4] Write swift-version--7754E27361AE5C74.txt
[5/8] Compiling ShellOut ShellOut.swift
[6/8] Emitting module ShellOut
[7/8] Compiling Files Files.swift
[8/8] Emitting module Files
[9/16] Compiling Scripting SystemCall.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Scripting/SystemCall.swift:3:5: warning: let '_exit' is not concurrency-safe because non-'Sendable' type '(Int32) -> Never' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | #if canImport(Darwin)
 2 | import Darwin
 3 | let _exit = Darwin.exit
   |     |- warning: let '_exit' is not concurrency-safe because non-'Sendable' type '(Int32) -> Never' may have shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: annotate '_exit' 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
 4 | #elseif canImport(Glibc)
 5 | import Glibc
[10/16] Compiling Scripting Script.swift
[11/16] Compiling Scripting Script+Comparable.swift
[12/16] Compiling Scripting Script+Files.swift
[13/16] Emitting module Scripting
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Scripting/SystemCall.swift:3:5: warning: let '_exit' is not concurrency-safe because non-'Sendable' type '(Int32) -> Never' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | #if canImport(Darwin)
 2 | import Darwin
 3 | let _exit = Darwin.exit
   |     |- warning: let '_exit' is not concurrency-safe because non-'Sendable' type '(Int32) -> Never' may have shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: annotate '_exit' 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
 4 | #elseif canImport(Glibc)
 5 | import Glibc
[14/16] Compiling Scripting Script+Data.swift
[15/16] Compiling Scripting ExeternalCommands.swift
[16/16] Compiling Scripting Script+String.swift
Build complete! (9.13s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "shellout",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.0.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/JohnSundell/ShellOut.git"
    },
    {
      "identity" : "files",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "4.0.0",
            "upper_bound" : "5.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/JohnSundell/Files"
    }
  ],
  "manifest_display_name" : "Script.swift",
  "name" : "Script.swift",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Scripting",
      "targets" : [
        "Scripting"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ScriptingTests",
      "module_type" : "SwiftTarget",
      "name" : "ScriptingTests",
      "path" : "Tests/ScriptingTests",
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/ScriptingTests/Fixtures/TESTING.md",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "ScriptUnitTests.swift"
      ],
      "target_dependencies" : [
        "Scripting"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Scripting",
      "module_type" : "SwiftTarget",
      "name" : "Scripting",
      "path" : "Sources/Scripting",
      "product_dependencies" : [
        "ShellOut",
        "Files"
      ],
      "product_memberships" : [
        "Scripting"
      ],
      "sources" : [
        "ExeternalCommands.swift",
        "Script+Comparable.swift",
        "Script+Data.swift",
        "Script+Files.swift",
        "Script+String.swift",
        "Script.swift",
        "SystemCall.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.