The Swift Package Index logo.Swift Package Index

Build Information

Failed to build PostgREST with Swift 5.8 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$PWD/checkout" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.25.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/supabase-community/postgrest-swift.git
Reference: 1.0.3
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/supabase-community/postgrest-swift
 * tag               1.0.3      -> FETCH_HEAD
HEAD is now at 2afb40a chore: fix build by defining closure return type (#53)
Cloned https://github.com/supabase-community/postgrest-swift.git
Revision (git rev-parse @):
2afb40a2f91ba881db8f04131e1b5146001813a5
SUCCESS checkout https://github.com/supabase-community/postgrest-swift.git at 1.0.3
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.8
Building package at path:  $PWD/checkout
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$PWD/checkout" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build 2>&1
Fetching https://github.com/binaryscraping/GetExtensions
Fetching https://github.com/pointfreeco/swift-snapshot-testing
Fetching https://github.com/kean/Get
[1/2261] Fetching get
[522/2294] Fetching get, getextensions
Fetched https://github.com/binaryscraping/GetExtensions (0.26s)
[611/2261] Fetching get
Fetching https://github.com/apple/swift-syntax.git
[2262/13013] Fetching get, swift-snapshot-testing
Fetched https://github.com/kean/Get (0.36s)
[646/10752] Fetching swift-snapshot-testing
[2797/63703] Fetching swift-snapshot-testing, swift-syntax
Fetched https://github.com/pointfreeco/swift-snapshot-testing (1.99s)
Computing version for https://github.com/binaryscraping/GetExtensions
[52422/52951] Fetching swift-syntax
Computed https://github.com/binaryscraping/GetExtensions at 1.0.0 (0.88s)
Computing version for https://github.com/kean/Get
Computed https://github.com/kean/Get at 2.1.6 (0.56s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing
Computed https://github.com/pointfreeco/swift-snapshot-testing at 1.14.0 (0.48s)
Fetched https://github.com/apple/swift-syntax.git (4.68s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 509.0.0 (0.57s)
Creating working copy for https://github.com/pointfreeco/swift-snapshot-testing
Working copy of https://github.com/pointfreeco/swift-snapshot-testing resolved at 1.14.0
Creating working copy for https://github.com/binaryscraping/GetExtensions
Working copy of https://github.com/binaryscraping/GetExtensions resolved at 1.0.0
Creating working copy for https://github.com/kean/Get
Working copy of https://github.com/kean/Get resolved at 2.1.6
Creating working copy for https://github.com/apple/swift-syntax.git
Working copy of https://github.com/apple/swift-syntax.git resolved at 509.0.0
Building for debugging...
[1/6] Compiling Get Response.swift
[2/6] Compiling Get Request.swift
[3/6] Compiling Get APIClientDelegate.swift
[4/6] Compiling Get DataLoader.swift
[5/6] Compiling Get APIClient.swift
[6/6] Emitting module Get
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/10] Emitting module GetExtensions
/host/spi-builder-workspace/.build/checkouts/GetExtensions/Sources/GetExtensions/MultiAPIClientDelegate.swift:12:74: error: cannot find type 'URLRequest' in scope
  public func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws {
                                                                         ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/GetExtensions/Sources/GetExtensions/MultiAPIClientDelegate.swift:20:23: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    shouldRetry task: URLSessionTask,
                      ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/.build/checkouts/GetExtensions/Sources/GetExtensions/MultiAPIClientDelegate.swift:34:32: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    validateResponse response: HTTPURLResponse,
                               ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/.build/checkouts/GetExtensions/Sources/GetExtensions/MultiAPIClientDelegate.swift:36:11: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    task: URLSessionTask
          ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
[10/10] Compiling GetExtensions MultiAPIClientDelegate.swift
/host/spi-builder-workspace/.build/checkouts/GetExtensions/Sources/GetExtensions/MultiAPIClientDelegate.swift:12:74: error: cannot find type 'URLRequest' in scope
  public func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws {
                                                                         ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/GetExtensions/Sources/GetExtensions/MultiAPIClientDelegate.swift:20:23: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    shouldRetry task: URLSessionTask,
                      ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/.build/checkouts/GetExtensions/Sources/GetExtensions/MultiAPIClientDelegate.swift:34:32: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    validateResponse response: HTTPURLResponse,
                               ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/.build/checkouts/GetExtensions/Sources/GetExtensions/MultiAPIClientDelegate.swift:36:11: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    task: URLSessionTask
          ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/.build/checkouts/GetExtensions/Sources/GetExtensions/MultiAPIClientDelegate.swift:25:57: error: 'Foundation.URLSessionTask' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSessionTask'
      if try await delegate.client(client, shouldRetry: task, error: error, attempts: attempts) {
                                                        ^
/host/spi-builder-workspace/.build/checkouts/GetExtensions/Sources/GetExtensions/MultiAPIClientDelegate.swift:25:57: note: did you mean to use 'as!' to force downcast?
      if try await delegate.client(client, shouldRetry: task, error: error, attempts: attempts) {
                                                        ^
                                                             as! URLSessionTask
/host/spi-builder-workspace/.build/checkouts/GetExtensions/Sources/GetExtensions/MultiAPIClientDelegate.swift:39:20: error: no exact matches in call to instance method 'client'
      try delegate.client(client, validateResponse: response, data: data, task: task)
                   ^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClientDelegate.swift:33:10: note: candidate has partially matching parameter list (APIClient, validateResponse: HTTPURLResponse, data: Data, task: URLSessionTask)
    func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws
         ^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClientDelegate.swift:89:10: note: candidate has partially matching parameter list (APIClient, validateResponse: HTTPURLResponse, data: Data, task: URLSessionTask)
    func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws {
         ^
[0/1] Planning build
Building for debugging...
[1/1] Emitting module Get
warning: Will not do cross-module incremental builds, priors saved at TimePoint(seconds: 1699193109, nanoseconds: 0)), but the previous build started at TimePoint(seconds: 1699193109, nanoseconds: 35758000), at '/host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/GetExtensions.build/master.priors'
[4/5] Compiling GetExtensions MultiAPIClientDelegate.swift
/host/spi-builder-workspace/.build/checkouts/GetExtensions/Sources/GetExtensions/MultiAPIClientDelegate.swift:12:74: error: cannot find type 'URLRequest' in scope
  public func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws {
                                                                         ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/GetExtensions/Sources/GetExtensions/MultiAPIClientDelegate.swift:20:23: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    shouldRetry task: URLSessionTask,
                      ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/.build/checkouts/GetExtensions/Sources/GetExtensions/MultiAPIClientDelegate.swift:34:32: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    validateResponse response: HTTPURLResponse,
                               ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/.build/checkouts/GetExtensions/Sources/GetExtensions/MultiAPIClientDelegate.swift:36:11: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    task: URLSessionTask
          ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/.build/checkouts/GetExtensions/Sources/GetExtensions/MultiAPIClientDelegate.swift:25:57: error: 'Foundation.URLSessionTask' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSessionTask'
      if try await delegate.client(client, shouldRetry: task, error: error, attempts: attempts) {
                                                        ^
/host/spi-builder-workspace/.build/checkouts/GetExtensions/Sources/GetExtensions/MultiAPIClientDelegate.swift:25:57: note: did you mean to use 'as!' to force downcast?
      if try await delegate.client(client, shouldRetry: task, error: error, attempts: attempts) {
                                                        ^
                                                             as! URLSessionTask
/host/spi-builder-workspace/.build/checkouts/GetExtensions/Sources/GetExtensions/MultiAPIClientDelegate.swift:39:20: error: no exact matches in call to instance method 'client'
      try delegate.client(client, validateResponse: response, data: data, task: task)
                   ^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClientDelegate.swift:33:10: note: candidate has partially matching parameter list (APIClient, validateResponse: HTTPURLResponse, data: Data, task: URLSessionTask)
    func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws
         ^
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClientDelegate.swift:89:10: note: candidate has partially matching parameter list (APIClient, validateResponse: HTTPURLResponse, data: Data, task: URLSessionTask)
    func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws {
         ^
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/5] Emitting module GetExtensions
/host/spi-builder-workspace/.build/checkouts/GetExtensions/Sources/GetExtensions/MultiAPIClientDelegate.swift:12:74: error: cannot find type 'URLRequest' in scope
  public func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws {
                                                                         ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/GetExtensions/Sources/GetExtensions/MultiAPIClientDelegate.swift:20:23: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    shouldRetry task: URLSessionTask,
                      ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/.build/checkouts/GetExtensions/Sources/GetExtensions/MultiAPIClientDelegate.swift:34:32: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    validateResponse response: HTTPURLResponse,
                               ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/.build/checkouts/GetExtensions/Sources/GetExtensions/MultiAPIClientDelegate.swift:36:11: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    task: URLSessionTask
          ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
BUILD FAILURE 5.8 linux

Build Machine: Linux 1