Build Information
Successful build of Shwift with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 14
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/GeorgeLyon/Shwift.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/GeorgeLyon/Shwift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
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 main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/GeorgeLyon/Shwift.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
[1/1] Compiling plugin GenerateManualPlugin
Building for debugging...
[1/27] Write sources
[8/27] Write ScriptExample-entitlement.plist
[9/27] Write sources
[15/27] Compiling CNIOWindows shim.c
[16/27] Compiling CSystem shims.c
[16/27] Compiling CNIOWindows WSAStartup.c
[18/27] Compiling CNIOLinux liburing_shims.c
[18/27] Compiling CNIOLinux shim.c
[20/27] Write swift-version-6F35C1178C84523A.txt
[21/53] Compiling CNIODarwin shim.c
[22/53] Compiling c-nioatomics.c
[23/53] Compiling c-atomics.c
[25/57] Emitting module ArgumentParserToolInfo
[26/57] Compiling ArgumentParserToolInfo ToolInfo.swift
[27/57] Compiling _NIODataStructures PriorityQueue.swift
[28/94] Emitting module _NIODataStructures
[29/94] Compiling _NIODataStructures Heap.swift
[30/94] Compiling ArgumentParser FishCompletionsGenerator.swift
[31/94] Compiling ArgumentParser ZshCompletionsGenerator.swift
[32/94] Compiling ArgumentParser HelpGenerator.swift
[33/94] Compiling ArgumentParser MessageInfo.swift
[34/94] Compiling ArgumentParser CommandConfiguration.swift
[35/94] Compiling ArgumentParser EnumerableFlag.swift
[36/94] Compiling ArgumentParser BashCompletionsGenerator.swift
[37/94] Compiling ArgumentParser CompletionsGenerator.swift
[38/94] Compiling ArgumentParser CompletionKind.swift
[39/94] Compiling ArgumentParser OptionGroup.swift
[40/94] Compiling ArgumentParser AsyncParsableCommand.swift
[41/94] Compiling ArgumentParser UsageGenerator.swift
[42/94] Compiling ArgumentParser CollectionExtensions.swift
[43/94] Compiling ArgumentParser Argument.swift
[44/94] Compiling ArgumentParser ArgumentDecoder.swift
[45/94] Compiling ArgumentParser ArgumentDefinition.swift
[46/94] Emitting module SystemPackage
[47/94] Compiling ArgumentParser ArgumentSet.swift
[48/94] Compiling ArgumentParser CommandParser.swift
[49/94] Compiling ArgumentParser ArgumentHelp.swift
[50/94] Compiling ArgumentParser ArgumentVisibility.swift
[51/96] Compiling NIOConcurrencyHelpers lock.swift
[52/96] Emitting module NIOConcurrencyHelpers
[53/96] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[54/96] Compiling NIOConcurrencyHelpers atomics.swift
[55/142] Compiling NIOCore ChannelOption.swift
[56/142] Compiling NIOCore ChannelPipeline.swift
[57/142] Compiling NIOCore Linux.swift
[58/142] Compiling NIOCore MarkedCircularBuffer.swift
[59/142] Compiling NIOCore MulticastChannel.swift
[60/142] Compiling NIOCore NIOAny.swift
[61/142] Compiling NIOCore NIOCloseOnErrorHandler.swift
[62/146] Compiling NIOCore SystemCallHelpers.swift
[63/146] Compiling NIOCore TypeAssistedChannelHandler.swift
[64/146] Compiling NIOCore UniversalBootstrapSupport.swift
[65/146] Compiling NIOCore Utilities.swift
[66/146] Compiling NIOCore IO.swift
[67/146] Compiling NIOCore IOData.swift
[68/146] Compiling NIOCore IntegerBitPacking.swift
[69/146] Compiling NIOCore IntegerTypes.swift
[70/146] Compiling NIOCore Interfaces.swift
[71/146] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[72/146] Compiling NIOCore EventLoopFuture.swift
[73/146] Compiling NIOCore FileDescriptor.swift
[74/146] Compiling NIOCore FileHandle.swift
[75/146] Compiling NIOCore FileRegion.swift
[76/146] Compiling NIOCore DeadChannel.swift
[77/146] Compiling NIOCore DispatchQueue+WithFuture.swift
[78/146] Compiling NIOCore EventLoop+Deprecated.swift
[79/146] Compiling NIOCore EventLoop.swift
[80/146] Compiling NIOCore EventLoopFuture+Deprecated.swift
[81/146] Compiling NIOCore ByteBuffer-views.swift
[82/146] Compiling NIOCore Channel.swift
[83/146] Compiling NIOCore ChannelHandler.swift
[84/146] Compiling NIOCore ChannelHandlers.swift
[85/146] Compiling NIOCore ChannelInvoker.swift
[88/146] Compiling NIOCore CircularBuffer.swift
[89/146] Compiling NIOCore Codec.swift
[90/146] Compiling NIOCore ConvenienceOptionSupport.swift
[91/146] Compiling NIOCore ByteBuffer-conversions.swift
[92/146] Compiling NIOCore ByteBuffer-core.swift
[93/146] Compiling NIOCore ByteBuffer-int.swift
[94/146] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[95/146] Compiling NIOCore ByteBuffer-multi-int.swift
[96/146] Compiling NIOCore PointerHelpers.swift
[97/146] Compiling NIOCore RecvByteBufferAllocator.swift
[98/146] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[99/146] Compiling NIOCore SocketAddresses.swift
[100/146] Compiling NIOCore SocketOptionProvider.swift
[101/146] Compiling NIOCore AddressedEnvelope.swift
[102/146] Compiling NIOCore AsyncAwaitSupport+OldXcodes.swift
[103/146] Compiling NIOCore AsyncAwaitSupport.swift
[104/146] Compiling NIOCore BSDSocketAPI.swift
[105/146] Compiling NIOCore ByteBuffer-aux.swift
[106/146] Emitting module NIOCore
[107/189] Compiling NIOEmbedded Embedded.swift
[108/189] Emitting module NIOEmbedded
[109/189] Compiling NIOPosix PipeChannel.swift
[110/189] Compiling NIOPosix PipePair.swift
[111/189] Compiling NIOPosix PointerHelpers.swift
[112/189] Compiling NIOPosix Resolver.swift
[113/189] Compiling NIOPosix NIOThreadPool.swift
[114/189] Compiling NIOPosix NonBlockingFileIO.swift
[115/189] Compiling NIOPosix PendingDatagramWritesManager.swift
[116/189] Compiling NIOPosix PendingWritesManager.swift
[117/189] Compiling NIOPosix Selectable.swift
[118/189] Compiling NIOPosix SelectableChannel.swift
[119/189] Compiling NIOPosix SelectableEventLoop.swift
[120/189] Compiling NIOPosix SelectorEpoll.swift
[121/193] Compiling NIOPosix BSDSocketAPICommon.swift
[122/193] Compiling NIOPosix BSDSocketAPIPosix.swift
[123/193] Compiling NIOPosix BSDSocketAPIWindows.swift
[124/193] Compiling NIOPosix BaseSocket.swift
[125/193] Compiling NIOPosix BaseSocketChannel+SocketOptionProvider.swift
[126/193] Compiling NIOPosix Socket.swift
[127/193] Compiling NIOPosix SocketChannel.swift
[128/193] Compiling NIOPosix SocketProtocols.swift
[129/193] Compiling NIOPosix System.swift
[130/193] Emitting module NIOPosix
[131/193] Compiling NIOPosix Thread.swift
[132/193] Compiling NIOPosix ThreadPosix.swift
[133/193] Compiling NIOPosix ThreadWindows.swift
[134/193] Compiling NIOPosix Utilities.swift
[135/193] Compiling NIOPosix IntegerTypes.swift
[136/193] Compiling NIOPosix Linux.swift
[137/193] Compiling NIOPosix LinuxCPUSet.swift
[138/193] Compiling NIOPosix LinuxUring.swift
[139/193] Compiling NIOPosix MultiThreadedEventLoopGroup.swift
[140/193] Compiling NIOPosix SelectorGeneric.swift
[141/193] Compiling NIOPosix SelectorKqueue.swift
[142/193] Compiling NIOPosix SelectorUring.swift
[143/193] Compiling NIOPosix ServerSocket.swift
[144/193] Compiling NIOPosix FileDescriptor.swift
[145/193] Compiling NIOPosix GetaddrinfoResolver.swift
[146/193] Compiling NIOPosix HappyEyeballs.swift
[147/193] Compiling NIOPosix IO.swift
[148/193] Compiling NIOPosix IntegerBitPacking.swift
[149/193] Compiling NIOPosix BaseSocketChannel.swift
[150/193] Compiling NIOPosix BaseStreamSocketChannel.swift
[151/193] Compiling NIOPosix Bootstrap.swift
[152/193] Compiling NIOPosix ControlMessage.swift
[153/193] Compiling NIOPosix DatagramVectorReadManager.swift
[154/195] Emitting module NIO
[155/195] Compiling NIO Exports.swift
[156/197] Emitting module _NIOConcurrency
[157/197] Compiling _NIOConcurrency Empty.swift
[162/210] Compiling Shwift Async Inbound Handler.swift
[163/211] Emitting module ArgumentParser
[164/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 non-isolated 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 non-isolated 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 | }
[173/211] Compiling ArgumentParser SequenceExtensions.swift
[174/211] Compiling ArgumentParser StringExtensions.swift
[175/211] Compiling ArgumentParser Tree.swift
[176/211] Compiling Shwift Pipe.swift
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/Pipe.swift:14:46: warning: task or actor isolated value cannot be sent; this is an error in the Swift 6 language mode
12 | let pipe = try FileDescriptor.pipe()
13 |
14 | async let sourceOutcome: SourceOutcome = {
| `- warning: task or actor isolated value cannot be sent; this is an error in the Swift 6 language mode
15 | defer { try! pipe.writeEnd.close() }
16 | return try await source(pipe.writeEnd)
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/Pipe.swift:19:56: warning: task or actor isolated value cannot be sent; this is an error in the Swift 6 language mode
17 | }()
18 |
19 | async let destinationOutcome: DestinationOutcome = {
| `- warning: task or actor isolated value cannot be sent; this is an error in the Swift 6 language mode
20 | defer { try! pipe.readEnd.close() }
21 | return try await destination(pipe.readEnd)
[177/211] Compiling Shwift File Descriptor.swift
[178/211] 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 |
[179/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 | }
[180/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:74:9: warning: capture of 'logger' with non-sendable type '(any ProcessLogger)?' in a `@Sendable` 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)
| `- warning: capture of 'logger' with non-sendable type '(any ProcessLogger)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | do {
76 | try await process.wait(in: context)
:
245 | // MARK: - Logging
246 |
247 | public protocol ProcessLogger {
| `- note: protocol 'ProcessLogger' does not conform to the 'Sendable' protocol
248 | func failedToLaunchProcess(dueTo error: Error)
249 | func didLaunch(_ process: Process)
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/Process.swift:74:30: 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 | /**
:
72 | try await withTaskCancellationHandler {
73 | try await monitor.wait()
74 | logger?.willWait(on: process)
| `- warning: capture of 'process' with non-sendable type 'Process' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | do {
76 | try await process.wait(in: context)
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/Process.swift:76:38: warning: capture of 'context' with non-sendable type 'Context' in a `@Sendable` closure; this is an error in the Swift 6 language mode
74 | logger?.willWait(on: process)
75 | do {
76 | try await process.wait(in: context)
| `- warning: capture of 'context' with non-sendable type 'Context' in a `@Sendable` closure; this is an error in the Swift 6 language mode
77 | logger?.process(process, didTerminateWithError: nil)
78 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/Context.swift:10:20: note: class 'Context' does not conform to the 'Sendable' protocol
8 | - note: `Context` shuts down asynchronously, so resources may not be immediately freed when this object is deinitialized (though this should happen quickly).
9 | */
10 | public final class Context {
| `- note: class 'Context' does not conform to the 'Sendable' protocol
11 | let eventLoopGroup: EventLoopGroup
12 | let fileIO: NonBlockingFileIO
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/Process.swift:74:9: warning: capture of 'logger' with non-sendable type '(any ProcessLogger)?' in an isolated 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)
| `- warning: capture of 'logger' with non-sendable type '(any ProcessLogger)?' in an isolated closure; this is an error in the Swift 6 language mode
75 | do {
76 | try await process.wait(in: context)
:
245 | // MARK: - Logging
246 |
247 | public protocol ProcessLogger {
| `- note: protocol 'ProcessLogger' does not conform to the 'Sendable' protocol
248 | func failedToLaunchProcess(dueTo error: Error)
249 | func didLaunch(_ process: Process)
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/Process.swift:74:30: warning: capture of 'process' with non-sendable type 'Process' in an isolated 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 | /**
:
72 | try await withTaskCancellationHandler {
73 | try await monitor.wait()
74 | logger?.willWait(on: process)
| `- warning: capture of 'process' with non-sendable type 'Process' in an isolated closure; this is an error in the Swift 6 language mode
75 | do {
76 | try await process.wait(in: context)
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/Process.swift:76:38: warning: capture of 'context' with non-sendable type 'Context' in an isolated closure; this is an error in the Swift 6 language mode
74 | logger?.willWait(on: process)
75 | do {
76 | try await process.wait(in: context)
| `- warning: capture of 'context' with non-sendable type 'Context' in an isolated closure; this is an error in the Swift 6 language mode
77 | logger?.process(process, didTerminateWithError: nil)
78 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/Context.swift:10:20: note: class 'Context' does not conform to the 'Sendable' protocol
8 | - note: `Context` shuts down asynchronously, so resources may not be immediately freed when this object is deinitialized (though this should happen quickly).
9 | */
10 | public final class Context {
| `- note: class 'Context' does not conform to the 'Sendable' protocol
11 | let eventLoopGroup: EventLoopGroup
12 | let fileIO: NonBlockingFileIO
/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 | }
[181/211] Compiling Shwift Posix Spawn.swift
[198/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/.build/checkouts/swift-nio/Sources/NIOCore/ChannelOption.swift:292:23: warning: static property 'autoRead' is not concurrency-safe because non-'Sendable' type 'ChannelOptions.Types.AutoReadOption' may have shared mutable state; this is an error in the Swift 6 language mode
132 | /// `AutoReadOption` allows users to configure if a `Channel` should automatically call `Channel.read` again once all data was read from the transport or
133 | /// if the user is responsible to call `Channel.read` manually.
134 | public struct AutoReadOption: ChannelOption {
| `- note: consider making struct 'AutoReadOption' conform to the 'Sendable' protocol
135 | public typealias Value = Bool
136 |
:
290 |
291 | /// - seealso: `AutoReadOption`.
292 | public static let autoRead = Types.AutoReadOption()
| |- warning: static property 'autoRead' is not concurrency-safe because non-'Sendable' type 'ChannelOptions.Types.AutoReadOption' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'autoRead' 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
293 |
294 | /// - seealso: `MaxMessagesPerReadOption`.
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelOption.swift:310:23: warning: static property 'allowRemoteHalfClosure' is not concurrency-safe because non-'Sendable' type 'ChannelOptions.Types.AllowRemoteHalfClosureOption' may have shared mutable state; this is an error in the Swift 6 language mode
251 | /// not be closed: instead, a `ChannelEvent.inboundClosed` user event will be sent on the `ChannelPipeline`,
252 | /// and no more data will be received.
253 | public struct AllowRemoteHalfClosureOption: ChannelOption {
| `- note: consider making struct 'AllowRemoteHalfClosureOption' conform to the 'Sendable' protocol
254 | public typealias Value = Bool
255 |
:
308 |
309 | /// - seealso: `AllowRemoteHalfClosureOption`.
310 | public static let allowRemoteHalfClosure = Types.AllowRemoteHalfClosureOption()
| |- warning: static property 'allowRemoteHalfClosure' is not concurrency-safe because non-'Sendable' type 'ChannelOptions.Types.AllowRemoteHalfClosureOption' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'allowRemoteHalfClosure' 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
311 |
312 | /// - seealso: `DatagramVectorReadMessageCountOption`
/Users/admin/builder/spi-builder-workspace/Sources/Shwift/Builtins.swift:122:39: warning: capture of 'self' with non-sendable type 'Builtin.Input.Segments' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 |
108 | public struct Segments: AsyncSequence {
| `- note: consider making struct 'Segments' conform to the 'Sendable' protocol
109 | public typealias Element = String
110 |
:
120 | do {
121 | var remainder: String = ""
122 | for try await buffer in byteBuffers {
| `- warning: capture of 'self' with non-sendable type 'Builtin.Input.Segments' in a `@Sendable` closure; this is an error in the Swift 6 language mode
123 | let readString = buffer.getString(
124 | at: buffer.readerIndex,
/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/.build/checkouts/swift-nio/Sources/NIOCore/FileHandle.swift:113:27: warning: static property 'read' is not concurrency-safe because non-'Sendable' type 'NIOFileHandle.Mode' may have shared mutable state; this is an error in the Swift 6 language mode
90 | extension NIOFileHandle {
91 | /// `Mode` represents file access modes.
92 | public struct Mode: OptionSet {
| `- note: consider making struct 'Mode' conform to the 'Sendable' protocol
93 | public let rawValue: UInt8
94 |
:
111 |
112 | /// Opens file for reading
113 | public static let read = Mode(rawValue: 1 << 0)
| |- warning: static property 'read' is not concurrency-safe because non-'Sendable' type 'NIOFileHandle.Mode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'read' 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
114 | /// Opens file for writing
115 | public static let write = Mode(rawValue: 1 << 1)
/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/.build/checkouts/swift-nio/Sources/NIOCore/FileHandle.swift:115:27: warning: static property 'write' is not concurrency-safe because non-'Sendable' type 'NIOFileHandle.Mode' may have shared mutable state; this is an error in the Swift 6 language mode
90 | extension NIOFileHandle {
91 | /// `Mode` represents file access modes.
92 | public struct Mode: OptionSet {
| `- note: consider making struct 'Mode' conform to the 'Sendable' protocol
93 | public let rawValue: UInt8
94 |
:
113 | public static let read = Mode(rawValue: 1 << 0)
114 | /// Opens file for writing
115 | public static let write = Mode(rawValue: 1 << 1)
| |- warning: static property 'write' is not concurrency-safe because non-'Sendable' type 'NIOFileHandle.Mode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'write' 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
116 | }
117 |
[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] 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] 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
[210/219] Compiling Script Output Capture.swift
[211/219] Compiling Script Pipe.swift
[212/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 | }
[213/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/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: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/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(
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/Script/Script.swift:158:21: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
156 | defer { sem.signal() }
157 | do {
158 | let shell = self.rootShell
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
159 | try await Shell.$hostScript.withValue(self) {
160 | try await Shell.$taskLocal.withValue(shell) {
/Users/admin/builder/spi-builder-workspace/Sources/Script/Script.swift:168:9: warning: capture of 'box' with non-sendable type 'ErrorBox' in a `@Sendable` closure; this is an error in the Swift 6 language mode
166 | } catch Process.TerminationError.nonzeroTerminationStatus(let status) {
167 | /// Convert `Shell` error into one that `ArgumentParser` understands
168 | box.error = ExitCode(rawValue: status)
| `- warning: capture of 'box' with non-sendable type 'ErrorBox' in a `@Sendable` closure; this is an error in the Swift 6 language mode
169 | } catch let error as SystemPackage.Errno {
170 | /// Convert `SystemPackage` error into one that `ArgumentParser` understands
:
182 | }
183 |
184 | private final class ErrorBox {
| `- note: class 'ErrorBox' does not conform to the 'Sendable' protocol
185 | var error: Error? = nil
186 | }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/Script/Script.swift:161:23: warning: capture of 'self' with non-sendable type 'Self' in an isolated closure; this is an error in the Swift 6 language mode
159 | try await Shell.$hostScript.withValue(self) {
160 | try await Shell.$taskLocal.withValue(shell) {
161 | try await self.wrapInvocation {
| `- warning: capture of 'self' with non-sendable type 'Self' in an isolated closure; this is an error in the Swift 6 language mode
162 | try await run()
163 | }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/Script/Script.swift:161:23: warning: capture of 'self' with non-sendable type 'Self' in an isolated closure; this is an error in the Swift 6 language mode
159 | try await Shell.$hostScript.withValue(self) {
160 | try await Shell.$taskLocal.withValue(shell) {
161 | try await self.wrapInvocation {
| `- warning: capture of 'self' with non-sendable type 'Self' in an isolated closure; this is an error in the Swift 6 language mode
162 | try await run()
163 | }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/Script/Script.swift:162:25: warning: capture of 'self' with non-sendable type 'Self' in an isolated closure; this is an error in the Swift 6 language mode
160 | try await Shell.$taskLocal.withValue(shell) {
161 | try await self.wrapInvocation {
162 | try await run()
| `- warning: capture of 'self' with non-sendable type 'Self' in an isolated closure; this is an error in the Swift 6 language mode
163 | }
164 | }
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 |
[214/219] Compiling Script Executable.swift
[215/219] Compiling Script Builtins.swift
[216/219] Compiling Script List Comprehensions.swift
[217/221] Emitting module ScriptExample
[218/221] Compiling ScriptExample Main.swift
/Users/admin/builder/spi-builder-workspace/Sources/ScriptExample/Main.swift:58:27: warning: capture of 'echo' with non-sendable type 'Executable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
56 | print("(i, j) = (\(i), \(j))")
57 | group.addTask {
58 | try await echo("\(i),\(j):", "Foo", "Bar") | sed("s/Bar/Baz/")
| `- warning: capture of 'echo' with non-sendable type 'Executable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
59 | | map { $0.replacingOccurrences(of: "Baz", with: "Baz!") }
60 | return (i, j)
/Users/admin/builder/spi-builder-workspace/Sources/Script/Executable.swift:56:15: note: struct 'Executable' does not conform to the 'Sendable' protocol
54 | // MARK: - Invoking Executables
55 |
56 | public struct Executable {
| `- note: struct 'Executable' does not conform to the 'Sendable' protocol
57 | public let path: FilePath
58 | public init(path: FilePath) {
/Users/admin/builder/spi-builder-workspace/Sources/ScriptExample/Main.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Script'
1 | import Foundation
2 | import Script
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Script'
3 |
4 | @main struct Main: Script {
/Users/admin/builder/spi-builder-workspace/Sources/ScriptExample/Main.swift:58:62: warning: capture of 'sed' with non-sendable type 'Executable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
56 | print("(i, j) = (\(i), \(j))")
57 | group.addTask {
58 | try await echo("\(i),\(j):", "Foo", "Bar") | sed("s/Bar/Baz/")
| `- warning: capture of 'sed' with non-sendable type 'Executable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
59 | | map { $0.replacingOccurrences(of: "Baz", with: "Baz!") }
60 | return (i, j)
/Users/admin/builder/spi-builder-workspace/Sources/Script/Executable.swift:56:15: note: struct 'Executable' does not conform to the 'Sendable' protocol
54 | // MARK: - Invoking Executables
55 |
56 | public struct Executable {
| `- note: struct 'Executable' does not conform to the 'Sendable' protocol
57 | public let path: FilePath
58 | public init(path: FilePath) {
[218/221] Write Objects.LinkFileList
[219/221] Linking ScriptExample
[220/221] Applying ScriptExample
Build complete! (39.30s)
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-system
[1/3518] Fetching swift-system
[600/15232] Fetching swift-system, swift-argument-parser
[4222/80839] Fetching swift-system, swift-argument-parser, swift-nio
Fetched https://github.com/apple/swift-system from cache (3.65s)
Fetched https://github.com/apple/swift-nio.git from cache (3.65s)
Fetched https://github.com/apple/swift-argument-parser from cache (3.65s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.40.0 (0.75s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.1.1 (0.65s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.1.4 (0.71s)
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
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
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.