The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build WineKit, reference main (9ebcd9), with Swift 5.10 for Linux on 3 Mar 2025 00:22:08 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.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/divadretlaw/WineKit.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/divadretlaw/WineKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 9ebcd9e Update winetricks
Cloned https://github.com/divadretlaw/WineKit.git
Revision (git rev-parse @):
9ebcd9e92a6275e29540c37495f5110bbb9454b7
SUCCESS checkout https://github.com/divadretlaw/WineKit.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $PWD
https://github.com/divadretlaw/WineKit.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:8b386ca1081dd55ec0944429387f246ccb59ef99c9c8cbb418b0abd78460b38f
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.10-latest
error: fatalError
/host/spi-builder-workspace/Plugins/WinetricksPlugin/main.swift:15:25: error: no exact matches in call to initializer
        let directory = URL(filePath: target.directory.string)
                        ^
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/WinetricksPlugin/main.swift:23:14: error: value of type 'URL' has no member 'appending'
            .appending(path: "Resources", directoryHint: .isDirectory)
             ^~~~~~~~~
/host/spi-builder-workspace/Plugins/WinetricksPlugin/main.swift:23:59: error: cannot infer contextual base in reference to member 'isDirectory'
            .appending(path: "Resources", directoryHint: .isDirectory)
                                                         ~^~~~~~~~~~~
/host/spi-builder-workspace/Plugins/WinetricksPlugin/main.swift:27:46: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
        let (data, _) = try await URLSession.shared.data(from: url)
                                  ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Plugins/WinetricksPlugin/main.swift:33:5: error: value of type 'URL' has no member 'appending'
                        .appending(path: "Domain", directoryHint: .isDirectory)
                         ^~~~~~~~~
/host/spi-builder-workspace/Plugins/WinetricksPlugin/main.swift:33:47: error: cannot infer contextual base in reference to member 'isDirectory'
                        .appending(path: "Domain", directoryHint: .isDirectory)
                                                                  ~^~~~~~~~~~~
/host/spi-builder-workspace/Plugins/WinetricksPlugin/main.swift:34:46: error: cannot infer contextual base in reference to member 'isDirectory'
                        .appending(path: "Verbs", directoryHint: .isDirectory)
                                                                 ~^~~~~~~~~~~
/host/spi-builder-workspace/Plugins/WinetricksPlugin/main.swift:47:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
            let (data, _) = try await URLSession.shared.data(from: url)
                                      ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Plugins/WinetricksPlugin/main.swift:91:54: error: value of type 'Date' has no member 'formatted'
            // Automatically generated on \(Date.now.formatted(date: .numeric, time: .omitted)).
                                            ~~~~~~~~ ^~~~~~~~~
/host/spi-builder-workspace/Plugins/WinetricksPlugin/main.swift:91:71: error: cannot infer contextual base in reference to member 'numeric'
            // Automatically generated on \(Date.now.formatted(date: .numeric, time: .omitted)).
                                                                     ~^~~~~~~
/host/spi-builder-workspace/Plugins/WinetricksPlugin/main.swift:91:87: error: cannot infer contextual base in reference to member 'omitted'
            // Automatically generated on \(Date.now.formatted(date: .numeric, time: .omitted)).
                                                                                     ~^~~~~~~
/host/spi-builder-workspace/Plugins/WinetricksPlugin/main.swift:115:72: error: cannot infer contextual base in reference to member 'utf8'
            try content.write(to: target, atomically: true, encoding: .utf8)
                                                                      ~^~~~
[1/1] Compiling plugin WinetricksPlugin
BUILD FAILURE 5.10 linux