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 SwiftDocCPlugin, reference main (d8c85d), with Swift 5.9 for Linux on 29 Jun 2024 15:57:41 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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.44.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/rockmagma02/swift-docc-plugin.git
Reference: main
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/rockmagma02/swift-docc-plugin
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at d8c85d9 feat: add multi targets documentation generation supporting
Cloned https://github.com/rockmagma02/swift-docc-plugin.git
Revision (git rev-parse @):
d8c85d959b9c5f755e835e44302fde5d214bec42
SPI manifest file found: $workDir/.spi.yml
SUCCESS checkout https://github.com/rockmagma02/swift-docc-plugin.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  $workDir
https://github.com/rockmagma02/swift-docc-plugin.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-5.9-latest: Pulling from finestructure/spi-images
Digest: sha256:bf2706fb3ad57f47449cad6c85f40e5d27f055fda5f2d8da4d3c25f3a5524d1a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.9-latest
Fetching https://github.com/apple/swift-docc-symbolkit
[1/2884] Fetching swift-docc-symbolkit
Fetched https://github.com/apple/swift-docc-symbolkit (0.31s)
Computing version for https://github.com/apple/swift-docc-symbolkit
Computed https://github.com/apple/swift-docc-symbolkit at 1.0.0 (0.35s)
Creating working copy for https://github.com/apple/swift-docc-symbolkit
Working copy of https://github.com/apple/swift-docc-symbolkit resolved at 1.0.0
[1/1] Compiling plugin Swift-DocC
error: fatalError
/host/spi-builder-workspace/Plugins/Swift-DocC MultiTargets/SwiftDocCMultiTargets.swift:33:25: error: no exact matches in call to initializer
        let outputURL = URL(filePath: outputDirectory)
                        ^
Foundation.URL:3:12: note: incorrect labels for candidate (have: '(filePath:)', expected: '(string:)')
    public init?(string: String)
           ^
Foundation.URL:8:12: note: incorrect labels for candidate (have: '(filePath:)', expected: '(fileURLWithPath:)')
    public init(fileURLWithPath path: String)
           ^
Foundation.URL:2:12: note: incorrect labels for candidate (have: '(filePath:)', expected: '(fileReferenceLiteralResourceName:)')
    public init(fileReferenceLiteralResourceName name: String)
           ^
/host/spi-builder-workspace/Plugins/Swift-DocC MultiTargets/SwiftDocCMultiTargets.swift:200:13: error: no exact matches in call to initializer
            URL(filePath: outputDirectory).appending(path: "cache").appending(path: target).path(),
            ^
Foundation.URL:3:12: note: incorrect labels for candidate (have: '(filePath:)', expected: '(string:)')
    public init?(string: String)
           ^
Foundation.URL:8:12: note: incorrect labels for candidate (have: '(filePath:)', expected: '(fileURLWithPath:)')
    public init(fileURLWithPath path: String)
           ^
Foundation.URL:2:12: note: incorrect labels for candidate (have: '(filePath:)', expected: '(fileReferenceLiteralResourceName:)')
    public init(fileReferenceLiteralResourceName name: String)
           ^
/host/spi-builder-workspace/Plugins/Swift-DocC MultiTargets/SwiftDocCMultiTargets.swift:200:44: error: reference to member 'appending' cannot be resolved without a contextual type
            URL(filePath: outputDirectory).appending(path: "cache").appending(path: target).path(),
                                           ^
/host/spi-builder-workspace/Plugins/Swift-DocC MultiTargets/SwiftDocCMultiTargets.swift:280:26: error: cannot infer contextual base in reference to member 'convert'
                action: .convert,
                        ~^~~~~~~
/host/spi-builder-workspace/Plugins/Swift-DocC MultiTargets/SwiftDocCMultiTargets.swift:281:59: error: cannot infer contextual base in reference to member 'executable'
                targetKind: target.kind == .executable ? .executable : .library,
                                                         ~^~~~~~~~~~
/host/spi-builder-workspace/Plugins/Swift-DocC MultiTargets/SwiftDocCMultiTargets.swift:298:46: error: cannot infer contextual base in reference to member 'exit'
            if process.terminationReason == .exit, process.terminationStatus == 0 {
                                            ~^~~~
[2/2] Compiling plugin Swift-DocC MultiTargets
BUILD FAILURE 5.9 linux