Build Information
Successful build of Shwift, reference 3.1.1 (d7be04
), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 15:00:08 UTC.
Swift 6 data race errors: 14
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/GeorgeLyon/Shwift.git
Reference: 3.1.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/GeorgeLyon/Shwift
* tag 3.1.1 -> FETCH_HEAD
HEAD is now at d7be048 Fix remainder (#27)
Cloned https://github.com/GeorgeLyon/Shwift.git
Revision (git rev-parse @):
d7be04898d094ddce6140cc6a2e9a83fc994b66d
SUCCESS checkout https://github.com/GeorgeLyon/Shwift.git at 3.1.1
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/apple/swift-system
Fetching https://github.com/apple/swift-nio.git
[1/3901] Fetching swift-system
[3122/16254] Fetching swift-system, swift-argument-parser
[16255/87401] Fetching swift-system, swift-argument-parser, swift-nio
Fetched https://github.com/apple/swift-argument-parser from cache (4.98s)
Fetched https://github.com/apple/swift-nio.git from cache (4.98s)
Fetched https://github.com/apple/swift-system from cache (4.98s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.40.0 (0.70s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.1.1 (0.61s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.1.4 (0.63s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.1.4
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.40.0
Creating working copy for https://github.com/apple/swift-system
Working copy of https://github.com/apple/swift-system resolved at 1.1.1
========================================
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": "shwift",
"name": "Shwift",
"url": "https://github.com/GeorgeLyon/Shwift.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Shwift",
"dependencies": [
{
"identity": "swift-argument-parser",
"name": "swift-argument-parser",
"url": "https://github.com/apple/swift-argument-parser",
"version": "1.5.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-argument-parser",
"dependencies": [
]
},
{
"identity": "swift-system",
"name": "swift-system",
"url": "https://github.com/apple/swift-system",
"version": "1.4.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-system",
"dependencies": [
]
},
{
"identity": "swift-nio",
"name": "swift-nio",
"url": "https://github.com/apple/swift-nio.git",
"version": "2.76.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-nio",
"dependencies": [
{
"identity": "swift-atomics",
"name": "swift-atomics",
"url": "https://github.com/apple/swift-atomics.git",
"version": "1.2.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-atomics",
"dependencies": [
]
},
{
"identity": "swift-collections",
"name": "swift-collections",
"url": "https://github.com/apple/swift-collections.git",
"version": "1.1.4",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-collections",
"dependencies": [
]
},
{
"identity": "swift-system",
"name": "swift-system",
"url": "https://github.com/apple/swift-system",
"version": "1.4.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-system",
"dependencies": [
]
}
]
}
]
}
]
}
Fetching https://github.com/GeorgeLyon/Shwift.git
[1/1149] Fetching shwift
Fetched https://github.com/GeorgeLyon/Shwift.git from cache (0.88s)
Fetching https://github.com/apple/swift-nio.git from cache
Fetching https://github.com/apple/swift-system from cache
Fetching https://github.com/apple/swift-argument-parser from cache
Fetched https://github.com/apple/swift-argument-parser from cache (0.59s)
Fetched https://github.com/apple/swift-nio.git from cache (0.82s)
Fetched https://github.com/apple/swift-system from cache (0.82s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.4.0 (0.48s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.0 (0.50s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.76.1 (0.73s)
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-collections.git
[1/1569] Fetching swift-atomics
[535/17044] Fetching swift-atomics, swift-collections
Fetched https://github.com/apple/swift-atomics.git from cache (2.59s)
Fetched https://github.com/apple/swift-collections.git from cache (2.59s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (0.50s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.1.4 (0.72s)
Creating working copy for https://github.com/apple/swift-system
Working copy of https://github.com/apple/swift-system resolved at 1.4.0
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.76.1
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.1.4
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.5.0
Creating working copy for https://github.com/GeorgeLyon/Shwift.git
Working copy of https://github.com/GeorgeLyon/Shwift.git resolved at 3.1.1 (d7be048)
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.2.0
warning: '.resolve-product-dependencies': dependency 'shwift' is not used by any target
Found 3 product dependencies
- swift-argument-parser
- swift-system
- swift-nio
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/GeorgeLyon/Shwift.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
[1/1] Compiling plugin GenerateManualPlugin
Building for debugging...
[1/27] Write sources
[5/27] Write ScriptExample-entitlement.plist
[5/27] Write sources
[15/27] Write swift-version--7754E27361AE5C74.txt
[16/27] Compiling CSystem shims.c
[16/27] Compiling CNIOWindows shim.c
[17/27] Compiling CNIOWindows WSAStartup.c
[19/27] Compiling CNIOLinux shim.c
[20/27] Compiling CNIOLinux liburing_shims.c
[21/53] Compiling CNIODarwin shim.c
[22/53] Compiling c-nioatomics.c
[23/53] Compiling c-atomics.c
[25/57] Emitting module SystemPackage
[26/59] Compiling ArgumentParserToolInfo ToolInfo.swift
[27/59] Emitting module ArgumentParserToolInfo
[28/96] Compiling ArgumentParser ExpressibleByArgument.swift
[29/96] Compiling ArgumentParser ParsableArguments.swift
[30/96] Compiling ArgumentParser NameSpecification.swift
[31/96] Compiling ArgumentParser Option.swift
[32/96] Compiling _NIODataStructures PriorityQueue.swift
[33/96] Compiling _NIODataStructures Heap.swift
[34/96] Emitting module _NIODataStructures
[35/96] Compiling ArgumentParser BashCompletionsGenerator.swift
[36/96] Compiling ArgumentParser CompletionsGenerator.swift
[37/96] Compiling ArgumentParser FishCompletionsGenerator.swift
[38/96] Compiling ArgumentParser ZshCompletionsGenerator.swift
[39/99] Compiling ArgumentParser Errors.swift
[40/99] Compiling ArgumentParser Flag.swift
[41/99] Compiling NIOConcurrencyHelpers lock.swift
[42/99] Compiling NIOConcurrencyHelpers atomics.swift
[43/99] Emitting module NIOConcurrencyHelpers
[44/99] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[45/99] Compiling ArgumentParser InputOrigin.swift
[46/99] Compiling ArgumentParser Name.swift
[47/99] Compiling ArgumentParser Parsed.swift
[48/99] Compiling ArgumentParser ParsedValues.swift
[49/145] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[50/145] Compiling NIOCore SocketAddresses.swift
[51/145] Compiling NIOCore SocketOptionProvider.swift
[52/145] Compiling NIOCore DeadChannel.swift
[53/145] Compiling NIOCore AsyncAwaitSupport+OldXcodes.swift
[54/145] Compiling NIOCore AsyncAwaitSupport.swift
[55/145] Compiling NIOCore BSDSocketAPI.swift
[56/145] Compiling NIOCore MarkedCircularBuffer.swift
[57/145] Compiling NIOCore MulticastChannel.swift
[58/145] Compiling NIOCore ByteBuffer-conversions.swift
[59/145] Compiling NIOCore ByteBuffer-core.swift
[60/145] Compiling NIOCore ByteBuffer-int.swift
[61/145] Compiling NIOCore PointerHelpers.swift
[62/145] Compiling NIOCore RecvByteBufferAllocator.swift
[63/145] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[64/145] Compiling NIOCore ByteBuffer-multi-int.swift
[65/145] Compiling NIOCore Linux.swift
[66/145] Compiling NIOCore NIOAny.swift
[67/145] Compiling NIOCore NIOCloseOnErrorHandler.swift
[68/145] Compiling NIOCore ByteBuffer-views.swift
[69/145] Compiling NIOCore Channel.swift
[70/145] Compiling NIOCore ChannelHandler.swift
[71/145] Compiling NIOCore ChannelHandlers.swift
[72/145] Compiling NIOCore ChannelInvoker.swift
[78/149] Compiling NIOCore SystemCallHelpers.swift
[79/149] Compiling NIOCore TypeAssistedChannelHandler.swift
[80/149] Compiling NIOCore UniversalBootstrapSupport.swift
[81/149] Compiling NIOCore Utilities.swift
[82/149] Compiling NIOCore AddressedEnvelope.swift
[86/149] Compiling NIOCore ByteBuffer-aux.swift
[87/149] Compiling NIOCore IO.swift
[88/149] Compiling NIOCore IOData.swift
[89/149] Compiling NIOCore IntegerBitPacking.swift
[90/149] Compiling NIOCore IntegerTypes.swift
[91/149] Compiling NIOCore Interfaces.swift
[98/149] Compiling NIOCore DispatchQueue+WithFuture.swift
[99/149] Compiling NIOCore EventLoop+Deprecated.swift
[100/149] Compiling NIOCore EventLoop.swift
[101/149] Compiling NIOCore EventLoopFuture+Deprecated.swift
[102/149] Emitting module ArgumentParser
[103/149] Compiling NIOCore FileRegion.swift
[104/149] Compiling NIOCore ChannelOption.swift
[105/149] Compiling NIOCore ChannelPipeline.swift
[106/149] Compiling NIOCore CircularBuffer.swift
[107/149] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[108/149] Compiling NIOCore EventLoopFuture.swift
[109/149] Compiling NIOCore FileDescriptor.swift
[110/149] Compiling NIOCore FileHandle.swift
[123/149] Compiling NIOCore Codec.swift
[124/149] Compiling NIOCore ConvenienceOptionSupport.swift
[146/149] Emitting module NIOCore
[147/192] Emitting module NIOEmbedded
[148/192] Compiling NIOEmbedded Embedded.swift
[149/192] Compiling NIOPosix Selectable.swift
[150/192] Compiling NIOPosix SelectableChannel.swift
[151/192] Compiling NIOPosix SelectableEventLoop.swift
[152/192] Compiling NIOPosix SelectorEpoll.swift
[153/196] Compiling NIOPosix PipeChannel.swift
[154/196] Compiling NIOPosix PipePair.swift
[155/196] Compiling NIOPosix PointerHelpers.swift
[156/196] Compiling NIOPosix Resolver.swift
[157/196] Compiling NIOPosix BSDSocketAPICommon.swift
[158/196] Compiling NIOPosix BSDSocketAPIPosix.swift
[159/196] Compiling NIOPosix BSDSocketAPIWindows.swift
[160/196] Compiling NIOPosix BaseSocket.swift
[161/196] Compiling NIOPosix BaseSocketChannel+SocketOptionProvider.swift
[162/196] Compiling NIOPosix SelectorGeneric.swift
[163/196] Compiling NIOPosix SelectorKqueue.swift
[164/196] Compiling NIOPosix SelectorUring.swift
[165/196] Compiling NIOPosix ServerSocket.swift
[166/196] Compiling NIOPosix Thread.swift
[167/196] Compiling NIOPosix ThreadPosix.swift
[168/196] Compiling NIOPosix ThreadWindows.swift
[169/196] Compiling NIOPosix Utilities.swift
[170/196] Compiling NIOPosix FileDescriptor.swift
[171/196] Compiling NIOPosix GetaddrinfoResolver.swift
[172/196] Compiling NIOPosix HappyEyeballs.swift
[173/196] Compiling NIOPosix IO.swift
[174/196] Compiling NIOPosix IntegerBitPacking.swift
[175/196] Compiling NIOPosix IntegerTypes.swift
[176/196] Compiling NIOPosix Linux.swift
[177/196] Compiling NIOPosix LinuxCPUSet.swift
[178/196] Compiling NIOPosix LinuxUring.swift
[179/196] Compiling NIOPosix MultiThreadedEventLoopGroup.swift
[180/196] Compiling NIOPosix NIOThreadPool.swift
[181/196] Compiling NIOPosix NonBlockingFileIO.swift
[182/196] Compiling NIOPosix PendingDatagramWritesManager.swift
[183/196] Compiling NIOPosix PendingWritesManager.swift
[184/196] Emitting module NIOPosix
[185/196] Compiling NIOPosix Socket.swift
[186/196] Compiling NIOPosix SocketChannel.swift
[187/196] Compiling NIOPosix SocketProtocols.swift
[188/196] Compiling NIOPosix System.swift
[189/196] Compiling NIOPosix BaseSocketChannel.swift
[190/196] Compiling NIOPosix BaseStreamSocketChannel.swift
[191/196] Compiling NIOPosix Bootstrap.swift
[192/196] Compiling NIOPosix ControlMessage.swift
[193/196] Compiling NIOPosix DatagramVectorReadManager.swift
[194/198] Emitting module NIO
[195/198] Compiling NIO Exports.swift
[196/200] Compiling _NIOConcurrency Empty.swift
[197/200] Emitting module _NIOConcurrency
[198/210] Compiling Shwift NIO Pipe Bootstrap.swift
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/Support/NIO Pipe Bootstrap.swift:1:22: warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
1 | @_implementationOnly import NIO
| `- warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
2 | import SystemPackage
3 |
[199/211] Compiling Shwift Environment.swift
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/Environment.swift:3:22: warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
1 | import SystemPackage
2 |
3 | @_implementationOnly import Foundation
| `- warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
4 |
5 | /**
[200/211] Compiling Shwift IO.swift
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/IO.swift:11:21: warning: static property 'standardInput' is not concurrency-safe because non-'Sendable' type 'Input' may have shared mutable state; this is an error in the Swift 6 language mode
4 | A value representing the input to a shell command
5 | */
6 | public struct Input {
| `- note: consider making struct 'Input' conform to the 'Sendable' protocol
7 |
8 | /**
9 | An `Input` corresponding to `stdin`
10 | */
11 | public static let standardInput = Input(kind: .standardInput)
| |- warning: static property 'standardInput' is not concurrency-safe because non-'Sendable' type 'Input' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'standardInput' 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
12 |
13 | /**
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/IO.swift:16:21: warning: static property 'nullDevice' is not concurrency-safe because non-'Sendable' type 'Input' may have shared mutable state; this is an error in the Swift 6 language mode
4 | A value representing the input to a shell command
5 | */
6 | public struct Input {
| `- note: consider making struct 'Input' conform to the 'Sendable' protocol
7 |
8 | /**
:
14 | An input roughly analogous to using the null device (`/dev/null`).
15 | */
16 | public static let nullDevice = Input(kind: .nullDevice)
| |- warning: static property 'nullDevice' is not concurrency-safe because non-'Sendable' type 'Input' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nullDevice' 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
17 |
18 | /**
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/IO.swift:70:21: warning: static property 'standardOutput' is not concurrency-safe because non-'Sendable' type 'Output' may have shared mutable state; this is an error in the Swift 6 language mode
63 | A value representing the output of a shell command
64 | */
65 | public struct Output {
| `- note: consider making struct 'Output' conform to the 'Sendable' protocol
66 |
67 | /**
68 | An `Output` correpsonding to `stdout`
69 | */
70 | public static let standardOutput = Output(kind: .standardOutput)
| |- warning: static property 'standardOutput' is not concurrency-safe because non-'Sendable' type 'Output' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'standardOutput' 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
71 |
72 | /**
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/IO.swift:75:21: warning: static property 'standardError' is not concurrency-safe because non-'Sendable' type 'Output' may have shared mutable state; this is an error in the Swift 6 language mode
63 | A value representing the output of a shell command
64 | */
65 | public struct Output {
| `- note: consider making struct 'Output' conform to the 'Sendable' protocol
66 |
67 | /**
:
73 | An `Output` correpsonding to `stderr`
74 | */
75 | public static let standardError = Output(kind: .standardError)
| |- warning: static property 'standardError' is not concurrency-safe because non-'Sendable' type 'Output' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'standardError' 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
76 |
77 | /**
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/IO.swift:80:21: warning: static property 'nullDevice' is not concurrency-safe because non-'Sendable' type 'Output' may have shared mutable state; this is an error in the Swift 6 language mode
63 | A value representing the output of a shell command
64 | */
65 | public struct Output {
| `- note: consider making struct 'Output' conform to the 'Sendable' protocol
66 |
67 | /**
:
78 | An `Output` correpsonding to a null output device which drops any output it receives
79 | */
80 | public static let nullDevice = Output(kind: .nullDevice)
| |- warning: static property 'nullDevice' is not concurrency-safe because non-'Sendable' type 'Output' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nullDevice' 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
81 |
82 | /**
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/IO.swift:85:21: warning: static property 'fatalDevice' is not concurrency-safe because non-'Sendable' type 'Output' may have shared mutable state; this is an error in the Swift 6 language mode
63 | A value representing the output of a shell command
64 | */
65 | public struct Output {
| `- note: consider making struct 'Output' conform to the 'Sendable' protocol
66 |
67 | /**
:
83 | A special `Output` which aborts if any input is read.
84 | */
85 | public static let fatalDevice = Output(kind: .fatalDevice)
| |- warning: static property 'fatalDevice' is not concurrency-safe because non-'Sendable' type 'Output' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fatalDevice' 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
86 |
87 | /**
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/IO.swift:112:48: warning: non-sendable type '[(Output.Recorder.Source, String)]' in implicitly asynchronous access to actor-isolated property 'strings' cannot cross actor boundary; this is an error in the Swift 6 language mode
110 | public struct Recording {
111 | public func write<T: TextOutputStream>(to stream: inout T) async {
112 | for (source, buffer) in await recorder.strings {
| `- warning: non-sendable type '[(Output.Recorder.Source, String)]' in implicitly asynchronous access to actor-isolated property 'strings' cannot cross actor boundary; this is an error in the Swift 6 language mode
113 | if source == self.source {
114 | buffer.write(to: &stream)
:
141 | Which source to record data to
142 | */
143 | public enum Source {
| `- note: consider making enum 'Source' conform to the 'Sendable' protocol
144 | case output, error
145 | }
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/IO.swift:181:42: warning: sending 'recording.source' risks causing data races; this is an error in the Swift 6 language mode
179 | try await Builtin.withChannel(input: input, output: output, in: context) { channel in
180 | for try await buffer in channel.input.byteBuffers {
181 | await recording.recorder.record(String(buffer: buffer), from: recording.source)
| |- warning: sending 'recording.source' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'recording.source' to actor-isolated instance method 'record(_:from:)' risks causing data races between actor-isolated and task-isolated uses
182 | }
183 | }
[201/211] Compiling Shwift File Descriptor.swift
[202/211] Compiling Shwift Async Inbound Handler.swift
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/Support/Async Inbound Handler.swift:14:18: warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
12 | }
13 | private func yield(_ event: Element) {
14 | continuation.yield(event)
| |- warning: sending 'event' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'event' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
15 | }
16 |
[203/211] Compiling Shwift Context.swift
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/Context.swift:1:22: warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
1 | @_implementationOnly import NIO
| `- warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
2 |
3 | import SystemPackage
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/Context.swift:89:74: warning: non-sendable type '(any Channel, FileDescriptor)' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
87 | let channel: Channel
88 | let fileDescriptor: SystemPackage.FileDescriptor
89 | (channel, fileDescriptor) = try await SystemPackage.FileDescriptor.withPipe {
| `- warning: non-sendable type '(any Channel, FileDescriptor)' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
90 | [handler] pipe in
91 | let channel = try await NIOPipeBootstrap(group: group)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/Channel.swift:105:17: note: protocol 'Channel' does not conform to the 'Sendable' protocol
103 | ///
104 | /// A `Channel` owns its `ChannelPipeline` which handles all I/O events and requests associated with the `Channel`.
105 | public protocol Channel: AnyObject, ChannelOutboundInvoker {
| `- note: protocol 'Channel' does not conform to the 'Sendable' protocol
106 | /// The `Channel`'s `ByteBuffer` allocator. This is _the only_ supported way of allocating `ByteBuffer`s to be used with this `Channel`.
107 | var allocator: ByteBufferAllocator { get }
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/Context.swift:1:22: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOCore'
1 | @_implementationOnly import NIO
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOCore'
2 |
3 | import SystemPackage
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/Context.swift:110:34: warning: cannot access property 'state' with a non-sendable type '(channel: any Channel, fileDescriptor: FileDescriptor)?' from nonisolated deinit; this is an error in the Swift 6 language mode
108 |
109 | deinit {
110 | if let (_, fileDescriptor) = state {
| `- warning: cannot access property 'state' with a non-sendable type '(channel: any Channel, fileDescriptor: FileDescriptor)?' from nonisolated deinit; this is an error in the Swift 6 language mode
111 | try! fileDescriptor.close()
112 | /// `channel` should be automatically closed by the event loop group being closed
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/Channel.swift:105:17: note: protocol 'Channel' does not conform to the 'Sendable' protocol
103 | ///
104 | /// A `Channel` owns its `ChannelPipeline` which handles all I/O events and requests associated with the `Channel`.
105 | public protocol Channel: AnyObject, ChannelOutboundInvoker {
| `- note: protocol 'Channel' does not conform to the 'Sendable' protocol
106 | /// The `Channel`'s `ByteBuffer` allocator. This is _the only_ supported way of allocating `ByteBuffer`s to be used with this `Channel`.
107 | var allocator: ByteBufferAllocator { get }
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/Context.swift:89:74: warning: sending 'self'-isolated value of type '((readEnd: FileDescriptor, writeEnd: FileDescriptor)) async throws -> (any Channel, FileDescriptor)' with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
87 | let channel: Channel
88 | let fileDescriptor: SystemPackage.FileDescriptor
89 | (channel, fileDescriptor) = try await SystemPackage.FileDescriptor.withPipe {
| `- warning: sending 'self'-isolated value of type '((readEnd: FileDescriptor, writeEnd: FileDescriptor)) async throws -> (any Channel, FileDescriptor)' with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
90 | [handler] pipe in
91 | let channel = try await NIOPipeBootstrap(group: group)
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/Context.swift:42:49: warning: sending 'self.eventLoopGroup' risks causing data races; this is an error in the Swift 6 language mode
40 | The file descriptor is guaranteed to be valid since we maintain a strong reference to `nullOutputDevice` for the duration of `operation`.
41 | */
42 | return try await operation(nullOutputDevice.fileDescriptor(with: eventLoopGroup))
| |- warning: sending 'self.eventLoopGroup' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.eventLoopGroup' to actor-isolated instance method 'fileDescriptor(with:)' risks causing data races between actor-isolated and task-isolated uses
43 | }
44 |
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/Context.swift:54:50: warning: sending 'self.eventLoopGroup' risks causing data races; this is an error in the Swift 6 language mode
52 | The file descriptor is guaranteed to be valid since we maintain a strong reference to `fatalOutputDevice` for the duration of `operation`.
53 | */
54 | return try await operation(fatalOutputDevice.fileDescriptor(with: eventLoopGroup))
| |- warning: sending 'self.eventLoopGroup' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.eventLoopGroup' to actor-isolated instance method 'fileDescriptor(with:)' risks causing data races between actor-isolated and task-isolated uses
55 | }
56 | }
[204/211] Compiling Shwift Pipe.swift
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/Pipe.swift:16:24: warning: sending 'source' risks causing data races; this is an error in the Swift 6 language mode
14 | async let sourceOutcome: SourceOutcome = {
15 | defer { try! pipe.writeEnd.close() }
16 | return try await source(pipe.writeEnd)
| |- warning: sending 'source' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'source' into async let risks causing data races between nonisolated and task-isolated uses
17 | }()
18 |
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/Pipe.swift:21:24: warning: sending 'destination' risks causing data races; this is an error in the Swift 6 language mode
19 | async let destinationOutcome: DestinationOutcome = {
20 | defer { try! pipe.readEnd.close() }
21 | return try await destination(pipe.readEnd)
| |- warning: sending 'destination' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'destination' into async let risks causing data races between nonisolated and task-isolated uses
22 | }()
23 |
[205/211] Compiling Shwift Process.swift
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/Process.swift:1:22: warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
1 | @_implementationOnly import NIO
| `- warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
2 | import SystemPackage
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/Process.swift:83:9: warning: capture of 'process' with non-sendable type 'Process' in a `@Sendable` closure; this is an error in the Swift 6 language mode
5 | A value which represents a child process
6 | */
7 | public struct Process {
| `- note: consider making struct 'Process' conform to the 'Sendable' protocol
8 |
9 | /**
:
81 | }
82 | } onCancel: {
83 | process.terminate()
| `- warning: capture of 'process' with non-sendable type 'Process' in a `@Sendable` closure; this is an error in the Swift 6 language mode
84 | }
85 | }
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/Process.swift:71:17: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
69 | }
70 | }
71 | return Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
72 | try await withTaskCancellationHandler {
73 | try await monitor.wait()
74 | logger?.willWait(on: process)
75 | do {
76 | try await process.wait(in: context)
| `- note: closure captures 'context' which is accessible to code in the current task
77 | logger?.process(process, didTerminateWithError: nil)
78 | } catch {
[206/211] Compiling Shwift Posix Spawn.swift
[207/211] Compiling Shwift Builtins.swift
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/Builtins.swift:1:22: warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
1 | @_implementationOnly import NIO
| `- warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
2 | import SystemPackage
3 | @_implementationOnly import _NIOConcurrency
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/Builtins.swift:3:22: warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
1 | @_implementationOnly import NIO
2 | import SystemPackage
3 | @_implementationOnly import _NIOConcurrency
| `- warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
4 |
5 | /**
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/IO.swift:16:21: warning: static property 'nullDevice' is not concurrency-safe because non-'Sendable' type 'Input' may have shared mutable state; this is an error in the Swift 6 language mode
4 | A value representing the input to a shell command
5 | */
6 | public struct Input {
| `- note: consider making struct 'Input' conform to the 'Sendable' protocol
7 |
8 | /**
:
14 | An input roughly analogous to using the null device (`/dev/null`).
15 | */
16 | public static let nullDevice = Input(kind: .nullDevice)
| |- warning: static property 'nullDevice' is not concurrency-safe because non-'Sendable' type 'Input' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nullDevice' 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
17 |
18 | /**
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/IO.swift:80:21: warning: static property 'nullDevice' is not concurrency-safe because non-'Sendable' type 'Output' may have shared mutable state; this is an error in the Swift 6 language mode
63 | A value representing the output of a shell command
64 | */
65 | public struct Output {
| `- note: consider making struct 'Output' conform to the 'Sendable' protocol
66 |
67 | /**
:
78 | An `Output` correpsonding to a null output device which drops any output it receives
79 | */
80 | public static let nullDevice = Output(kind: .nullDevice)
| |- warning: static property 'nullDevice' is not concurrency-safe because non-'Sendable' type 'Output' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nullDevice' 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
81 |
82 | /**
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/Builtins.swift:119:29: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
117 | public func makeAsyncIterator() -> AsyncIterator {
118 | let stream = AsyncThrowingStream<String, Error> { continuation in
119 | Task<Void, Never> {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
120 | do {
121 | var remainder: String = ""
122 | for try await buffer in byteBuffers {
| `- note: closure captures 'self' which is accessible to code in the current task
123 | let readString = buffer.getString(
124 | at: buffer.readerIndex,
[208/211] Emitting module Shwift
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/Builtins.swift:1:22: warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
1 | @_implementationOnly import NIO
| `- warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
2 | import SystemPackage
3 | @_implementationOnly import _NIOConcurrency
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/Builtins.swift:3:22: warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
1 | @_implementationOnly import NIO
2 | import SystemPackage
3 | @_implementationOnly import _NIOConcurrency
| `- warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
4 |
5 | /**
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/Context.swift:1:22: warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
1 | @_implementationOnly import NIO
| `- warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
2 |
3 | import SystemPackage
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/Environment.swift:3:22: warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
1 | import SystemPackage
2 |
3 | @_implementationOnly import Foundation
| `- warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
4 |
5 | /**
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/Process.swift:1:22: warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
1 | @_implementationOnly import NIO
| `- warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
2 | import SystemPackage
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/Support/NIO Pipe Bootstrap.swift:1:22: warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
1 | @_implementationOnly import NIO
| `- warning: using '@_implementationOnly' without enabling library evolution for 'Shwift' may lead to instability during execution
2 | import SystemPackage
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/IO.swift:11:21: warning: static property 'standardInput' is not concurrency-safe because non-'Sendable' type 'Input' may have shared mutable state; this is an error in the Swift 6 language mode
4 | A value representing the input to a shell command
5 | */
6 | public struct Input {
| `- note: consider making struct 'Input' conform to the 'Sendable' protocol
7 |
8 | /**
9 | An `Input` corresponding to `stdin`
10 | */
11 | public static let standardInput = Input(kind: .standardInput)
| |- warning: static property 'standardInput' is not concurrency-safe because non-'Sendable' type 'Input' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'standardInput' 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
12 |
13 | /**
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/IO.swift:16:21: warning: static property 'nullDevice' is not concurrency-safe because non-'Sendable' type 'Input' may have shared mutable state; this is an error in the Swift 6 language mode
4 | A value representing the input to a shell command
5 | */
6 | public struct Input {
| `- note: consider making struct 'Input' conform to the 'Sendable' protocol
7 |
8 | /**
:
14 | An input roughly analogous to using the null device (`/dev/null`).
15 | */
16 | public static let nullDevice = Input(kind: .nullDevice)
| |- warning: static property 'nullDevice' is not concurrency-safe because non-'Sendable' type 'Input' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nullDevice' 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
17 |
18 | /**
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/IO.swift:70:21: warning: static property 'standardOutput' is not concurrency-safe because non-'Sendable' type 'Output' may have shared mutable state; this is an error in the Swift 6 language mode
63 | A value representing the output of a shell command
64 | */
65 | public struct Output {
| `- note: consider making struct 'Output' conform to the 'Sendable' protocol
66 |
67 | /**
68 | An `Output` correpsonding to `stdout`
69 | */
70 | public static let standardOutput = Output(kind: .standardOutput)
| |- warning: static property 'standardOutput' is not concurrency-safe because non-'Sendable' type 'Output' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'standardOutput' 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
71 |
72 | /**
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/IO.swift:75:21: warning: static property 'standardError' is not concurrency-safe because non-'Sendable' type 'Output' may have shared mutable state; this is an error in the Swift 6 language mode
63 | A value representing the output of a shell command
64 | */
65 | public struct Output {
| `- note: consider making struct 'Output' conform to the 'Sendable' protocol
66 |
67 | /**
:
73 | An `Output` correpsonding to `stderr`
74 | */
75 | public static let standardError = Output(kind: .standardError)
| |- warning: static property 'standardError' is not concurrency-safe because non-'Sendable' type 'Output' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'standardError' 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
76 |
77 | /**
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/IO.swift:80:21: warning: static property 'nullDevice' is not concurrency-safe because non-'Sendable' type 'Output' may have shared mutable state; this is an error in the Swift 6 language mode
63 | A value representing the output of a shell command
64 | */
65 | public struct Output {
| `- note: consider making struct 'Output' conform to the 'Sendable' protocol
66 |
67 | /**
:
78 | An `Output` correpsonding to a null output device which drops any output it receives
79 | */
80 | public static let nullDevice = Output(kind: .nullDevice)
| |- warning: static property 'nullDevice' is not concurrency-safe because non-'Sendable' type 'Output' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nullDevice' 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
81 |
82 | /**
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/IO.swift:85:21: warning: static property 'fatalDevice' is not concurrency-safe because non-'Sendable' type 'Output' may have shared mutable state; this is an error in the Swift 6 language mode
63 | A value representing the output of a shell command
64 | */
65 | public struct Output {
| `- note: consider making struct 'Output' conform to the 'Sendable' protocol
66 |
67 | /**
:
83 | A special `Output` which aborts if any input is read.
84 | */
85 | public static let fatalDevice = Output(kind: .fatalDevice)
| |- warning: static property 'fatalDevice' is not concurrency-safe because non-'Sendable' type 'Output' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fatalDevice' 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
86 |
87 | /**
[209/219] Emitting module Script
/Users/admin/builder/spi-builder-workspace/Sources/Script/File Operations.swift:3:22: warning: using '@_implementationOnly' without enabling library evolution for 'Script' may lead to instability during execution
1 | import Shwift
2 | import SystemPackage
3 | @_implementationOnly import Foundation
| `- warning: using '@_implementationOnly' without enabling library evolution for 'Script' may lead to instability during execution
4 |
5 | // MARK: - Operators
/Users/admin/builder/spi-builder-workspace/Sources/Script/Script.swift:5:22: warning: using '@_implementationOnly' without enabling library evolution for 'Script' may lead to instability during execution
3 | import SystemPackage
4 |
5 | @_implementationOnly import class Foundation.FileManager
| `- warning: using '@_implementationOnly' without enabling library evolution for 'Script' may lead to instability during execution
6 |
7 | /**
macro expansion @TaskLocal:1:24: warning: static property '$taskLocal' is not concurrency-safe because non-'Sendable' type 'TaskLocal<Shell?>' may have shared mutable state; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/Script/Script.swift:258:43: note: expanded code originates here
188 | // MARK: - Shell
189 |
190 | public struct Shell {
| `- note: consider making struct 'Shell' conform to the 'Sendable' protocol
191 |
192 | public init(
:
256 |
257 | @TaskLocal
258 | fileprivate static var taskLocal: Shell!
+--- macro expansion @TaskLocal ------------------------------------
|1 | fileprivate static let $taskLocal: TaskLocal<Shell?> = TaskLocal(wrappedValue: nil)
| | |- warning: static property '$taskLocal' is not concurrency-safe because non-'Sendable' type 'TaskLocal<Shell?>' may have shared mutable state; this is an error in the Swift 6 language mode
| | |- note: annotate '$taskLocal' 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
+-------------------------------------------------------------------
259 |
260 | @TaskLocal
macro expansion @TaskLocal:1:24: warning: type 'Shell' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/Script/Script.swift:258:43: note: expanded code originates here
188 | // MARK: - Shell
189 |
190 | public struct Shell {
| `- note: consider making struct 'Shell' conform to the 'Sendable' protocol
191 |
192 | public init(
:
256 |
257 | @TaskLocal
258 | fileprivate static var taskLocal: Shell!
+--- macro expansion @TaskLocal ------------------------------------
|1 | fileprivate static let $taskLocal: TaskLocal<Shell?> = TaskLocal(wrappedValue: nil)
| | `- warning: type 'Shell' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+-------------------------------------------------------------------
259 |
260 | @TaskLocal
macro expansion @TaskLocal:1:56: warning: type 'Shell' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/Script/Script.swift:258:43: note: expanded code originates here
188 | // MARK: - Shell
189 |
190 | public struct Shell {
| `- note: consider making struct 'Shell' conform to the 'Sendable' protocol
191 |
192 | public init(
:
256 |
257 | @TaskLocal
258 | fileprivate static var taskLocal: Shell!
+--- macro expansion @TaskLocal ------------------------------------
|1 | fileprivate static let $taskLocal: TaskLocal<Shell?> = TaskLocal(wrappedValue: nil)
| | `- warning: type 'Shell' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+-------------------------------------------------------------------
259 |
260 | @TaskLocal
macro expansion @TaskLocal:1:56: warning: type 'Shell' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/Script/Script.swift:258:43: note: expanded code originates here
188 | // MARK: - Shell
189 |
190 | public struct Shell {
| `- note: consider making struct 'Shell' conform to the 'Sendable' protocol
191 |
192 | public init(
:
256 |
257 | @TaskLocal
258 | fileprivate static var taskLocal: Shell!
+--- macro expansion @TaskLocal ------------------------------------
|1 | fileprivate static let $taskLocal: TaskLocal<Shell?> = TaskLocal(wrappedValue: nil)
| | `- warning: type 'Shell' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+-------------------------------------------------------------------
259 |
260 | @TaskLocal
macro expansion @TaskLocal:1:24: warning: static property '$hostScript' is not concurrency-safe because non-'Sendable' type 'TaskLocal<(any Script)?>' may have shared mutable state; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/Script/Script.swift:261:45: note: expanded code originates here
17 | // MARK: - Script
18 |
19 | public protocol Script: ParsableCommand {
| `- note: protocol 'Script' does not conform to the 'Sendable' protocol
20 | func run() async throws
21 |
:
259 |
260 | @TaskLocal
261 | fileprivate static var hostScript: Script!
+--- macro expansion @TaskLocal ------------------------------------
|1 | fileprivate static let $hostScript: TaskLocal<Script?> = TaskLocal(wrappedValue: nil)
| | |- warning: static property '$hostScript' is not concurrency-safe because non-'Sendable' type 'TaskLocal<(any Script)?>' may have shared mutable state; this is an error in the Swift 6 language mode
| | |- note: annotate '$hostScript' 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
+-------------------------------------------------------------------
262 |
263 | }
macro expansion @TaskLocal:1:24: warning: type 'any Script' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/Script/Script.swift:261:45: note: expanded code originates here
17 | // MARK: - Script
18 |
19 | public protocol Script: ParsableCommand {
| `- note: protocol 'Script' does not conform to the 'Sendable' protocol
20 | func run() async throws
21 |
:
259 |
260 | @TaskLocal
261 | fileprivate static var hostScript: Script!
+--- macro expansion @TaskLocal ------------------------------------
|1 | fileprivate static let $hostScript: TaskLocal<Script?> = TaskLocal(wrappedValue: nil)
| | `- warning: type 'any Script' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+-------------------------------------------------------------------
262 |
263 | }
macro expansion @TaskLocal:1:58: warning: type 'any Script' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/Script/Script.swift:261:45: note: expanded code originates here
17 | // MARK: - Script
18 |
19 | public protocol Script: ParsableCommand {
| `- note: protocol 'Script' does not conform to the 'Sendable' protocol
20 | func run() async throws
21 |
:
259 |
260 | @TaskLocal
261 | fileprivate static var hostScript: Script!
+--- macro expansion @TaskLocal ------------------------------------
|1 | fileprivate static let $hostScript: TaskLocal<Script?> = TaskLocal(wrappedValue: nil)
| | `- warning: type 'any Script' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+-------------------------------------------------------------------
262 |
263 | }
macro expansion @TaskLocal:1:58: warning: type 'any Script' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/Script/Script.swift:261:45: note: expanded code originates here
17 | // MARK: - Script
18 |
19 | public protocol Script: ParsableCommand {
| `- note: protocol 'Script' does not conform to the 'Sendable' protocol
20 | func run() async throws
21 |
:
259 |
260 | @TaskLocal
261 | fileprivate static var hostScript: Script!
+--- macro expansion @TaskLocal ------------------------------------
|1 | fileprivate static let $hostScript: TaskLocal<Script?> = TaskLocal(wrappedValue: nil)
| | `- warning: type 'any Script' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+-------------------------------------------------------------------
262 |
263 | }
[210/219] Compiling Script Pipe.swift
[211/219] Compiling Script Output Capture.swift
[212/219] Compiling Script List Comprehensions.swift
[213/219] Compiling Script File Operations.swift
/Users/admin/builder/spi-builder-workspace/Sources/Script/File Operations.swift:3:22: warning: using '@_implementationOnly' without enabling library evolution for 'Script' may lead to instability during execution
1 | import Shwift
2 | import SystemPackage
3 | @_implementationOnly import Foundation
| `- warning: using '@_implementationOnly' without enabling library evolution for 'Script' may lead to instability during execution
4 |
5 | // MARK: - Operators
[214/219] Compiling Script Executable.swift
[215/219] Compiling Script Script.swift
/Users/admin/builder/spi-builder-workspace/Sources/Script/Script.swift:5:22: warning: using '@_implementationOnly' without enabling library evolution for 'Script' may lead to instability during execution
3 | import SystemPackage
4 |
5 | @_implementationOnly import class Foundation.FileManager
| `- warning: using '@_implementationOnly' without enabling library evolution for 'Script' may lead to instability during execution
6 |
7 | /**
macro expansion @TaskLocal:1:24: warning: static property '$taskLocal' is not concurrency-safe because non-'Sendable' type 'TaskLocal<Shell?>' may have shared mutable state; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/Script/Script.swift:258:43: note: expanded code originates here
188 | // MARK: - Shell
189 |
190 | public struct Shell {
| `- note: consider making struct 'Shell' conform to the 'Sendable' protocol
191 |
192 | public init(
:
256 |
257 | @TaskLocal
258 | fileprivate static var taskLocal: Shell!
+--- macro expansion @TaskLocal ------------------------------------
|1 | fileprivate static let $taskLocal: TaskLocal<Shell?> = TaskLocal(wrappedValue: nil)
| | |- warning: static property '$taskLocal' is not concurrency-safe because non-'Sendable' type 'TaskLocal<Shell?>' may have shared mutable state; this is an error in the Swift 6 language mode
| | |- note: annotate '$taskLocal' 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
+-------------------------------------------------------------------
259 |
260 | @TaskLocal
macro expansion @TaskLocal:1:24: warning: type 'Shell' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/Script/Script.swift:258:43: note: expanded code originates here
188 | // MARK: - Shell
189 |
190 | public struct Shell {
| `- note: consider making struct 'Shell' conform to the 'Sendable' protocol
191 |
192 | public init(
:
256 |
257 | @TaskLocal
258 | fileprivate static var taskLocal: Shell!
+--- macro expansion @TaskLocal ------------------------------------
|1 | fileprivate static let $taskLocal: TaskLocal<Shell?> = TaskLocal(wrappedValue: nil)
| | `- warning: type 'Shell' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+-------------------------------------------------------------------
259 |
260 | @TaskLocal
macro expansion @TaskLocal:1:56: warning: type 'Shell' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/Script/Script.swift:258:43: note: expanded code originates here
188 | // MARK: - Shell
189 |
190 | public struct Shell {
| `- note: consider making struct 'Shell' conform to the 'Sendable' protocol
191 |
192 | public init(
:
256 |
257 | @TaskLocal
258 | fileprivate static var taskLocal: Shell!
+--- macro expansion @TaskLocal ------------------------------------
|1 | fileprivate static let $taskLocal: TaskLocal<Shell?> = TaskLocal(wrappedValue: nil)
| | `- warning: type 'Shell' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+-------------------------------------------------------------------
259 |
260 | @TaskLocal
macro expansion @TaskLocal:1:56: warning: type 'Shell' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/Script/Script.swift:258:43: note: expanded code originates here
188 | // MARK: - Shell
189 |
190 | public struct Shell {
| `- note: consider making struct 'Shell' conform to the 'Sendable' protocol
191 |
192 | public init(
:
256 |
257 | @TaskLocal
258 | fileprivate static var taskLocal: Shell!
+--- macro expansion @TaskLocal ------------------------------------
|1 | fileprivate static let $taskLocal: TaskLocal<Shell?> = TaskLocal(wrappedValue: nil)
| | `- warning: type 'Shell' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+-------------------------------------------------------------------
259 |
260 | @TaskLocal
macro expansion @TaskLocal:1:24: warning: static property '$hostScript' is not concurrency-safe because non-'Sendable' type 'TaskLocal<(any Script)?>' may have shared mutable state; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/Script/Script.swift:261:45: note: expanded code originates here
17 | // MARK: - Script
18 |
19 | public protocol Script: ParsableCommand {
| `- note: protocol 'Script' does not conform to the 'Sendable' protocol
20 | func run() async throws
21 |
:
259 |
260 | @TaskLocal
261 | fileprivate static var hostScript: Script!
+--- macro expansion @TaskLocal ------------------------------------
|1 | fileprivate static let $hostScript: TaskLocal<Script?> = TaskLocal(wrappedValue: nil)
| | |- warning: static property '$hostScript' is not concurrency-safe because non-'Sendable' type 'TaskLocal<(any Script)?>' may have shared mutable state; this is an error in the Swift 6 language mode
| | |- note: annotate '$hostScript' 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
+-------------------------------------------------------------------
262 |
263 | }
macro expansion @TaskLocal:1:24: warning: type 'any Script' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/Script/Script.swift:261:45: note: expanded code originates here
17 | // MARK: - Script
18 |
19 | public protocol Script: ParsableCommand {
| `- note: protocol 'Script' does not conform to the 'Sendable' protocol
20 | func run() async throws
21 |
:
259 |
260 | @TaskLocal
261 | fileprivate static var hostScript: Script!
+--- macro expansion @TaskLocal ------------------------------------
|1 | fileprivate static let $hostScript: TaskLocal<Script?> = TaskLocal(wrappedValue: nil)
| | `- warning: type 'any Script' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+-------------------------------------------------------------------
262 |
263 | }
macro expansion @TaskLocal:1:58: warning: type 'any Script' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/Script/Script.swift:261:45: note: expanded code originates here
17 | // MARK: - Script
18 |
19 | public protocol Script: ParsableCommand {
| `- note: protocol 'Script' does not conform to the 'Sendable' protocol
20 | func run() async throws
21 |
:
259 |
260 | @TaskLocal
261 | fileprivate static var hostScript: Script!
+--- macro expansion @TaskLocal ------------------------------------
|1 | fileprivate static let $hostScript: TaskLocal<Script?> = TaskLocal(wrappedValue: nil)
| | `- warning: type 'any Script' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+-------------------------------------------------------------------
262 |
263 | }
macro expansion @TaskLocal:1:58: warning: type 'any Script' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/Script/Script.swift:261:45: note: expanded code originates here
17 | // MARK: - Script
18 |
19 | public protocol Script: ParsableCommand {
| `- note: protocol 'Script' does not conform to the 'Sendable' protocol
20 | func run() async throws
21 |
:
259 |
260 | @TaskLocal
261 | fileprivate static var hostScript: Script!
+--- macro expansion @TaskLocal ------------------------------------
|1 | fileprivate static let $hostScript: TaskLocal<Script?> = TaskLocal(wrappedValue: nil)
| | `- warning: type 'any Script' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+-------------------------------------------------------------------
262 |
263 | }
/Users/admin/builder/spi-builder-workspace/Sources/Script/Script.swift:159:37: warning: type 'any Script' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
17 | // MARK: - Script
18 |
19 | public protocol Script: ParsableCommand {
| `- note: protocol 'Script' does not conform to the 'Sendable' protocol
20 | func run() async throws
21 |
:
157 | do {
158 | let shell = self.rootShell
159 | try await Shell.$hostScript.withValue(self) {
| `- warning: type 'any Script' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
160 | try await Shell.$taskLocal.withValue(shell) {
161 | try await self.wrapInvocation {
/Users/admin/builder/spi-builder-workspace/Sources/Script/Script.swift:160:38: warning: type 'Shell' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
158 | let shell = self.rootShell
159 | try await Shell.$hostScript.withValue(self) {
160 | try await Shell.$taskLocal.withValue(shell) {
| `- warning: type 'Shell' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
161 | try await self.wrapInvocation {
162 | try await run()
:
188 | // MARK: - Shell
189 |
190 | public struct Shell {
| `- note: consider making struct 'Shell' conform to the 'Sendable' protocol
191 |
192 | public init(
macro expansion @TaskLocal:3:20: warning: type 'Shell' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/Script/Script.swift:258:43: note: expanded code originates here
188 | // MARK: - Shell
189 |
190 | public struct Shell {
| `- note: consider making struct 'Shell' conform to the 'Sendable' protocol
191 |
192 | public init(
:
256 |
257 | @TaskLocal
258 | fileprivate static var taskLocal: Shell!
+--- macro expansion @TaskLocal ------------------------------------
|1 | {
|2 | get {
|3 | $taskLocal.get()
| | `- warning: type 'Shell' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
|4 | }
|5 | }
+-------------------------------------------------------------------
259 |
260 | @TaskLocal
macro expansion @TaskLocal:3:21: warning: type 'any Script' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/Script/Script.swift:261:45: note: expanded code originates here
17 | // MARK: - Script
18 |
19 | public protocol Script: ParsableCommand {
| `- note: protocol 'Script' does not conform to the 'Sendable' protocol
20 | func run() async throws
21 |
:
259 |
260 | @TaskLocal
261 | fileprivate static var hostScript: Script!
+--- macro expansion @TaskLocal ------------------------------------
|1 | {
|2 | get {
|3 | $hostScript.get()
| | `- warning: type 'any Script' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
|4 | }
|5 | }
+-------------------------------------------------------------------
262 |
263 | }
/Users/admin/builder/spi-builder-workspace/Sources/Script/Script.swift:291:37: warning: type 'Shell' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
188 | // MARK: - Shell
189 |
190 | public struct Shell {
| `- note: consider making struct 'Shell' conform to the 'Sendable' protocol
191 |
192 | public init(
:
289 | shell.standardError = standardError
290 | }
291 | return try await Shell.$taskLocal.withValue(shell, operation: operation)
| `- warning: type 'Shell' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
292 | }
293 |
/Users/admin/builder/spi-builder-workspace/Sources/Script/Script.swift:155:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
153 | let box = ErrorBox()
154 | let sem = DispatchSemaphore(value: 0)
155 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
156 | defer { sem.signal() }
157 | do {
158 | let shell = self.rootShell
| `- note: closure captures non-Sendable 'self'
159 | try await Shell.$hostScript.withValue(self) {
160 | try await Shell.$taskLocal.withValue(shell) {
:
166 | } catch Process.TerminationError.nonzeroTerminationStatus(let status) {
167 | /// Convert `Shell` error into one that `ArgumentParser` understands
168 | box.error = ExitCode(rawValue: status)
| `- note: closure captures non-Sendable 'box'
169 | } catch let error as SystemPackage.Errno {
170 | /// Convert `SystemPackage` error into one that `ArgumentParser` understands
[216/219] Compiling Script Builtins.swift
[217/221] Compiling ScriptExample Main.swift
/Users/admin/builder/spi-builder-workspace/Sources/ScriptExample/Main.swift:57:29: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
55 | for j in 0..<50 {
56 | print("(i, j) = (\(i), \(j))")
57 | group.addTask {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
58 | try await echo("\(i),\(j):", "Foo", "Bar") | sed("s/Bar/Baz/")
| `- note: closure captures 'sed' which is accessible to code in the current task
59 | | map { $0.replacingOccurrences(of: "Baz", with: "Baz!") }
60 | return (i, j)
[218/221] Emitting module ScriptExample
[218/221] Write Objects.LinkFileList
[219/221] Linking ScriptExample
[220/221] Applying ScriptExample
Build complete! (31.17s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-argument-parser",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-argument-parser"
},
{
"identity" : "swift-system",
"requirement" : {
"range" : [
{
"lower_bound" : "1.1.1",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-system"
},
{
"identity" : "swift-nio",
"requirement" : {
"range" : [
{
"lower_bound" : "2.0.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-nio.git"
}
],
"manifest_display_name" : "Shwift",
"name" : "Shwift",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "12.0"
}
],
"products" : [
{
"name" : "Script",
"targets" : [
"Script"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "Shwift",
"targets" : [
"Shwift"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "ScriptExample",
"targets" : [
"ScriptExample"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "ShwiftTests",
"module_type" : "SwiftTarget",
"name" : "ShwiftTests",
"path" : "Tests/ShwiftTests",
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/ShwiftTests/Cat.txt",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"Recorder Tests.swift",
"Shwift Tests.swift"
],
"target_dependencies" : [
"Shwift"
],
"type" : "test"
},
{
"c99name" : "Shwift",
"module_type" : "SwiftTarget",
"name" : "Shwift",
"path" : "Sources/Shwift",
"product_dependencies" : [
"SystemPackage",
"NIO",
"_NIOConcurrency"
],
"product_memberships" : [
"Script",
"Shwift",
"ScriptExample"
],
"sources" : [
"Builtins.swift",
"Context.swift",
"Environment.swift",
"IO.swift",
"Pipe.swift",
"Process.swift",
"Support/Async Inbound Handler.swift",
"Support/File Descriptor.swift",
"Support/NIO Pipe Bootstrap.swift",
"Support/Posix Spawn.swift"
],
"type" : "library"
},
{
"c99name" : "ScriptExample",
"module_type" : "SwiftTarget",
"name" : "ScriptExample",
"path" : "Sources/ScriptExample",
"product_memberships" : [
"ScriptExample"
],
"sources" : [
"Main.swift"
],
"target_dependencies" : [
"Script"
],
"type" : "executable"
},
{
"c99name" : "Script",
"module_type" : "SwiftTarget",
"name" : "Script",
"path" : "Sources/Script",
"product_dependencies" : [
"ArgumentParser"
],
"product_memberships" : [
"Script",
"ScriptExample"
],
"sources" : [
"Builtins.swift",
"Executable.swift",
"File Operations.swift",
"List Comprehensions.swift",
"Output Capture.swift",
"Pipe.swift",
"Script.swift"
],
"target_dependencies" : [
"Shwift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Done.