The Swift Package Index logo.Swift Package Index

Build Information

Failed to build CancelForPromiseKit with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/dougzilla32/CancelForPromiseKit.git
Reference: master
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/dougzilla32/CancelForPromiseKit
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 806e81a Remove unused files
Submodule path 'Extensions/Alamofire': checked out '1fa2d042fb0e9f606d56258eca7780809cd0c5b8'
Submodule path 'Extensions/CoreLocation': checked out 'e8400ec19d6d2d9b1ea5b201eccc2f03372a6cde'
Submodule path 'Extensions/Foundation': checked out '9486447341315fb968b1de3388237a3e69fdf4e4'
Submodule path 'dougzilla32.github.io': checked out '93fa12f9248192ea9ca26ae7503a15a25a00d2d5'
Submodule 'Extensions/Alamofire' (https://github.com/dougzilla32/CPKAlamofire) registered for path 'Extensions/Alamofire'
Submodule 'Extensions/CoreLocation' (https://github.com/dougzilla32/CPKCoreLocation) registered for path 'Extensions/CoreLocation'
Submodule 'Extensions/Foundation' (https://github.com/dougzilla32/CPKFoundation) registered for path 'Extensions/Foundation'
Submodule 'dougzilla32.github.io' (https://github.com/dougzilla32/dougzilla32.github.io) registered for path 'dougzilla32.github.io'
Cloning into '/host/spi-builder-workspace/Extensions/Alamofire'...
Cloning into '/host/spi-builder-workspace/Extensions/CoreLocation'...
Cloning into '/host/spi-builder-workspace/Extensions/Foundation'...
Cloning into '/host/spi-builder-workspace/dougzilla32.github.io'...
Cloned https://github.com/dougzilla32/CancelForPromiseKit.git
Revision (git rev-parse @):
806e81a98391d7d3a800979d3e46002a1a84456c
SUCCESS checkout https://github.com/dougzilla32/CancelForPromiseKit.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/dougzilla32/CancelForPromiseKit.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
error: 'spi-builder-workspace': Invalid manifest (compiled with: ["/usr/bin/swiftc", "-vfsoverlay", "/tmp/TemporaryDirectory.YTYtGI/vfs.yaml", "-L", "/usr/lib/swift/pm/ManifestAPI", "-lPackageDescription", "-Xlinker", "-rpath", "-Xlinker", "/usr/lib/swift/pm/ManifestAPI", "-swift-version", "4", "-I", "/usr/lib/swift/pm/ManifestAPI", "-package-description-version", "4.0.0", "/host/spi-builder-workspace/Package.swift", "-Xfrontend", "-disable-implicit-concurrency-module-import", "-Xfrontend", "-disable-implicit-string-processing-module-import", "-o", "/tmp/TemporaryDirectory.2EKRy8/spi-builder-workspace-manifest"])
error: fatalError
/host/spi-builder-workspace/Package.swift:16:30: error: cannot convert value of type 'Int' to expected element type 'SwiftVersion'
pkg.swiftLanguageVersions = [3, 4]
                             ^
/host/spi-builder-workspace/Package.swift:16:33: error: cannot convert value of type 'Int' to expected element type 'SwiftVersion'
pkg.swiftLanguageVersions = [3, 4]
                                ^
error: 'spi-builder-workspace': Invalid manifest (compiled with: ["/usr/bin/swiftc", "-vfsoverlay", "/tmp/TemporaryDirectory.dRdOaa/vfs.yaml", "-L", "/usr/lib/swift/pm/ManifestAPI", "-lPackageDescription", "-Xlinker", "-rpath", "-Xlinker", "/usr/lib/swift/pm/ManifestAPI", "-swift-version", "4", "-I", "/usr/lib/swift/pm/ManifestAPI", "-package-description-version", "4.0.0", "/host/spi-builder-workspace/Package.swift", "-Xfrontend", "-disable-implicit-concurrency-module-import", "-Xfrontend", "-disable-implicit-string-processing-module-import", "-o", "/tmp/TemporaryDirectory.XwHbcZ/spi-builder-workspace-manifest"])
error: fatalError
/host/spi-builder-workspace/Package.swift:16:30: error: cannot convert value of type 'Int' to expected element type 'SwiftVersion'
pkg.swiftLanguageVersions = [3, 4]
                             ^
/host/spi-builder-workspace/Package.swift:16:33: error: cannot convert value of type 'Int' to expected element type 'SwiftVersion'
pkg.swiftLanguageVersions = [3, 4]
                                ^
BUILD FAILURE 5.10 linux

Build Machine: Linux 1