Build Information
Successful build of Archery with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 3
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/vknabel/archery.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/vknabel/archery
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 4235239 Merge pull request #14 from vknabel/dependabot/bundler/activesupport-7.0.4.3
Cloned https://github.com/vknabel/archery.git
Revision (git rev-parse @):
423523973f6a14c4c33632262be094a66d4a7b52
SUCCESS checkout https://github.com/vknabel/archery.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/vknabel/archery.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/15] Write sources
[2/15] Write archery-entitlement.plist
[4/15] Write sources
[5/15] Write swift-version-6F35C1178C84523A.txt
[6/15] Compiling reader.c
[7/15] Compiling api.c
[8/15] Compiling emitter.c
[9/15] Compiling parser.c
[10/15] Compiling writer.c
[11/15] Compiling scanner.c
[13/30] Compiling Yams Tag.swift
[14/30] Compiling Yams Mark.swift
[15/30] Compiling Yams Node.Mapping.swift
[16/30] Compiling Yams Resolver.swift
[17/30] Compiling Yams String+Yams.swift
[18/30] Compiling Yams Node.swift
[19/30] Compiling Yams Parser.swift
[20/31] Compiling Yams Constructor.swift
[21/31] Compiling Yams Decoder.swift
[22/31] Compiling Yams Emitter.swift
[23/31] Compiling Yams Encoder.swift
[24/31] Emitting module Yams
[25/31] Compiling Yams Node.Scalar.swift
[26/31] Compiling Yams Node.Sequence.swift
[27/31] Compiling Yams Representer.swift
[28/31] Compiling Yams YamlError.swift
[29/45] Compiling ArcheryKit RawDataFormat.swift
[30/45] Compiling ArcheryKit ProcessScheduler.swift
/Users/admin/builder/spi-builder-workspace/Sources/ArcheryKit/ProcessScheduler.swift:13:24: warning: static property 'lock' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | class ProcessScheduler {
13 | private static var lock = NSLock()
| |- warning: static property 'lock' 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 'lock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'lock' 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 | static var scheduledProcesses: [ObjectIdentifier: Process] = [:]
15 |
/Users/admin/builder/spi-builder-workspace/Sources/ArcheryKit/ProcessScheduler.swift:14:16: warning: static property 'scheduledProcesses' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
12 | class ProcessScheduler {
13 | private static var lock = NSLock()
14 | static var scheduledProcesses: [ObjectIdentifier: Process] = [:]
| |- warning: static property 'scheduledProcesses' 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 'scheduledProcesses' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'scheduledProcesses' 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
15 |
16 | static func run(_ process: Process) throws {
/Users/admin/builder/spi-builder-workspace/Sources/ArcheryKit/ProcessScheduler.swift:53:24: warning: static property 'hasBeenPrepared' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
51 |
52 | extension ProcessScheduler {
53 | private static var hasBeenPrepared = false
| |- warning: static property 'hasBeenPrepared' 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 'hasBeenPrepared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'hasBeenPrepared' 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
54 | private static func prepare() {
55 | if hasBeenPrepared { return }
[31/45] Compiling ArcheryKit Path.swift
[32/45] Compiling ArcheryKit Metadata.swift
[33/45] Compiling ArcheryKit OfferingMetadata.swift
[34/45] Compiling ArcheryKit ScriptExecution.swift
[35/45] Compiling ArcheryKit LabeledScript.swift
[36/45] Compiling ArcheryKit LegacyScript.swift
[37/45] Compiling ArcheryKit Script.swift
[38/46] Compiling ArcheryKit Archerfile.swift
[39/46] Compiling ArcheryKit Archery.swift
[40/46] Emitting module ArcheryKit
/Users/admin/builder/spi-builder-workspace/Sources/ArcheryKit/ProcessScheduler.swift:13:24: warning: static property 'lock' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | class ProcessScheduler {
13 | private static var lock = NSLock()
| |- warning: static property 'lock' 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 'lock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'lock' 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 | static var scheduledProcesses: [ObjectIdentifier: Process] = [:]
15 |
/Users/admin/builder/spi-builder-workspace/Sources/ArcheryKit/ProcessScheduler.swift:14:16: warning: static property 'scheduledProcesses' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
12 | class ProcessScheduler {
13 | private static var lock = NSLock()
14 | static var scheduledProcesses: [ObjectIdentifier: Process] = [:]
| |- warning: static property 'scheduledProcesses' 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 'scheduledProcesses' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'scheduledProcesses' 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
15 |
16 | static func run(_ process: Process) throws {
/Users/admin/builder/spi-builder-workspace/Sources/ArcheryKit/ProcessScheduler.swift:53:24: warning: static property 'hasBeenPrepared' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
51 |
52 | extension ProcessScheduler {
53 | private static var hasBeenPrepared = false
| |- warning: static property 'hasBeenPrepared' 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 'hasBeenPrepared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'hasBeenPrepared' 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
54 | private static func prepare() {
55 | if hasBeenPrepared { return }
[41/46] Compiling ArcheryKit ArcheryError.swift
[42/46] Compiling ArcheryKit ExecutionContext.swift
[43/46] Compiling ArcheryKit Version.generated.swift
[44/55] Compiling ArcheryInterface InitCommand+Contents.swift
[45/55] Compiling ArcheryInterface VersionCommand.swift
[46/55] Compiling ArcheryInterface HelpCommand.swift
[47/55] Compiling ArcheryInterface Command.swift
[48/55] Compiling ArcheryInterface InitCommand.swift
[49/55] Compiling ArcheryInterface ExecutionCommand.swift
[50/55] Compiling ArcheryInterface ApiLevelCommand.swift
[51/55] Emitting module ArcheryInterface
[52/55] Compiling ArcheryInterface ArcheryInterface.swift
[53/57] Emitting module Archery
[54/57] Compiling Archery main.swift
[54/57] Write Objects.LinkFileList
[55/57] Linking archery
[56/57] Applying archery
Build complete! (30.91s)
Fetching https://github.com/jpsim/Yams.git
[1/9337] Fetching yams
Fetched https://github.com/jpsim/Yams.git from cache (2.12s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 5.0.1 (0.67s)
Creating working copy for https://github.com/jpsim/Yams.git
Working copy of https://github.com/jpsim/Yams.git resolved at 5.0.1
Build complete.
{
"dependencies" : [
{
"identity" : "yams",
"requirement" : {
"range" : [
{
"lower_bound" : "5.0.1",
"upper_bound" : "6.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/jpsim/Yams.git"
}
],
"manifest_display_name" : "Archery",
"name" : "Archery",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "archery",
"targets" : [
"Archery"
],
"type" : {
"executable" : null
}
},
{
"name" : "ArcheryKit",
"targets" : [
"ArcheryKit"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "ArcheryInterface",
"targets" : [
"ArcheryInterface"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ArcheryKitTests",
"module_type" : "SwiftTarget",
"name" : "ArcheryKitTests",
"path" : "Tests/ArcheryKitTests",
"sources" : [
"ArcherfileParsingTests.swift",
"ArcheryKitTests.swift",
"ArcheryTests.swift",
"MetadataTests.swift",
"ScriptParsingTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"ArcheryKit"
],
"type" : "test"
},
{
"c99name" : "ArcheryKit",
"module_type" : "SwiftTarget",
"name" : "ArcheryKit",
"path" : "Sources/ArcheryKit",
"product_dependencies" : [
"Yams"
],
"product_memberships" : [
"archery",
"ArcheryKit",
"ArcheryInterface"
],
"sources" : [
"Archerfile.swift",
"Archery.swift",
"ArcheryError.swift",
"ExecutionContext.swift",
"LabeledScript.swift",
"LegacyScript.swift",
"Metadata.swift",
"OfferingMetadata.swift",
"Path.swift",
"ProcessScheduler.swift",
"RawDataFormat.swift",
"Script.swift",
"ScriptExecution.swift",
"Version.generated.swift"
],
"type" : "library"
},
{
"c99name" : "ArcheryInterfaceTests",
"module_type" : "SwiftTarget",
"name" : "ArcheryInterfaceTests",
"path" : "Tests/ArcheryInterfaceTests",
"sources" : [
"ArcheryInterfaceTests.swift",
"InitCommandTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"ArcheryInterface"
],
"type" : "test"
},
{
"c99name" : "ArcheryInterface",
"module_type" : "SwiftTarget",
"name" : "ArcheryInterface",
"path" : "Sources/ArcheryInterface",
"product_memberships" : [
"archery",
"ArcheryInterface"
],
"sources" : [
"ArcheryInterface.swift",
"Command.swift",
"Commands/ApiLevelCommand.swift",
"Commands/ExecutionCommand.swift",
"Commands/HelpCommand.swift",
"Commands/InitCommand.swift",
"Commands/VersionCommand.swift",
"InitCommand+Contents.swift"
],
"target_dependencies" : [
"ArcheryKit"
],
"type" : "library"
},
{
"c99name" : "Archery",
"module_type" : "SwiftTarget",
"name" : "Archery",
"path" : "Sources/Archery",
"product_memberships" : [
"archery"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"ArcheryInterface"
],
"type" : "executable"
}
],
"tools_version" : "5.4"
}
Done.