The Swift Package Index logo.Swift Package Index

Build Information

Failed to build MonetaryExchange 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/SoftwareEngineerChris/MonetaryExchange.git
Reference: 1.0.1
Cloned https://github.com/SoftwareEngineerChris/MonetaryExchange.git into spi-builder-workspace
SUCCESS checkout https://github.com/SoftwareEngineerChris/MonetaryExchange.git at 1.0.1
========================================
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/SoftwareEngineerChris/MonetaryAmount.git
[1/154] Fetching monetaryamount
Fetched https://github.com/SoftwareEngineerChris/MonetaryAmount.git (0.22s)
Computing version for https://github.com/SoftwareEngineerChris/MonetaryAmount.git
Computed https://github.com/SoftwareEngineerChris/MonetaryAmount.git at 1.1.1 (0.32s)
Fetching https://github.com/stencilproject/Stencil.git
Fetching https://github.com/SoftwareEngineerChris/Consolidate.git
Fetching https://github.com/SoftwareEngineerChris/RoundedDecimal.git
[1/141] Fetching consolidate
[142/355] Fetching consolidate, roundeddecimal
Fetched https://github.com/SoftwareEngineerChris/RoundedDecimal.git (0.23s)
Fetched https://github.com/SoftwareEngineerChris/Consolidate.git (0.23s)
[1/5120] Fetching stencil
Fetched https://github.com/stencilproject/Stencil.git (0.38s)
Computing version for https://github.com/SoftwareEngineerChris/Consolidate.git
Computed https://github.com/SoftwareEngineerChris/Consolidate.git at 1.2.1 (0.31s)
Computing version for https://github.com/SoftwareEngineerChris/RoundedDecimal.git
Computed https://github.com/SoftwareEngineerChris/RoundedDecimal.git at 2.2.2 (0.30s)
Computing version for https://github.com/stencilproject/Stencil.git
Computed https://github.com/stencilproject/Stencil.git at 0.15.1 (0.30s)
Fetching https://github.com/kylef/Spectre.git
Fetching https://github.com/kylef/PathKit.git
[1/1405] Fetching pathkit
[254/2426] Fetching pathkit, spectre
Fetched https://github.com/kylef/PathKit.git (0.23s)
Fetched https://github.com/kylef/Spectre.git (0.23s)
Computing version for https://github.com/kylef/Spectre.git
Computed https://github.com/kylef/Spectre.git at 0.10.1 (0.30s)
Computing version for https://github.com/kylef/PathKit.git
Computed https://github.com/kylef/PathKit.git at 1.0.1 (1.16s)
Creating working copy for https://github.com/SoftwareEngineerChris/Consolidate.git
Working copy of https://github.com/SoftwareEngineerChris/Consolidate.git resolved at 1.2.1
Creating working copy for https://github.com/kylef/PathKit.git
Working copy of https://github.com/kylef/PathKit.git resolved at 1.0.1
Creating working copy for https://github.com/stencilproject/Stencil.git
Working copy of https://github.com/stencilproject/Stencil.git resolved at 0.15.1
Creating working copy for https://github.com/SoftwareEngineerChris/MonetaryAmount.git
Working copy of https://github.com/SoftwareEngineerChris/MonetaryAmount.git resolved at 1.1.1
Creating working copy for https://github.com/kylef/Spectre.git
Working copy of https://github.com/kylef/Spectre.git resolved at 0.10.1
Creating working copy for https://github.com/SoftwareEngineerChris/RoundedDecimal.git
Working copy of https://github.com/SoftwareEngineerChris/RoundedDecimal.git resolved at 2.2.2
Building for debugging...
[1/15] Emitting module RoundedDecimal
[2/15] Emitting module Consolidate
[3/15] Compiling Consolidate Consolidatable.swift
[4/15] Compiling RoundedDecimal RoundedDecimal.swift
[5/15] Compiling RoundedDecimal Decimal+Rounding.swift
[6/15] Compiling RoundedDecimal DynamicRoundedDecimal.swift
[7/15] Compiling RoundedDecimal DecimalTypes.swift
[11/19] Wrapping AST for Consolidate for debugging
[12/19] Archiving libConsolidate.a
[13/19] Wrapping AST for RoundedDecimal for debugging
[14/19] Archiving libRoundedDecimal.a
[16/27] Compiling MonetaryAmount MonetaryAmount+Negation.swift
[17/28] Compiling MonetaryAmount MonetaryAmount+Arithmetic.swift
[18/28] Compiling MonetaryAmount MonetaryAmount+Consolidation.swift
[19/28] Compiling MonetaryAmount Currency.swift
[20/28] Compiling MonetaryAmount MonetaryAmount+Construction.swift
[21/28] Compiling MonetaryAmount MonetaryAmount.swift
[22/28] Compiling MonetaryAmount NumberFormatter+Currency.swift
[23/28] Emitting module MonetaryAmount
[24/28] Compiling MonetaryAmount Currencies+Generated.swift
[26/30] Wrapping AST for MonetaryAmount for debugging
[27/30] Archiving libMonetaryAmount.a
error: emit-module command failed with exit code 1 (use -v to see invocation)
[29/33] Compiling MonetaryExchange MonetaryExchange.swift
[30/33] Emitting module MonetaryExchange
/host/spi-builder-workspace/Sources/MonetaryExchange/MonetaryExchange+Fixer.swift:50:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
            session: URLSession = .shared,
                     ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/MonetaryExchange/MonetaryExchange+Fixer.swift:56:14: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        ) -> URLSessionTask? {
             ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/MonetaryExchange/MonetaryExchange+Fixer.swift:50:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
            session: URLSession = .shared,
                                  ~^~~~~~
[31/33] Compiling MonetaryExchange MonetaryExchange+Fixer.swift
/host/spi-builder-workspace/Sources/MonetaryExchange/MonetaryExchange+Fixer.swift:50:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
            session: URLSession = .shared,
                     ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/MonetaryExchange/MonetaryExchange+Fixer.swift:56:14: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        ) -> URLSessionTask? {
             ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/MonetaryExchange/MonetaryExchange+Fixer.swift:50:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
            session: URLSession = .shared,
                                  ~^~~~~~
/host/spi-builder-workspace/Sources/MonetaryExchange/MonetaryExchange+Fixer.swift:74:27: error: cannot find 'URLRequest' in scope
            let request = URLRequest(url: completeURL)
                          ^~~~~~~~~~
/host/spi-builder-workspace/Sources/MonetaryExchange/MonetaryExchange+Fixer.swift:75:36: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
            let dataTask = session.dataTask(with: request) { (data: Data?, response: URLResponse?, error: Error?) in
                           ~~~~~~~ ^~~~~~~~
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 2