The Swift Package Index logo.Swift Package Index

Build Information

Failed to build VatNumberKit with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4606859-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/frederik-jacques/vatnumberkit.git
Reference: 2.0.0
Cloned https://github.com/frederik-jacques/vatnumberkit.git into spi-builder-workspace
SUCCESS checkout https://github.com/frederik-jacques/vatnumberkit.git at 2.0.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4606859-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/41] Emitting module VatNumberKit
/host/spi-builder-workspace/Sources/VatNumberKit/Validators/Online/Services/VatNumberKit_ValidationService.swift:23:33: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        private let urlSession: URLSession
                                ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/VatNumberKit/Validators/Online/Services/VatNumberKit_ValidationService.swift:25:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        init(urlSession: URLSession) {
                         ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
[2/46] Compiling VatNumberKit VatNumberKit_GreeceChecksumValidator.swift
[3/46] Compiling VatNumberKit VatNumberKit_HungaryChecksumValidator.swift
[4/46] Compiling VatNumberKit VatNumberKit_IrelandChecksumValidator.swift
[5/46] Compiling VatNumberKit VatNumberKit_ItalyChecksumValidator.swift
[6/46] Compiling VatNumberKit VatNumberKit_LatviaChecksumValidator.swift
[7/46] Compiling VatNumberKit VatNumberKit_LithuaniaChecksumValidator.swift
[8/46] Compiling VatNumberKit VatNumberKit_ValidationMode.swift
[9/46] Compiling VatNumberKit VatNumberKit_ValidationOutput.swift
[10/46] Compiling VatNumberKit VatNumberKit_ValidationServiceOutput.swift
[11/46] Compiling VatNumberKit VatNumberKit_VatNumber.swift
[12/46] Compiling VatNumberKit VatNumberKit_AustriaChecksumValidator.swift
[13/46] Compiling VatNumberKit VatNumberKit_BelgiumChecksumValidator.swift
[14/46] Compiling VatNumberKit VatNumberKit_PortugalChecksumValidator.swift
[15/46] Compiling VatNumberKit VatNumberKit_RomaniaChecksumValidator.swift
[16/46] Compiling VatNumberKit VatNumberKit_SlovakiaChecksumValidator.swift
[17/46] Compiling VatNumberKit VatNumberKit_SloveniaChecksumValidator.swift
[18/46] Compiling VatNumberKit VatNumberKit_SpainChecksumValidator.swift
[19/46] Compiling VatNumberKit VatNumberKit_LuxembourgChecksumValidator.swift
[20/46] Compiling VatNumberKit VatNumberKit_MaltaChecksumValidator.swift
[21/46] Compiling VatNumberKit VatNumberKit_NetherlandsChecksumValidator.swift
[22/46] Compiling VatNumberKit VatNumberKit_NorthernIrelandChecksumValidator.swift
[23/46] Compiling VatNumberKit VatNumberKit_PolandChecksumValidator.swift
[24/46] Compiling VatNumberKit VatNumberKit_SwedenChecksumValidator.swift
/host/spi-builder-workspace/Sources/VatNumberKit/Validators/Online/Services/VatNumberKit_ValidationService.swift:23:33: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        private let urlSession: URLSession
                                ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/VatNumberKit/Validators/Online/Services/VatNumberKit_ValidationService.swift:25:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        init(urlSession: URLSession) {
                         ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/VatNumberKit/Validators/Online/Services/VatNumberKit_ValidationService.swift:44:35: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
            let task = urlSession.dataTask(with: url, completionHandler: { (data, response, error) in
                       ~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/VatNumberKit/Validators/Online/Services/VatNumberKit_ValidationService.swift:97:35: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
            let task = urlSession.dataTask(with: url, completionHandler: { (data, response, error) in
                       ~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/VatNumberKit/VatNumberKit.swift:97:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
        let validationService = ValidationService(urlSession: URLSession.shared)
                                                              ~~~~~~~~~~ ^~~~~~
[25/46] Compiling VatNumberKit VatNumberKit_EUVatServiceResponse.swift
/host/spi-builder-workspace/Sources/VatNumberKit/Validators/Online/Services/VatNumberKit_ValidationService.swift:23:33: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        private let urlSession: URLSession
                                ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/VatNumberKit/Validators/Online/Services/VatNumberKit_ValidationService.swift:25:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        init(urlSession: URLSession) {
                         ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/VatNumberKit/Validators/Online/Services/VatNumberKit_ValidationService.swift:44:35: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
            let task = urlSession.dataTask(with: url, completionHandler: { (data, response, error) in
                       ~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/VatNumberKit/Validators/Online/Services/VatNumberKit_ValidationService.swift:97:35: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
            let task = urlSession.dataTask(with: url, completionHandler: { (data, response, error) in
                       ~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/VatNumberKit/VatNumberKit.swift:97:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
        let validationService = ValidationService(urlSession: URLSession.shared)
                                                              ~~~~~~~~~~ ^~~~~~
[26/46] Compiling VatNumberKit VatNumberKit_UkVatServiceResponse.swift
/host/spi-builder-workspace/Sources/VatNumberKit/Validators/Online/Services/VatNumberKit_ValidationService.swift:23:33: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        private let urlSession: URLSession
                                ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/VatNumberKit/Validators/Online/Services/VatNumberKit_ValidationService.swift:25:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        init(urlSession: URLSession) {
                         ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/VatNumberKit/Validators/Online/Services/VatNumberKit_ValidationService.swift:44:35: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
            let task = urlSession.dataTask(with: url, completionHandler: { (data, response, error) in
                       ~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/VatNumberKit/Validators/Online/Services/VatNumberKit_ValidationService.swift:97:35: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
            let task = urlSession.dataTask(with: url, completionHandler: { (data, response, error) in
                       ~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/VatNumberKit/VatNumberKit.swift:97:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
        let validationService = ValidationService(urlSession: URLSession.shared)
                                                              ~~~~~~~~~~ ^~~~~~
[27/46] Compiling VatNumberKit VatNumberKit_ValidationService.swift
/host/spi-builder-workspace/Sources/VatNumberKit/Validators/Online/Services/VatNumberKit_ValidationService.swift:23:33: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        private let urlSession: URLSession
                                ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/VatNumberKit/Validators/Online/Services/VatNumberKit_ValidationService.swift:25:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        init(urlSession: URLSession) {
                         ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/VatNumberKit/Validators/Online/Services/VatNumberKit_ValidationService.swift:44:35: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
            let task = urlSession.dataTask(with: url, completionHandler: { (data, response, error) in
                       ~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/VatNumberKit/Validators/Online/Services/VatNumberKit_ValidationService.swift:97:35: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
            let task = urlSession.dataTask(with: url, completionHandler: { (data, response, error) in
                       ~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/VatNumberKit/VatNumberKit.swift:97:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
        let validationService = ValidationService(urlSession: URLSession.shared)
                                                              ~~~~~~~~~~ ^~~~~~
[28/46] Compiling VatNumberKit VatNumberKit.swift
/host/spi-builder-workspace/Sources/VatNumberKit/Validators/Online/Services/VatNumberKit_ValidationService.swift:23:33: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        private let urlSession: URLSession
                                ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/VatNumberKit/Validators/Online/Services/VatNumberKit_ValidationService.swift:25:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        init(urlSession: URLSession) {
                         ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/VatNumberKit/Validators/Online/Services/VatNumberKit_ValidationService.swift:44:35: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
            let task = urlSession.dataTask(with: url, completionHandler: { (data, response, error) in
                       ~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/VatNumberKit/Validators/Online/Services/VatNumberKit_ValidationService.swift:97:35: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
            let task = urlSession.dataTask(with: url, completionHandler: { (data, response, error) in
                       ~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/VatNumberKit/VatNumberKit.swift:97:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
        let validationService = ValidationService(urlSession: URLSession.shared)
                                                              ~~~~~~~~~~ ^~~~~~
[29/46] Compiling VatNumberKit IrishVatNumberConverter.swift
[30/46] Compiling VatNumberKit BinaryInteger+Clamp.swift
[31/46] Compiling VatNumberKit String+Alphanumeric.swift
[32/46] Compiling VatNumberKit String+RangeSubscript.swift
[33/46] Compiling VatNumberKit VatNumberKit_ChecksumHelper.swift
[34/46] Compiling VatNumberKit VatNumberKit_Country.swift
[35/46] Compiling VatNumberKit VatNumberKit_EstoniaChecksumValidator.swift
[36/46] Compiling VatNumberKit VatNumberKit_EuropeanEntityValidator.swift
[37/46] Compiling VatNumberKit VatNumberKit_FinlandChecksumValidator.swift
[38/46] Compiling VatNumberKit VatNumberKit_FranceChecksumValidator.swift
[39/46] Compiling VatNumberKit VatNumberKit_GermanyChecksumValidator.swift
[40/46] Compiling VatNumberKit VatNumberKit_GreatBritainChecksumValidator.swift
[41/46] Compiling VatNumberKit VatNumberKit_BulgariaChecksumValidator.swift
[42/46] Compiling VatNumberKit VatNumberKit_ChecksumValidator.swift
[43/46] Compiling VatNumberKit VatNumberKit_CroatiaChecksumValidator.swift
[44/46] Compiling VatNumberKit VatNumberKit_CyprusChecksumValidator.swift
[45/46] Compiling VatNumberKit VatNumberKit_CzechRepublicChecksumValidator.swift
[46/46] Compiling VatNumberKit VatNumberKit_DenmarkChecksumValidator.swift
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 1