The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build VatNumberKit, reference 2.0.0 (da260c), with Swift 6.1 for Linux on 27 Apr 2025 09:19:38 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/frederik-jacques/vatnumberkit.git
Reference: 2.0.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/frederik-jacques/vatnumberkit
 * tag               2.0.0      -> FETCH_HEAD
HEAD is now at da260cd Updated Belgian VAT number to also match common formatting
Cloned https://github.com/frederik-jacques/vatnumberkit.git
Revision (git rev-parse @):
da260cd6319e0ed560dd068c486f076c93ec052a
SUCCESS checkout https://github.com/frederik-jacques/vatnumberkit.git at 2.0.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/frederik-jacques/vatnumberkit.git
https://github.com/frederik-jacques/vatnumberkit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "VatNumberKit",
  "name" : "VatNumberKit",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "VatNumberKit",
      "targets" : [
        "VatNumberKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "VatNumberKitTests",
      "module_type" : "SwiftTarget",
      "name" : "VatNumberKitTests",
      "path" : "Tests/VatNumberKitTests",
      "sources" : [
        "Converters/IrishVatNumberConverterTests.swift",
        "Countries/Austria/AustriaVatNumberTests.swift",
        "Countries/Belgium/BelgiumVatNumberTests.swift",
        "Countries/Bulgaria/BulgariaVatNumberTests.swift",
        "Countries/Croatia/CroatiaVatNumberTests.swift",
        "Countries/Cyprus/CyprusVatNumberTests.swift",
        "Countries/Czech Replublic/CzechRepublicVatNumberTests.swift",
        "Countries/Denmark/DenmarkVatNumberTests.swift",
        "Countries/Estonia/EstoniaVatNumberTests.swift",
        "Countries/European Entity/EuropeanEntityVatNumberTests.swift",
        "Countries/Finland/FinlandVatNumberTests.swift",
        "Countries/France/FranceVatNumberTests.swift",
        "Countries/Germany/GermanyVatNumberTests.swift",
        "Countries/Great Britain/GreatBritainVatNumberTests.swift",
        "Countries/Greece/GreeceVatNumberTests.swift",
        "Countries/Hungary/HungaryVatNumberTests.swift",
        "Countries/Ireland/IrelandVatNumberTests.swift",
        "Countries/Italy/ItalyVatNumberTests.swift",
        "Countries/Latvia/LatviaVatNumberTests.swift",
        "Countries/Lithuania/LithuaniaVatNumberTests.swift",
        "Countries/Luxembourg/LuxembourgVatNumberTests.swift",
        "Countries/Malta/MaltaVatNumberTests.swift",
        "Countries/Netherlands/NetherlandsVatNumberTests.swift",
        "Countries/Northern Ireland/NorthernIrelandVatNumberTests.swift",
        "Countries/Poland/PolandVatNumberTests.swift",
        "Countries/Portugal/PortugalVatNumberTests.swift",
        "Countries/Romania/RomaniaVatNumberTests.swift",
        "Countries/Slovakia/SlovakiaVatNumberTests.swift",
        "Countries/Slovenia/SloveniaVatNumberTests.swift",
        "Countries/Spain/SpainVatNumberTests.swift",
        "Countries/Sweden/SwedenVatNumberTests.swift",
        "Extensions/String/StringAlphanumericTests.swift",
        "Extensions/String/StringDiacriticsTests.swift",
        "Models/VatNumberCountryTests.swift",
        "Models/VatNumberTests.swift",
        "Validators/Checksum/AustriaChecksumValidatorTests.swift",
        "Validators/Checksum/BelgiumChecksumValidatorTests.swift",
        "Validators/Checksum/BulgariaChecksumValidatorTests.swift",
        "Validators/Checksum/CroatiaChecksumValidatorTests.swift",
        "Validators/Checksum/CyprusChecksumValidatorTests.swift",
        "Validators/Checksum/CzechRepublicChecksumValidatorTests.swift",
        "Validators/Checksum/DenmarkChecksumValidatorTests.swift",
        "Validators/Checksum/EstoniaChecksumValidatorTests.swift",
        "Validators/Checksum/EuropeanEntityChecksumValidatorTests.swift",
        "Validators/Checksum/FinlandChecksumValidatorTests.swift",
        "Validators/Checksum/FranceChecksumValidatorTests.swift",
        "Validators/Checksum/GermanyChecksumValidatorTests.swift",
        "Validators/Checksum/GreatBritainChecksumValidatorTests.swift",
        "Validators/Checksum/GreeceChecksumValidatorTests.swift",
        "Validators/Checksum/HungaryChecksumValidatorTests.swift",
        "Validators/Checksum/IrelandChecksumValidatorTests.swift",
        "Validators/Checksum/ItalyChecksumValidatorTests.swift",
        "Validators/Checksum/LatviaChecksumValidatorTests.swift",
        "Validators/Checksum/LithuaniaChecksumValidatorTests.swift",
        "Validators/Checksum/LuxembourgChecksumValidatorTests.swift",
        "Validators/Checksum/MaltaChecksumValidatorTests.swift",
        "Validators/Checksum/NetherlandsChecksumValidatorTests.swift",
        "Validators/Checksum/NorthernIrelandChecksumValidatorTests.swift",
        "Validators/Checksum/PolandChecksumValidatorTests.swift",
        "Validators/Checksum/PortugalChecksumValidatorTests.swift",
        "Validators/Checksum/RomaniaChecksumValidatorTests.swift",
        "Validators/Checksum/SlovakiaChecksumValidatorTests.swift",
        "Validators/Checksum/SloveniaChecksumValidatorTests.swift",
        "Validators/Checksum/SpainChecksumValidatorTests.swift",
        "Validators/Checksum/SwedenChecksumValidatorTests.swift",
        "Validators/Online/Services/MockUrlProtocol.swift",
        "Validators/Online/Services/Mocks.swift",
        "Validators/Online/Services/ValidationServiceTests.swift",
        "VatNumberKitTests.swift"
      ],
      "target_dependencies" : [
        "VatNumberKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "VatNumberKit",
      "module_type" : "SwiftTarget",
      "name" : "VatNumberKit",
      "path" : "Sources/VatNumberKit",
      "product_memberships" : [
        "VatNumberKit"
      ],
      "sources" : [
        "Converters/IrishVatNumberConverter.swift",
        "Extensions/BinaryInteger/BinaryInteger+Clamp.swift",
        "Extensions/String/String+Alphanumeric.swift",
        "Extensions/String/String+RangeSubscript.swift",
        "Helpers/VatNumberKit_ChecksumHelper.swift",
        "Models/VatNumberKit_Country.swift",
        "Models/VatNumberKit_ValidationMode.swift",
        "Models/VatNumberKit_ValidationOutput.swift",
        "Models/VatNumberKit_ValidationServiceOutput.swift",
        "Models/VatNumberKit_VatNumber.swift",
        "Validators/Checksum/VatNumberKit_AustriaChecksumValidator.swift",
        "Validators/Checksum/VatNumberKit_BelgiumChecksumValidator.swift",
        "Validators/Checksum/VatNumberKit_BulgariaChecksumValidator.swift",
        "Validators/Checksum/VatNumberKit_ChecksumValidator.swift",
        "Validators/Checksum/VatNumberKit_CroatiaChecksumValidator.swift",
        "Validators/Checksum/VatNumberKit_CyprusChecksumValidator.swift",
        "Validators/Checksum/VatNumberKit_CzechRepublicChecksumValidator.swift",
        "Validators/Checksum/VatNumberKit_DenmarkChecksumValidator.swift",
        "Validators/Checksum/VatNumberKit_EstoniaChecksumValidator.swift",
        "Validators/Checksum/VatNumberKit_EuropeanEntityValidator.swift",
        "Validators/Checksum/VatNumberKit_FinlandChecksumValidator.swift",
        "Validators/Checksum/VatNumberKit_FranceChecksumValidator.swift",
        "Validators/Checksum/VatNumberKit_GermanyChecksumValidator.swift",
        "Validators/Checksum/VatNumberKit_GreatBritainChecksumValidator.swift",
        "Validators/Checksum/VatNumberKit_GreeceChecksumValidator.swift",
        "Validators/Checksum/VatNumberKit_HungaryChecksumValidator.swift",
        "Validators/Checksum/VatNumberKit_IrelandChecksumValidator.swift",
        "Validators/Checksum/VatNumberKit_ItalyChecksumValidator.swift",
        "Validators/Checksum/VatNumberKit_LatviaChecksumValidator.swift",
        "Validators/Checksum/VatNumberKit_LithuaniaChecksumValidator.swift",
        "Validators/Checksum/VatNumberKit_LuxembourgChecksumValidator.swift",
        "Validators/Checksum/VatNumberKit_MaltaChecksumValidator.swift",
        "Validators/Checksum/VatNumberKit_NetherlandsChecksumValidator.swift",
        "Validators/Checksum/VatNumberKit_NorthernIrelandChecksumValidator.swift",
        "Validators/Checksum/VatNumberKit_PolandChecksumValidator.swift",
        "Validators/Checksum/VatNumberKit_PortugalChecksumValidator.swift",
        "Validators/Checksum/VatNumberKit_RomaniaChecksumValidator.swift",
        "Validators/Checksum/VatNumberKit_SlovakiaChecksumValidator.swift",
        "Validators/Checksum/VatNumberKit_SloveniaChecksumValidator.swift",
        "Validators/Checksum/VatNumberKit_SpainChecksumValidator.swift",
        "Validators/Checksum/VatNumberKit_SwedenChecksumValidator.swift",
        "Validators/Online/Services/Response Models/VatNumberKit_EUVatServiceResponse.swift",
        "Validators/Online/Services/Response Models/VatNumberKit_UkVatServiceResponse.swift",
        "Validators/Online/Services/VatNumberKit_ValidationService.swift",
        "VatNumberKit.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/43] Compiling VatNumberKit IrishVatNumberConverter.swift
[4/43] Compiling VatNumberKit BinaryInteger+Clamp.swift
[5/43] Compiling VatNumberKit String+Alphanumeric.swift
[6/43] Compiling VatNumberKit String+RangeSubscript.swift
[7/43] Compiling VatNumberKit VatNumberKit_ChecksumHelper.swift
[8/43] Compiling VatNumberKit VatNumberKit_Country.swift
[9/43] Compiling VatNumberKit VatNumberKit_PortugalChecksumValidator.swift
[10/43] Compiling VatNumberKit VatNumberKit_RomaniaChecksumValidator.swift
[11/43] Compiling VatNumberKit VatNumberKit_SlovakiaChecksumValidator.swift
[12/43] Compiling VatNumberKit VatNumberKit_SloveniaChecksumValidator.swift
[13/43] Compiling VatNumberKit VatNumberKit_SpainChecksumValidator.swift
[14/48] Compiling VatNumberKit VatNumberKit_EstoniaChecksumValidator.swift
[15/48] Compiling VatNumberKit VatNumberKit_EuropeanEntityValidator.swift
[16/48] Compiling VatNumberKit VatNumberKit_FinlandChecksumValidator.swift
[17/48] Compiling VatNumberKit VatNumberKit_FranceChecksumValidator.swift
[18/48] Compiling VatNumberKit VatNumberKit_GermanyChecksumValidator.swift
[19/48] Compiling VatNumberKit VatNumberKit_GreatBritainChecksumValidator.swift
[20/48] Compiling VatNumberKit VatNumberKit_ValidationMode.swift
[21/48] Compiling VatNumberKit VatNumberKit_ValidationOutput.swift
[22/48] Compiling VatNumberKit VatNumberKit_ValidationServiceOutput.swift
[23/48] Compiling VatNumberKit VatNumberKit_VatNumber.swift
[24/48] Compiling VatNumberKit VatNumberKit_AustriaChecksumValidator.swift
[25/48] Compiling VatNumberKit VatNumberKit_BelgiumChecksumValidator.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[26/48] Compiling VatNumberKit VatNumberKit_BulgariaChecksumValidator.swift
[27/48] Compiling VatNumberKit VatNumberKit_ChecksumValidator.swift
[28/48] Compiling VatNumberKit VatNumberKit_CroatiaChecksumValidator.swift
[29/48] Compiling VatNumberKit VatNumberKit_CyprusChecksumValidator.swift
[30/48] Compiling VatNumberKit VatNumberKit_CzechRepublicChecksumValidator.swift
[31/48] Compiling VatNumberKit VatNumberKit_DenmarkChecksumValidator.swift
[32/48] 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.
 21 |     struct ValidationService {
 22 |
 23 |         private let urlSession: URLSession
    |                                 `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |
 25 |         init(urlSession: URLSession) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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.
 23 |         private let urlSession: URLSession
 24 |
 25 |         init(urlSession: URLSession) {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |             self.urlSession = urlSession
 27 |         }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
[33/48] Compiling VatNumberKit VatNumberKit_LuxembourgChecksumValidator.swift
[34/48] Compiling VatNumberKit VatNumberKit_MaltaChecksumValidator.swift
[35/48] Compiling VatNumberKit VatNumberKit_NetherlandsChecksumValidator.swift
[36/48] Compiling VatNumberKit VatNumberKit_NorthernIrelandChecksumValidator.swift
[37/48] Compiling VatNumberKit VatNumberKit_PolandChecksumValidator.swift
[38/48] Compiling VatNumberKit VatNumberKit_GreeceChecksumValidator.swift
[39/48] Compiling VatNumberKit VatNumberKit_HungaryChecksumValidator.swift
[40/48] Compiling VatNumberKit VatNumberKit_IrelandChecksumValidator.swift
[41/48] Compiling VatNumberKit VatNumberKit_ItalyChecksumValidator.swift
[42/48] Compiling VatNumberKit VatNumberKit_LatviaChecksumValidator.swift
[43/48] Compiling VatNumberKit VatNumberKit_LithuaniaChecksumValidator.swift
[44/48] 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.
 21 |     struct ValidationService {
 22 |
 23 |         private let urlSession: URLSession
    |                                 `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |
 25 |         init(urlSession: URLSession) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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.
 23 |         private let urlSession: URLSession
 24 |
 25 |         init(urlSession: URLSession) {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |             self.urlSession = urlSession
 27 |         }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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'
 42 |             }
 43 |
 44 |             let task = urlSession.dataTask(with: url, completionHandler: { (data, response, error) in
    |                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 45 |                 guard error == nil else {
 46 |                     completionHandler(.failure(error!))
/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'
 95 |             }
 96 |
 97 |             let task = urlSession.dataTask(with: url, completionHandler: { (data, response, error) in
    |                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 98 |                 guard error == nil else {
 99 |                     completionHandler(.failure(error!))
/host/spi-builder-workspace/Sources/VatNumberKit/VatNumberKit.swift:97:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 95 |         }
 96 |
 97 |         let validationService = ValidationService(urlSession: URLSession.shared)
    |                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 98 |         validationService.validate(vatNumber: vatNumber, completionHandler: completionHandler)
 99 |     }
[45/48] 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.
 21 |     struct ValidationService {
 22 |
 23 |         private let urlSession: URLSession
    |                                 `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |
 25 |         init(urlSession: URLSession) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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.
 23 |         private let urlSession: URLSession
 24 |
 25 |         init(urlSession: URLSession) {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |             self.urlSession = urlSession
 27 |         }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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'
 42 |             }
 43 |
 44 |             let task = urlSession.dataTask(with: url, completionHandler: { (data, response, error) in
    |                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 45 |                 guard error == nil else {
 46 |                     completionHandler(.failure(error!))
/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'
 95 |             }
 96 |
 97 |             let task = urlSession.dataTask(with: url, completionHandler: { (data, response, error) in
    |                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 98 |                 guard error == nil else {
 99 |                     completionHandler(.failure(error!))
/host/spi-builder-workspace/Sources/VatNumberKit/VatNumberKit.swift:97:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 95 |         }
 96 |
 97 |         let validationService = ValidationService(urlSession: URLSession.shared)
    |                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 98 |         validationService.validate(vatNumber: vatNumber, completionHandler: completionHandler)
 99 |     }
[46/48] 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.
 21 |     struct ValidationService {
 22 |
 23 |         private let urlSession: URLSession
    |                                 `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |
 25 |         init(urlSession: URLSession) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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.
 23 |         private let urlSession: URLSession
 24 |
 25 |         init(urlSession: URLSession) {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |             self.urlSession = urlSession
 27 |         }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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'
 42 |             }
 43 |
 44 |             let task = urlSession.dataTask(with: url, completionHandler: { (data, response, error) in
    |                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 45 |                 guard error == nil else {
 46 |                     completionHandler(.failure(error!))
/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'
 95 |             }
 96 |
 97 |             let task = urlSession.dataTask(with: url, completionHandler: { (data, response, error) in
    |                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 98 |                 guard error == nil else {
 99 |                     completionHandler(.failure(error!))
/host/spi-builder-workspace/Sources/VatNumberKit/VatNumberKit.swift:97:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 95 |         }
 96 |
 97 |         let validationService = ValidationService(urlSession: URLSession.shared)
    |                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 98 |         validationService.validate(vatNumber: vatNumber, completionHandler: completionHandler)
 99 |     }
[47/48] 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.
 21 |     struct ValidationService {
 22 |
 23 |         private let urlSession: URLSession
    |                                 `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |
 25 |         init(urlSession: URLSession) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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.
 23 |         private let urlSession: URLSession
 24 |
 25 |         init(urlSession: URLSession) {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |             self.urlSession = urlSession
 27 |         }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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'
 42 |             }
 43 |
 44 |             let task = urlSession.dataTask(with: url, completionHandler: { (data, response, error) in
    |                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 45 |                 guard error == nil else {
 46 |                     completionHandler(.failure(error!))
/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'
 95 |             }
 96 |
 97 |             let task = urlSession.dataTask(with: url, completionHandler: { (data, response, error) in
    |                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 98 |                 guard error == nil else {
 99 |                     completionHandler(.failure(error!))
/host/spi-builder-workspace/Sources/VatNumberKit/VatNumberKit.swift:97:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 95 |         }
 96 |
 97 |         let validationService = ValidationService(urlSession: URLSession.shared)
    |                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 98 |         validationService.validate(vatNumber: vatNumber, completionHandler: completionHandler)
 99 |     }
[48/48] 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.
 21 |     struct ValidationService {
 22 |
 23 |         private let urlSession: URLSession
    |                                 `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |
 25 |         init(urlSession: URLSession) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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.
 23 |         private let urlSession: URLSession
 24 |
 25 |         init(urlSession: URLSession) {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |             self.urlSession = urlSession
 27 |         }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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'
 42 |             }
 43 |
 44 |             let task = urlSession.dataTask(with: url, completionHandler: { (data, response, error) in
    |                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 45 |                 guard error == nil else {
 46 |                     completionHandler(.failure(error!))
/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'
 95 |             }
 96 |
 97 |             let task = urlSession.dataTask(with: url, completionHandler: { (data, response, error) in
    |                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 98 |                 guard error == nil else {
 99 |                     completionHandler(.failure(error!))
/host/spi-builder-workspace/Sources/VatNumberKit/VatNumberKit.swift:97:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 95 |         }
 96 |
 97 |         let validationService = ValidationService(urlSession: URLSession.shared)
    |                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 98 |         validationService.validate(vatNumber: vatNumber, completionHandler: completionHandler)
 99 |     }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/42] Compiling VatNumberKit VatNumberKit_LuxembourgChecksumValidator.swift
[3/42] Compiling VatNumberKit VatNumberKit_MaltaChecksumValidator.swift
[4/42] Compiling VatNumberKit VatNumberKit_NetherlandsChecksumValidator.swift
[5/42] Compiling VatNumberKit VatNumberKit_NorthernIrelandChecksumValidator.swift
[6/42] Compiling VatNumberKit VatNumberKit_PolandChecksumValidator.swift
[7/47] Compiling VatNumberKit IrishVatNumberConverter.swift
[8/47] Compiling VatNumberKit BinaryInteger+Clamp.swift
[9/47] Compiling VatNumberKit String+Alphanumeric.swift
[10/47] Compiling VatNumberKit String+RangeSubscript.swift
[11/47] Compiling VatNumberKit VatNumberKit_ChecksumHelper.swift
[12/47] Compiling VatNumberKit VatNumberKit_Country.swift
[13/47] Compiling VatNumberKit VatNumberKit_BulgariaChecksumValidator.swift
[14/47] Compiling VatNumberKit VatNumberKit_ChecksumValidator.swift
[15/47] Compiling VatNumberKit VatNumberKit_CroatiaChecksumValidator.swift
[16/47] Compiling VatNumberKit VatNumberKit_CyprusChecksumValidator.swift
[17/47] Compiling VatNumberKit VatNumberKit_CzechRepublicChecksumValidator.swift
[18/47] Compiling VatNumberKit VatNumberKit_DenmarkChecksumValidator.swift
[19/47] Compiling VatNumberKit VatNumberKit_EstoniaChecksumValidator.swift
[20/47] Compiling VatNumberKit VatNumberKit_EuropeanEntityValidator.swift
[21/47] Compiling VatNumberKit VatNumberKit_FinlandChecksumValidator.swift
[22/47] Compiling VatNumberKit VatNumberKit_FranceChecksumValidator.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[23/47] Compiling VatNumberKit VatNumberKit_GermanyChecksumValidator.swift
[24/47] Compiling VatNumberKit VatNumberKit_GreatBritainChecksumValidator.swift
[25/47] Compiling VatNumberKit VatNumberKit_GreeceChecksumValidator.swift
[26/47] Compiling VatNumberKit VatNumberKit_HungaryChecksumValidator.swift
[27/47] Compiling VatNumberKit VatNumberKit_IrelandChecksumValidator.swift
[28/47] Compiling VatNumberKit VatNumberKit_ItalyChecksumValidator.swift
[29/47] Compiling VatNumberKit VatNumberKit_LatviaChecksumValidator.swift
[30/47] Compiling VatNumberKit VatNumberKit_LithuaniaChecksumValidator.swift
[31/47] 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.
 21 |     struct ValidationService {
 22 |
 23 |         private let urlSession: URLSession
    |                                 `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |
 25 |         init(urlSession: URLSession) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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.
 23 |         private let urlSession: URLSession
 24 |
 25 |         init(urlSession: URLSession) {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |             self.urlSession = urlSession
 27 |         }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
[32/47] Compiling VatNumberKit VatNumberKit_ValidationMode.swift
[33/47] Compiling VatNumberKit VatNumberKit_ValidationOutput.swift
[34/47] Compiling VatNumberKit VatNumberKit_ValidationServiceOutput.swift
[35/47] Compiling VatNumberKit VatNumberKit_VatNumber.swift
[36/47] Compiling VatNumberKit VatNumberKit_AustriaChecksumValidator.swift
[37/47] Compiling VatNumberKit VatNumberKit_BelgiumChecksumValidator.swift
[38/47] Compiling VatNumberKit VatNumberKit_PortugalChecksumValidator.swift
[39/47] Compiling VatNumberKit VatNumberKit_RomaniaChecksumValidator.swift
[40/47] Compiling VatNumberKit VatNumberKit_SlovakiaChecksumValidator.swift
[41/47] Compiling VatNumberKit VatNumberKit_SloveniaChecksumValidator.swift
[42/47] Compiling VatNumberKit VatNumberKit_SpainChecksumValidator.swift
[43/47] 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.
 21 |     struct ValidationService {
 22 |
 23 |         private let urlSession: URLSession
    |                                 `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |
 25 |         init(urlSession: URLSession) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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.
 23 |         private let urlSession: URLSession
 24 |
 25 |         init(urlSession: URLSession) {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |             self.urlSession = urlSession
 27 |         }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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'
 42 |             }
 43 |
 44 |             let task = urlSession.dataTask(with: url, completionHandler: { (data, response, error) in
    |                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 45 |                 guard error == nil else {
 46 |                     completionHandler(.failure(error!))
/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'
 95 |             }
 96 |
 97 |             let task = urlSession.dataTask(with: url, completionHandler: { (data, response, error) in
    |                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 98 |                 guard error == nil else {
 99 |                     completionHandler(.failure(error!))
/host/spi-builder-workspace/Sources/VatNumberKit/VatNumberKit.swift:97:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 95 |         }
 96 |
 97 |         let validationService = ValidationService(urlSession: URLSession.shared)
    |                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 98 |         validationService.validate(vatNumber: vatNumber, completionHandler: completionHandler)
 99 |     }
[44/47] 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.
 21 |     struct ValidationService {
 22 |
 23 |         private let urlSession: URLSession
    |                                 `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |
 25 |         init(urlSession: URLSession) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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.
 23 |         private let urlSession: URLSession
 24 |
 25 |         init(urlSession: URLSession) {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |             self.urlSession = urlSession
 27 |         }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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'
 42 |             }
 43 |
 44 |             let task = urlSession.dataTask(with: url, completionHandler: { (data, response, error) in
    |                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 45 |                 guard error == nil else {
 46 |                     completionHandler(.failure(error!))
/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'
 95 |             }
 96 |
 97 |             let task = urlSession.dataTask(with: url, completionHandler: { (data, response, error) in
    |                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 98 |                 guard error == nil else {
 99 |                     completionHandler(.failure(error!))
/host/spi-builder-workspace/Sources/VatNumberKit/VatNumberKit.swift:97:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 95 |         }
 96 |
 97 |         let validationService = ValidationService(urlSession: URLSession.shared)
    |                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 98 |         validationService.validate(vatNumber: vatNumber, completionHandler: completionHandler)
 99 |     }
[45/47] 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.
 21 |     struct ValidationService {
 22 |
 23 |         private let urlSession: URLSession
    |                                 `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |
 25 |         init(urlSession: URLSession) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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.
 23 |         private let urlSession: URLSession
 24 |
 25 |         init(urlSession: URLSession) {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |             self.urlSession = urlSession
 27 |         }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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'
 42 |             }
 43 |
 44 |             let task = urlSession.dataTask(with: url, completionHandler: { (data, response, error) in
    |                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 45 |                 guard error == nil else {
 46 |                     completionHandler(.failure(error!))
/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'
 95 |             }
 96 |
 97 |             let task = urlSession.dataTask(with: url, completionHandler: { (data, response, error) in
    |                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 98 |                 guard error == nil else {
 99 |                     completionHandler(.failure(error!))
/host/spi-builder-workspace/Sources/VatNumberKit/VatNumberKit.swift:97:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 95 |         }
 96 |
 97 |         let validationService = ValidationService(urlSession: URLSession.shared)
    |                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 98 |         validationService.validate(vatNumber: vatNumber, completionHandler: completionHandler)
 99 |     }
[46/47] 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.
 21 |     struct ValidationService {
 22 |
 23 |         private let urlSession: URLSession
    |                                 `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |
 25 |         init(urlSession: URLSession) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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.
 23 |         private let urlSession: URLSession
 24 |
 25 |         init(urlSession: URLSession) {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |             self.urlSession = urlSession
 27 |         }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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'
 42 |             }
 43 |
 44 |             let task = urlSession.dataTask(with: url, completionHandler: { (data, response, error) in
    |                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 45 |                 guard error == nil else {
 46 |                     completionHandler(.failure(error!))
/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'
 95 |             }
 96 |
 97 |             let task = urlSession.dataTask(with: url, completionHandler: { (data, response, error) in
    |                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 98 |                 guard error == nil else {
 99 |                     completionHandler(.failure(error!))
/host/spi-builder-workspace/Sources/VatNumberKit/VatNumberKit.swift:97:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 95 |         }
 96 |
 97 |         let validationService = ValidationService(urlSession: URLSession.shared)
    |                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 98 |         validationService.validate(vatNumber: vatNumber, completionHandler: completionHandler)
 99 |     }
[47/47] 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.
 21 |     struct ValidationService {
 22 |
 23 |         private let urlSession: URLSession
    |                                 `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |
 25 |         init(urlSession: URLSession) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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.
 23 |         private let urlSession: URLSession
 24 |
 25 |         init(urlSession: URLSession) {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |             self.urlSession = urlSession
 27 |         }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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'
 42 |             }
 43 |
 44 |             let task = urlSession.dataTask(with: url, completionHandler: { (data, response, error) in
    |                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 45 |                 guard error == nil else {
 46 |                     completionHandler(.failure(error!))
/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'
 95 |             }
 96 |
 97 |             let task = urlSession.dataTask(with: url, completionHandler: { (data, response, error) in
    |                                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 98 |                 guard error == nil else {
 99 |                     completionHandler(.failure(error!))
/host/spi-builder-workspace/Sources/VatNumberKit/VatNumberKit.swift:97:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 95 |         }
 96 |
 97 |         let validationService = ValidationService(urlSession: URLSession.shared)
    |                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 98 |         validationService.validate(vatNumber: vatNumber, completionHandler: completionHandler)
 99 |     }
BUILD FAILURE 6.1 linux