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 PlaydateKit, reference main (a04bbd), with Swift 5.10 for Linux on 29 Oct 2024 14:43:06 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" 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.55.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/finnvoor/PlaydateKit.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/finnvoor/PlaydateKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at a04bbdb Flappy Swift (#98)
Cloned https://github.com/finnvoor/PlaydateKit.git
Revision (git rev-parse @):
a04bbdbe14b02b6f1dc7caa04604fc0731311942
SUCCESS checkout https://github.com/finnvoor/PlaydateKit.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $PWD
https://github.com/finnvoor/PlaydateKit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-5.10-latest: Pulling from finestructure/spi-images
Digest: sha256:5bb17dbcfcf8548eee753b07845b2378de013b2470bb445b58120b16b16ecc2b
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.10-latest
warning: 'spi-builder-workspace': found 11 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Sources/PlaydateKit/Resources/Core/UI/Images/crank/crank-notice-bubble-2x.png
    /host/spi-builder-workspace/Sources/PlaydateKit/Resources/Core/UI/Images/crank/crank-frames-8x-table-6-5.png
    /host/spi-builder-workspace/Sources/PlaydateKit/Resources/Core/UI/Images/crank/crank-frames-4x-table-13-10.png
    /host/spi-builder-workspace/Sources/PlaydateKit/Resources/Core/UI/Images/crank/crank-frames-2x-table-26-19.png
    /host/spi-builder-workspace/Sources/PlaydateKit/Resources/Core/UI/Images/crank/crank-notice-text-1x.png
    /host/spi-builder-workspace/Sources/PlaydateKit/Resources/Core/UI/Images/crank/crank-notice-bubble-1x.png
    /host/spi-builder-workspace/Sources/PlaydateKit/Resources/Core/UI/Images/crank/crank-notice-bubble-8x.png
    /host/spi-builder-workspace/Sources/PlaydateKit/Resources/Core/UI/Images/crank/crank-notice-text-2x.png
    /host/spi-builder-workspace/Sources/PlaydateKit/Resources/Core/UI/Images/crank/crank-notice-bubble-4x.png
    /host/spi-builder-workspace/Sources/PlaydateKit/Resources/Core/UI/Images/crank/crank-frames-1x-table-52-38.png
    /host/spi-builder-workspace/Sources/PlaydateKit/Resources/Core/UI/Images/crank/crank-notice-bubble.png
error: fatalError
error: emit-module command failed with exit code 1 (use -v to see invocation)
/host/spi-builder-workspace/Plugins/PDCPlugin/PDCPlugin.swift:41:64: error: cannot call value of non-function type 'String'
    let home = FileManager.default.homeDirectoryForCurrentUser.path()
                                                               ^   ~~

/host/spi-builder-workspace/Plugins/PDCPlugin/PDCPlugin.swift:326:52: error: no exact matches in call to initializer
                  let data = try? Data(contentsOf: URL(filePath: "\(home)\(toolchainPath)/Info.plist")),
                                                   ^
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/PDCPlugin/PDCPlugin.swift:330:52: error: no exact matches in call to initializer
                  let data = try? Data(contentsOf: URL(filePath: "/\(toolchainPath)/Info.plist")),
                                                   ^
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)
           ^
[1/1] Compiling plugin PDCPlugin
BUILD FAILURE 5.10 linux