The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of Hyphenation, reference main (c8bfaa), with Swift 6.1 for Linux on 26 Apr 2025 15:52:41 UTC.

Swift 6 data race errors: 3

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -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.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/john-mueller/Hyphenation.git
Reference: main
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/john-mueller/Hyphenation
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at c8bfaaf Merge pull request #4 from john-mueller/updates
Cloned https://github.com/john-mueller/Hyphenation.git
Revision (git rev-parse @):
c8bfaafc2122d0dc548d37a0566a1def17ab9eb4
SUCCESS checkout https://github.com/john-mueller/Hyphenation.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/john-mueller/Hyphenation.git
https://github.com/john-mueller/Hyphenation.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Hyphenation",
  "name" : "Hyphenation",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Hyphenation",
      "targets" : [
        "Hyphenation"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "HyphenationTests",
      "module_type" : "SwiftTarget",
      "name" : "HyphenationTests",
      "path" : "Tests/HyphenationTests",
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Tests/HyphenationTests/TextFiles/Clarissa.txt",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/HyphenationTests/TextFiles/Constitution.txt",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/HyphenationTests/TextFiles/GreatExpectations.txt",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/HyphenationTests/TextFiles/KingJamesBible.txt",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/HyphenationTests/TextFiles/PrideAndPrejudice.txt",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/HyphenationTests/TextFiles/TestExceptions.txt",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/HyphenationTests/TextFiles/TestPatterns.txt",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/HyphenationTests/TextFiles/WarAndPeace.txt",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "CorrectnessTests.swift",
        "PerformanceTests.swift",
        "TestHelpers/TestURLs.swift",
        "TestHelpers/XCTest+AssertThrows.swift",
        "ThreadSafetyTests.swift"
      ],
      "target_dependencies" : [
        "Hyphenation"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Hyphenation",
      "module_type" : "SwiftTarget",
      "name" : "Hyphenation",
      "path" : "Sources/Hyphenation",
      "product_memberships" : [
        "Hyphenation"
      ],
      "sources" : [
        "API/Hyphenator.swift",
        "API/PatternParsingError.swift",
        "Internal/Copyable.swift",
        "Internal/Exception.swift",
        "Internal/ExceptionDictionary.swift",
        "Internal/HyphenatorCache.swift",
        "Internal/Pattern.swift",
        "Internal/PatternDictionary.swift",
        "Internal/Token.swift",
        "Internal/TokenSequence.swift",
        "Patterns/hyph-en-us.hyp.swift",
        "Patterns/hyph-en-us.pat.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.4"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -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
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/14] Compiling Hyphenation hyph-en-us.hyp.swift
[4/15] Compiling Hyphenation TokenSequence.swift
[5/15] Compiling Hyphenation hyph-en-us.pat.swift
[6/15] Compiling Hyphenation Pattern.swift
/host/spi-builder-workspace/Sources/Hyphenation/Internal/Pattern.swift:106:31: warning: 'IndexDistance' is deprecated: All index distances are now of type Int
104 |     /// An integer that represents the number of indices from the beginning of the pattern string
105 |     ///  to the index of a potential split location.
106 |     typealias Offset = String.IndexDistance
    |                               `- warning: 'IndexDistance' is deprecated: All index distances are now of type Int
107 |     /// An integer that represents the priority with which a string should be split or not split
108 |     ///  at a given index.
/host/spi-builder-workspace/Sources/Hyphenation/Internal/PatternDictionary.swift:87:24: warning: static property 'defaultDictionary' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
85 | extension PatternDictionary {
86 |     /// A `PatternDictionary` containing the default English patterns.
87 |     private static var defaultDictionary = try! PatternDictionary(string: .defaultPatterns)
   |                        |- warning: static property 'defaultDictionary' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'defaultDictionary' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: add '@MainActor' to make static property 'defaultDictionary' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
88 |     // swiftlint:disable:previous force_try
89 |
/host/spi-builder-workspace/Sources/Hyphenation/Internal/PatternDictionary.swift:91:24: warning: static property 'defaultMaxLength' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
89 |
90 |     /// The length of the longest identifier in the default dictionary.
91 |     private static var defaultMaxLength = defaultDictionary.dictionary.keys.reduce(0) { max($0, $1.count) }
   |                        |- warning: static property 'defaultMaxLength' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'defaultMaxLength' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: add '@MainActor' to make static property 'defaultMaxLength' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
92 | }
93 |
[7/15] Compiling Hyphenation PatternDictionary.swift
/host/spi-builder-workspace/Sources/Hyphenation/Internal/Pattern.swift:106:31: warning: 'IndexDistance' is deprecated: All index distances are now of type Int
104 |     /// An integer that represents the number of indices from the beginning of the pattern string
105 |     ///  to the index of a potential split location.
106 |     typealias Offset = String.IndexDistance
    |                               `- warning: 'IndexDistance' is deprecated: All index distances are now of type Int
107 |     /// An integer that represents the priority with which a string should be split or not split
108 |     ///  at a given index.
/host/spi-builder-workspace/Sources/Hyphenation/Internal/PatternDictionary.swift:87:24: warning: static property 'defaultDictionary' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
85 | extension PatternDictionary {
86 |     /// A `PatternDictionary` containing the default English patterns.
87 |     private static var defaultDictionary = try! PatternDictionary(string: .defaultPatterns)
   |                        |- warning: static property 'defaultDictionary' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'defaultDictionary' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: add '@MainActor' to make static property 'defaultDictionary' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
88 |     // swiftlint:disable:previous force_try
89 |
/host/spi-builder-workspace/Sources/Hyphenation/Internal/PatternDictionary.swift:91:24: warning: static property 'defaultMaxLength' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
89 |
90 |     /// The length of the longest identifier in the default dictionary.
91 |     private static var defaultMaxLength = defaultDictionary.dictionary.keys.reduce(0) { max($0, $1.count) }
   |                        |- warning: static property 'defaultMaxLength' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'defaultMaxLength' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: add '@MainActor' to make static property 'defaultMaxLength' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
92 | }
93 |
[8/15] Compiling Hyphenation Token.swift
[9/15] Compiling Hyphenation ExceptionDictionary.swift
/host/spi-builder-workspace/Sources/Hyphenation/Internal/ExceptionDictionary.swift:138:24: warning: static property 'defaultDictionary' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
136 | extension ExceptionDictionary {
137 |     /// An `ExceptionDictionary` containing the default English exceptions.
138 |     private static var defaultDictionary = ExceptionDictionary(string: .defaultExceptions)
    |                        |- warning: static property 'defaultDictionary' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'defaultDictionary' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'defaultDictionary' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
139 | }
140 |
[10/15] Compiling Hyphenation HyphenatorCache.swift
/host/spi-builder-workspace/Sources/Hyphenation/Internal/ExceptionDictionary.swift:138:24: warning: static property 'defaultDictionary' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
136 | extension ExceptionDictionary {
137 |     /// An `ExceptionDictionary` containing the default English exceptions.
138 |     private static var defaultDictionary = ExceptionDictionary(string: .defaultExceptions)
    |                        |- warning: static property 'defaultDictionary' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'defaultDictionary' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'defaultDictionary' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
139 | }
140 |
[11/15] Emitting module Hyphenation
/host/spi-builder-workspace/Sources/Hyphenation/Internal/ExceptionDictionary.swift:138:24: warning: static property 'defaultDictionary' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
136 | extension ExceptionDictionary {
137 |     /// An `ExceptionDictionary` containing the default English exceptions.
138 |     private static var defaultDictionary = ExceptionDictionary(string: .defaultExceptions)
    |                        |- warning: static property 'defaultDictionary' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'defaultDictionary' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'defaultDictionary' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
139 | }
140 |
/host/spi-builder-workspace/Sources/Hyphenation/Internal/Pattern.swift:106:31: warning: 'IndexDistance' is deprecated: All index distances are now of type Int
104 |     /// An integer that represents the number of indices from the beginning of the pattern string
105 |     ///  to the index of a potential split location.
106 |     typealias Offset = String.IndexDistance
    |                               `- warning: 'IndexDistance' is deprecated: All index distances are now of type Int
107 |     /// An integer that represents the priority with which a string should be split or not split
108 |     ///  at a given index.
/host/spi-builder-workspace/Sources/Hyphenation/Internal/PatternDictionary.swift:87:24: warning: static property 'defaultDictionary' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
85 | extension PatternDictionary {
86 |     /// A `PatternDictionary` containing the default English patterns.
87 |     private static var defaultDictionary = try! PatternDictionary(string: .defaultPatterns)
   |                        |- warning: static property 'defaultDictionary' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'defaultDictionary' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: add '@MainActor' to make static property 'defaultDictionary' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
88 |     // swiftlint:disable:previous force_try
89 |
/host/spi-builder-workspace/Sources/Hyphenation/Internal/PatternDictionary.swift:91:24: warning: static property 'defaultMaxLength' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
89 |
90 |     /// The length of the longest identifier in the default dictionary.
91 |     private static var defaultMaxLength = defaultDictionary.dictionary.keys.reduce(0) { max($0, $1.count) }
   |                        |- warning: static property 'defaultMaxLength' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'defaultMaxLength' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: add '@MainActor' to make static property 'defaultMaxLength' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
92 | }
93 |
[12/15] Compiling Hyphenation Hyphenator.swift
[13/15] Compiling Hyphenation PatternParsingError.swift
[14/15] Compiling Hyphenation Copyable.swift
[15/15] Compiling Hyphenation Exception.swift
Build complete! (8.12s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Hyphenation",
  "name" : "Hyphenation",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Hyphenation",
      "targets" : [
        "Hyphenation"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "HyphenationTests",
      "module_type" : "SwiftTarget",
      "name" : "HyphenationTests",
      "path" : "Tests/HyphenationTests",
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Tests/HyphenationTests/TextFiles/Clarissa.txt",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/HyphenationTests/TextFiles/Constitution.txt",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/HyphenationTests/TextFiles/GreatExpectations.txt",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/HyphenationTests/TextFiles/KingJamesBible.txt",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/HyphenationTests/TextFiles/PrideAndPrejudice.txt",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/HyphenationTests/TextFiles/TestExceptions.txt",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/HyphenationTests/TextFiles/TestPatterns.txt",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/HyphenationTests/TextFiles/WarAndPeace.txt",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "CorrectnessTests.swift",
        "PerformanceTests.swift",
        "TestHelpers/TestURLs.swift",
        "TestHelpers/XCTest+AssertThrows.swift",
        "ThreadSafetyTests.swift"
      ],
      "target_dependencies" : [
        "Hyphenation"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Hyphenation",
      "module_type" : "SwiftTarget",
      "name" : "Hyphenation",
      "path" : "Sources/Hyphenation",
      "product_memberships" : [
        "Hyphenation"
      ],
      "sources" : [
        "API/Hyphenator.swift",
        "API/PatternParsingError.swift",
        "Internal/Copyable.swift",
        "Internal/Exception.swift",
        "Internal/ExceptionDictionary.swift",
        "Internal/HyphenatorCache.swift",
        "Internal/Pattern.swift",
        "Internal/PatternDictionary.swift",
        "Internal/Token.swift",
        "Internal/TokenSequence.swift",
        "Patterns/hyph-en-us.hyp.swift",
        "Patterns/hyph-en-us.pat.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.4"
}
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Done.