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.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" 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.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.10
Building package at path:  $workDir
https://github.com/DoccZz/docc2html.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/AlwaysRightInstitute/mustache.git
Fetching https://github.com/DoccZz/DocCArchive.git
[1/457] Fetching doccarchive
[458/1001] Fetching doccarchive, mustache
[769/4363] Fetching doccarchive, mustache, swift-log
Fetched https://github.com/DoccZz/DocCArchive.git from cache (0.40s)
Fetched https://github.com/AlwaysRightInstitute/mustache.git from cache (0.40s)
Fetched https://github.com/apple/swift-log.git from cache (0.42s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.5.4 (0.38s)
Computing version for https://github.com/DoccZz/DocCArchive.git
Computed https://github.com/DoccZz/DocCArchive.git at 0.4.1 (0.34s)
Computing version for https://github.com/AlwaysRightInstitute/mustache.git
Computed https://github.com/AlwaysRightInstitute/mustache.git at 1.0.1 (0.42s)
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/DoccZz/DocCArchive.git
Working copy of https://github.com/DoccZz/DocCArchive.git resolved at 0.4.1
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...
[0/15] Write sources
[6/15] Write swift-version-24593BA9C3E375BF.txt
[8/53] Compiling DocCArchive Parameter.swift
[9/53] Compiling DocCArchive Section.swift
[10/53] Compiling DocCArchive Task.swift
[11/56] Compiling DocCArchive SchemaVersion.swift
[12/56] Compiling DocCArchive Declaration.swift
[13/56] Compiling DocCArchive HeroSection.swift
[14/56] Compiling DocCArchive VolumeSection.swift
[15/56] Compiling DocCArchive TypeIdentifier.swift
[16/56] Compiling DocCArchive Utilities.swift
[17/56] Compiling DocCArchive InlineContent.swift
[18/56] Compiling DocCArchive InterfaceLanguage.swift
[19/56] Compiling DocCArchive MetaData.swift
[20/56] Compiling DocCArchive Platform.swift
[21/56] Compiling DocCArchive FileReference.swift
[22/56] Compiling DocCArchive ImageReference.swift
[23/56] Compiling DocCArchive LinkReference.swift
[24/56] Emitting module DocCArchive
[25/56] Compiling DocCArchive DocCArchive.swift
[26/56] Compiling DocCArchive Chapter.swift
[27/56] Compiling DocCArchive CodeListing.swift
[28/56] Compiling DocCArchive Content.swift
[29/56] Compiling Logging MetadataProvider.swift
[30/56] Compiling mustache HTMLEscape.swift
[31/56] Emitting module mustache
[32/56] Compiling mustache Helpers.swift
[33/56] Emitting module Logging
[34/56] Compiling Logging Locks.swift
[35/56] Compiling DocCArchive Reference.swift
[36/56] Compiling DocCArchive SectionReference.swift
[37/56] Compiling DocCArchive TopicReference.swift
[38/56] Compiling DocCArchive Step.swift
[39/56] Compiling DocCArchive Document.swift
[40/56] Compiling DocCArchive Fragment.swift
[41/56] Compiling DocCArchive Identifier.swift
[42/57] Compiling mustache Mustacheable.swift
[43/57] Compiling mustache MustacheRenderingContext.swift
[44/57] Compiling mustache MustacheParser.swift
[45/57] Compiling mustache MustacheNode.swift
[46/57] Compiling mustache SimpleKVC.swift
[49/58] Compiling Logging LogHandler.swift
[50/58] Compiling Logging Logging.swift
[51/59] Wrapping AST for mustache for debugging
[52/59] Wrapping AST for Logging for debugging
[53/59] Wrapping AST for DocCArchive for debugging
[55/83] Compiling DocCHTMLExporter DocumentContent.swift
[56/83] Compiling DocCHTMLExporter Hero.swift
[57/83] Compiling DocCHTMLExporter Navigation.swift
[58/86] Emitting module DocCHTMLExporter
[59/86] Compiling DocCHTMLExporter Page.swift
[60/86] Compiling DocCHTMLExporter ParametersSection.swift
[61/86] Compiling DocCHTMLExporter PrimaryContent.swift
[62/86] Compiling DocCHTMLExporter Sections.swift
[63/86] Compiling DocCHTMLExporter StepContent.swift
[64/86] Compiling DocCHTMLExporter Stylesheet.swift
[65/86] Compiling DocCHTMLExporter Task.swift
[66/86] Compiling DocCHTMLExporter TopicTitle.swift
[67/86] Compiling DocCHTMLExporter Volume.swift
[68/86] 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)'" }
       ^         ~~~
[69/86] 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)'" }
       ^         ~~~
[70/86] 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)'" }
       ^         ~~~
[71/86] 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)'" }
       ^         ~~~
[72/86] Compiling DocCHTMLExporter SectionHTML.swift
[73/86] Compiling DocCHTMLExporter CodeListing.swift
[74/86] Compiling DocCHTMLExporter DeclarationSection.swift
[75/86] Compiling DocCHTMLExporter AnchorString.swift
[76/86] Compiling DocCHTMLExporter Console.swift
[77/86] Compiling DocCHTMLExporter HTMLEscape.swift
[78/86] Compiling DocCHTMLExporter BuildDocument.swift
[79/86] Compiling DocCHTMLExporter BuildNavigation.swift
[80/86] Compiling DocCHTMLExporter DZRenderingContext.swift
[81/86] Compiling DocCHTMLExporter ExternalLinks.swift
error: fatalError
BUILD FAILURE 5.10 linux