Build Information
Successful build of SPMArgumentParser, reference master (e3c489
), with Swift 6.0 for Linux on 4 Nov 2024 03:37:56 UTC.
Swift 6 data race errors: 12
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/nikstar/spm-argument-parser.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/nikstar/spm-argument-parser
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at e3c4895 Merge pull request #1 from nikstar/stripped
Cloned https://github.com/nikstar/spm-argument-parser.git
Revision (git rev-parse @):
e3c4895261730adf46ab012af05a3729871a15a1
SUCCESS checkout https://github.com/nikstar/spm-argument-parser.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/nikstar/spm-argument-parser.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/5] Write sources
[3/5] Compiling clibc libc.c
[4/5] Write swift-version-24593BA9C3E375BF.txt
[6/7] Emitting module SPMLibc
[7/7] Compiling SPMLibc libc.swift
[9/21] Emitting module Basic
/host/spi-builder-workspace/Sources/Basic/FileSystem.swift:772:12: warning: var 'localFileSystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
770 |
771 | /// Public access to the local FS proxy.
772 | public var localFileSystem: FileSystem = LocalFileSystem()
| |- warning: var 'localFileSystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'localFileSystem' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'localFileSystem' 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
773 |
774 | extension FileSystem {
/host/spi-builder-workspace/Sources/Basic/Path.swift:208:23: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'AbsolutePath' may have shared mutable state; this is an error in the Swift 6 language mode
29 | /// not the program being invoked (e.g. when invoking `cd ~`, it is the shell
30 | /// that evaluates the tilde; the `cd` command receives an absolute path).
31 | public struct AbsolutePath: Hashable {
| `- note: consider making struct 'AbsolutePath' conform to the 'Sendable' protocol
32 | /// Check if the given name is a valid individual path component.
33 | ///
:
206 |
207 | /// Root directory (whose string representation is just a path separator).
208 | public static let root = AbsolutePath("/")
| |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'AbsolutePath' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'root' 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
209 |
210 | /// Normalized string representation (the normalization rules are described
/host/spi-builder-workspace/Sources/Basic/OutputByteStream.swift:740:12: warning: var 'stdoutStream' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
738 |
739 | /// Public stdout stream instance.
740 | public var stdoutStream: ThreadSafeOutputByteStream = try! ThreadSafeOutputByteStream(LocalFileOutputByteStream(
| |- warning: var 'stdoutStream' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'stdoutStream' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'stdoutStream' 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
741 | filePointer: SPMLibc.stdout,
742 | closeOnDeinit: false))
/host/spi-builder-workspace/Sources/Basic/OutputByteStream.swift:741:26: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
739 | /// Public stdout stream instance.
740 | public var stdoutStream: ThreadSafeOutputByteStream = try! ThreadSafeOutputByteStream(LocalFileOutputByteStream(
741 | filePointer: SPMLibc.stdout,
| `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
742 | closeOnDeinit: false))
743 |
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
| `- note: var declared here
/host/spi-builder-workspace/Sources/Basic/OutputByteStream.swift:745:12: warning: var 'stderrStream' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
743 |
744 | /// Public stderr stream instance.
745 | public var stderrStream: ThreadSafeOutputByteStream = try! ThreadSafeOutputByteStream(LocalFileOutputByteStream(
| |- warning: var 'stderrStream' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'stderrStream' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'stderrStream' 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
746 | filePointer: SPMLibc.stderr,
747 | closeOnDeinit: false))
/host/spi-builder-workspace/Sources/Basic/OutputByteStream.swift:746:26: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
744 | /// Public stderr stream instance.
745 | public var stderrStream: ThreadSafeOutputByteStream = try! ThreadSafeOutputByteStream(LocalFileOutputByteStream(
746 | filePointer: SPMLibc.stderr,
| `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
747 | closeOnDeinit: false))
748 |
SwiftGlibc.stderr:1:12: note: var declared here
1 | public var stderr: UnsafeMutablePointer<FILE>!
| `- note: var declared here
[10/22] Compiling Basic Tuple.swift
[11/22] Compiling Basic OutputByteStream.swift
/host/spi-builder-workspace/Sources/Basic/OutputByteStream.swift:740:12: warning: var 'stdoutStream' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
738 |
739 | /// Public stdout stream instance.
740 | public var stdoutStream: ThreadSafeOutputByteStream = try! ThreadSafeOutputByteStream(LocalFileOutputByteStream(
| |- warning: var 'stdoutStream' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'stdoutStream' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'stdoutStream' 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
741 | filePointer: SPMLibc.stdout,
742 | closeOnDeinit: false))
/host/spi-builder-workspace/Sources/Basic/OutputByteStream.swift:741:26: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
739 | /// Public stdout stream instance.
740 | public var stdoutStream: ThreadSafeOutputByteStream = try! ThreadSafeOutputByteStream(LocalFileOutputByteStream(
741 | filePointer: SPMLibc.stdout,
| `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
742 | closeOnDeinit: false))
743 |
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
| `- note: var declared here
/host/spi-builder-workspace/Sources/Basic/OutputByteStream.swift:745:12: warning: var 'stderrStream' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
743 |
744 | /// Public stderr stream instance.
745 | public var stderrStream: ThreadSafeOutputByteStream = try! ThreadSafeOutputByteStream(LocalFileOutputByteStream(
| |- warning: var 'stderrStream' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'stderrStream' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'stderrStream' 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
746 | filePointer: SPMLibc.stderr,
747 | closeOnDeinit: false))
/host/spi-builder-workspace/Sources/Basic/OutputByteStream.swift:746:26: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
744 | /// Public stderr stream instance.
745 | public var stderrStream: ThreadSafeOutputByteStream = try! ThreadSafeOutputByteStream(LocalFileOutputByteStream(
746 | filePointer: SPMLibc.stderr,
| `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
747 | closeOnDeinit: false))
748 |
SwiftGlibc.stderr:1:12: note: var declared here
1 | public var stderr: UnsafeMutablePointer<FILE>!
| `- note: var declared here
/host/spi-builder-workspace/Sources/Basic/Path.swift:208:23: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'AbsolutePath' may have shared mutable state; this is an error in the Swift 6 language mode
29 | /// not the program being invoked (e.g. when invoking `cd ~`, it is the shell
30 | /// that evaluates the tilde; the `cd` command receives an absolute path).
31 | public struct AbsolutePath: Hashable {
| `- note: consider making struct 'AbsolutePath' conform to the 'Sendable' protocol
32 | /// Check if the given name is a valid individual path component.
33 | ///
:
206 |
207 | /// Root directory (whose string representation is just a path separator).
208 | public static let root = AbsolutePath("/")
| |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'AbsolutePath' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'root' 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
209 |
210 | /// Normalized string representation (the normalization rules are described
[12/22] Compiling Basic Path.swift
/host/spi-builder-workspace/Sources/Basic/OutputByteStream.swift:740:12: warning: var 'stdoutStream' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
738 |
739 | /// Public stdout stream instance.
740 | public var stdoutStream: ThreadSafeOutputByteStream = try! ThreadSafeOutputByteStream(LocalFileOutputByteStream(
| |- warning: var 'stdoutStream' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'stdoutStream' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'stdoutStream' 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
741 | filePointer: SPMLibc.stdout,
742 | closeOnDeinit: false))
/host/spi-builder-workspace/Sources/Basic/OutputByteStream.swift:741:26: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
739 | /// Public stdout stream instance.
740 | public var stdoutStream: ThreadSafeOutputByteStream = try! ThreadSafeOutputByteStream(LocalFileOutputByteStream(
741 | filePointer: SPMLibc.stdout,
| `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
742 | closeOnDeinit: false))
743 |
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
| `- note: var declared here
/host/spi-builder-workspace/Sources/Basic/OutputByteStream.swift:745:12: warning: var 'stderrStream' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
743 |
744 | /// Public stderr stream instance.
745 | public var stderrStream: ThreadSafeOutputByteStream = try! ThreadSafeOutputByteStream(LocalFileOutputByteStream(
| |- warning: var 'stderrStream' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'stderrStream' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'stderrStream' 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
746 | filePointer: SPMLibc.stderr,
747 | closeOnDeinit: false))
/host/spi-builder-workspace/Sources/Basic/OutputByteStream.swift:746:26: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
744 | /// Public stderr stream instance.
745 | public var stderrStream: ThreadSafeOutputByteStream = try! ThreadSafeOutputByteStream(LocalFileOutputByteStream(
746 | filePointer: SPMLibc.stderr,
| `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
747 | closeOnDeinit: false))
748 |
SwiftGlibc.stderr:1:12: note: var declared here
1 | public var stderr: UnsafeMutablePointer<FILE>!
| `- note: var declared here
/host/spi-builder-workspace/Sources/Basic/Path.swift:208:23: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'AbsolutePath' may have shared mutable state; this is an error in the Swift 6 language mode
29 | /// not the program being invoked (e.g. when invoking `cd ~`, it is the shell
30 | /// that evaluates the tilde; the `cd` command receives an absolute path).
31 | public struct AbsolutePath: Hashable {
| `- note: consider making struct 'AbsolutePath' conform to the 'Sendable' protocol
32 | /// Check if the given name is a valid individual path component.
33 | ///
:
206 |
207 | /// Root directory (whose string representation is just a path separator).
208 | public static let root = AbsolutePath("/")
| |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'AbsolutePath' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'root' 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
209 |
210 | /// Normalized string representation (the normalization rules are described
[13/22] Compiling Basic StringConversions.swift
[14/22] Compiling Basic PathShims.swift
/host/spi-builder-workspace/Sources/Basic/FileSystem.swift:772:12: warning: var 'localFileSystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
770 |
771 | /// Public access to the local FS proxy.
772 | public var localFileSystem: FileSystem = LocalFileSystem()
| |- warning: var 'localFileSystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'localFileSystem' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'localFileSystem' 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
773 |
774 | extension FileSystem {
[15/22] Compiling Basic CollectionExtensions.swift
[16/22] Compiling Basic DictionaryExtensions.swift
[17/22] Compiling Basic DictionaryLiteralExtensions.swift
[18/22] Compiling Basic EditDistance.swift
[19/22] Compiling Basic ByteString.swift
[20/22] Compiling Basic CollectionAlgorithms.swift
[21/22] Compiling Basic FileInfo.swift
/host/spi-builder-workspace/Sources/Basic/FileSystem.swift:772:12: warning: var 'localFileSystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
770 |
771 | /// Public access to the local FS proxy.
772 | public var localFileSystem: FileSystem = LocalFileSystem()
| |- warning: var 'localFileSystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'localFileSystem' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'localFileSystem' 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
773 |
774 | extension FileSystem {
/host/spi-builder-workspace/Sources/Basic/Path.swift:208:23: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'AbsolutePath' may have shared mutable state; this is an error in the Swift 6 language mode
29 | /// not the program being invoked (e.g. when invoking `cd ~`, it is the shell
30 | /// that evaluates the tilde; the `cd` command receives an absolute path).
31 | public struct AbsolutePath: Hashable {
| `- note: consider making struct 'AbsolutePath' conform to the 'Sendable' protocol
32 | /// Check if the given name is a valid individual path component.
33 | ///
:
206 |
207 | /// Root directory (whose string representation is just a path separator).
208 | public static let root = AbsolutePath("/")
| |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'AbsolutePath' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'root' 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
209 |
210 | /// Normalized string representation (the normalization rules are described
[22/22] Compiling Basic FileSystem.swift
/host/spi-builder-workspace/Sources/Basic/FileSystem.swift:772:12: warning: var 'localFileSystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
770 |
771 | /// Public access to the local FS proxy.
772 | public var localFileSystem: FileSystem = LocalFileSystem()
| |- warning: var 'localFileSystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'localFileSystem' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'localFileSystem' 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
773 |
774 | extension FileSystem {
/host/spi-builder-workspace/Sources/Basic/Path.swift:208:23: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'AbsolutePath' may have shared mutable state; this is an error in the Swift 6 language mode
29 | /// not the program being invoked (e.g. when invoking `cd ~`, it is the shell
30 | /// that evaluates the tilde; the `cd` command receives an absolute path).
31 | public struct AbsolutePath: Hashable {
| `- note: consider making struct 'AbsolutePath' conform to the 'Sendable' protocol
32 | /// Check if the given name is a valid individual path component.
33 | ///
:
206 |
207 | /// Root directory (whose string representation is just a path separator).
208 | public static let root = AbsolutePath("/")
| |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'AbsolutePath' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'root' 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
209 |
210 | /// Normalized string representation (the normalization rules are described
[24/28] Compiling SPMArgumentParser CollectionExtensions.swift
[25/28] Compiling SPMArgumentParser StringExtensions.swift
[26/28] Compiling SPMArgumentParser ArgumentParserShellCompletion.swift
[27/28] Compiling SPMArgumentParser ArgumentParser.swift
/host/spi-builder-workspace/Sources/SPMArgumentParser/ArgumentParser.swift:31:10: warning: associated value 'expectedArguments' of 'Sendable'-conforming enum 'ArgumentParserError' has non-sendable type 'ArgumentParser'; this is an error in the Swift 6 language mode
29 |
30 | /// Expected these positional arguments but not found.
31 | case expectedArguments(ArgumentParser, [String])
| `- warning: associated value 'expectedArguments' of 'Sendable'-conforming enum 'ArgumentParserError' has non-sendable type 'ArgumentParser'; this is an error in the Swift 6 language mode
32 |
33 | /// Expected a single argument but got multiple ones.
:
524 | /// Argument parser struct responsible to parse the provided array of arguments
525 | /// and return the parsed result.
526 | public final class ArgumentParser {
| `- note: class 'ArgumentParser' does not conform to the 'Sendable' protocol
527 |
528 | /// A class representing result of the parsed arguments.
/host/spi-builder-workspace/Sources/SPMArgumentParser/ArgumentParser.swift:123:23: warning: static property 'completion' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
121 | case zsh
122 |
123 | public static var completion: ShellCompletion = .values([
| |- warning: static property 'completion' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'completion' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'completion' 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
124 | (bash.rawValue, "generate completion script for Bourne-again shell"),
125 | (zsh.rawValue, "generate completion script for Z shell"),
/host/spi-builder-workspace/Sources/SPMArgumentParser/ArgumentParser.swift:166:23: warning: static property 'completion' is not concurrency-safe because non-'Sendable' type 'ShellCompletion' may have shared mutable state; this is an error in the Swift 6 language mode
128 |
129 | /// Various shell completions modes supplied by ArgumentKind.
130 | public enum ShellCompletion {
| `- note: consider making enum 'ShellCompletion' conform to the 'Sendable' protocol
131 | /// Offers no completions at all; e.g. for a string identifier.
132 | case none
:
164 | }
165 |
166 | public static let completion: ShellCompletion = .none
| |- warning: static property 'completion' is not concurrency-safe because non-'Sendable' type 'ShellCompletion' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'completion' 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
167 | }
168 |
/host/spi-builder-workspace/Sources/SPMArgumentParser/ArgumentParser.swift:178:23: warning: static property 'completion' is not concurrency-safe because non-'Sendable' type 'ShellCompletion' may have shared mutable state; this is an error in the Swift 6 language mode
128 |
129 | /// Various shell completions modes supplied by ArgumentKind.
130 | public enum ShellCompletion {
| `- note: consider making enum 'ShellCompletion' conform to the 'Sendable' protocol
131 | /// Offers no completions at all; e.g. for a string identifier.
132 | case none
:
176 | }
177 |
178 | public static let completion: ShellCompletion = .none
| |- warning: static property 'completion' is not concurrency-safe because non-'Sendable' type 'ShellCompletion' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'completion' 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
179 | }
180 |
/host/spi-builder-workspace/Sources/SPMArgumentParser/ArgumentParser.swift:193:23: warning: static property 'completion' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
191 | }
192 |
193 | public static var completion: ShellCompletion = .unspecified
| |- warning: static property 'completion' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'completion' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'completion' 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
194 | }
195 |
/host/spi-builder-workspace/Sources/SPMArgumentParser/ArgumentParser.swift:229:23: warning: static property 'completion' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
227 | }
228 |
229 | public static var completion: ShellCompletion = .filename
| |- warning: static property 'completion' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'completion' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'completion' 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
230 | }
231 |
/host/spi-builder-workspace/Sources/SPMArgumentParser/ArgumentParser.swift:222:22: warning: reference to var 'localFileSystem' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
220 | public init(argument: String) throws {
221 | // FIXME: This should check for invalid paths.
222 | if let cwd = localFileSystem.currentWorkingDirectory {
| `- warning: reference to var 'localFileSystem' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
223 | path = AbsolutePath(argument, relativeTo: cwd)
224 | } else {
/host/spi-builder-workspace/Sources/Basic/FileSystem.swift:772:12: note: var declared here
770 |
771 | /// Public access to the local FS proxy.
772 | public var localFileSystem: FileSystem = LocalFileSystem()
| `- note: var declared here
773 |
774 | extension FileSystem {
/host/spi-builder-workspace/Sources/SPMArgumentParser/ArgumentParser.swift:830:32: warning: reference to var 'stdoutStream' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
828 | // If argument is help then just print usage and exit.
829 | if argumentString == "-h" || argumentString == "-help" || argumentString == "--help" {
830 | printUsage(on: stdoutStream)
| `- warning: reference to var 'stdoutStream' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
831 | exit(0)
832 | } else if isPositional(argument: argumentString) {
/host/spi-builder-workspace/Sources/Basic/OutputByteStream.swift:740:12: note: var declared here
738 |
739 | /// Public stdout stream instance.
740 | public var stdoutStream: ThreadSafeOutputByteStream = try! ThreadSafeOutputByteStream(LocalFileOutputByteStream(
| `- note: var declared here
741 | filePointer: SPMLibc.stdout,
742 | closeOnDeinit: false))
[28/28] Emitting module SPMArgumentParser
/host/spi-builder-workspace/Sources/SPMArgumentParser/ArgumentParser.swift:31:10: warning: associated value 'expectedArguments' of 'Sendable'-conforming enum 'ArgumentParserError' has non-sendable type 'ArgumentParser'; this is an error in the Swift 6 language mode
29 |
30 | /// Expected these positional arguments but not found.
31 | case expectedArguments(ArgumentParser, [String])
| `- warning: associated value 'expectedArguments' of 'Sendable'-conforming enum 'ArgumentParserError' has non-sendable type 'ArgumentParser'; this is an error in the Swift 6 language mode
32 |
33 | /// Expected a single argument but got multiple ones.
:
524 | /// Argument parser struct responsible to parse the provided array of arguments
525 | /// and return the parsed result.
526 | public final class ArgumentParser {
| `- note: class 'ArgumentParser' does not conform to the 'Sendable' protocol
527 |
528 | /// A class representing result of the parsed arguments.
/host/spi-builder-workspace/Sources/SPMArgumentParser/ArgumentParser.swift:123:23: warning: static property 'completion' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
121 | case zsh
122 |
123 | public static var completion: ShellCompletion = .values([
| |- warning: static property 'completion' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'completion' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'completion' 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
124 | (bash.rawValue, "generate completion script for Bourne-again shell"),
125 | (zsh.rawValue, "generate completion script for Z shell"),
/host/spi-builder-workspace/Sources/SPMArgumentParser/ArgumentParser.swift:166:23: warning: static property 'completion' is not concurrency-safe because non-'Sendable' type 'ShellCompletion' may have shared mutable state; this is an error in the Swift 6 language mode
128 |
129 | /// Various shell completions modes supplied by ArgumentKind.
130 | public enum ShellCompletion {
| `- note: consider making enum 'ShellCompletion' conform to the 'Sendable' protocol
131 | /// Offers no completions at all; e.g. for a string identifier.
132 | case none
:
164 | }
165 |
166 | public static let completion: ShellCompletion = .none
| |- warning: static property 'completion' is not concurrency-safe because non-'Sendable' type 'ShellCompletion' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'completion' 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
167 | }
168 |
/host/spi-builder-workspace/Sources/SPMArgumentParser/ArgumentParser.swift:178:23: warning: static property 'completion' is not concurrency-safe because non-'Sendable' type 'ShellCompletion' may have shared mutable state; this is an error in the Swift 6 language mode
128 |
129 | /// Various shell completions modes supplied by ArgumentKind.
130 | public enum ShellCompletion {
| `- note: consider making enum 'ShellCompletion' conform to the 'Sendable' protocol
131 | /// Offers no completions at all; e.g. for a string identifier.
132 | case none
:
176 | }
177 |
178 | public static let completion: ShellCompletion = .none
| |- warning: static property 'completion' is not concurrency-safe because non-'Sendable' type 'ShellCompletion' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'completion' 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
179 | }
180 |
/host/spi-builder-workspace/Sources/SPMArgumentParser/ArgumentParser.swift:193:23: warning: static property 'completion' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
191 | }
192 |
193 | public static var completion: ShellCompletion = .unspecified
| |- warning: static property 'completion' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'completion' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'completion' 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
194 | }
195 |
/host/spi-builder-workspace/Sources/SPMArgumentParser/ArgumentParser.swift:229:23: warning: static property 'completion' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
227 | }
228 |
229 | public static var completion: ShellCompletion = .filename
| |- warning: static property 'completion' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'completion' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'completion' 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
230 | }
231 |
Build complete! (11.49s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "SPMArgumentParser",
"name" : "SPMArgumentParser",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "SPMArgumentParser",
"targets" : [
"SPMArgumentParser"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "clibc",
"module_type" : "ClangTarget",
"name" : "clibc",
"path" : "Sources/clibc",
"product_memberships" : [
"SPMArgumentParser"
],
"sources" : [
"libc.c"
],
"type" : "library"
},
{
"c99name" : "SPMLibc",
"module_type" : "SwiftTarget",
"name" : "SPMLibc",
"path" : "Sources/SPMLibc",
"product_memberships" : [
"SPMArgumentParser"
],
"sources" : [
"libc.swift"
],
"target_dependencies" : [
"clibc"
],
"type" : "library"
},
{
"c99name" : "SPMArgumentParser",
"module_type" : "SwiftTarget",
"name" : "SPMArgumentParser",
"path" : "Sources/SPMArgumentParser",
"product_memberships" : [
"SPMArgumentParser"
],
"sources" : [
"ArgumentParser.swift",
"ArgumentParserShellCompletion.swift",
"CollectionExtensions.swift",
"StringExtensions.swift"
],
"target_dependencies" : [
"Basic"
],
"type" : "library"
},
{
"c99name" : "Basic",
"module_type" : "SwiftTarget",
"name" : "Basic",
"path" : "Sources/Basic",
"product_memberships" : [
"SPMArgumentParser"
],
"sources" : [
"ByteString.swift",
"CollectionAlgorithms.swift",
"CollectionExtensions.swift",
"DictionaryExtensions.swift",
"DictionaryLiteralExtensions.swift",
"EditDistance.swift",
"FileInfo.swift",
"FileSystem.swift",
"OutputByteStream.swift",
"Path.swift",
"PathShims.swift",
"StringConversions.swift",
"Tuple.swift"
],
"target_dependencies" : [
"SPMLibc"
],
"type" : "library"
}
],
"tools_version" : "4.2"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.