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 Shell with Swift 6.0 for Linux.

Swift 6 data race errors: 1

Build Command

bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/helje5/Shell.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
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
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $workDir
https://github.com/helje5/Shell.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/6] Compiling Shell Shell.swift
/host/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 EnvironmentTrampoline.swift
[5/6] Compiling Shell ProcessHelper.swift
/host/spi-builder-workspace/Sources/Shell/ProcessHelper.swift:35:17: warning: 'launchPath' is deprecated: renamed to 'executableURL'
 33 |     {
 34 |         let process = Process()
 35 |         process.launchPath = shell ?? launchPath
    |                 |- warning: 'launchPath' is deprecated: renamed to 'executableURL'
    |                 `- note: use 'executableURL' instead
 36 |         process.arguments  = shell != nil
 37 |             ? [ "-c", launchPath + " " + arguments.joined(separator: " ") ]
/host/spi-builder-workspace/Sources/Shell/ProcessHelper.swift:59:17: warning: 'launch()' is deprecated: renamed to 'run'
 57 |         }
 58 |
 59 |         process.launch()
    |                 |- warning: 'launch()' is deprecated: renamed to 'run'
    |                 `- note: use 'run' instead
 60 |         process.waitUntilExit()
 61 |
/host/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
/host/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 |
/host/spi-builder-workspace/Sources/Shell/ProcessHelper.swift:65:13: warning: capture of 'stdout' with non-sendable type 'Pipe' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 63 |         stderr.fileHandleForReading.readabilityHandler = nil
 64 |         Q.async {
 65 |             stdout.fileHandleForReading.closeFile()
    |             `- warning: capture of 'stdout' with non-sendable type 'Pipe' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 66 |             stderr.fileHandleForReading.closeFile()
 67 |         }
Foundation.Pipe:1:12: note: class 'Pipe' does not conform to the 'Sendable' protocol
1 | open class Pipe : NSObject {
  |            `- note: class 'Pipe' does not conform to the 'Sendable' protocol
2 |     public let fileHandleForReading: FileHandle
3 |     public let fileHandleForWriting: FileHandle
/host/spi-builder-workspace/Sources/Shell/ProcessHelper.swift:4:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
  2 | //  Copyright © 2018-2020 ZeeZide GmbH. All rights reserved.
  3 |
  4 | import Foundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
  5 |
  6 | extension Process {
/host/spi-builder-workspace/Sources/Shell/ProcessHelper.swift:66:13: warning: capture of 'stderr' with non-sendable type 'Pipe' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 64 |         Q.async {
 65 |             stdout.fileHandleForReading.closeFile()
 66 |             stderr.fileHandleForReading.closeFile()
    |             `- warning: capture of 'stderr' with non-sendable type 'Pipe' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 67 |         }
 68 |
Foundation.Pipe:1:12: note: class 'Pipe' does not conform to the 'Sendable' protocol
1 | open class Pipe : NSObject {
  |            `- note: class 'Pipe' does not conform to the 'Sendable' protocol
2 |     public let fileHandleForReading: FileHandle
3 |     public let fileHandleForWriting: FileHandle
[6/6] Emitting module Shell
/host/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! (8.25s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Shell",
  "name" : "Shell",
  "path" : "/host/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.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.