The Swift Package Index logo.Swift Package Index

Build Information

Failed to build PostgREST 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 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.29.0
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.10
Building package at path:  $workDir
https://github.com/supabase-community/postgrest-swift.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 2>&1
Fetching https://github.com/kean/Get
Fetching https://github.com/pointfreeco/swift-snapshot-testing
Fetching https://github.com/binaryscraping/GetExtensions
Fetching https://github.com/apple/swift-syntax.git
[1/33] Fetching getextensions
[34/2294] Fetching getextensions, get
[2295/13221] Fetching getextensions, get, swift-snapshot-testing
[8196/70594] Fetching getextensions, get, swift-snapshot-testing, swift-syntax
Fetched https://github.com/binaryscraping/GetExtensions from cache (3.93s)
Fetched https://github.com/kean/Get from cache (3.94s)
Fetched https://github.com/apple/swift-syntax.git from cache (4.00s)
Fetched https://github.com/pointfreeco/swift-snapshot-testing from cache (4.02s)
Computing version for https://github.com/binaryscraping/GetExtensions
Computed https://github.com/binaryscraping/GetExtensions at 1.0.0 (0.47s)
Computing version for https://github.com/kean/Get
Computed https://github.com/kean/Get at 2.1.6 (0.48s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing
Computed https://github.com/pointfreeco/swift-snapshot-testing at 1.14.0 (0.48s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 509.0.0 (0.76s)
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
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/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
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/10] Compiling Get Response.swift
[6/10] Compiling Get Request.swift
[7/10] Compiling Get DataLoader.swift
[8/10] Compiling Get APIClientDelegate.swift
[9/10] Emitting module Get
[10/10] Compiling Get APIClient.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[12/13] 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
                 ^
[13/13] 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: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/3] 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 {
         ^
[3/3] 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
                 ^
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 2