The Swift Package Index logo.Swift Package Index

Build Information

Failed to build functions-swift with Swift 5.7 for Linux.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.25.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/supabase-community/functions-swift.git
Reference: main
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/functions-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 1870b24 Update README.md
Cloned https://github.com/supabase-community/functions-swift.git
Revision (git rev-parse @):
1870b2495ec452a7bd4ba9a92c35984ee5d1e915
SUCCESS checkout https://github.com/supabase-community/functions-swift.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.7
Building package at path:  $PWD/checkout
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$PWD/checkout" registry.gitlab.com/finestructure/spi-images:basic-5.7-latest swift build 2>&1
Fetching https://github.com/kean/Get
[1/2261] Fetching get
Fetched https://github.com/kean/Get (0.33s)
Computing version for https://github.com/kean/Get
Computed https://github.com/kean/Get at 2.1.6 (0.29s)
Creating working copy for https://github.com/kean/Get
Working copy of https://github.com/kean/Get resolved at 2.1.6
Building for debugging...
[1/6] Compiling Get APIClientDelegate.swift
[2/6] Compiling Get Response.swift
[3/6] Compiling Get Request.swift
[4/6] Compiling Get DataLoader.swift
[5/6] Emitting module Get
[6/6] Compiling Get APIClient.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)[9/12] Emitting module Functions
/host/spi-builder-workspace/Sources/Functions/FunctionsClient.swift:35:20: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    decode: (Data, HTTPURLResponse) throws -> Response
                   ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Functions/FunctionsClient.swift:76:28: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  ) async throws -> (Data, HTTPURLResponse) {
                           ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
[10/12] Compiling Functions Version.swift
[11/12] Compiling Functions Types.swift
[12/12] Compiling Functions FunctionsClient.swift
/host/spi-builder-workspace/Sources/Functions/FunctionsClient.swift:35:20: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    decode: (Data, HTTPURLResponse) throws -> Response
                   ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Functions/FunctionsClient.swift:76:28: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  ) async throws -> (Data, HTTPURLResponse) {
                           ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Functions/FunctionsClient.swift:86:48: warning: conditional cast from 'URLResponse' to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
    guard let httpResponse = response.response as? HTTPURLResponse else {
                                               ^
/host/spi-builder-workspace/Sources/Functions/FunctionsClient.swift:86:52: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    guard let httpResponse = response.response as? HTTPURLResponse else {
                                                   ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Functions/FunctionsClient.swift:90:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
    guard 200..<300 ~= httpResponse.statusCode else {
                       ~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Functions/FunctionsClient.swift:91:57: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
      throw FunctionsError.httpError(code: httpResponse.statusCode, data: response.data)
                                           ~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Functions/FunctionsClient.swift:94:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
    let isRelayError = httpResponse.value(forHTTPHeaderField: "x-relay-error") == "true"
                       ~~~~~~~~~~~~ ^~~~~
[0/1] Planning build
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)[1/2] Emitting module Functions
/host/spi-builder-workspace/Sources/Functions/FunctionsClient.swift:35:20: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    decode: (Data, HTTPURLResponse) throws -> Response
                   ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Functions/FunctionsClient.swift:76:28: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  ) async throws -> (Data, HTTPURLResponse) {
                           ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
[2/2] Compiling Functions FunctionsClient.swift
/host/spi-builder-workspace/Sources/Functions/FunctionsClient.swift:35:20: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    decode: (Data, HTTPURLResponse) throws -> Response
                   ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Functions/FunctionsClient.swift:76:28: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  ) async throws -> (Data, HTTPURLResponse) {
                           ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Functions/FunctionsClient.swift:86:48: warning: conditional cast from 'URLResponse' to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
    guard let httpResponse = response.response as? HTTPURLResponse else {
                                               ^
/host/spi-builder-workspace/Sources/Functions/FunctionsClient.swift:86:52: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    guard let httpResponse = response.response as? HTTPURLResponse else {
                                                   ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Functions/FunctionsClient.swift:90:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
    guard 200..<300 ~= httpResponse.statusCode else {
                       ~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Functions/FunctionsClient.swift:91:57: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
      throw FunctionsError.httpError(code: httpResponse.statusCode, data: response.data)
                                           ~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Functions/FunctionsClient.swift:94:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
    let isRelayError = httpResponse.value(forHTTPHeaderField: "x-relay-error") == "true"
                       ~~~~~~~~~~~~ ^~~~~
BUILD FAILURE 5.7 linux

Build Machine: Linux 1