Build Information
Failed to build StarCraftKit, reference master (c4d485
), with Swift 5.8 for Linux on 2 Nov 2024 08:16:47 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/marcusziade/StarCraftKit.git
Reference: master
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/marcusziade/StarCraftKit
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at c4d485a Update README.md
Cloned https://github.com/marcusziade/StarCraftKit.git
Revision (git rev-parse @):
c4d485af27ad53dc8c30fefacf221a1de05f9565
SUCCESS checkout https://github.com/marcusziade/StarCraftKit.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 5.8
Building package at path: $PWD
https://github.com/marcusziade/StarCraftKit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-5.8-latest: Pulling from finestructure/spi-images
Digest: sha256:d566266dd4ad92a164016b2b7f1872d3752585be93b4a9fa631006f2c48d84d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.8-latest
Building for debugging...
[1/12] Compiling StarCraftKit StarCraftAPI.swift
/host/spi-builder-workspace/Sources/StarCraftKit/API_PandaScore/StarCraftAPI.swift:20:44: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(token: String, urlSession: URLSession = .shared) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/StarCraftKit/API_PandaScore/StarCraftAPI.swift:20:58: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public init(token: String, urlSession: URLSession = .shared) {
~^~~~~~
/host/spi-builder-workspace/Sources/StarCraftKit/API_PandaScore/StarCraftAPI.swift:54:29: 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/StarCraftKit/API_PandaScore/StarCraftAPI.swift:92:45: error: cannot find type 'URLRequest' in scope
private func createRequest(url: URL) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/StarCraftKit/API_PandaScore/StarCraftAPI.swift:82:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, response) = try await urlSession.data(for: request)
~~~~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/StarCraftKit/API_PandaScore/StarCraftAPI.swift:87:82: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
throw PandaScoreAPIError(statusCode: (response as? HTTPURLResponse)?.statusCode ?? 500)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/StarCraftKit/API_PandaScore/StarCraftAPI.swift:93:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url)
^~~~~~~~~~
[2/13] Compiling StarCraftKit StarCraft2Endpoint.swift
[3/13] Compiling StarCraftKit Array+Ext.swift
[4/13] Compiling StarCraftKit TournamentResponse.swift
[5/13] Compiling StarCraftKit PlayersResponse.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/13] Compiling StarCraftKit MatchResponse.swift
[7/13] Compiling StarCraftKit DateFormatter+Ext.swift
[8/13] Compiling StarCraftKit SharedPandaScore.swift
[9/13] Compiling StarCraftKit PandaScoreAPIError.swift
[10/13] Emitting module StarCraftKit
/host/spi-builder-workspace/Sources/StarCraftKit/API_PandaScore/StarCraftAPI.swift:20:44: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(token: String, urlSession: URLSession = .shared) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/StarCraftKit/API_PandaScore/StarCraftAPI.swift:20:58: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public init(token: String, urlSession: URLSession = .shared) {
~^~~~~~
/host/spi-builder-workspace/Sources/StarCraftKit/API_PandaScore/StarCraftAPI.swift:54:29: 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/StarCraftKit/API_PandaScore/StarCraftAPI.swift:92:45: error: cannot find type 'URLRequest' in scope
private func createRequest(url: URL) -> URLRequest {
^~~~~~~~~~
BUILD FAILURE 5.8 linux