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-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/SoftwareEngineerChris/MonetaryExchange.git
Reference: master
Cloned https://github.com/SoftwareEngineerChris/MonetaryExchange.git into spi-builder-workspace
SUCCESS checkout https://github.com/SoftwareEngineerChris/MonetaryExchange.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-0":/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.23s)
Computing version for https://github.com/SoftwareEngineerChris/MonetaryAmount.git
Computed https://github.com/SoftwareEngineerChris/MonetaryAmount.git at 1.1.1 (0.31s)
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
[99/355] Fetching consolidate, roundeddecimal
[356/5475] Fetching consolidate, roundeddecimal, stencil
[368/5334] Fetching roundeddecimal, stencil
Fetched https://github.com/SoftwareEngineerChris/Consolidate.git (0.24s)
Fetched https://github.com/SoftwareEngineerChris/RoundedDecimal.git (0.24s)
[410/5120] Fetching stencil
Fetched https://github.com/stencilproject/Stencil.git (0.37s)
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.29s)
Computing version for https://github.com/stencilproject/Stencil.git
Computed https://github.com/stencilproject/Stencil.git at 0.15.1 (0.36s)
Fetching https://github.com/kylef/Spectre.git
Fetching https://github.com/kylef/PathKit.git
[1/1021] Fetching spectre
[318/2426] Fetching spectre, pathkit
Fetched https://github.com/kylef/Spectre.git (0.29s)
Fetched https://github.com/kylef/PathKit.git (0.29s)
Computing version for https://github.com/kylef/Spectre.git
Computed https://github.com/kylef/Spectre.git at 0.10.1 (0.37s)
Computing version for https://github.com/kylef/PathKit.git
Computed https://github.com/kylef/PathKit.git at 1.0.1 (1.25s)
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/PathKit.git
Working copy of https://github.com/kylef/PathKit.git resolved at 1.0.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
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/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/Consolidate.git
Working copy of https://github.com/SoftwareEngineerChris/Consolidate.git resolved at 1.2.1
Building for debugging...
[1/17] Emitting module RoundedDecimal
[2/17] Compiling RoundedDecimal Decimal+Rounding.swift
[3/17] Emitting module Consolidate
[4/17] Compiling Consolidate Consolidatable.swift
[6/18] Compiling RoundedDecimal DecimalTypes.swift
[8/19] Compiling RoundedDecimal DynamicRoundedDecimal.swift
[9/19] Compiling RoundedDecimal RoundedDecimal.swift
[11/21] Wrapping AST for Consolidate for debugging
[12/21] Archiving libConsolidate.a
[13/21] Wrapping AST for RoundedDecimal for debugging
[14/21] Archiving libRoundedDecimal.a
[16/29] Compiling MonetaryAmount MonetaryAmount+Construction.swift
[17/30] Compiling MonetaryAmount MonetaryAmount+Negation.swift
[18/30] Compiling MonetaryAmount MonetaryAmount.swift
[19/30] Compiling MonetaryAmount MonetaryAmount+Consolidation.swift
[20/30] Compiling MonetaryAmount MonetaryAmount+Arithmetic.swift
[21/30] Compiling MonetaryAmount Currency.swift
[22/30] Compiling MonetaryAmount NumberFormatter+Currency.swift
[23/30] Emitting module MonetaryAmount
[24/30] Compiling MonetaryAmount Currencies+Generated.swift
[26/32] Wrapping AST for MonetaryAmount for debugging
[27/32] Archiving libMonetaryAmount.a
error: emit-module command failed with exit code 1 (use -v to see invocation)
[29/35] Compiling MonetaryExchange MonetaryExchange.swift
[30/35] 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/35] 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