The Swift Package Index logo.Swift Package Index

Build Information

Successful build of Tracery, reference 0.0.2 (2714ea), with Swift 6.1 for Wasm on 27 May 2025 20:26:34 UTC.

Swift 6 data race errors: 4

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/BenziAhamed/Tracery.git
Reference: 0.0.2
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/BenziAhamed/Tracery
 * tag               0.0.2      -> FETCH_HEAD
HEAD is now at 2714eab Add Swift Package Manager and Linux support (#8)
Cloned https://github.com/BenziAhamed/Tracery.git
Revision (git rev-parse @):
2714eabbbd287fe7969314d5a915c61c2d549ef9
SUCCESS checkout https://github.com/BenziAhamed/Tracery.git at 0.0.2
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/BenziAhamed/Tracery.git
https://github.com/BenziAhamed/Tracery.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Tracery",
  "name" : "Tracery",
  "path" : "/host/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",
        "Keywords.swift",
        "Objects.swift",
        "Performance.swift",
        "RecursiveRules.swift",
        "Rules.swift",
        "Tags.swift",
        "TextFormat.swift",
        "TraceryioSamples.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"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/17] Compiling Tracery RulesetAnalyser.swift
[4/17] Compiling Tracery TagOverrideRuleIdentifier.swift
[5/17] Compiling Tracery TagStorage.swift
[6/17] Compiling Tracery Tracery.Eval.swift
[7/17] Compiling Tracery Lexer.swift
/host/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() {
[8/17] Compiling Tracery Parser.Gen2.swift
/host/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() {
[9/17] Compiling Tracery Parser.swift
/host/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: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 19 |     func pick(count: Int) -> Int {
 20 |         return 0
[10/17] Compiling Tracery RuleCandidateSelector.swift
/host/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: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 19 |     func pick(count: Int) -> Int {
 20 |         return 0
[11/18] Compiling Tracery RuleCandidatesProvider.swift
[12/18] Compiling Tracery RuleSelfReferenceIdentifer.swift
[13/18] Compiling Tracery Tracery.Logging.swift
/host/spi-builder-workspace/Common/Tracery.Logging.swift:22:23: warning: static property 'logLevel' is not concurrency-safe because it is nonisolated 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 nonisolated 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: add '@MainActor' to make static property 'logLevel' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 |     static func log(level: LoggingLevel, message: @autoclosure () -> String) {
[14/18] Compiling Tracery Tracery.Text.swift
/host/spi-builder-workspace/Common/Tracery.Logging.swift:22:23: warning: static property 'logLevel' is not concurrency-safe because it is nonisolated 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 nonisolated 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: add '@MainActor' to make static property 'logLevel' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 |     static func log(level: LoggingLevel, message: @autoclosure () -> String) {
[15/18] Compiling Tracery CyclicReferenceIdentifier.swift
/host/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>]()
[16/18] Compiling Tracery EmptyRulesetDetector.swift
/host/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>]()
[17/18] Emitting module Tracery
/host/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: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 19 |     func pick(count: Int) -> Int {
 20 |         return 0
/host/spi-builder-workspace/Common/Tracery.Logging.swift:22:23: warning: static property 'logLevel' is not concurrency-safe because it is nonisolated 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 nonisolated 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: add '@MainActor' to make static property 'logLevel' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 |     static func log(level: LoggingLevel, message: @autoclosure () -> String) {
/host/spi-builder-workspace/Common/Tracery.swift:36: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
    :
 34 |
 35 | extension TraceryOptions {
 36 |     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: add '@MainActor' to make static property 'defaultSet' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 37 | }
 38 |
/host/spi-builder-workspace/Common/Tracery.swift:139:23: warning: static property 'maxStackDepth' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
137 |     }
138 |
139 |     public static var maxStackDepth = 256
    |                       |- warning: static property 'maxStackDepth' is not concurrency-safe because it is nonisolated 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: add '@MainActor' to make static property 'maxStackDepth' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
140 |
141 |     fileprivate(set) var ruleEvaluationLevel: Int = 0
[18/18] Compiling Tracery Tracery.swift
/host/spi-builder-workspace/Common/Tracery.swift:36: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
    :
 34 |
 35 | extension TraceryOptions {
 36 |     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: add '@MainActor' to make static property 'defaultSet' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 37 | }
 38 |
/host/spi-builder-workspace/Common/Tracery.swift:139:23: warning: static property 'maxStackDepth' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
137 |     }
138 |
139 |     public static var maxStackDepth = 256
    |                       |- warning: static property 'maxStackDepth' is not concurrency-safe because it is nonisolated 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: add '@MainActor' to make static property 'maxStackDepth' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
140 |
141 |     fileprivate(set) var ruleEvaluationLevel: Int = 0
Build complete! (8.82s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Tracery",
  "name" : "Tracery",
  "path" : "/host/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",
        "Keywords.swift",
        "Objects.swift",
        "Performance.swift",
        "RecursiveRules.swift",
        "Rules.swift",
        "Tags.swift",
        "TextFormat.swift",
        "TraceryioSamples.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"
}
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Done.