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 macOS (SPM) on 16 Sep 2024 06:11:36 UTC.

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.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.53.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
========================================
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.0.0-Release.Candidate.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-117DEE11B69C53C9.txt
[3/17] Compiling HTMLParserBuilder HTMLParseError.swift
[4/17] Compiling HTMLParserBuilder HTMLParserBuilder.swift
[5/18] Compiling HTMLParserBuilder Capture.swift
[6/18] Compiling HTMLParserBuilder CaptureAll.swift
[7/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) {
[8/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) {
[9/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) {
[10/18] Compiling HTMLParserBuilder HTML.swift
[11/18] Compiling HTMLParserBuilder HTMLComponent.swift
[12/18] Compiling HTMLParserBuilder Optional+orThrow.swift
[13/18] Compiling HTMLParserBuilder Local.swift
[14/18] Compiling HTMLParserBuilder LateInit.swift
[15/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:27: warning: task-isolated value of type '() async throws -> (Int, [Any])' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
153 |
154 |                 for (i, node) in array.enumerated() {
155 |                     group.addTask {
    |                           `- warning: task-isolated value of type '() async throws -> (Int, [Any])' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
156 |                         let result = try await parseAsync(node, element: element)
157 |                         return (i, result)
[16/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:27: warning: task-isolated value of type '() async throws -> (Int, [Any])' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
153 |
154 |                 for (i, node) in array.enumerated() {
155 |                     group.addTask {
    |                           `- warning: task-isolated value of type '() async throws -> (Int, [Any])' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
156 |                         let result = try await parseAsync(node, element: element)
157 |                         return (i, result)
[17/18] Compiling HTMLParserBuilder TryCapture.swift
[18/18] Compiling HTMLParserBuilder TypeConstruction.swift
Build complete! (9.87s)
Fetching https://github.com/scinfu/SwiftSoup.git
[1/3176] Fetching swiftsoup
Fetched https://github.com/scinfu/SwiftSoup.git from cache (1.13s)
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
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/InfoWatchOS.plist
    /Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSoup/Sources/InfoMac.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.