The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Swiftfall with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4609320-1":/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/bmbowdish/swiftfall.git
Reference: master
Cloned https://github.com/bmbowdish/swiftfall.git into spi-builder-workspace
SUCCESS checkout https://github.com/bmbowdish/swiftfall.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Building for debugging...
[1/2] Emitting module Swiftfall
[2/2] Compiling Swiftfall Swiftfall.swift
/host/spi-builder-workspace/Sources/Swiftfall/Swiftfall.swift:558:15: warning: expression implicitly coerced from 'URL?' to 'Any'
        print(url)
              ^~~
/host/spi-builder-workspace/Sources/Swiftfall/Swiftfall.swift:558:15: note: provide a default value to avoid this warning
        print(url)
              ^~~
                  ?? <#default value#>
/host/spi-builder-workspace/Sources/Swiftfall/Swiftfall.swift:558:15: note: force-unwrap the value to avoid this warning
        print(url)
              ^~~
                 !
/host/spi-builder-workspace/Sources/Swiftfall/Swiftfall.swift:558:15: note: explicitly cast to 'Any' with 'as Any' to silence this warning
        print(url)
              ^~~
                  as Any
/host/spi-builder-workspace/Sources/Swiftfall/Swiftfall.swift:559:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
        let task = URLSession.shared.dataTask(with: url!) {(data, response, error) in
                   ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/Swiftfall/Swiftfall.swift:568:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            let httpStatus = (response as! HTTPURLResponse).statusCode
                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Swiftfall/Swiftfall.swift:568:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            let httpStatus = (response as! HTTPURLResponse).statusCode
                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 2