Build Information
Failed to build docc2html with Swift 5.8 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.8-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.8
Building package at path: $workDir
https://github.com/DoccZz/docc2html.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.8-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/544] Fetching mustache
[545/1001] Fetching mustache, doccarchive
[1002/4363] Fetching mustache, doccarchive, swift-log
Fetched https://github.com/DoccZz/DocCArchive.git (0.38s)
Fetched https://github.com/AlwaysRightInstitute/mustache.git (0.38s)
Fetched https://github.com/apple/swift-log.git (0.38s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.5.4 (0.33s)
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.33s)
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
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
Building for debugging...
[1/45] Compiling DocCArchive Parameter.swift
[2/45] Compiling DocCArchive Section.swift
[3/45] Compiling DocCArchive Task.swift
[4/48] Compiling DocCArchive SchemaVersion.swift
[5/48] Compiling DocCArchive Declaration.swift
[6/48] Compiling DocCArchive HeroSection.swift
[7/48] Compiling DocCArchive InlineContent.swift
[8/48] Compiling DocCArchive InterfaceLanguage.swift
[9/48] Compiling DocCArchive MetaData.swift
[10/48] Compiling DocCArchive Platform.swift
[11/48] Compiling Logging MetadataProvider.swift
[12/48] Compiling DocCArchive VolumeSection.swift
[13/48] Compiling DocCArchive TypeIdentifier.swift
[14/48] Compiling DocCArchive Utilities.swift
[15/48] Compiling DocCArchive FileReference.swift
[16/48] Compiling DocCArchive ImageReference.swift
[17/48] Compiling DocCArchive LinkReference.swift
[18/48] Compiling DocCArchive Reference.swift
[19/48] Compiling DocCArchive SectionReference.swift
[20/48] Compiling DocCArchive TopicReference.swift
[21/48] Compiling DocCArchive Step.swift
[22/48] Compiling DocCArchive Document.swift
[23/48] Compiling DocCArchive Fragment.swift
[24/48] Compiling DocCArchive Identifier.swift
[25/48] Emitting module DocCArchive
[26/48] Compiling DocCArchive DocCArchive.swift
[27/48] Compiling DocCArchive Chapter.swift
[28/48] Compiling DocCArchive CodeListing.swift
[29/48] Compiling DocCArchive Content.swift
[30/49] Compiling mustache Mustacheable.swift
[31/49] Compiling mustache MustacheRenderingContext.swift
[32/49] Compiling mustache SimpleKVC.swift
[35/50] Compiling mustache MustacheNode.swift
[36/50] Compiling mustache Helpers.swift
[37/50] Compiling mustache HTMLEscape.swift
[38/50] Emitting module mustache
[39/50] Compiling mustache MustacheParser.swift
[42/52] Compiling Logging LogHandler.swift
[43/52] Compiling Logging Locks.swift
[44/52] Emitting module Logging
[45/52] Compiling Logging Logging.swift
[45/53] Wrapping AST for DocCArchive for debugging
[46/53] Wrapping AST for mustache for debugging
[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 Task.swift
[55/81] Compiling DocCHTMLExporter TopicTitle.swift
[56/81] Compiling DocCHTMLExporter Volume.swift
[57/81] Emitting module DocCHTMLExporter
[58/81] Compiling DocCHTMLExporter Sections.swift
[59/81] Compiling DocCHTMLExporter StepContent.swift
[60/81] Compiling DocCHTMLExporter Stylesheet.swift
[61/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)'" }
^ ~~~
[62/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)'" }
^ ~~~
[63/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)'" }
^ ~~~
[64/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)'" }
^ ~~~
[65/81] Compiling DocCHTMLExporter AnchorString.swift
[66/81] Compiling DocCHTMLExporter Console.swift
[67/81] Compiling DocCHTMLExporter HTMLEscape.swift
[68/81] Compiling DocCHTMLExporter Page.swift
[69/81] Compiling DocCHTMLExporter ParametersSection.swift
[70/81] Compiling DocCHTMLExporter PrimaryContent.swift
[71/81] Compiling DocCHTMLExporter SectionHTML.swift
[72/81] Compiling DocCHTMLExporter CodeListing.swift
[73/81] Compiling DocCHTMLExporter DeclarationSection.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
BUILD FAILURE 5.8 linux