Build Information
Successful build of Hyphenation, reference v0.2.0 (c8bfaa
), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 22:48:53 UTC.
Swift 6 data race errors: 3
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/john-mueller/Hyphenation.git
Reference: v0.2.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/john-mueller/Hyphenation
* tag v0.2.0 -> FETCH_HEAD
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 v0.2.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "hyphenation",
"name": "Hyphenation",
"url": "https://github.com/john-mueller/Hyphenation.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Hyphenation",
"dependencies": [
]
}
]
}
Fetching https://github.com/john-mueller/Hyphenation.git
[1/156] Fetching hyphenation
Fetched https://github.com/john-mueller/Hyphenation.git from cache (1.41s)
Creating working copy for https://github.com/john-mueller/Hyphenation.git
Working copy of https://github.com/john-mueller/Hyphenation.git resolved at v0.2.0 (c8bfaaf)
warning: '.resolve-product-dependencies': dependency 'hyphenation' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/john-mueller/Hyphenation.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun 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--7754E27361AE5C74.txt
[3/14] Compiling Hyphenation TokenSequence.swift
[4/14] Compiling Hyphenation hyph-en-us.hyp.swift
[5/15] Compiling Hyphenation hyph-en-us.pat.swift
[6/15] Compiling Hyphenation Token.swift
[7/15] Compiling Hyphenation PatternDictionary.swift
/Users/admin/builder/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: annotate 'defaultDictionary' 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
88 | // swiftlint:disable:previous force_try
89 |
/Users/admin/builder/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: annotate 'defaultMaxLength' 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
92 | }
93 |
[8/15] Compiling Hyphenation Pattern.swift
/Users/admin/builder/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.
[9/15] Compiling Hyphenation HyphenatorCache.swift
[10/15] Compiling Hyphenation ExceptionDictionary.swift
/Users/admin/builder/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: annotate 'defaultDictionary' 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
139 | }
140 |
[11/15] Emitting module Hyphenation
/Users/admin/builder/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: annotate 'defaultDictionary' 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
139 | }
140 |
/Users/admin/builder/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.
/Users/admin/builder/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: annotate 'defaultDictionary' 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
88 | // swiftlint:disable:previous force_try
89 |
/Users/admin/builder/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: annotate 'defaultMaxLength' 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
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! (11.15s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Hyphenation",
"name" : "Hyphenation",
"path" : "/Users/admin/builder/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" : "/Users/admin/builder/spi-builder-workspace/Tests/HyphenationTests/TextFiles/Clarissa.txt",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/HyphenationTests/TextFiles/Constitution.txt",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/HyphenationTests/TextFiles/GreatExpectations.txt",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/HyphenationTests/TextFiles/KingJamesBible.txt",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/HyphenationTests/TextFiles/PrideAndPrejudice.txt",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/HyphenationTests/TextFiles/TestExceptions.txt",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/HyphenationTests/TextFiles/TestPatterns.txt",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/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"
}
Done.