Build Information
Successful build of CommandLineKit, reference v4.0.9 (3eaafd
), with Swift 6.0 for Linux on 15 Sep 2024 03:32:55 UTC.
Swift 6 data race errors: 2
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.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/benoit-pereira-da-silva/CommandLine.git
Reference: v4.0.9
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/benoit-pereira-da-silva/CommandLine
* tag v4.0.9 -> FETCH_HEAD
HEAD is now at 3eaafd5 Removed CommandBase
Cloned https://github.com/benoit-pereira-da-silva/CommandLine.git
Revision (git rev-parse @):
3eaafd5941e359f025a411e3b5947f96d82d1bc9
SUCCESS checkout https://github.com/benoit-pereira-da-silva/CommandLine.git at v4.0.9
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/benoit-pereira-da-silva/CommandLine.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:9d7dab235f2b0b46edadd73b1fb0c3b5323df02053420324a4a2f8ca89cb54a5
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/6] Compiling CommandLineKit StringExtensions.swift
[4/6] Compiling CommandLineKit Option.swift
[5/6] Compiling CommandLineKit CommandLine.swift
/host/spi-builder-workspace/Sources/CommandLineKit/CommandLine.swift:159:10: warning: associated value 'invalidValueForOption' of 'Sendable'-conforming enum 'ParseError' has non-sendable type 'Option'; this is an error in the Swift 6 language mode
157 |
158 | /** Thrown if the value for an Option is invalid (e.g. a string is passed to an IntOption) */
159 | case invalidValueForOption(Option, [String])
| `- warning: associated value 'invalidValueForOption' of 'Sendable'-conforming enum 'ParseError' has non-sendable type 'Option'; this is an error in the Swift 6 language mode
160 |
161 | /** Thrown if an Option with required: true is missing */
/host/spi-builder-workspace/Sources/CommandLineKit/Option.swift:21:12: note: class 'Option' does not conform to the 'Sendable' protocol
19 | * The base class for a command-line option.
20 | */
21 | open class Option {
| `- note: class 'Option' does not conform to the 'Sendable' protocol
22 | public let shortFlag: String?
23 | public let longFlag: String?
/host/spi-builder-workspace/Sources/CommandLineKit/CommandLine.swift:162:10: warning: associated value 'missingRequiredOptions' of 'Sendable'-conforming enum 'ParseError' has non-sendable type 'Option'; this is an error in the Swift 6 language mode
160 |
161 | /** Thrown if an Option with required: true is missing */
162 | case missingRequiredOptions([Option])
| `- warning: associated value 'missingRequiredOptions' of 'Sendable'-conforming enum 'ParseError' has non-sendable type 'Option'; this is an error in the Swift 6 language mode
163 |
164 | public var description: String {
/host/spi-builder-workspace/Sources/CommandLineKit/Option.swift:21:12: note: class 'Option' does not conform to the 'Sendable' protocol
19 | * The base class for a command-line option.
20 | */
21 | open class Option {
| `- note: class 'Option' does not conform to the 'Sendable' protocol
22 | public let shortFlag: String?
23 | public let longFlag: String?
/host/spi-builder-workspace/Sources/CommandLineKit/CommandLine.swift:37:14: 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
35 | static let stream = StderrOutputStream()
36 | func write(_ s: String) {
37 | fputs(s, 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
38 | }
39 | }
SwiftGlibc.stderr:1:12: note: var declared here
1 | public var stderr: UnsafeMutablePointer<FILE>!
| `- note: var declared here
[6/6] Emitting module CommandLineKit
/host/spi-builder-workspace/Sources/CommandLineKit/CommandLine.swift:159:10: warning: associated value 'invalidValueForOption' of 'Sendable'-conforming enum 'ParseError' has non-sendable type 'Option'; this is an error in the Swift 6 language mode
157 |
158 | /** Thrown if the value for an Option is invalid (e.g. a string is passed to an IntOption) */
159 | case invalidValueForOption(Option, [String])
| `- warning: associated value 'invalidValueForOption' of 'Sendable'-conforming enum 'ParseError' has non-sendable type 'Option'; this is an error in the Swift 6 language mode
160 |
161 | /** Thrown if an Option with required: true is missing */
/host/spi-builder-workspace/Sources/CommandLineKit/Option.swift:21:12: note: class 'Option' does not conform to the 'Sendable' protocol
19 | * The base class for a command-line option.
20 | */
21 | open class Option {
| `- note: class 'Option' does not conform to the 'Sendable' protocol
22 | public let shortFlag: String?
23 | public let longFlag: String?
/host/spi-builder-workspace/Sources/CommandLineKit/CommandLine.swift:162:10: warning: associated value 'missingRequiredOptions' of 'Sendable'-conforming enum 'ParseError' has non-sendable type 'Option'; this is an error in the Swift 6 language mode
160 |
161 | /** Thrown if an Option with required: true is missing */
162 | case missingRequiredOptions([Option])
| `- warning: associated value 'missingRequiredOptions' of 'Sendable'-conforming enum 'ParseError' has non-sendable type 'Option'; this is an error in the Swift 6 language mode
163 |
164 | public var description: String {
/host/spi-builder-workspace/Sources/CommandLineKit/Option.swift:21:12: note: class 'Option' does not conform to the 'Sendable' protocol
19 | * The base class for a command-line option.
20 | */
21 | open class Option {
| `- note: class 'Option' does not conform to the 'Sendable' protocol
22 | public let shortFlag: String?
23 | public let longFlag: String?
Build complete! (9.50s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "CommandLineKit",
"name" : "CommandLineKit",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "CommandLineKit",
"targets" : [
"CommandLineKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "CommandLineKitTests",
"module_type" : "SwiftTarget",
"name" : "CommandLineKitTests",
"path" : "Tests/CommandLineKitTests",
"sources" : [
"CommandLineTests.swift",
"StringExtensionTests.swift"
],
"target_dependencies" : [
"CommandLineKit"
],
"type" : "test"
},
{
"c99name" : "CommandLineKit",
"module_type" : "SwiftTarget",
"name" : "CommandLineKit",
"path" : "Sources/CommandLineKit",
"product_memberships" : [
"CommandLineKit"
],
"sources" : [
"CommandLine.swift",
"Option.swift",
"StringExtensions.swift"
],
"type" : "library"
}
],
"tools_version" : "4.2"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:9d7dab235f2b0b46edadd73b1fb0c3b5323df02053420324a4a2f8ca89cb54a5
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.