Build Information
Failed to build V2exAPI with Swift 5.8 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.8-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.22.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/isaced/V2exAPI.git
Reference: main
Cloned https://github.com/isaced/V2exAPI.git into spi-builder-workspace
SUCCESS checkout https://github.com/isaced/V2exAPI.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 5.8
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.8-latest swift build 2>&1
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/8] Emitting module V2exAPI
/host/spi-builder-workspace/Sources/V2exAPI/V2exAPI.swift:12:37: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public var session = URLSession.shared
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/V2exAPI/V2exAPI.swift:25:13: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
T?, URLResponse?
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
[2/9] Compiling V2exAPI V2Response.swift
[3/9] Compiling V2exAPI V2Notification.swift
[4/9] Compiling V2exAPI V2Comment.swift
[5/9] Compiling V2exAPI V2Member.swift
[6/9] Compiling V2exAPI V2Node.swift
[7/9] Compiling V2exAPI V2Token.swift
[8/9] Compiling V2exAPI V2Topic.swift
[9/9] Compiling V2exAPI V2exAPI.swift
/host/spi-builder-workspace/Sources/V2exAPI/V2exAPI.swift:12:37: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public var session = URLSession.shared
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/V2exAPI/V2exAPI.swift:25:13: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
T?, URLResponse?
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/V2exAPI/V2exAPI.swift:40:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: requestUrl)
^~~~~~~~~~
BUILD FAILURE 5.8 linux
Build Machine: Linux 2