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 macOS (SPM).

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.2.0.app xcrun swift build --arch arm64

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 /Users/builder/builds/UKfvDsi8u/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/.git/
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:         macosSpm
Swift version:             5.9
Building package at path:  $workDir
https://github.com/DoccZz/docc2html.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.2.0.app xcrun swift build --arch arm64
Building for debugging...
[1/39] Compiling Logging LogHandler.swift
[2/39] Compiling Logging Logging.swift
[3/39] Compiling Logging Locks.swift
[4/39] Compiling Logging MetadataProvider.swift
[5/39] Emitting module Logging
[6/39] Compiling mustache Mustacheable.swift
[7/39] Emitting module DocCArchive
[8/42] Compiling DocCArchive InlineContent.swift
[9/42] Compiling DocCArchive InterfaceLanguage.swift
[10/42] Compiling DocCArchive MetaData.swift
[11/42] Compiling DocCArchive Platform.swift
[12/42] Compiling DocCArchive Reference.swift
[13/42] Compiling DocCArchive SectionReference.swift
[14/42] Compiling DocCArchive TopicReference.swift
[15/42] Compiling DocCArchive Parameter.swift
[16/42] Compiling DocCArchive Section.swift
[17/42] Compiling DocCArchive Task.swift
[18/42] Compiling DocCArchive SchemaVersion.swift
[19/42] Compiling DocCArchive Declaration.swift
[20/42] Compiling DocCArchive HeroSection.swift
[21/42] Compiling mustache SimpleKVC.swift
[22/42] Compiling mustache MustacheNode.swift
[23/42] Compiling mustache MustacheRenderingContext.swift
[24/42] Compiling mustache MustacheParser.swift
[25/42] Compiling mustache HTMLEscape.swift
[26/42] Emitting module mustache
[27/42] Compiling mustache Helpers.swift
[28/42] Compiling DocCArchive DocCArchive.swift
[29/42] Compiling DocCArchive Chapter.swift
[30/42] Compiling DocCArchive CodeListing.swift
[31/42] Compiling DocCArchive Content.swift
[32/42] Compiling DocCArchive FileReference.swift
[33/42] Compiling DocCArchive ImageReference.swift
[34/42] Compiling DocCArchive LinkReference.swift
[35/42] Compiling DocCArchive Step.swift
[36/42] Compiling DocCArchive Document.swift
[37/42] Compiling DocCArchive Fragment.swift
[38/42] Compiling DocCArchive Identifier.swift
[39/42] Compiling DocCArchive VolumeSection.swift
[40/42] Compiling DocCArchive TypeIdentifier.swift
[41/42] Compiling DocCArchive Utilities.swift
[42/66] Compiling DocCHTMLExporter Sections.swift
[43/66] Compiling DocCHTMLExporter StepContent.swift
[44/66] Compiling DocCHTMLExporter Stylesheet.swift
[45/69] Compiling DocCHTMLExporter ContentHTML.swift
/Users/builder/builds/UKfvDsi8u/3/finestructure/swiftpackageindex-builder/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 ?? ""
               ~~~~~~~^

/Users/builder/builds/UKfvDsi8u/3/finestructure/swiftpackageindex-builder/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 ?? "")"
                                          ~~~^

/Users/builder/builds/UKfvDsi8u/3/finestructure/swiftpackageindex-builder/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)'" }
       ^         ~~~
[46/69] Compiling DocCHTMLExporter FragmentHTML.swift
/Users/builder/builds/UKfvDsi8u/3/finestructure/swiftpackageindex-builder/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 ?? ""
               ~~~~~~~^

/Users/builder/builds/UKfvDsi8u/3/finestructure/swiftpackageindex-builder/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 ?? "")"
                                          ~~~^

/Users/builder/builds/UKfvDsi8u/3/finestructure/swiftpackageindex-builder/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)'" }
       ^         ~~~
[47/69] Compiling DocCHTMLExporter InlineContentHTML.swift
/Users/builder/builds/UKfvDsi8u/3/finestructure/swiftpackageindex-builder/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 ?? ""
               ~~~~~~~^

/Users/builder/builds/UKfvDsi8u/3/finestructure/swiftpackageindex-builder/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 ?? "")"
                                          ~~~^

/Users/builder/builds/UKfvDsi8u/3/finestructure/swiftpackageindex-builder/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)'" }
       ^         ~~~
[48/69] Compiling DocCHTMLExporter ReferenceHTML.swift
/Users/builder/builds/UKfvDsi8u/3/finestructure/swiftpackageindex-builder/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 ?? ""
               ~~~~~~~^

/Users/builder/builds/UKfvDsi8u/3/finestructure/swiftpackageindex-builder/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 ?? "")"
                                          ~~~^

/Users/builder/builds/UKfvDsi8u/3/finestructure/swiftpackageindex-builder/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)'" }
       ^         ~~~
[49/69] Compiling DocCHTMLExporter DocumentContent.swift
[50/69] Compiling DocCHTMLExporter Hero.swift
[51/69] Compiling DocCHTMLExporter Navigation.swift
[52/69] Emitting module DocCHTMLExporter
[53/69] Compiling DocCHTMLExporter AnchorString.swift
[54/69] Compiling DocCHTMLExporter Console.swift
[55/69] Compiling DocCHTMLExporter HTMLEscape.swift
[56/69] Compiling DocCHTMLExporter Page.swift
[57/69] Compiling DocCHTMLExporter ParametersSection.swift
[58/69] Compiling DocCHTMLExporter PrimaryContent.swift
[59/69] Compiling DocCHTMLExporter Task.swift
[60/69] Compiling DocCHTMLExporter TopicTitle.swift
[61/69] Compiling DocCHTMLExporter Volume.swift
[62/69] Compiling DocCHTMLExporter SectionHTML.swift
[63/69] Compiling DocCHTMLExporter CodeListing.swift
[64/69] Compiling DocCHTMLExporter DeclarationSection.swift
[65/69] Compiling DocCHTMLExporter BuildDocument.swift
[66/69] Compiling DocCHTMLExporter BuildNavigation.swift
[67/69] Compiling DocCHTMLExporter DZRenderingContext.swift
[68/69] Compiling DocCHTMLExporter ExternalLinks.swift
error: fatalError
Fetching https://github.com/apple/swift-log.git from cache
Fetching https://github.com/AlwaysRightInstitute/mustache.git from cache
Fetching https://github.com/DoccZz/DocCArchive.git from cache
Fetched https://github.com/AlwaysRightInstitute/mustache.git (0.27s)
Fetched https://github.com/DoccZz/DocCArchive.git (0.30s)
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.06s)
Computing version for https://github.com/DoccZz/DocCArchive.git
Computed https://github.com/DoccZz/DocCArchive.git at 0.4.1 (0.03s)
Computing version for https://github.com/AlwaysRightInstitute/mustache.git
Computed https://github.com/AlwaysRightInstitute/mustache.git at 1.0.1 (0.02s)
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
BUILD FAILURE 5.9 macosSpm