Build Information
Successful build of StringTemplate, reference master (dcf404
), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 21:40:42 UTC.
Swift 6 data race errors: 2
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/square/StringTemplate.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/square/StringTemplate
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at dcf4043 Bump version: 2.2.0
Cloned https://github.com/square/StringTemplate.git
Revision (git rev-parse @):
dcf40439eeca1e03913779f242d98dc6b498b666
SUCCESS checkout https://github.com/square/StringTemplate.git at master
========================================
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": "stringtemplate",
"name": "StringTemplate",
"url": "https://github.com/square/StringTemplate.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/StringTemplate",
"dependencies": [
]
}
]
}
Fetching https://github.com/square/StringTemplate.git
[1/90] Fetching stringtemplate
Fetched https://github.com/square/StringTemplate.git from cache (0.68s)
Creating working copy for https://github.com/square/StringTemplate.git
Working copy of https://github.com/square/StringTemplate.git resolved at master (dcf4043)
warning: '.resolve-product-dependencies': dependency 'stringtemplate' 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/square/StringTemplate.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/6] Compiling StringTemplate String+CharacterSet.swift
[4/6] Compiling StringTemplate CharacterSet+Character.swift
[5/6] Emitting module StringTemplate
/Users/admin/builder/spi-builder-workspace/Sources/String+Template.swift:66:31: warning: static property 'allowPartial' is not concurrency-safe because non-'Sendable' type 'String.Template.Options' may have shared mutable state; this is an error in the Swift 6 language mode
44 | Options for how to apply the template
45 | */
46 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
47 | public let rawValue: Int
48 |
:
64 | ```
65 | */
66 | public static let allowPartial = Options(rawValue: 1)
| |- warning: static property 'allowPartial' is not concurrency-safe because non-'Sendable' type 'String.Template.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'allowPartial' 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
67 |
68 | /**
/Users/admin/builder/spi-builder-workspace/Sources/String+Template.swift:78:31: warning: static property 'allowOverflow' is not concurrency-safe because non-'Sendable' type 'String.Template.Options' may have shared mutable state; this is an error in the Swift 6 language mode
44 | Options for how to apply the template
45 | */
46 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
47 | public let rawValue: Int
48 |
:
76 | ```
77 | */
78 | public static let allowOverflow = Options(rawValue: 2)
| |- warning: static property 'allowOverflow' is not concurrency-safe because non-'Sendable' type 'String.Template.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'allowOverflow' 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
79 | }
80 |
[6/6] Compiling StringTemplate String+Template.swift
/Users/admin/builder/spi-builder-workspace/Sources/String+Template.swift:66:31: warning: static property 'allowPartial' is not concurrency-safe because non-'Sendable' type 'String.Template.Options' may have shared mutable state; this is an error in the Swift 6 language mode
44 | Options for how to apply the template
45 | */
46 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
47 | public let rawValue: Int
48 |
:
64 | ```
65 | */
66 | public static let allowPartial = Options(rawValue: 1)
| |- warning: static property 'allowPartial' is not concurrency-safe because non-'Sendable' type 'String.Template.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'allowPartial' 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
67 |
68 | /**
/Users/admin/builder/spi-builder-workspace/Sources/String+Template.swift:78:31: warning: static property 'allowOverflow' is not concurrency-safe because non-'Sendable' type 'String.Template.Options' may have shared mutable state; this is an error in the Swift 6 language mode
44 | Options for how to apply the template
45 | */
46 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
47 | public let rawValue: Int
48 |
:
76 | ```
77 | */
78 | public static let allowOverflow = Options(rawValue: 2)
| |- warning: static property 'allowOverflow' is not concurrency-safe because non-'Sendable' type 'String.Template.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'allowOverflow' 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
79 | }
80 |
Build complete! (6.92s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "StringTemplate",
"name" : "StringTemplate",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "11.0"
},
{
"name" : "macos",
"version" : "10.13"
},
{
"name" : "tvos",
"version" : "11.0"
},
{
"name" : "watchos",
"version" : "4.0"
}
],
"products" : [
{
"name" : "StringTemplate",
"targets" : [
"StringTemplate"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "StringTemplateTests",
"module_type" : "SwiftTarget",
"name" : "StringTemplateTests",
"path" : "Tests",
"sources" : [
"StringTemplateTests.swift"
],
"target_dependencies" : [
"StringTemplate"
],
"type" : "test"
},
{
"c99name" : "StringTemplate",
"module_type" : "SwiftTarget",
"name" : "StringTemplate",
"path" : "Sources",
"product_memberships" : [
"StringTemplate"
],
"sources" : [
"CharacterSet+Character.swift",
"String+CharacterSet.swift",
"String+Template.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Done.