Build Information
Successful build of swift-action with Swift 6.0 for Linux.
Swift 6 data race errors: 3
Build Command
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" 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.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Frizlab/swift-action.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/Frizlab/swift-action
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 9f24a2e Add Apache license to the project
Cloned https://github.com/Frizlab/swift-action.git
Revision (git rev-parse @):
9f24a2e76b0810831a60754809a93f559e6c24ce
SUCCESS checkout https://github.com/Frizlab/swift-action.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $workDir
https://github.com/Frizlab/swift-action.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" 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
Fetching https://github.com/apple/swift-log.git
[1/3361] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.33s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.4.0 (0.43s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.4.0
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/7] Compiling Logging LogHandler.swift
[5/7] Compiling Logging Locks.swift
[6/7] Emitting module Logging
[7/7] Compiling Logging Logging.swift
[9/14] Compiling Action AnyAction.swift
[10/14] Compiling Action Util.swift
[11/14] Compiling Action ActionConfig.swift
/host/spi-builder-workspace/Sources/Action/ActionConfig.swift:26:20: warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
24 | public struct ActionConfig {
25 |
26 | public static var logger: Logger? = nil
| |- warning: static property 'logger' is not concurrency-safe because it is non-isolated 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
27 |
28 | /** This struct is simply a container for static configuration properties. */
[12/14] Compiling Action ActionError.swift
[13/14] Compiling Action Action.swift
/host/spi-builder-workspace/Sources/Action/Action.swift:33:20: warning: static property 'alwaysInstantly' is not concurrency-safe because non-'Sendable' type 'WeakeningMode' may have shared mutable state; this is an error in the Swift 6 language mode
24 | interval value, the weakening is done asynchronously after the handler is
25 | called, on an internal queue. */
26 | public enum WeakeningMode {
| `- note: consider making enum 'WeakeningMode' conform to the 'Sendable' protocol
27 |
28 | case never
:
31 | case always(successDelay: TimeInterval?, errorDelay: TimeInterval?)
32 |
33 | public static let alwaysInstantly = WeakeningMode.always(successDelay: nil, errorDelay: nil)
| |- warning: static property 'alwaysInstantly' is not concurrency-safe because non-'Sendable' type 'WeakeningMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'alwaysInstantly' 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
34 |
35 | /** Customizable default, used by Action, when running it. */
/host/spi-builder-workspace/Sources/Action/Action.swift:36:20: warning: static property 'defaultMode' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
34 |
35 | /** Customizable default, used by Action, when running it. */
36 | public static var defaultMode = WeakeningMode.alwaysInstantly
| |- warning: static property 'defaultMode' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultMode' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultMode' 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
37 |
38 | }
/host/spi-builder-workspace/Sources/Action/ActionConfig.swift:26:20: warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
24 | public struct ActionConfig {
25 |
26 | public static var logger: Logger? = nil
| |- warning: static property 'logger' is not concurrency-safe because it is non-isolated 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
27 |
28 | /** This struct is simply a container for static configuration properties. */
[14/14] Emitting module Action
/host/spi-builder-workspace/Sources/Action/Action.swift:33:20: warning: static property 'alwaysInstantly' is not concurrency-safe because non-'Sendable' type 'WeakeningMode' may have shared mutable state; this is an error in the Swift 6 language mode
24 | interval value, the weakening is done asynchronously after the handler is
25 | called, on an internal queue. */
26 | public enum WeakeningMode {
| `- note: consider making enum 'WeakeningMode' conform to the 'Sendable' protocol
27 |
28 | case never
:
31 | case always(successDelay: TimeInterval?, errorDelay: TimeInterval?)
32 |
33 | public static let alwaysInstantly = WeakeningMode.always(successDelay: nil, errorDelay: nil)
| |- warning: static property 'alwaysInstantly' is not concurrency-safe because non-'Sendable' type 'WeakeningMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'alwaysInstantly' 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
34 |
35 | /** Customizable default, used by Action, when running it. */
/host/spi-builder-workspace/Sources/Action/Action.swift:36:20: warning: static property 'defaultMode' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
34 |
35 | /** Customizable default, used by Action, when running it. */
36 | public static var defaultMode = WeakeningMode.alwaysInstantly
| |- warning: static property 'defaultMode' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultMode' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultMode' 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
37 |
38 | }
/host/spi-builder-workspace/Sources/Action/ActionConfig.swift:26:20: warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
24 | public struct ActionConfig {
25 |
26 | public static var logger: Logger? = nil
| |- warning: static property 'logger' is not concurrency-safe because it is non-isolated 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
27 |
28 | /** This struct is simply a container for static configuration properties. */
Build complete! (10.84s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.4.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log.git"
}
],
"manifest_display_name" : "swift-action",
"name" : "swift-action",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "Action",
"targets" : [
"Action"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "Action",
"module_type" : "SwiftTarget",
"name" : "Action",
"path" : "Sources/Action",
"product_dependencies" : [
"Logging"
],
"product_memberships" : [
"Action"
],
"sources" : [
"Action.swift",
"ActionConfig.swift",
"ActionError.swift",
"AnyAction.swift",
"Util.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
Done.