Build Information
Successful build of HTMLParserBuilder, reference 2.0.0 (2ecadd
), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 06:20:52 UTC.
Swift 6 data race errors: 1
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/danny1113/html-parser-builder.git
Reference: 2.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/danny1113/html-parser-builder
* tag 2.0.0 -> FETCH_HEAD
HEAD is now at 2ecadd3 Merge pull request #2 from danny1113/v2.0
Cloned https://github.com/danny1113/html-parser-builder.git
Revision (git rev-parse @):
2ecadd3c29d076463babdc4115e04a23ca6c4e33
SUCCESS checkout https://github.com/danny1113/html-parser-builder.git at 2.0.0
Fetching https://github.com/scinfu/SwiftSoup.git
[1/3184] Fetching swiftsoup
Fetched https://github.com/scinfu/SwiftSoup.git from cache (1.18s)
Computing version for https://github.com/scinfu/SwiftSoup.git
Computed https://github.com/scinfu/SwiftSoup.git at 2.7.2 (3.14s)
Creating working copy for https://github.com/scinfu/SwiftSoup.git
Working copy of https://github.com/scinfu/SwiftSoup.git resolved at 2.7.2
========================================
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": "html-parser-builder",
"name": "HTMLParserBuilder",
"url": "https://github.com/danny1113/html-parser-builder.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/html-parser-builder",
"dependencies": [
]
}
]
}
Fetching https://github.com/danny1113/html-parser-builder.git
[2/147] Fetching html-parser-builder
Fetched https://github.com/danny1113/html-parser-builder.git from cache (0.71s)
Creating working copy for https://github.com/danny1113/html-parser-builder.git
Working copy of https://github.com/danny1113/html-parser-builder.git resolved at 2.0.0 (2ecadd3)
warning: '.resolve-product-dependencies': dependency 'html-parser-builder' 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/danny1113/html-parser-builder.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/17] Compiling HTMLParserBuilder Optional+orThrow.swift
[4/18] Compiling HTMLParserBuilder TryCapture.swift
[5/18] Compiling HTMLParserBuilder HTMLParseError.swift
[6/18] Compiling HTMLParserBuilder HTMLParserBuilder.swift
[7/18] Compiling HTMLParserBuilder LateInit.swift
[8/18] Compiling HTMLParserBuilder Local.swift
[9/18] Compiling HTMLParserBuilder HTMLComponentBuilder.swift
/Users/admin/builder/spi-builder-workspace/Sources/HTMLParserBuilder/HTMLDocodeImpl.swift:147:30: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
145 | switch node {
146 | case .concatenation(let array):
147 | return try await withThrowingTaskGroup(of: (Int, [Any]).self) { (group) -> [Any] in
| `- warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
148 | var result = [Any]()
149 | var orderTable = [Int: [Any]]()
/Users/admin/builder/spi-builder-workspace/Sources/HTMLParserBuilder/HTMLDocodeImpl.swift:147:75: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
145 | switch node {
146 | case .concatenation(let array):
147 | return try await withThrowingTaskGroup(of: (Int, [Any]).self) { (group) -> [Any] in
| `- warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
148 | var result = [Any]()
149 | var orderTable = [Int: [Any]]()
/Users/admin/builder/spi-builder-workspace/Sources/HTMLParserBuilder/HTMLDocodeImpl.swift:155:27: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
153 |
154 | for (i, node) in array.enumerated() {
155 | group.addTask {
| `- warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
156 | let result = try await parseAsync(node, element: element)
157 | return (i, result)
/Users/admin/builder/spi-builder-workspace/Sources/HTMLParserBuilder/HTMLDocodeImpl.swift:155:35: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
153 |
154 | for (i, node) in array.enumerated() {
155 | group.addTask {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
156 | let result = try await parseAsync(node, element: element)
| `- note: closure captures 'element' which is accessible to code in the current task
157 | return (i, result)
158 | }
[10/18] Compiling HTMLParserBuilder HTMLDocodeImpl.swift
/Users/admin/builder/spi-builder-workspace/Sources/HTMLParserBuilder/HTMLDocodeImpl.swift:147:30: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
145 | switch node {
146 | case .concatenation(let array):
147 | return try await withThrowingTaskGroup(of: (Int, [Any]).self) { (group) -> [Any] in
| `- warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
148 | var result = [Any]()
149 | var orderTable = [Int: [Any]]()
/Users/admin/builder/spi-builder-workspace/Sources/HTMLParserBuilder/HTMLDocodeImpl.swift:147:75: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
145 | switch node {
146 | case .concatenation(let array):
147 | return try await withThrowingTaskGroup(of: (Int, [Any]).self) { (group) -> [Any] in
| `- warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
148 | var result = [Any]()
149 | var orderTable = [Int: [Any]]()
/Users/admin/builder/spi-builder-workspace/Sources/HTMLParserBuilder/HTMLDocodeImpl.swift:155:27: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
153 |
154 | for (i, node) in array.enumerated() {
155 | group.addTask {
| `- warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
156 | let result = try await parseAsync(node, element: element)
157 | return (i, result)
/Users/admin/builder/spi-builder-workspace/Sources/HTMLParserBuilder/HTMLDocodeImpl.swift:155:35: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
153 |
154 | for (i, node) in array.enumerated() {
155 | group.addTask {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
156 | let result = try await parseAsync(node, element: element)
| `- note: closure captures 'element' which is accessible to code in the current task
157 | return (i, result)
158 | }
[11/18] Emitting module HTMLParserBuilder
/Users/admin/builder/spi-builder-workspace/Sources/HTMLParserBuilder/CaptureTransform.swift:27:9: warning: stored property 'closure' of 'Sendable'-conforming struct 'CaptureTransform' has non-sendable type 'CaptureTransform.Closure'; this is an error in the Swift 6 language mode
13 | struct CaptureTransform: Sendable, Hashable, CustomStringConvertible {
14 |
15 | enum Closure {
| `- note: consider making enum 'Closure' conform to the 'Sendable' protocol
16 | /// A failable transform.
17 | case failable((Any) throws -> Any?)
:
25 | let argumentType: Any.Type
26 | let resultType: Any.Type
27 | let closure: Closure
| `- warning: stored property 'closure' of 'Sendable'-conforming struct 'CaptureTransform' has non-sendable type 'CaptureTransform.Closure'; this is an error in the Swift 6 language mode
28 |
29 | init(argumentType: Any.Type, resultType: Any.Type, closure: Closure) {
[12/18] Compiling HTMLParserBuilder CaptureTransform.swift
/Users/admin/builder/spi-builder-workspace/Sources/HTMLParserBuilder/CaptureTransform.swift:27:9: warning: stored property 'closure' of 'Sendable'-conforming struct 'CaptureTransform' has non-sendable type 'CaptureTransform.Closure'; this is an error in the Swift 6 language mode
13 | struct CaptureTransform: Sendable, Hashable, CustomStringConvertible {
14 |
15 | enum Closure {
| `- note: consider making enum 'Closure' conform to the 'Sendable' protocol
16 | /// A failable transform.
17 | case failable((Any) throws -> Any?)
:
25 | let argumentType: Any.Type
26 | let resultType: Any.Type
27 | let closure: Closure
| `- warning: stored property 'closure' of 'Sendable'-conforming struct 'CaptureTransform' has non-sendable type 'CaptureTransform.Closure'; this is an error in the Swift 6 language mode
28 |
29 | init(argumentType: Any.Type, resultType: Any.Type, closure: Closure) {
[13/18] Compiling HTMLParserBuilder DSLTree.swift
/Users/admin/builder/spi-builder-workspace/Sources/HTMLParserBuilder/CaptureTransform.swift:27:9: warning: stored property 'closure' of 'Sendable'-conforming struct 'CaptureTransform' has non-sendable type 'CaptureTransform.Closure'; this is an error in the Swift 6 language mode
13 | struct CaptureTransform: Sendable, Hashable, CustomStringConvertible {
14 |
15 | enum Closure {
| `- note: consider making enum 'Closure' conform to the 'Sendable' protocol
16 | /// A failable transform.
17 | case failable((Any) throws -> Any?)
:
25 | let argumentType: Any.Type
26 | let resultType: Any.Type
27 | let closure: Closure
| `- warning: stored property 'closure' of 'Sendable'-conforming struct 'CaptureTransform' has non-sendable type 'CaptureTransform.Closure'; this is an error in the Swift 6 language mode
28 |
29 | init(argumentType: Any.Type, resultType: Any.Type, closure: Closure) {
[14/18] Compiling HTMLParserBuilder HTML.swift
[15/18] Compiling HTMLParserBuilder HTMLComponent.swift
[16/18] Compiling HTMLParserBuilder Capture.swift
[17/18] Compiling HTMLParserBuilder CaptureAll.swift
[18/18] Compiling HTMLParserBuilder TypeConstruction.swift
Build complete! (6.90s)
warning: 'swiftsoup': found 4 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/InfoMac.plist
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/InfoWatchOS.plist
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/InfotvOS.plist
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/Info.plist
Build complete.
{
"dependencies" : [
{
"identity" : "swiftsoup",
"requirement" : {
"range" : [
{
"lower_bound" : "2.7.2",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/scinfu/SwiftSoup.git"
}
],
"manifest_display_name" : "HTMLParserBuilder",
"name" : "HTMLParserBuilder",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "6.0"
},
{
"name" : "visionos",
"version" : "1.0"
}
],
"products" : [
{
"name" : "HTMLParserBuilder",
"targets" : [
"HTMLParserBuilder"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "HTMLParserBuilderTests",
"module_type" : "SwiftTarget",
"name" : "HTMLParserBuilderTests",
"path" : "Tests/HTMLParserBuilderTests",
"product_dependencies" : [
"SwiftSoup"
],
"sources" : [
"HTMLParserBuilderTests.swift",
"SwiftSoup+HTMLParserBuilder.swift"
],
"target_dependencies" : [
"HTMLParserBuilder"
],
"type" : "test"
},
{
"c99name" : "HTMLParserBuilder",
"module_type" : "SwiftTarget",
"name" : "HTMLParserBuilder",
"path" : "Sources/HTMLParserBuilder",
"product_memberships" : [
"HTMLParserBuilder"
],
"sources" : [
"Capture.swift",
"CaptureAll.swift",
"CaptureTransform.swift",
"DSLTree.swift",
"HTML.swift",
"HTMLComponent.swift",
"HTMLComponentBuilder.swift",
"HTMLDocodeImpl.swift",
"HTMLParseError.swift",
"HTMLParserBuilder.swift",
"LateInit.swift",
"Local.swift",
"Optional+orThrow.swift",
"TryCapture.swift",
"TypeConstruction.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.