The Swift Package Index logo.Swift Package Index

Build Information

Failed to build CancelForPromiseKit with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4609320-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/dougzilla32/CancelForPromiseKit.git
Reference: 1.1.0
Cloned https://github.com/dougzilla32/CancelForPromiseKit.git into spi-builder-workspace
SUCCESS checkout https://github.com/dougzilla32/CancelForPromiseKit.git at 1.1.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
error: 'spi-builder-workspace': Invalid manifest (compiled with: ["/usr/bin/swiftc", "-vfsoverlay", "/tmp/TemporaryDirectory.vFkxgf/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.8XBtdg/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.9 linux

Build Machine: Linux 2