The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Swift-Mac-Utility 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/erica/Swift-Mac-Utility.git
Reference: 0.0.5
Cloned https://github.com/erica/Swift-Mac-Utility.git into spi-builder-workspace
SUCCESS checkout https://github.com/erica/Swift-Mac-Utility.git at 0.0.5
========================================
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
Fetching https://github.com/erica/Swift-Misc-Utility
Fetching https://github.com/erica/Swift-General-Utility
[1/101] Fetching swift-general-utility
Fetched https://github.com/erica/Swift-General-Utility (0.22s)
Fetched https://github.com/erica/Swift-Misc-Utility (0.22s)
Computing version for https://github.com/erica/Swift-Misc-Utility
Computed https://github.com/erica/Swift-Misc-Utility at 0.0.0 (0.32s)
Computing version for https://github.com/erica/Swift-General-Utility
Computed https://github.com/erica/Swift-General-Utility at 0.0.8 (0.30s)
Creating working copy for https://github.com/erica/Swift-General-Utility
Working copy of https://github.com/erica/Swift-General-Utility resolved at 0.0.8
Creating working copy for https://github.com/erica/Swift-Misc-Utility
Working copy of https://github.com/erica/Swift-Misc-Utility resolved at 0.0.0
Building for debugging...
[1/2] Emitting module GeneralUtility
[2/2] Compiling GeneralUtility Utility.swift
[5/13] Compiling SwiftMiscUtility String+Utility.swift
[6/13] Compiling SwiftMiscUtility RuntimeError.swift
[7/13] Compiling SwiftMiscUtility SynchronousData.swift
/host/spi-builder-workspace/.build/checkouts/Swift-Misc-Utility/Sources/SwiftMiscUtility/SynchronousData.swift:11:59: error: cannot find type 'URLRequest' in scope
    public static func requestAsynchronousData(_ request: URLRequest, completion: @escaping (Result<Data, Error>) -> Void) -> Void {
                                                          ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Swift-Misc-Utility/Sources/SwiftMiscUtility/SynchronousData.swift:22:58: error: cannot find type 'URLRequest' in scope
    public static func requestSynchronousData(_ request: URLRequest) throws -> Data {
                                                         ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Swift-Misc-Utility/Sources/SwiftMiscUtility/SynchronousData.swift:12:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
        let task = URLSession.shared.dataTask(with: request) { data, _, error -> Void in
                   ~~~~~~~~~~ ^~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/14] Compiling SwiftMiscUtility Exponentiation.swift
[9/14] Compiling SwiftMiscUtility Applicative.swift
[10/14] Compiling SwiftMiscUtility Collection+Utility.swift
[11/14] Emitting module SwiftMiscUtility
/host/spi-builder-workspace/.build/checkouts/Swift-Misc-Utility/Sources/SwiftMiscUtility/SynchronousData.swift:11:59: error: cannot find type 'URLRequest' in scope
    public static func requestAsynchronousData(_ request: URLRequest, completion: @escaping (Result<Data, Error>) -> Void) -> Void {
                                                          ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Swift-Misc-Utility/Sources/SwiftMiscUtility/SynchronousData.swift:22:58: error: cannot find type 'URLRequest' in scope
    public static func requestSynchronousData(_ request: URLRequest) throws -> Data {
                                                         ^~~~~~~~~~
[12/14] Compiling SwiftMiscUtility Result+Utility.swift
[13/14] Compiling SwiftMiscUtility Utility+SideEffect.swift
[14/14] Compiling SwiftMiscUtility Rounding.swift
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 2