The Swift Package Index logo.Swift Package Index

Build Information

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

Build Command

bash -c docker run --rm -v "checkouts-4606859-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/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.10
Building package at path:  $workDir
https://github.com/supabase-community/functions-swift.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Fetching https://github.com/kean/Get
[1/2261] Fetching get
Fetched https://github.com/kean/Get from cache (0.62s)
Computing version for https://github.com/kean/Get
Computed https://github.com/kean/Get at 2.1.6 (0.56s)
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...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/9] Compiling Get Response.swift
[5/9] Compiling Get Request.swift
[6/9] Compiling Get DataLoader.swift
[7/9] Emitting module Get
[8/9] Compiling Get APIClient.swift
[9/9] Compiling Get APIClientDelegate.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/14] Compiling Functions Version.swift
[12/14] Compiling Functions Types.swift
[13/14] 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
                 ^
[14/14] 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"
                       ~~~~~~~~~~~~ ^~~~~
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] 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
                 ^
[3/3] 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"
                       ~~~~~~~~~~~~ ^~~~~
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 1