Build Information
Successful build of Tracery with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 4
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/BenziAhamed/Tracery.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/BenziAhamed/Tracery
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 1d34b2c bump to swift-5.0 and minor cleanups
Cloned https://github.com/BenziAhamed/Tracery.git
Revision (git rev-parse @):
1d34b2c2308148333871c19efdcde271be12c240
SUCCESS checkout https://github.com/BenziAhamed/Tracery.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/BenziAhamed/Tracery.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/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/17] Compiling Tracery Tracery.Logging.swift
/Users/admin/builder/spi-builder-workspace/Common/Tracery.Logging.swift:22:23: warning: static property 'logLevel' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
20 | }
21 |
22 | public static var logLevel = LoggingLevel.errors
| |- warning: static property 'logLevel' 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 'logLevel' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logLevel' 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
23 |
24 | static func log(level: LoggingLevel, message: @autoclosure () -> String) {
[4/17] Compiling Tracery RuleCandidatesProvider.swift
[5/17] Compiling Tracery RuleSelfReferenceIdentifer.swift
[6/17] Compiling Tracery TagStorage.swift
[7/17] Compiling Tracery Tracery.Eval.swift
/Users/admin/builder/spi-builder-workspace/Common/Tracery.swift:141:23: warning: static property 'maxStackDepth' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
139 | }
140 |
141 | public static var maxStackDepth = 256
| |- warning: static property 'maxStackDepth' 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 'maxStackDepth' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'maxStackDepth' 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
142 |
143 | fileprivate(set) var ruleEvaluationLevel: Int = 0
/Users/admin/builder/spi-builder-workspace/Common/Tracery.Logging.swift:22:23: warning: static property 'logLevel' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
20 | }
21 |
22 | public static var logLevel = LoggingLevel.errors
| |- warning: static property 'logLevel' 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 'logLevel' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logLevel' 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
23 |
24 | static func log(level: LoggingLevel, message: @autoclosure () -> String) {
[8/17] Compiling Tracery Tracery.Text.swift
/Users/admin/builder/spi-builder-workspace/Common/Tracery.swift:37:23: warning: static property 'defaultSet' is not concurrency-safe because non-'Sendable' type 'TraceryOptions' may have shared mutable state; this is an error in the Swift 6 language mode
26 |
27 |
28 | public class TraceryOptions {
| `- note: class 'TraceryOptions' does not conform to the 'Sendable' protocol
29 | public var tagStorageType = TaggingPolicy.unilevel
30 | public var isRuleAnalysisEnabled = true
:
35 |
36 | extension TraceryOptions {
37 | public static let defaultSet = TraceryOptions()
| |- warning: static property 'defaultSet' is not concurrency-safe because non-'Sendable' type 'TraceryOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultSet' 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
38 | }
39 |
[9/18] Compiling Tracery RulesetAnalyser.swift
[10/18] Compiling Tracery TagOverrideRuleIdentifier.swift
[11/18] Compiling Tracery CyclicReferenceIdentifier.swift
/Users/admin/builder/spi-builder-workspace/Common/CyclicReferenceIdentifier.swift:211:13: warning: variable 'g' was never mutated; consider changing to 'let' constant
209 |
210 | var index = 0
211 | var g = graph.map(TarjanVertex.init)
| `- warning: variable 'g' was never mutated; consider changing to 'let' constant
212 | var s = [TarjanVertex<Vertex>]()
213 | var components = [StronglyConnectedComponent<Vertex>]()
[12/18] Compiling Tracery EmptyRulesetDetector.swift
/Users/admin/builder/spi-builder-workspace/Common/CyclicReferenceIdentifier.swift:211:13: warning: variable 'g' was never mutated; consider changing to 'let' constant
209 |
210 | var index = 0
211 | var g = graph.map(TarjanVertex.init)
| `- warning: variable 'g' was never mutated; consider changing to 'let' constant
212 | var s = [TarjanVertex<Vertex>]()
213 | var components = [StronglyConnectedComponent<Vertex>]()
[13/18] Emitting module Tracery
/Users/admin/builder/spi-builder-workspace/Common/RuleCandidateSelector.swift:18:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PickFirstContentSelector' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 |
16 | class PickFirstContentSelector : RuleCandidateSelector {
| `- note: class 'PickFirstContentSelector' does not conform to the 'Sendable' protocol
17 | private init() { }
18 | static let shared = PickFirstContentSelector()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PickFirstContentSelector' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' 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
19 | func pick(count: Int) -> Int {
20 | return 0
/Users/admin/builder/spi-builder-workspace/Common/Tracery.Logging.swift:22:23: warning: static property 'logLevel' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
20 | }
21 |
22 | public static var logLevel = LoggingLevel.errors
| |- warning: static property 'logLevel' 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 'logLevel' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logLevel' 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
23 |
24 | static func log(level: LoggingLevel, message: @autoclosure () -> String) {
/Users/admin/builder/spi-builder-workspace/Common/Tracery.swift:37:23: warning: static property 'defaultSet' is not concurrency-safe because non-'Sendable' type 'TraceryOptions' may have shared mutable state; this is an error in the Swift 6 language mode
26 |
27 |
28 | public class TraceryOptions {
| `- note: class 'TraceryOptions' does not conform to the 'Sendable' protocol
29 | public var tagStorageType = TaggingPolicy.unilevel
30 | public var isRuleAnalysisEnabled = true
:
35 |
36 | extension TraceryOptions {
37 | public static let defaultSet = TraceryOptions()
| |- warning: static property 'defaultSet' is not concurrency-safe because non-'Sendable' type 'TraceryOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultSet' 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
38 | }
39 |
/Users/admin/builder/spi-builder-workspace/Common/Tracery.swift:141:23: warning: static property 'maxStackDepth' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
139 | }
140 |
141 | public static var maxStackDepth = 256
| |- warning: static property 'maxStackDepth' 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 'maxStackDepth' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'maxStackDepth' 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
142 |
143 | fileprivate(set) var ruleEvaluationLevel: Int = 0
[14/18] Compiling Tracery Parser.swift
/Users/admin/builder/spi-builder-workspace/Common/RuleCandidateSelector.swift:18:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PickFirstContentSelector' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 |
16 | class PickFirstContentSelector : RuleCandidateSelector {
| `- note: class 'PickFirstContentSelector' does not conform to the 'Sendable' protocol
17 | private init() { }
18 | static let shared = PickFirstContentSelector()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PickFirstContentSelector' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' 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
19 | func pick(count: Int) -> Int {
20 | return 0
[15/18] Compiling Tracery RuleCandidateSelector.swift
/Users/admin/builder/spi-builder-workspace/Common/RuleCandidateSelector.swift:18:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PickFirstContentSelector' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 |
16 | class PickFirstContentSelector : RuleCandidateSelector {
| `- note: class 'PickFirstContentSelector' does not conform to the 'Sendable' protocol
17 | private init() { }
18 | static let shared = PickFirstContentSelector()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PickFirstContentSelector' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' 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
19 | func pick(count: Int) -> Int {
20 | return 0
[16/18] Compiling Tracery Lexer.swift
/Users/admin/builder/spi-builder-workspace/Common/Parser.Gen2.swift:22:13: warning: variable 'endIndex' was never mutated; consider changing to 'let' constant
20 |
21 | var index = tokens.startIndex
22 | var endIndex = tokens.endIndex
| `- warning: variable 'endIndex' was never mutated; consider changing to 'let' constant
23 |
24 | func advance() {
[17/18] Compiling Tracery Parser.Gen2.swift
/Users/admin/builder/spi-builder-workspace/Common/Parser.Gen2.swift:22:13: warning: variable 'endIndex' was never mutated; consider changing to 'let' constant
20 |
21 | var index = tokens.startIndex
22 | var endIndex = tokens.endIndex
| `- warning: variable 'endIndex' was never mutated; consider changing to 'let' constant
23 |
24 | func advance() {
[18/18] Compiling Tracery Tracery.swift
/Users/admin/builder/spi-builder-workspace/Common/Tracery.swift:37:23: warning: static property 'defaultSet' is not concurrency-safe because non-'Sendable' type 'TraceryOptions' may have shared mutable state; this is an error in the Swift 6 language mode
26 |
27 |
28 | public class TraceryOptions {
| `- note: class 'TraceryOptions' does not conform to the 'Sendable' protocol
29 | public var tagStorageType = TaggingPolicy.unilevel
30 | public var isRuleAnalysisEnabled = true
:
35 |
36 | extension TraceryOptions {
37 | public static let defaultSet = TraceryOptions()
| |- warning: static property 'defaultSet' is not concurrency-safe because non-'Sendable' type 'TraceryOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultSet' 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
38 | }
39 |
/Users/admin/builder/spi-builder-workspace/Common/Tracery.swift:141:23: warning: static property 'maxStackDepth' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
139 | }
140 |
141 | public static var maxStackDepth = 256
| |- warning: static property 'maxStackDepth' 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 'maxStackDepth' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'maxStackDepth' 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
142 |
143 | fileprivate(set) var ruleEvaluationLevel: Int = 0
Build complete! (23.14s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Tracery",
"name" : "Tracery",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "Tracery",
"targets" : [
"Tracery"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "TraceryTests",
"module_type" : "SwiftTarget",
"name" : "TraceryTests",
"path" : "CommonTesting",
"sources" : [
"CandidateProvider.swift",
"CandidateSelector.swift",
"Conditionals.swift",
"CustomProviders.swift",
"CustomSelectors.swift",
"ErrorMessages.swift",
"ExtensionCalls.swift",
"ExtensionMethod.swift",
"ExtensionModifier.swift",
"Helpers.swift",
"InlineRules.swift",
"Keywords.swift",
"Objects.swift",
"Performance.swift",
"RecursiveRules.swift",
"Rules.swift",
"Tags.swift",
"TextFormat.swift",
"TraceryioSamples.swift",
"UniformDistribution.swift",
"WeightedCandidates.swift"
],
"target_dependencies" : [
"Tracery"
],
"type" : "test"
},
{
"c99name" : "Tracery",
"module_type" : "SwiftTarget",
"name" : "Tracery",
"path" : "Common",
"product_memberships" : [
"Tracery"
],
"sources" : [
"CyclicReferenceIdentifier.swift",
"EmptyRulesetDetector.swift",
"Lexer.swift",
"Parser.Gen2.swift",
"Parser.swift",
"RuleCandidateSelector.swift",
"RuleCandidatesProvider.swift",
"RuleSelfReferenceIdentifer.swift",
"RulesetAnalyser.swift",
"TagOverrideRuleIdentifier.swift",
"TagStorage.swift",
"Tracery.Eval.swift",
"Tracery.Logging.swift",
"Tracery.Text.swift",
"Tracery.swift"
],
"type" : "library"
}
],
"tools_version" : "4.2"
}
Done.