Build Information
Failed to build functions-swift, reference 1.1.1 (d2fac1
), with Swift 6.0 for Linux on 30 Nov 2024 05:32:10 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/supabase-community/functions-swift.git
Reference: 1.1.1
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
* tag 1.1.1 -> FETCH_HEAD
HEAD is now at d2fac19 Bum version to 1.1.1
Cloned https://github.com/supabase-community/functions-swift.git
Revision (git rev-parse @):
d2fac1980cf5b589077b635d4e18249f7939a9db
SUCCESS checkout https://github.com/supabase-community/functions-swift.git at 1.1.1
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/supabase-community/functions-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/kean/Get
[1/2335] Fetching get
Fetched https://github.com/kean/Get from cache (0.26s)
Computing version for https://github.com/kean/Get
Computed https://github.com/kean/Get at 2.2.1 (0.43s)
Creating working copy for https://github.com/kean/Get
Working copy of https://github.com/kean/Get resolved at 2.2.1
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] Emitting module Get
[7/9] Compiling Get APIClientDelegate.swift
[8/9] Compiling Get APIClient.swift
[9/9] Compiling Get DataLoader.swift
[11/14] Compiling Functions Version.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[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.
33 | functionName: String,
34 | invokeOptions: FunctionInvokeOptions = .init(),
35 | decode: (Data, HTTPURLResponse) throws -> Response
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | ) async throws -> Response {
37 | let (data, response) = try await rawInvoke(
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/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.
74 | functionName: String,
75 | invokeOptions: FunctionInvokeOptions
76 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
77 | let request = Request(
78 | path: functionName,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
[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.
33 | functionName: String,
34 | invokeOptions: FunctionInvokeOptions = .init(),
35 | decode: (Data, HTTPURLResponse) throws -> Response
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | ) async throws -> Response {
37 | let (data, response) = try await rawInvoke(
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/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.
74 | functionName: String,
75 | invokeOptions: FunctionInvokeOptions
76 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
77 | let request = Request(
78 | path: functionName,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Functions/FunctionsClient.swift:86:48: warning: conditional cast from 'URLResponse' to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
84 | let response = try await client.data(for: request)
85 |
86 | guard let httpResponse = response.response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
87 | throw URLError(.badServerResponse)
88 | }
/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.
84 | let response = try await client.data(for: request)
85 |
86 | guard let httpResponse = response.response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
87 | throw URLError(.badServerResponse)
88 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Functions/FunctionsClient.swift:90:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
88 | }
89 |
90 | guard 200..<300 ~= httpResponse.statusCode else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
91 | throw FunctionsError.httpError(code: httpResponse.statusCode, data: response.data)
92 | }
/host/spi-builder-workspace/Sources/Functions/FunctionsClient.swift:91:57: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
89 |
90 | guard 200..<300 ~= httpResponse.statusCode else {
91 | throw FunctionsError.httpError(code: httpResponse.statusCode, data: response.data)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
92 | }
93 |
/host/spi-builder-workspace/Sources/Functions/FunctionsClient.swift:94:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
92 | }
93 |
94 | let isRelayError = httpResponse.value(forHTTPHeaderField: "x-relay-error") == "true"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
95 | if isRelayError {
96 | throw FunctionsError.relayError
BUILD FAILURE 6.0 linux