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

Failed to build docc2html with Swift 5.9 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.41.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/DoccZz/docc2html.git
Reference: develop
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/DoccZz/docc2html
 * branch            develop    -> FETCH_HEAD
 * [new branch]      develop    -> origin/develop
HEAD is now at 7d55a51 Merge pull request #27 from DavidBrunow/update/optionalAlt
Cloned https://github.com/DoccZz/docc2html.git
Revision (git rev-parse @):
7d55a51a28d3b9b06d550e949d96fd01a7749b86
SUCCESS checkout https://github.com/DoccZz/docc2html.git at develop
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  $workDir
https://github.com/DoccZz/docc2html.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Fetching https://github.com/AlwaysRightInstitute/mustache.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/DoccZz/DocCArchive.git
[1/544] Fetching mustache
[404/1001] Fetching mustache, doccarchive
[984/4363] Fetching mustache, doccarchive, swift-log
Fetched https://github.com/DoccZz/DocCArchive.git (0.26s)
[3638/3906] Fetching mustache, swift-log
Fetched https://github.com/AlwaysRightInstitute/mustache.git (0.27s)
[3127/3362] Fetching swift-log
Fetched https://github.com/apple/swift-log.git (0.36s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.5.4 (0.42s)
Computing version for https://github.com/DoccZz/DocCArchive.git
Computed https://github.com/DoccZz/DocCArchive.git at 0.4.1 (0.41s)
Computing version for https://github.com/AlwaysRightInstitute/mustache.git
Computed https://github.com/AlwaysRightInstitute/mustache.git at 1.0.1 (0.41s)
Creating working copy for https://github.com/DoccZz/DocCArchive.git
Working copy of https://github.com/DoccZz/DocCArchive.git resolved at 0.4.1
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.5.4
Creating working copy for https://github.com/AlwaysRightInstitute/mustache.git
Working copy of https://github.com/AlwaysRightInstitute/mustache.git resolved at 1.0.1
Building for debugging...
[1/45] Emitting module DocCArchive
[2/48] Compiling DocCArchive SchemaVersion.swift
[3/48] Compiling DocCArchive Declaration.swift
[4/48] Compiling DocCArchive HeroSection.swift
[5/48] Compiling DocCArchive Parameter.swift
[6/48] Compiling DocCArchive Section.swift
[7/48] Compiling DocCArchive Task.swift
[8/48] Compiling mustache MustacheRenderingContext.swift
[9/48] Compiling mustache Mustacheable.swift
[10/48] Compiling mustache MustacheNode.swift
[11/48] Compiling DocCArchive Reference.swift
[12/48] Compiling DocCArchive SectionReference.swift
[13/48] Compiling DocCArchive TopicReference.swift
[14/48] Compiling DocCArchive VolumeSection.swift
[15/48] Compiling DocCArchive TypeIdentifier.swift
[16/48] Compiling DocCArchive Utilities.swift
[17/48] Compiling DocCArchive FileReference.swift
[18/48] Compiling DocCArchive ImageReference.swift
[19/48] Compiling DocCArchive LinkReference.swift
[20/48] Compiling DocCArchive InlineContent.swift
[21/48] Compiling DocCArchive InterfaceLanguage.swift
[22/48] Compiling DocCArchive MetaData.swift
[23/48] Compiling DocCArchive Platform.swift
[24/48] Compiling DocCArchive Step.swift
[25/48] Compiling DocCArchive Document.swift
[26/48] Compiling DocCArchive Fragment.swift
[27/48] Compiling DocCArchive Identifier.swift
[28/48] Compiling DocCArchive DocCArchive.swift
[29/48] Compiling DocCArchive Chapter.swift
[30/48] Compiling DocCArchive CodeListing.swift
[31/48] Compiling DocCArchive Content.swift
[32/49] Compiling Logging MetadataProvider.swift
[33/49] Compiling mustache HTMLEscape.swift
[34/49] Compiling mustache Helpers.swift
[35/49] Emitting module mustache
[36/49] Compiling mustache SimpleKVC.swift
[37/49] Compiling mustache MustacheParser.swift
[41/52] Compiling Logging Locks.swift
[42/52] Wrapping AST for mustache for debugging
[43/52] Wrapping AST for DocCArchive for debugging
[45/52] Compiling Logging LogHandler.swift
[46/52] Compiling Logging Logging.swift
[47/52] Emitting module Logging
[49/54] Wrapping AST for Logging for debugging
[51/78] Compiling DocCHTMLExporter DocumentContent.swift
[52/78] Compiling DocCHTMLExporter Hero.swift
[53/78] Compiling DocCHTMLExporter Navigation.swift
[54/81] Compiling DocCHTMLExporter Sections.swift
[55/81] Compiling DocCHTMLExporter StepContent.swift
[56/81] Compiling DocCHTMLExporter Stylesheet.swift
[57/81] Compiling DocCHTMLExporter Page.swift
[58/81] Compiling DocCHTMLExporter ParametersSection.swift
[59/81] Compiling DocCHTMLExporter PrimaryContent.swift
[60/81] Emitting module DocCHTMLExporter
[61/81] Compiling DocCHTMLExporter Task.swift
[62/81] Compiling DocCHTMLExporter TopicTitle.swift
[63/81] Compiling DocCHTMLExporter Volume.swift
[64/81] Compiling DocCHTMLExporter ContentHTML.swift
/host/spi-builder-workspace/Sources/DocCHTMLExporter/HTML/ReferenceHTML.swift:93:23: error: cannot use optional chaining on non-optional value of type 'String'
        return ref.alt?.htmlEscaped ?? ""
               ~~~~~~~^

/host/spi-builder-workspace/Sources/DocCHTMLExporter/HTML/ReferenceHTML.swift:153:46: error: cannot use optional chaining on non-optional value of type 'String'
      return "<!-- invalid image ref -->\(alt?.htmlEscaped ?? "")"
                                          ~~~^

/host/spi-builder-workspace/Sources/DocCHTMLExporter/HTML/ReferenceHTML.swift:176:8: error: initializer for conditional binding must have Optional type, not 'String'
    if let alt = alt, !alt.isEmpty { ms += " alt='\(alt.htmlEscaped)'" }
       ^         ~~~
[65/81] Compiling DocCHTMLExporter FragmentHTML.swift
/host/spi-builder-workspace/Sources/DocCHTMLExporter/HTML/ReferenceHTML.swift:93:23: error: cannot use optional chaining on non-optional value of type 'String'
        return ref.alt?.htmlEscaped ?? ""
               ~~~~~~~^

/host/spi-builder-workspace/Sources/DocCHTMLExporter/HTML/ReferenceHTML.swift:153:46: error: cannot use optional chaining on non-optional value of type 'String'
      return "<!-- invalid image ref -->\(alt?.htmlEscaped ?? "")"
                                          ~~~^

/host/spi-builder-workspace/Sources/DocCHTMLExporter/HTML/ReferenceHTML.swift:176:8: error: initializer for conditional binding must have Optional type, not 'String'
    if let alt = alt, !alt.isEmpty { ms += " alt='\(alt.htmlEscaped)'" }
       ^         ~~~
[66/81] Compiling DocCHTMLExporter InlineContentHTML.swift
/host/spi-builder-workspace/Sources/DocCHTMLExporter/HTML/ReferenceHTML.swift:93:23: error: cannot use optional chaining on non-optional value of type 'String'
        return ref.alt?.htmlEscaped ?? ""
               ~~~~~~~^

/host/spi-builder-workspace/Sources/DocCHTMLExporter/HTML/ReferenceHTML.swift:153:46: error: cannot use optional chaining on non-optional value of type 'String'
      return "<!-- invalid image ref -->\(alt?.htmlEscaped ?? "")"
                                          ~~~^

/host/spi-builder-workspace/Sources/DocCHTMLExporter/HTML/ReferenceHTML.swift:176:8: error: initializer for conditional binding must have Optional type, not 'String'
    if let alt = alt, !alt.isEmpty { ms += " alt='\(alt.htmlEscaped)'" }
       ^         ~~~
[67/81] Compiling DocCHTMLExporter ReferenceHTML.swift
/host/spi-builder-workspace/Sources/DocCHTMLExporter/HTML/ReferenceHTML.swift:93:23: error: cannot use optional chaining on non-optional value of type 'String'
        return ref.alt?.htmlEscaped ?? ""
               ~~~~~~~^

/host/spi-builder-workspace/Sources/DocCHTMLExporter/HTML/ReferenceHTML.swift:153:46: error: cannot use optional chaining on non-optional value of type 'String'
      return "<!-- invalid image ref -->\(alt?.htmlEscaped ?? "")"
                                          ~~~^

/host/spi-builder-workspace/Sources/DocCHTMLExporter/HTML/ReferenceHTML.swift:176:8: error: initializer for conditional binding must have Optional type, not 'String'
    if let alt = alt, !alt.isEmpty { ms += " alt='\(alt.htmlEscaped)'" }
       ^         ~~~
[68/81] Compiling DocCHTMLExporter SectionHTML.swift
[69/81] Compiling DocCHTMLExporter CodeListing.swift
[70/81] Compiling DocCHTMLExporter DeclarationSection.swift
[71/81] Compiling DocCHTMLExporter AnchorString.swift
[72/81] Compiling DocCHTMLExporter Console.swift
[73/81] Compiling DocCHTMLExporter HTMLEscape.swift
[74/81] Compiling DocCHTMLExporter BuildDocument.swift
[75/81] Compiling DocCHTMLExporter BuildNavigation.swift
[76/81] Compiling DocCHTMLExporter DZRenderingContext.swift
[77/81] Compiling DocCHTMLExporter ExternalLinks.swift
error: fatalError
BUILD FAILURE 5.9 linux