Build Information
Failed to build JSONHTTPClient with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.41.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/otaviokz/JSONHTTPClient.git
Reference: v1.1.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/otaviokz/JSONHTTPClient
* tag v1.1.0 -> FETCH_HEAD
HEAD is now at 23c1671 Merge pull request #2 from otaviokz/v1.0.3
Cloned https://github.com/otaviokz/JSONHTTPClient.git
Revision (git rev-parse @):
23c1671af60dcc61b447386db2fae27981a2fd6a
SUCCESS checkout https://github.com/otaviokz/JSONHTTPClient.git at v1.1.0
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $workDir
https://github.com/otaviokz/JSONHTTPClient.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Unable to find image 'registry.gitlab.com/finestructure/spi-images:basic-5.10-latest' locally
basic-5.10-latest: Pulling from finestructure/spi-images
2ec76a50fe7c: Already exists
031194576cad: Pulling fs layer
f49f3db6a794: Pulling fs layer
099074009041: Pulling fs layer
63749f897c4a: Pulling fs layer
96ea37aa9399: Pulling fs layer
63749f897c4a: Waiting
96ea37aa9399: Waiting
099074009041: Verifying Checksum
099074009041: Download complete
031194576cad: Verifying Checksum
031194576cad: Download complete
96ea37aa9399: Verifying Checksum
96ea37aa9399: Download complete
63749f897c4a: Verifying Checksum
63749f897c4a: Download complete
f49f3db6a794: Verifying Checksum
f49f3db6a794: Download complete
031194576cad: Pull complete
f49f3db6a794: Pull complete
099074009041: Pull complete
63749f897c4a: Pull complete
96ea37aa9399: Pull complete
Digest: sha256:1226fd10888e47cd0ae1a27b7ed2100bcf19aec0c3208674521a1c48cb4386bf
Status: Downloaded newer image for registry.gitlab.com/finestructure/spi-images:basic-5.10-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/6] Compiling JSONHTTPClient JSONHTTPClient.swift
/host/spi-builder-workspace/Sources/JSONHTTPClient/JSONHTTPClient.swift:30:43: error: cannot find type 'URLRequest' in scope
func connect<T: Decodable>(_ request: URLRequest) async throws -> T {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/JSONHTTPClient/JSONHTTPClient.swift:19:28: error: cannot infer contextual base in reference to member 'get'
try await connect(.get(url).headers(httpHeaders))
~^~~
/host/spi-builder-workspace/Sources/JSONHTTPClient/JSONHTTPClient.swift:24:28: error: cannot infer contextual base in reference to member 'postJSON'
try await connect(.postJSON(body, to: url).headers(httpHeaders))
~^~~~~~~~
/host/spi-builder-workspace/Sources/JSONHTTPClient/JSONHTTPClient.swift:31:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
let (data, rulResponse) = try await URLSession.shared.data(for: request)
~~~~~~~~~~ ^~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/6] Compiling JSONHTTPClient JSONHTTPClientError.swift
[5/6] Emitting module JSONHTTPClient
/host/spi-builder-workspace/Sources/JSONHTTPClient/JSONHTTPClient.swift:30:43: error: cannot find type 'URLRequest' in scope
func connect<T: Decodable>(_ request: URLRequest) async throws -> T {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/JSONHTTPClient/URLRequests+Utils.swift:15:11: error: cannot find type 'URLRequest' in scope
extension URLRequest {
^~~~~~~~~~
[6/6] Compiling JSONHTTPClient URLRequests+Utils.swift
/host/spi-builder-workspace/Sources/JSONHTTPClient/URLRequests+Utils.swift:15:11: error: cannot find type 'URLRequest' in scope
extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/JSONHTTPClient/URLRequests+Utils.swift:16:50: error: cannot find type 'URLRequest' in scope
private func method(_ method: HTTPMethod) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/JSONHTTPClient/URLRequests+Utils.swift:22:32: error: cannot find type 'URLRequest' in scope
func body(_ body: Data) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/JSONHTTPClient/URLRequests+Utils.swift:28:56: error: cannot find type 'URLRequest' in scope
static func postData(_ body: Data, to url: URL) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/JSONHTTPClient/URLRequests+Utils.swift:32:56: error: cannot find type 'URLRequest' in scope
static func postJSON(_ body: Data, to url: URL) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/JSONHTTPClient/URLRequests+Utils.swift:49:88: error: cannot find type 'URLRequest' in scope
static func get(_ url: URL, cachePolicy: CachePolicy = .useProtocolCachePolicy) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/JSONHTTPClient/URLRequests+Utils.swift:49:46: error: cannot find type 'CachePolicy' in scope
static func get(_ url: URL, cachePolicy: CachePolicy = .useProtocolCachePolicy) -> URLRequest {
^~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux