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 HTMLParserBuilder, reference 2.0.0 (2ecadd), with Swift 6.0 for Linux on 5 Nov 2024 06:14:29 UTC.

Swift 6 data race errors: 1

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

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 /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/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
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/danny1113/html-parser-builder.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/scinfu/SwiftSoup.git
[1/3184] Fetching swiftsoup
Fetched https://github.com/scinfu/SwiftSoup.git from cache (0.38s)
Computing version for https://github.com/scinfu/SwiftSoup.git
Computed https://github.com/scinfu/SwiftSoup.git at 2.7.5 (3.54s)
Creating working copy for https://github.com/scinfu/SwiftSoup.git
Working copy of https://github.com/scinfu/SwiftSoup.git resolved at 2.7.5
warning: 'swiftsoup': found 4 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/InfoMac.plist
    /host/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/Info.plist
    /host/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/InfotvOS.plist
    /host/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/InfoWatchOS.plist
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/17] Compiling HTMLParserBuilder HTMLParseError.swift
[4/17] Compiling HTMLParserBuilder HTMLParserBuilder.swift
[5/17] Emitting module HTMLParserBuilder
/host/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) {
[6/18] Compiling HTMLParserBuilder Capture.swift
[7/18] Compiling HTMLParserBuilder CaptureAll.swift
[8/18] Compiling HTMLParserBuilder CaptureTransform.swift
/host/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) {
[9/18] Compiling HTMLParserBuilder DSLTree.swift
/host/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) {
[10/18] Compiling HTMLParserBuilder HTMLComponentBuilder.swift
/host/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]]()
/host/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]]()
/host/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)
/host/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] Compiling HTMLParserBuilder HTMLDocodeImpl.swift
/host/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]]()
/host/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]]()
/host/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)
/host/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 |                     }
[12/18] Compiling HTMLParserBuilder HTML.swift
[13/18] Compiling HTMLParserBuilder HTMLComponent.swift
[14/18] Compiling HTMLParserBuilder LateInit.swift
[15/18] Compiling HTMLParserBuilder Local.swift
[16/18] Compiling HTMLParserBuilder Optional+orThrow.swift
[17/18] Compiling HTMLParserBuilder TryCapture.swift
[18/18] Compiling HTMLParserBuilder TypeConstruction.swift
Build complete! (17.43s)
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" : "/host/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"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.