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 SwiftSoup, reference 2.8.7 (bba848), with Swift 5.10 for Linux on 13 Mar 2025 13:17:00 UTC.

Swift 6 data race errors: 0

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/scinfu/SwiftSoup.git
Reference: 2.8.7
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/scinfu/SwiftSoup
 * tag               2.8.7      -> FETCH_HEAD
HEAD is now at bba848d Merge pull request #306 from lake-of-fire/master
Cloned https://github.com/scinfu/SwiftSoup.git
Revision (git rev-parse @):
bba848db50462894e7fc0891d018dfecad4ef11e
SUCCESS checkout https://github.com/scinfu/SwiftSoup.git at 2.8.7
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $PWD
https://github.com/scinfu/SwiftSoup.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-5.10-latest: Pulling from finestructure/spi-images
Digest: sha256:8b386ca1081dd55ec0944429387f246ccb59ef99c9c8cbb418b0abd78460b38f
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.10-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/56] Compiling SwiftSoup HtmlTreeBuilderState.swift
[4/56] Compiling SwiftSoup HttpStatusException.swift
[5/56] Compiling SwiftSoup Mutex.swift
[6/56] Compiling SwiftSoup Node.swift
[7/56] Compiling SwiftSoup NodeTraversor.swift
[8/56] Compiling SwiftSoup NodeVisitor.swift
[9/56] Compiling SwiftSoup OrderedSet.swift
[10/56] Compiling SwiftSoup ParseError.swift
[11/63] Emitting module SwiftSoup
[12/63] Compiling SwiftSoup ArrayExt.swift
[13/63] Compiling SwiftSoup Attribute.swift
[14/63] Compiling SwiftSoup Attributes.swift
[15/63] Compiling SwiftSoup BinarySearch.swift
[16/63] Compiling SwiftSoup BooleanAttribute.swift
[17/63] Compiling SwiftSoup CharacterExt.swift
[18/63] Compiling SwiftSoup CharacterReader.swift
[19/63] Compiling SwiftSoup Cleaner.swift
[20/63] Compiling SwiftSoup Tag.swift
/host/spi-builder-workspace/Sources/Token.swift:348:64: warning: left side of nil coalescing operator '??' has non-optional type 'String', so the right side is never used
            return String(decoding: getData()!, as: UTF8.self) ?? ""
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~

[21/63] Compiling SwiftSoup TextNode.swift
/host/spi-builder-workspace/Sources/Token.swift:348:64: warning: left side of nil coalescing operator '??' has non-optional type 'String', so the right side is never used
            return String(decoding: getData()!, as: UTF8.self) ?? ""
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~

[22/63] Compiling SwiftSoup Token.swift
/host/spi-builder-workspace/Sources/Token.swift:348:64: warning: left side of nil coalescing operator '??' has non-optional type 'String', so the right side is never used
            return String(decoding: getData()!, as: UTF8.self) ?? ""
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~

[23/63] Compiling SwiftSoup TokenQueue.swift
/host/spi-builder-workspace/Sources/Token.swift:348:64: warning: left side of nil coalescing operator '??' has non-optional type 'String', so the right side is never used
            return String(decoding: getData()!, as: UTF8.self) ?? ""
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~

[24/63] Compiling SwiftSoup Tokeniser.swift
/host/spi-builder-workspace/Sources/Token.swift:348:64: warning: left side of nil coalescing operator '??' has non-optional type 'String', so the right side is never used
            return String(decoding: getData()!, as: UTF8.self) ?? ""
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~

[25/63] Compiling SwiftSoup TokeniserState.swift
/host/spi-builder-workspace/Sources/Token.swift:348:64: warning: left side of nil coalescing operator '??' has non-optional type 'String', so the right side is never used
            return String(decoding: getData()!, as: UTF8.self) ?? ""
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~

[26/63] Compiling SwiftSoup TreeBuilder.swift
/host/spi-builder-workspace/Sources/Token.swift:348:64: warning: left side of nil coalescing operator '??' has non-optional type 'String', so the right side is never used
            return String(decoding: getData()!, as: UTF8.self) ?? ""
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~

[27/63] Compiling SwiftSoup ParseErrorList.swift
[28/63] Compiling SwiftSoup ParseSettings.swift
[29/63] Compiling SwiftSoup Parser.swift
[30/63] Compiling SwiftSoup ParsingStrings.swift
[31/63] Compiling SwiftSoup Pattern.swift
[32/63] Compiling SwiftSoup QueryParser.swift
[33/63] Compiling SwiftSoup SerializationException.swift
[34/63] Compiling SwiftSoup SimpleDictionary.swift
[35/63] Compiling SwiftSoup StreamReader.swift
[36/63] Compiling SwiftSoup String.swift
[37/63] Compiling SwiftSoup StringBuilder.swift
[38/63] Compiling SwiftSoup StringUtil.swift
[39/63] Compiling SwiftSoup StructuralEvaluator.swift
[40/63] Compiling SwiftSoup SwiftSoup.swift
[41/63] Compiling SwiftSoup DocumentType.swift
/host/spi-builder-workspace/Sources/Element.swift:1177:13: warning: variable 'classNames' was never mutated; consider changing to 'let' constant
        var classNames = OrderedSet<String>()
        ~~~ ^
        let
[42/63] Compiling SwiftSoup Element.swift
/host/spi-builder-workspace/Sources/Element.swift:1177:13: warning: variable 'classNames' was never mutated; consider changing to 'let' constant
        var classNames = OrderedSet<String>()
        ~~~ ^
        let
[43/63] Compiling SwiftSoup Elements.swift
/host/spi-builder-workspace/Sources/Element.swift:1177:13: warning: variable 'classNames' was never mutated; consider changing to 'let' constant
        var classNames = OrderedSet<String>()
        ~~~ ^
        let
[44/63] Compiling SwiftSoup Entities.swift
/host/spi-builder-workspace/Sources/Element.swift:1177:13: warning: variable 'classNames' was never mutated; consider changing to 'let' constant
        var classNames = OrderedSet<String>()
        ~~~ ^
        let
[45/63] Compiling SwiftSoup Evaluator.swift
/host/spi-builder-workspace/Sources/Element.swift:1177:13: warning: variable 'classNames' was never mutated; consider changing to 'let' constant
        var classNames = OrderedSet<String>()
        ~~~ ^
        let
[46/63] Compiling SwiftSoup Exception.swift
/host/spi-builder-workspace/Sources/Element.swift:1177:13: warning: variable 'classNames' was never mutated; consider changing to 'let' constant
        var classNames = OrderedSet<String>()
        ~~~ ^
        let
[47/63] Compiling SwiftSoup FormElement.swift
/host/spi-builder-workspace/Sources/Element.swift:1177:13: warning: variable 'classNames' was never mutated; consider changing to 'let' constant
        var classNames = OrderedSet<String>()
        ~~~ ^
        let
[48/63] Compiling SwiftSoup HtmlTreeBuilder.swift
/host/spi-builder-workspace/Sources/Element.swift:1177:13: warning: variable 'classNames' was never mutated; consider changing to 'let' constant
        var classNames = OrderedSet<String>()
        ~~~ ^
        let
[49/63] Compiling SwiftSoup Collector.swift
[50/63] Compiling SwiftSoup CombiningEvaluator.swift
[51/63] Compiling SwiftSoup Comment.swift
[52/63] Compiling SwiftSoup Connection.swift
[53/63] Compiling SwiftSoup CssSelector.swift
[54/63] Compiling SwiftSoup DataNode.swift
[55/63] Compiling SwiftSoup DataUtil.swift
[56/63] Compiling SwiftSoup Document.swift
[57/63] Compiling SwiftSoup UTF8Arrays.swift
[58/63] Compiling SwiftSoup UnfairLock.swift
[59/63] Compiling SwiftSoup UnicodeScalar.swift
[60/63] Compiling SwiftSoup Validate.swift
[61/63] Compiling SwiftSoup Whitelist.swift
[62/63] Compiling SwiftSoup XmlDeclaration.swift
[63/63] Compiling SwiftSoup XmlTreeBuilder.swift
Build complete! (11.75s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftSoup",
  "name" : "SwiftSoup",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftSoup",
      "targets" : [
        "SwiftSoup"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftSoupTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftSoupTests",
      "path" : "Tests/SwiftSoupTests",
      "sources" : [
        "AttributeParseTest.swift",
        "AttributeTest.swift",
        "AttributesTest.swift",
        "BuildEntities.swift",
        "CharacterReaderTest.swift",
        "CleanerTest.swift",
        "CssTest.swift",
        "DocumentTest.swift",
        "DocumentTypeTest.swift",
        "ElementTest.swift",
        "ElementsTest.swift",
        "EntitiesTest.swift",
        "FormElementTest.swift",
        "HtmlParserTest.swift",
        "NodeTest.swift",
        "NodeTraversorTest.swift",
        "ParseSettingsTest.swift",
        "QueryParserTest.swift",
        "SelectorTest.swift",
        "StringUtilTest.swift",
        "TagTest.swift",
        "TextNodeTest.swift",
        "TextUtil.swift",
        "TokenQueueTest.swift",
        "XmlTreeBuilderTest.swift"
      ],
      "target_dependencies" : [
        "SwiftSoup"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftSoup",
      "module_type" : "SwiftTarget",
      "name" : "SwiftSoup",
      "path" : "Sources",
      "product_memberships" : [
        "SwiftSoup"
      ],
      "sources" : [
        "ArrayExt.swift",
        "Attribute.swift",
        "Attributes.swift",
        "BinarySearch.swift",
        "BooleanAttribute.swift",
        "CharacterExt.swift",
        "CharacterReader.swift",
        "Cleaner.swift",
        "Collector.swift",
        "CombiningEvaluator.swift",
        "Comment.swift",
        "Connection.swift",
        "CssSelector.swift",
        "DataNode.swift",
        "DataUtil.swift",
        "Document.swift",
        "DocumentType.swift",
        "Element.swift",
        "Elements.swift",
        "Entities.swift",
        "Evaluator.swift",
        "Exception.swift",
        "FormElement.swift",
        "HtmlTreeBuilder.swift",
        "HtmlTreeBuilderState.swift",
        "HttpStatusException.swift",
        "Mutex.swift",
        "Node.swift",
        "NodeTraversor.swift",
        "NodeVisitor.swift",
        "OrderedSet.swift",
        "ParseError.swift",
        "ParseErrorList.swift",
        "ParseSettings.swift",
        "Parser.swift",
        "ParsingStrings.swift",
        "Pattern.swift",
        "QueryParser.swift",
        "SerializationException.swift",
        "SimpleDictionary.swift",
        "StreamReader.swift",
        "String.swift",
        "StringBuilder.swift",
        "StringUtil.swift",
        "StructuralEvaluator.swift",
        "SwiftSoup.swift",
        "Tag.swift",
        "TextNode.swift",
        "Token.swift",
        "TokenQueue.swift",
        "Tokeniser.swift",
        "TokeniserState.swift",
        "TreeBuilder.swift",
        "UTF8Arrays.swift",
        "UnfairLock.swift",
        "UnicodeScalar.swift",
        "Validate.swift",
        "Whitelist.swift",
        "XmlDeclaration.swift",
        "XmlTreeBuilder.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
basic-5.10-latest: Pulling from finestructure/spi-images
Digest: sha256:8b386ca1081dd55ec0944429387f246ccb59ef99c9c8cbb418b0abd78460b38f
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.10-latest
Done.