Build Information
Successful build of swift-process-invocation, reference main (995fc7
), with Swift 6.0 for macOS (SPM) on 6 Nov 2024 07:16:03 UTC.
Swift 6 data race errors: 11
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/xcode-actions/swift-process-invocation.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/xcode-actions/swift-process-invocation
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 995fc74 Add missing init for backward compatibility
Cloned https://github.com/xcode-actions/swift-process-invocation.git
Revision (git rev-parse @):
995fc747c53e4dfaa7335a47511897c810ef2a01
SUCCESS checkout https://github.com/xcode-actions/swift-process-invocation.git at main
Fetching https://github.com/xcode-actions/stream-reader.git
Fetching https://github.com/xcode-actions/clt-logger.git
Fetching https://github.com/Frizlab/UnwrapOrThrow.git
Fetching https://github.com/apple/swift-argument-parser.git
Fetching https://github.com/xcode-actions/swift-signal-handling.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/Frizlab/eXtenderZ.git
[1/31] Fetching unwraporthrow
[32/549] Fetching unwraporthrow, clt-logger
[328/1637] Fetching unwraporthrow, clt-logger, extenderz
[329/2632] Fetching unwraporthrow, clt-logger, extenderz, stream-reader
[459/3011] Fetching unwraporthrow, clt-logger, extenderz, stream-reader, swift-signal-handling
[1698/6681] Fetching unwraporthrow, clt-logger, extenderz, stream-reader, swift-signal-handling, swift-log
[2203/19039] Fetching unwraporthrow, clt-logger, extenderz, stream-reader, swift-signal-handling, swift-log, swift-argument-parser
Fetched https://github.com/xcode-actions/clt-logger.git from cache (1.26s)
[7029/18521] Fetching unwraporthrow, extenderz, stream-reader, swift-signal-handling, swift-log, swift-argument-parser
Fetched https://github.com/Frizlab/UnwrapOrThrow.git from cache (1.64s)
Fetched https://github.com/xcode-actions/swift-signal-handling.git from cache (1.64s)
Fetched https://github.com/apple/swift-argument-parser.git from cache (1.64s)
Fetched https://github.com/apple/swift-log.git from cache (1.64s)
Fetched https://github.com/Frizlab/eXtenderZ.git from cache (1.64s)
Fetched https://github.com/xcode-actions/stream-reader.git from cache (1.64s)
Computing version for https://github.com/Frizlab/eXtenderZ.git
Computed https://github.com/Frizlab/eXtenderZ.git at 2.0.0 (0.68s)
Computing version for https://github.com/xcode-actions/swift-signal-handling.git
Computed https://github.com/xcode-actions/swift-signal-handling.git at 1.1.1 (0.68s)
Computing version for https://github.com/xcode-actions/stream-reader.git
Computed https://github.com/xcode-actions/stream-reader.git at 3.5.2 (0.68s)
Computing version for https://github.com/xcode-actions/clt-logger.git
Computed https://github.com/xcode-actions/clt-logger.git at 0.8.0 (0.84s)
Computing version for https://github.com/Frizlab/UnwrapOrThrow.git
Computed https://github.com/Frizlab/UnwrapOrThrow.git at 1.0.1 (0.82s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.5.4 (0.67s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.3.0 (0.56s)
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.5.4
Creating working copy for https://github.com/Frizlab/UnwrapOrThrow.git
Working copy of https://github.com/Frizlab/UnwrapOrThrow.git resolved at 1.0.1
Creating working copy for https://github.com/xcode-actions/clt-logger.git
Working copy of https://github.com/xcode-actions/clt-logger.git resolved at 0.8.0
Creating working copy for https://github.com/xcode-actions/stream-reader.git
Working copy of https://github.com/xcode-actions/stream-reader.git resolved at 3.5.2
Creating working copy for https://github.com/Frizlab/eXtenderZ.git
Working copy of https://github.com/Frizlab/eXtenderZ.git resolved at 2.0.0
Creating working copy for https://github.com/xcode-actions/swift-signal-handling.git
Working copy of https://github.com/xcode-actions/swift-signal-handling.git resolved at 1.1.1
[16375/467184] Downloading https://github.com/Frizlab/eXtenderZ/releases/download/2.0.0/eXtenderZ-static.xcframework.zip
Downloading binary artifact https://github.com/Frizlab/eXtenderZ/releases/download/2.0.0/eXtenderZ-static.xcframework.zip
[499934/10503659] Downloading https://github.com/Frizlab/eXtenderZ/releases/download/2.0.0/eXtenderZ-static.xcframework.zip, https://github.com/Frizlab/eXtenderZ/releases/download/2.0.0/eXtenderZ-dynamic.xcframework.zip
Downloading binary artifact https://github.com/Frizlab/eXtenderZ/releases/download/2.0.0/eXtenderZ-dynamic.xcframework.zip
Downloaded https://github.com/Frizlab/eXtenderZ/releases/download/2.0.0/eXtenderZ-static.xcframework.zip (1.20s)
Downloaded https://github.com/Frizlab/eXtenderZ/releases/download/2.0.0/eXtenderZ-dynamic.xcframework.zip (1.48s)
========================================
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": "swift-process-invocation",
"name": "swift-process-invocation",
"url": "https://github.com/xcode-actions/swift-process-invocation.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-process-invocation",
"dependencies": [
{
"identity": "swift-argument-parser",
"name": "swift-argument-parser",
"url": "https://github.com/apple/swift-argument-parser.git",
"version": "1.5.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-argument-parser",
"dependencies": [
]
},
{
"identity": "swift-log",
"name": "swift-log",
"url": "https://github.com/apple/swift-log.git",
"version": "1.6.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-log",
"dependencies": [
]
},
{
"identity": "unwraporthrow",
"name": "UnwrapOrThrow",
"url": "https://github.com/Frizlab/UnwrapOrThrow.git",
"version": "1.0.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/UnwrapOrThrow",
"dependencies": [
]
},
{
"identity": "clt-logger",
"name": "clt-logger",
"url": "https://github.com/xcode-actions/clt-logger.git",
"version": "0.9.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/clt-logger",
"dependencies": [
{
"identity": "swift-log",
"name": "swift-log",
"url": "https://github.com/apple/swift-log.git",
"version": "1.6.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-log",
"dependencies": [
]
}
]
},
{
"identity": "stream-reader",
"name": "stream-reader",
"url": "https://github.com/xcode-actions/stream-reader.git",
"version": "3.5.2",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/stream-reader",
"dependencies": [
]
},
{
"identity": "swift-signal-handling",
"name": "swift-signal-handling",
"url": "https://github.com/xcode-actions/swift-signal-handling.git",
"version": "1.1.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-signal-handling",
"dependencies": [
{
"identity": "swift-log",
"name": "swift-log",
"url": "https://github.com/apple/swift-log.git",
"version": "1.6.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-log",
"dependencies": [
]
}
]
},
{
"identity": "extenderz",
"name": "eXtenderZ",
"url": "https://github.com/Frizlab/eXtenderZ.git",
"version": "2.0.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/eXtenderZ",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/xcode-actions/swift-process-invocation.git
[1/396] Fetching swift-process-invocation
Fetched https://github.com/xcode-actions/swift-process-invocation.git from cache (0.78s)
Fetching https://github.com/xcode-actions/stream-reader.git from cache
Fetching https://github.com/apple/swift-argument-parser.git from cache
Fetching https://github.com/xcode-actions/clt-logger.git from cache
Fetching https://github.com/Frizlab/eXtenderZ.git from cache
Fetching https://github.com/apple/swift-log.git from cache
Fetching https://github.com/Frizlab/UnwrapOrThrow.git from cache
Fetching https://github.com/xcode-actions/swift-signal-handling.git from cache
Fetched https://github.com/xcode-actions/clt-logger.git from cache (0.52s)
Fetched https://github.com/xcode-actions/swift-signal-handling.git from cache (0.58s)
Fetched https://github.com/Frizlab/UnwrapOrThrow.git from cache (0.58s)
Fetched https://github.com/apple/swift-log.git from cache (0.58s)
Fetched https://github.com/Frizlab/eXtenderZ.git from cache (0.61s)
Fetched https://github.com/apple/swift-argument-parser.git from cache (0.61s)
Fetched https://github.com/xcode-actions/stream-reader.git from cache (0.62s)
Computing version for https://github.com/Frizlab/eXtenderZ.git
Computed https://github.com/Frizlab/eXtenderZ.git at 2.0.0 (0.02s)
Computing version for https://github.com/xcode-actions/swift-signal-handling.git
Computed https://github.com/xcode-actions/swift-signal-handling.git at 1.1.1 (0.02s)
Computing version for https://github.com/Frizlab/UnwrapOrThrow.git
Computed https://github.com/Frizlab/UnwrapOrThrow.git at 1.0.1 (0.02s)
Computing version for https://github.com/xcode-actions/stream-reader.git
Computed https://github.com/xcode-actions/stream-reader.git at 3.5.2 (0.02s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.1 (0.48s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.5.0 (0.04s)
Computing version for https://github.com/xcode-actions/clt-logger.git
Computed https://github.com/xcode-actions/clt-logger.git at 0.9.0 (0.03s)
Creating working copy for https://github.com/Frizlab/UnwrapOrThrow.git
Working copy of https://github.com/Frizlab/UnwrapOrThrow.git resolved at 1.0.1
Creating working copy for https://github.com/xcode-actions/clt-logger.git
Working copy of https://github.com/xcode-actions/clt-logger.git resolved at 0.9.0
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.5.0
Creating working copy for https://github.com/xcode-actions/swift-signal-handling.git
Working copy of https://github.com/xcode-actions/swift-signal-handling.git resolved at 1.1.1
Creating working copy for https://github.com/xcode-actions/stream-reader.git
Working copy of https://github.com/xcode-actions/stream-reader.git resolved at 3.5.2
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.1
Creating working copy for https://github.com/Frizlab/eXtenderZ.git
Working copy of https://github.com/Frizlab/eXtenderZ.git resolved at 2.0.0
Creating working copy for https://github.com/xcode-actions/swift-process-invocation.git
Working copy of https://github.com/xcode-actions/swift-process-invocation.git resolved at main (995fc74)
Fetching binary artifact https://github.com/Frizlab/eXtenderZ/releases/download/2.0.0/eXtenderZ-static.xcframework.zip from cache
Fetching binary artifact https://github.com/Frizlab/eXtenderZ/releases/download/2.0.0/eXtenderZ-dynamic.xcframework.zip from cache
Fetched https://github.com/Frizlab/eXtenderZ/releases/download/2.0.0/eXtenderZ-static.xcframework.zip from cache (0.24s)
Fetched https://github.com/Frizlab/eXtenderZ/releases/download/2.0.0/eXtenderZ-dynamic.xcframework.zip from cache (0.52s)
Found 7 product dependencies
- swift-argument-parser
- swift-log
- UnwrapOrThrow
- clt-logger
- stream-reader
- swift-signal-handling
- eXtenderZ
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/xcode-actions/swift-process-invocation.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 GenerateManual
Building for debugging...
[1/23] Write sources
[7/23] Write swift-process-invocation-bridge-entitlement.plist
[7/23] Copying libeXtenderZ.a
[9/23] Write ManualTests-entitlement.plist
[10/23] Write sources
[14/23] Write swift-version--7754E27361AE5C74.txt
[15/43] Compiling CMacroExports exports.c
[16/43] Compiling CNSTaskHelptender NSTaskHelptender.m
[18/43] Emitting module ArgumentParserToolInfo
[19/43] Compiling ArgumentParserToolInfo ToolInfo.swift
[20/81] Emitting module StreamReader
[21/81] Compiling ArgumentParser ArgumentHelp.swift
[22/81] Compiling ArgumentParser ArgumentVisibility.swift
[23/81] Compiling ArgumentParser CompletionKind.swift
[24/81] Compiling ArgumentParser Errors.swift
[25/85] Compiling ArgumentParser AsyncParsableCommand.swift
[26/85] Compiling ArgumentParser CommandConfiguration.swift
[27/85] Compiling ArgumentParser EnumerableFlag.swift
[28/85] Compiling ArgumentParser ExpressibleByArgument.swift
[29/85] Compiling Logging MetadataProvider.swift
[30/85] Compiling ArgumentParser Platform.swift
[31/85] Compiling ArgumentParser SequenceExtensions.swift
[32/85] Compiling ArgumentParser StringExtensions.swift
[33/85] Compiling ArgumentParser Tree.swift
[34/85] Emitting module ArgumentParser
[35/85] Compiling Logging LogHandler.swift
[36/85] Emitting module Logging
[37/85] Compiling Logging Locks.swift
[38/85] Compiling Logging Logging.swift
[39/101] Compiling StreamReader DataReader.swift
[40/101] Emitting module UnwrapOrThrow
[41/101] Compiling UnwrapOrThrow UnwrapOrThrow.swift
[42/101] Compiling UnwrapOrThrow UnwrapOrThrowOperator.swift
[43/101] Compiling StreamReader GenericStreamReader.swift
[44/101] Compiling StreamReader Matching.swift
[45/101] Compiling StreamReader StreamReader.swift
[46/101] Compiling StreamReader StreamReaderErrors.swift
[47/101] Compiling StreamReader FileHandleReader.swift
[48/101] Compiling StreamReader FileDescriptorReader.swift
[49/101] Compiling StreamReader URLSessionStreamTaskReader.swift
[50/101] Compiling StreamReader InputStreamReader.swift
[51/101] Compiling SignalHandling SignalHandlingError.swift
[52/101] Compiling SignalHandling SignalHandlingConfig.swift
[53/102] Compiling ArgumentParser ParserError.swift
[54/102] Compiling ArgumentParser SplitArguments.swift
[55/102] Compiling ArgumentParser DumpHelpGenerator.swift
[56/102] Compiling ArgumentParser HelpCommand.swift
[57/102] Compiling ArgumentParser Flag.swift
[58/102] Compiling ArgumentParser NameSpecification.swift
[59/102] Compiling ArgumentParser Option.swift
[60/102] Compiling ArgumentParser OptionGroup.swift
[61/102] Compiling ArgumentParser ArgumentDefinition.swift
[62/102] Compiling ArgumentParser ArgumentSet.swift
[63/102] Compiling ArgumentParser CommandParser.swift
[64/102] Compiling ArgumentParser InputKey.swift
[65/102] Compiling ArgumentParser InputOrigin.swift
[66/102] Compiling ArgumentParser Name.swift
[67/102] Compiling ArgumentParser Parsed.swift
[68/102] Compiling ArgumentParser ParsedValues.swift
[69/102] Compiling ArgumentParser ParsableArguments.swift
[70/102] Compiling ArgumentParser ParsableArgumentsValidation.swift
[71/102] Compiling ArgumentParser ParsableCommand.swift
[72/102] Compiling ArgumentParser ArgumentDecoder.swift
[73/102] Compiling ArgumentParser BashCompletionsGenerator.swift
[74/102] Compiling ArgumentParser CompletionsGenerator.swift
[75/102] Compiling ArgumentParser FishCompletionsGenerator.swift
[76/102] Compiling ArgumentParser ZshCompletionsGenerator.swift
[77/102] Compiling ArgumentParser Argument.swift
[78/102] Compiling ArgumentParser HelpGenerator.swift
[79/102] Compiling ArgumentParser MessageInfo.swift
[80/102] Compiling ArgumentParser UsageGenerator.swift
[81/102] Compiling ArgumentParser CollectionExtensions.swift
[82/102] Compiling SignalHandling Utils.swift
[83/102] Compiling SignalHandling DelayedSigaction.swift
[84/102] Compiling SignalHandling SigactionDelayer_Block.swift
[85/102] Compiling SignalHandling SigactionDelayer_Unsig.swift
[86/102] Compiling SignalHandling DelayedSigactionHandler.swift
[87/102] Compiling SignalHandling Sigaction.swift
[88/102] Compiling SignalHandling SigactionFlag.swift
[89/102] Emitting module SignalHandling
[90/102] Compiling SignalHandling SigactionHandler.swift
[91/102] Compiling SignalHandling Signal.swift
[92/102] Compiling CLTLogger CLTLogger.swift
[93/102] Emitting module CLTLogger
[94/102] Compiling CLTLogger NSLock+Linux.swift
[95/102] Compiling CLTLogger SGR.swift
[96/102] Compiling CLTLogger String+Utils.swift
[97/105] Compiling ProcessInvocationBridge ProcessInvocationBridge.swift
/Users/admin/builder/spi-builder-workspace/Sources/ProcessInvocationBridge/ProcessInvocationBridge.swift:29:13: warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | struct ProcessInvocationBridge : ParsableCommand {
28 |
29 | static var configuration = CommandConfiguration(
| |- warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'configuration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'configuration' 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
30 | commandName: processInvocationBridgeName,
31 | abstract: "Internal launcher for swift-process-invocation which receives a fd before launching the tool."
/Users/admin/builder/spi-builder-workspace/Sources/ProcessInvocationBridge/ProcessInvocationBridge.swift:47:13: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
45 | var toolArguments: [String] = []
46 |
47 | static var logger: Logger = {
| |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logger' 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
48 | var ret = Logger(label: "main")
49 | ret.logLevel = .debug
[98/105] Compiling ProcessInvocationBridge Utils.swift
[99/105] Emitting module ProcessInvocationBridge
/Users/admin/builder/spi-builder-workspace/Sources/ProcessInvocationBridge/ProcessInvocationBridge.swift:29:13: warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | struct ProcessInvocationBridge : ParsableCommand {
28 |
29 | static var configuration = CommandConfiguration(
| |- warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'configuration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'configuration' 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
30 | commandName: processInvocationBridgeName,
31 | abstract: "Internal launcher for swift-process-invocation which receives a fd before launching the tool."
/Users/admin/builder/spi-builder-workspace/Sources/ProcessInvocationBridge/ProcessInvocationBridge.swift:47:13: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
45 | var toolArguments: [String] = []
46 |
47 | static var logger: Logger = {
| |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logger' 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
48 | var ret = Logger(label: "main")
49 | ret.logLevel = .debug
[99/105] Write Objects.LinkFileList
[100/105] Linking swift-process-invocation-bridge
[101/105] Applying swift-process-invocation-bridge
[103/116] Emitting module ProcessInvocation
/Users/admin/builder/spi-builder-workspace/Sources/ProcessInvocation/ Config.swift:10:20: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
8 | public enum ProcessInvocationConfig {
9 |
10 | public static var logger: Logging.Logger? = {
| |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logger' 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
11 | return Logger(label: "com.xcode-actions.process-invocation")
12 | }()
/Users/admin/builder/spi-builder-workspace/Sources/ProcessInvocation/LineSeparators.swift:10:20: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'LineSeparators' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 |
5 | public enum LineSeparators {
| `- note: consider making enum 'LineSeparators' conform to the 'Sendable' protocol
6 |
7 | case newLine(unix: Bool, legacyMacOS: Bool, windows: Bool)
8 | case customCharacters(Set<UInt8>)
9 |
10 | public static let `default` = LineSeparators.unix
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'LineSeparators' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
11 |
12 | /** The whole output will be sent in one chunk. */
/Users/admin/builder/spi-builder-workspace/Sources/ProcessInvocation/LineSeparators.swift:23:20: warning: static property 'unix' is not concurrency-safe because non-'Sendable' type 'LineSeparators' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 |
5 | public enum LineSeparators {
| `- note: consider making enum 'LineSeparators' conform to the 'Sendable' protocol
6 |
7 | case newLine(unix: Bool, legacyMacOS: Bool, windows: Bool)
:
21 | Defined as `LineSeparators.newLine(unix: true, legacyMacOS: false, windows: false)`
22 | but strictly equivalent to `.customCharacters([0x0a])`. */
23 | public static let unix = LineSeparators.newLine(unix: true, legacyMacOS: false, windows: false)
| |- warning: static property 'unix' is not concurrency-safe because non-'Sendable' type 'LineSeparators' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unix' 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
24 | public static let windows = LineSeparators.newLine(unix: false, legacyMacOS: false, windows: true)
25 | public static let anyNewLines = LineSeparators.newLine(unix: true, legacyMacOS: true, windows: true)
/Users/admin/builder/spi-builder-workspace/Sources/ProcessInvocation/LineSeparators.swift:13:20: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'LineSeparators' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 |
5 | public enum LineSeparators {
| `- note: consider making enum 'LineSeparators' conform to the 'Sendable' protocol
6 |
7 | case newLine(unix: Bool, legacyMacOS: Bool, windows: Bool)
:
11 |
12 | /** The whole output will be sent in one chunk. */
13 | public static let none = LineSeparators.customCharacters([])
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'LineSeparators' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
14 | /** Suitable for outputs like `find ... -print0`. */
15 | public static let zero = LineSeparators.customCharacters([0x00])
/Users/admin/builder/spi-builder-workspace/Sources/ProcessInvocation/LineSeparators.swift:15:20: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'LineSeparators' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 |
5 | public enum LineSeparators {
| `- note: consider making enum 'LineSeparators' conform to the 'Sendable' protocol
6 |
7 | case newLine(unix: Bool, legacyMacOS: Bool, windows: Bool)
:
13 | public static let none = LineSeparators.customCharacters([])
14 | /** Suitable for outputs like `find ... -print0`. */
15 | public static let zero = LineSeparators.customCharacters([0x00])
| |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'LineSeparators' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'zero' 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
16 | /** To get all bytes one by one (in EOL; lines will be empty). */
17 | public static let anything = LineSeparators.customCharacters(Set(UInt8.min...UInt8.max))
/Users/admin/builder/spi-builder-workspace/Sources/ProcessInvocation/LineSeparators.swift:17:20: warning: static property 'anything' is not concurrency-safe because non-'Sendable' type 'LineSeparators' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 |
5 | public enum LineSeparators {
| `- note: consider making enum 'LineSeparators' conform to the 'Sendable' protocol
6 |
7 | case newLine(unix: Bool, legacyMacOS: Bool, windows: Bool)
:
15 | public static let zero = LineSeparators.customCharacters([0x00])
16 | /** To get all bytes one by one (in EOL; lines will be empty). */
17 | public static let anything = LineSeparators.customCharacters(Set(UInt8.min...UInt8.max))
| |- warning: static property 'anything' is not concurrency-safe because non-'Sendable' type 'LineSeparators' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'anything' 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
18 | /**
19 | Suitable for standard unix utilities.
/Users/admin/builder/spi-builder-workspace/Sources/ProcessInvocation/LineSeparators.swift:24:20: warning: static property 'windows' is not concurrency-safe because non-'Sendable' type 'LineSeparators' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 |
5 | public enum LineSeparators {
| `- note: consider making enum 'LineSeparators' conform to the 'Sendable' protocol
6 |
7 | case newLine(unix: Bool, legacyMacOS: Bool, windows: Bool)
:
22 | but strictly equivalent to `.customCharacters([0x0a])`. */
23 | public static let unix = LineSeparators.newLine(unix: true, legacyMacOS: false, windows: false)
24 | public static let windows = LineSeparators.newLine(unix: false, legacyMacOS: false, windows: true)
| |- warning: static property 'windows' is not concurrency-safe because non-'Sendable' type 'LineSeparators' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'windows' 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
25 | public static let anyNewLines = LineSeparators.newLine(unix: true, legacyMacOS: true, windows: true)
26 |
/Users/admin/builder/spi-builder-workspace/Sources/ProcessInvocation/LineSeparators.swift:25:20: warning: static property 'anyNewLines' is not concurrency-safe because non-'Sendable' type 'LineSeparators' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 |
5 | public enum LineSeparators {
| `- note: consider making enum 'LineSeparators' conform to the 'Sendable' protocol
6 |
7 | case newLine(unix: Bool, legacyMacOS: Bool, windows: Bool)
:
23 | public static let unix = LineSeparators.newLine(unix: true, legacyMacOS: false, windows: false)
24 | public static let windows = LineSeparators.newLine(unix: false, legacyMacOS: false, windows: true)
25 | public static let anyNewLines = LineSeparators.newLine(unix: true, legacyMacOS: true, windows: true)
| |- warning: static property 'anyNewLines' is not concurrency-safe because non-'Sendable' type 'LineSeparators' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'anyNewLines' 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
26 |
27 | }
[104/116] Compiling ProcessInvocation InputRedirectMode.swift
[105/117] Compiling ProcessInvocation Utils.swift
[106/117] Compiling ProcessInvocation OutputRedirectMode.swift
[107/117] Compiling ProcessInvocation ProcessInvocation+Pipe.swift
/Users/admin/builder/spi-builder-workspace/Sources/ProcessInvocation/ProcessInvocation+Pipe.swift:65:10: warning: capture of 'reader' with non-sendable type 'any StreamReader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
63 |
64 | do {
65 | try reader.peekData(size: Swift.max(0, maxCacheSize - (reader.currentStreamReadPosition - reader.currentReadPosition)), allowReadingLess: true, { _ in })
| `- warning: capture of 'reader' with non-sendable type 'any StreamReader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
66 | try reader.peekData(size: reader.currentStreamReadPosition - reader.currentReadPosition, allowReadingLess: false, { bytes in
67 | let (writtenNow, readError) = {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-reader/Sources/StreamReader/Core/StreamReader.swift:12:17: note: protocol 'StreamReader' does not conform to the 'Sendable' protocol
10 |
11 |
12 | public protocol StreamReader : AnyObject {
| `- note: protocol 'StreamReader' does not conform to the 'Sendable' protocol
13 |
14 | /**
/Users/admin/builder/spi-builder-workspace/Sources/ProcessInvocation/ProcessInvocation+Pipe.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'StreamReader'
6 | #endif
7 |
8 | import StreamReader
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'StreamReader'
9 |
10 |
/Users/admin/builder/spi-builder-workspace/Sources/ProcessInvocation/ Config.swift:10:20: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
8 | public enum ProcessInvocationConfig {
9 |
10 | public static var logger: Logging.Logger? = {
| |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logger' 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
11 | return Logger(label: "com.xcode-actions.process-invocation")
12 | }()
/Users/admin/builder/spi-builder-workspace/Sources/ProcessInvocation/ProcessInvocation+Pipe.swift:81:19: warning: capture of 'reader' with non-sendable type 'any StreamReader' in an isolated closure; this is an error in the Swift 6 language mode
79 |
80 | if writtenNow > 0 {
81 | do {try reader.readData(size: writtenNow, allowReadingLess: false, { _ in /*nop: we only update the current read position.*/ })}
| `- warning: capture of 'reader' with non-sendable type 'any StreamReader' in an isolated closure; this is an error in the Swift 6 language mode
82 | catch {Conf.logger?.critical("Invalid StreamReader (or internal logic error)! Reading from the stream failed but the data should already be in the buffer.")}
83 | } else if writtenNow < 0 {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-reader/Sources/StreamReader/Core/StreamReader.swift:12:17: note: protocol 'StreamReader' does not conform to the 'Sendable' protocol
10 |
11 |
12 | public protocol StreamReader : AnyObject {
| `- note: protocol 'StreamReader' does not conform to the 'Sendable' protocol
13 |
14 | /**
[108/117] Compiling ProcessInvocation ProcessInvocation+Deprecated.swift
/Users/admin/builder/spi-builder-workspace/Sources/ProcessInvocation/LineSeparators.swift:10:20: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'LineSeparators' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 |
5 | public enum LineSeparators {
| `- note: consider making enum 'LineSeparators' conform to the 'Sendable' protocol
6 |
7 | case newLine(unix: Bool, legacyMacOS: Bool, windows: Bool)
8 | case customCharacters(Set<UInt8>)
9 |
10 | public static let `default` = LineSeparators.unix
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'LineSeparators' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
11 |
12 | /** The whole output will be sent in one chunk. */
[109/117] Compiling ProcessInvocation Errors.swift
[110/117] Compiling ProcessInvocation LineSeparators.swift
/Users/admin/builder/spi-builder-workspace/Sources/ProcessInvocation/LineSeparators.swift:10:20: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'LineSeparators' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 |
5 | public enum LineSeparators {
| `- note: consider making enum 'LineSeparators' conform to the 'Sendable' protocol
6 |
7 | case newLine(unix: Bool, legacyMacOS: Bool, windows: Bool)
8 | case customCharacters(Set<UInt8>)
9 |
10 | public static let `default` = LineSeparators.unix
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'LineSeparators' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
11 |
12 | /** The whole output will be sent in one chunk. */
/Users/admin/builder/spi-builder-workspace/Sources/ProcessInvocation/LineSeparators.swift:23:20: warning: static property 'unix' is not concurrency-safe because non-'Sendable' type 'LineSeparators' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 |
5 | public enum LineSeparators {
| `- note: consider making enum 'LineSeparators' conform to the 'Sendable' protocol
6 |
7 | case newLine(unix: Bool, legacyMacOS: Bool, windows: Bool)
:
21 | Defined as `LineSeparators.newLine(unix: true, legacyMacOS: false, windows: false)`
22 | but strictly equivalent to `.customCharacters([0x0a])`. */
23 | public static let unix = LineSeparators.newLine(unix: true, legacyMacOS: false, windows: false)
| |- warning: static property 'unix' is not concurrency-safe because non-'Sendable' type 'LineSeparators' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unix' 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
24 | public static let windows = LineSeparators.newLine(unix: false, legacyMacOS: false, windows: true)
25 | public static let anyNewLines = LineSeparators.newLine(unix: true, legacyMacOS: true, windows: true)
/Users/admin/builder/spi-builder-workspace/Sources/ProcessInvocation/LineSeparators.swift:13:20: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'LineSeparators' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 |
5 | public enum LineSeparators {
| `- note: consider making enum 'LineSeparators' conform to the 'Sendable' protocol
6 |
7 | case newLine(unix: Bool, legacyMacOS: Bool, windows: Bool)
:
11 |
12 | /** The whole output will be sent in one chunk. */
13 | public static let none = LineSeparators.customCharacters([])
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'LineSeparators' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
14 | /** Suitable for outputs like `find ... -print0`. */
15 | public static let zero = LineSeparators.customCharacters([0x00])
/Users/admin/builder/spi-builder-workspace/Sources/ProcessInvocation/LineSeparators.swift:15:20: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'LineSeparators' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 |
5 | public enum LineSeparators {
| `- note: consider making enum 'LineSeparators' conform to the 'Sendable' protocol
6 |
7 | case newLine(unix: Bool, legacyMacOS: Bool, windows: Bool)
:
13 | public static let none = LineSeparators.customCharacters([])
14 | /** Suitable for outputs like `find ... -print0`. */
15 | public static let zero = LineSeparators.customCharacters([0x00])
| |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'LineSeparators' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'zero' 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
16 | /** To get all bytes one by one (in EOL; lines will be empty). */
17 | public static let anything = LineSeparators.customCharacters(Set(UInt8.min...UInt8.max))
/Users/admin/builder/spi-builder-workspace/Sources/ProcessInvocation/LineSeparators.swift:17:20: warning: static property 'anything' is not concurrency-safe because non-'Sendable' type 'LineSeparators' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 |
5 | public enum LineSeparators {
| `- note: consider making enum 'LineSeparators' conform to the 'Sendable' protocol
6 |
7 | case newLine(unix: Bool, legacyMacOS: Bool, windows: Bool)
:
15 | public static let zero = LineSeparators.customCharacters([0x00])
16 | /** To get all bytes one by one (in EOL; lines will be empty). */
17 | public static let anything = LineSeparators.customCharacters(Set(UInt8.min...UInt8.max))
| |- warning: static property 'anything' is not concurrency-safe because non-'Sendable' type 'LineSeparators' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'anything' 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
18 | /**
19 | Suitable for standard unix utilities.
/Users/admin/builder/spi-builder-workspace/Sources/ProcessInvocation/LineSeparators.swift:24:20: warning: static property 'windows' is not concurrency-safe because non-'Sendable' type 'LineSeparators' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 |
5 | public enum LineSeparators {
| `- note: consider making enum 'LineSeparators' conform to the 'Sendable' protocol
6 |
7 | case newLine(unix: Bool, legacyMacOS: Bool, windows: Bool)
:
22 | but strictly equivalent to `.customCharacters([0x0a])`. */
23 | public static let unix = LineSeparators.newLine(unix: true, legacyMacOS: false, windows: false)
24 | public static let windows = LineSeparators.newLine(unix: false, legacyMacOS: false, windows: true)
| |- warning: static property 'windows' is not concurrency-safe because non-'Sendable' type 'LineSeparators' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'windows' 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
25 | public static let anyNewLines = LineSeparators.newLine(unix: true, legacyMacOS: true, windows: true)
26 |
/Users/admin/builder/spi-builder-workspace/Sources/ProcessInvocation/LineSeparators.swift:25:20: warning: static property 'anyNewLines' is not concurrency-safe because non-'Sendable' type 'LineSeparators' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 |
5 | public enum LineSeparators {
| `- note: consider making enum 'LineSeparators' conform to the 'Sendable' protocol
6 |
7 | case newLine(unix: Bool, legacyMacOS: Bool, windows: Bool)
:
23 | public static let unix = LineSeparators.newLine(unix: true, legacyMacOS: false, windows: false)
24 | public static let windows = LineSeparators.newLine(unix: false, legacyMacOS: false, windows: true)
25 | public static let anyNewLines = LineSeparators.newLine(unix: true, legacyMacOS: true, windows: true)
| |- warning: static property 'anyNewLines' is not concurrency-safe because non-'Sendable' type 'LineSeparators' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'anyNewLines' 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
26 |
27 | }
[111/117] Compiling ProcessInvocation ProcessInvocation.swift
/Users/admin/builder/spi-builder-workspace/Sources/ProcessInvocation/LineSeparators.swift:10:20: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'LineSeparators' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 |
5 | public enum LineSeparators {
| `- note: consider making enum 'LineSeparators' conform to the 'Sendable' protocol
6 |
7 | case newLine(unix: Bool, legacyMacOS: Bool, windows: Bool)
8 | case customCharacters(Set<UInt8>)
9 |
10 | public static let `default` = LineSeparators.unix
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'LineSeparators' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
11 |
12 | /** The whole output will be sent in one chunk. */
/Users/admin/builder/spi-builder-workspace/Sources/ProcessInvocation/ProcessInvocation.swift:419:24: warning: assigning non-sendable parameter 'terminationHandler' to a @Sendable closure
393 | You retrieve the process and a dispatch group you can wait on to be notified when the process and all of its outputs are done.
394 | You can also set the termination handler of the process, but you should wait on the dispatch group to be sure all of the outputs have finished streaming. */
395 | public func invoke(outputHandler: @escaping (_ result: Result<RawLineWithSource, Error>, _ signalEndOfInterestForStream: () -> Void, _ process: Process) -> Void, terminationHandler: ((_ process: Process) -> Void)? = nil) throws -> (Process, DispatchGroup) {
| `- note: parameter 'terminationHandler' is implicitly non-sendable
396 | assert(!fileDescriptorsToSend.keys.contains(.standardInput), "Standard input must be modified using stdinRedirect")
397 | assert(!fileDescriptorsToSend.keys.contains(.standardOutput), "Standard output must be modified using stdoutRedirect")
:
417 | }
418 |
419 | p.terminationHandler = terminationHandler
| `- warning: assigning non-sendable parameter 'terminationHandler' to a @Sendable closure
420 | if let environment = environment {p.environment = environment}
421 | if let workingDirectory = workingDirectory {p.currentDirectoryURL = workingDirectory}
/Users/admin/builder/spi-builder-workspace/Sources/ProcessInvocation/ Config.swift:10:20: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
8 | public enum ProcessInvocationConfig {
9 |
10 | public static var logger: Logging.Logger? = {
| |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logger' 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
11 | return Logger(label: "com.xcode-actions.process-invocation")
12 | }()
/Users/admin/builder/spi-builder-workspace/Sources/ProcessInvocation/ProcessInvocation.swift:829:21: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
827 | do {
828 | let (p, g) = try invocation.invoke{ result, _, _ in
829 | continuation.yield(with: result)
| |- warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'result' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
830 | }
831 | process = p
[112/117] Compiling ProcessInvocation Config.swift
/Users/admin/builder/spi-builder-workspace/Sources/ProcessInvocation/ Config.swift:10:20: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
8 | public enum ProcessInvocationConfig {
9 |
10 | public static var logger: Logging.Logger? = {
| |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logger' 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
11 | return Logger(label: "com.xcode-actions.process-invocation")
12 | }()
[113/117] Compiling ProcessInvocation Constants.swift
/Users/admin/builder/spi-builder-workspace/Sources/ProcessInvocation/ Config.swift:10:20: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
8 | public enum ProcessInvocationConfig {
9 |
10 | public static var logger: Logging.Logger? = {
| |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logger' 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
11 | return Logger(label: "com.xcode-actions.process-invocation")
12 | }()
[114/117] Compiling ProcessInvocation LineWithSource.swift
[115/119] Compiling ManualTests main.swift
/Users/admin/builder/spi-builder-workspace/Sources/ManualTests/main.swift:74:2: warning: non-sendable type 'RawLineWithSource?' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
72 | /* Try to read one line from ProcessInvocation and then one using StreamReader. */
73 | let pi = ProcessInvocation("head", "-n", "1")
74 | for try await line in pi {
| `- warning: non-sendable type 'RawLineWithSource?' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
75 | print("From head: \(line.strLineOrHex())")
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/ProcessInvocation/LineWithSource.swift:12:15: note: struct 'RawLineWithSource' does not conform to the 'Sendable' protocol
10 |
11 |
12 | public struct RawLineWithSource : Equatable, Hashable, CustomStringConvertible {
| `- note: struct 'RawLineWithSource' does not conform to the 'Sendable' protocol
13 |
14 | public var line: Data
/Users/admin/builder/spi-builder-workspace/Sources/ManualTests/main.swift:10:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ProcessInvocation'
8 | import CLTLogger
9 | import Logging
10 | import ProcessInvocation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ProcessInvocation'
11 | import StreamReader
12 |
[116/119] Emitting module ManualTests
/Users/admin/builder/spi-builder-workspace/Sources/ManualTests/main.swift:74:2: warning: non-sendable type 'RawLineWithSource?' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
72 | /* Try to read one line from ProcessInvocation and then one using StreamReader. */
73 | let pi = ProcessInvocation("head", "-n", "1")
74 | for try await line in pi {
| `- warning: non-sendable type 'RawLineWithSource?' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
75 | print("From head: \(line.strLineOrHex())")
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/ProcessInvocation/LineWithSource.swift:12:15: note: struct 'RawLineWithSource' does not conform to the 'Sendable' protocol
10 |
11 |
12 | public struct RawLineWithSource : Equatable, Hashable, CustomStringConvertible {
| `- note: struct 'RawLineWithSource' does not conform to the 'Sendable' protocol
13 |
14 | public var line: Data
/Users/admin/builder/spi-builder-workspace/Sources/ManualTests/main.swift:10:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ProcessInvocation'
8 | import CLTLogger
9 | import Logging
10 | import ProcessInvocation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ProcessInvocation'
11 | import StreamReader
12 |
[116/119] Write Objects.LinkFileList
[117/119] Linking ManualTests
[118/119] Applying ManualTests
Build complete! (28.34s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-argument-parser",
"requirement" : {
"range" : [
{
"lower_bound" : "1.2.2",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-argument-parser.git"
},
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.5.2",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log.git"
},
{
"identity" : "unwraporthrow",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.1",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Frizlab/UnwrapOrThrow.git"
},
{
"identity" : "clt-logger",
"requirement" : {
"range" : [
{
"lower_bound" : "0.5.1",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/xcode-actions/clt-logger.git"
},
{
"identity" : "stream-reader",
"requirement" : {
"range" : [
{
"lower_bound" : "3.5.0",
"upper_bound" : "4.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/xcode-actions/stream-reader.git"
},
{
"identity" : "swift-signal-handling",
"requirement" : {
"range" : [
{
"lower_bound" : "1.1.1",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/xcode-actions/swift-signal-handling.git"
},
{
"identity" : "extenderz",
"requirement" : {
"range" : [
{
"lower_bound" : "2.0.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Frizlab/eXtenderZ.git"
}
],
"manifest_display_name" : "swift-process-invocation",
"name" : "swift-process-invocation",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "12.0"
}
],
"products" : [
{
"name" : "ProcessInvocation",
"targets" : [
"ProcessInvocation"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "swift-process-invocation-bridge",
"targets" : [
"ProcessInvocationBridge"
],
"type" : {
"executable" : null
}
},
{
"name" : "ManualTests",
"targets" : [
"ManualTests"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "ProcessInvocationTests",
"module_type" : "SwiftTarget",
"name" : "ProcessInvocationTests",
"path" : "Tests/ProcessInvocationTests",
"product_dependencies" : [
"CLTLogger",
"Logging",
"StreamReader"
],
"sources" : [
"ProcessInvocationTests.swift",
"Utils.swift"
],
"target_dependencies" : [
"ProcessInvocation"
],
"type" : "test"
},
{
"c99name" : "ProcessInvocationBridge",
"module_type" : "SwiftTarget",
"name" : "ProcessInvocationBridge",
"path" : "Sources/ProcessInvocationBridge",
"product_dependencies" : [
"ArgumentParser",
"CLTLogger",
"Logging"
],
"product_memberships" : [
"ProcessInvocation",
"swift-process-invocation-bridge",
"ManualTests"
],
"sources" : [
"ProcessInvocationBridge.swift",
"Utils.swift"
],
"target_dependencies" : [
"CMacroExports"
],
"type" : "executable"
},
{
"c99name" : "ProcessInvocation",
"module_type" : "SwiftTarget",
"name" : "ProcessInvocation",
"path" : "Sources/ProcessInvocation",
"product_dependencies" : [
"Logging",
"SignalHandling",
"StreamReader",
"UnwrapOrThrow",
"eXtenderZ-static"
],
"product_memberships" : [
"ProcessInvocation",
"ManualTests"
],
"sources" : [
" Config.swift",
" Constants.swift",
" Errors.swift",
"InputRedirectMode.swift",
"LineSeparators.swift",
"LineWithSource.swift",
"OutputRedirectMode.swift",
"ProcessInvocation+Deprecated.swift",
"ProcessInvocation+Pipe.swift",
"ProcessInvocation.swift",
"Utils.swift"
],
"target_dependencies" : [
"CMacroExports",
"CNSTaskHelptender",
"ProcessInvocationBridge"
],
"type" : "library"
},
{
"c99name" : "ManualTests",
"module_type" : "SwiftTarget",
"name" : "ManualTests",
"path" : "Sources/ManualTests",
"product_dependencies" : [
"CLTLogger",
"Logging",
"StreamReader"
],
"product_memberships" : [
"ManualTests"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"ProcessInvocation"
],
"type" : "executable"
},
{
"c99name" : "CNSTaskHelptender",
"module_type" : "ClangTarget",
"name" : "CNSTaskHelptender",
"path" : "Sources/CNSTaskHelptender",
"product_dependencies" : [
"eXtenderZ-static"
],
"product_memberships" : [
"ProcessInvocation",
"ManualTests"
],
"sources" : [
"NSTaskHelptender.m"
],
"type" : "library"
},
{
"c99name" : "CMacroExports",
"module_type" : "ClangTarget",
"name" : "CMacroExports",
"path" : "Sources/CMacroExports",
"product_memberships" : [
"ProcessInvocation",
"swift-process-invocation-bridge",
"ManualTests"
],
"sources" : [
"exports.c"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Done.