The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build functions-swift, reference main (1870b2), with Swift 6.1 for Linux on 28 Apr 2025 00:43:19 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.61.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:             6.1
Building package at path:  $PWD
https://github.com/supabase-community/functions-swift.git
https://github.com/supabase-community/functions-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "get",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.1.5",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/kean/Get"
    }
  ],
  "manifest_display_name" : "functions-swift",
  "name" : "functions-swift",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "Functions",
      "targets" : [
        "Functions"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FunctionsTests",
      "module_type" : "SwiftTarget",
      "name" : "FunctionsTests",
      "path" : "Tests/FunctionsTests",
      "sources" : [
        "FunctionInvokeOptionsTests.swift"
      ],
      "target_dependencies" : [
        "Functions"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Functions",
      "module_type" : "SwiftTarget",
      "name" : "Functions",
      "path" : "Sources/Functions",
      "product_dependencies" : [
        "Get"
      ],
      "product_memberships" : [
        "Functions"
      ],
      "sources" : [
        "FunctionsClient.swift",
        "Types.swift",
        "Version.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-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.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/kean/Get
[1/2349] Fetching get
Fetched https://github.com/kean/Get from cache (0.36s)
Computing version for https://github.com/kean/Get
Computed https://github.com/kean/Get at 2.2.1 (0.94s)
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 Request.swift
[5/9] Compiling Get Response.swift
[6/9] Compiling Get DataLoader.swift
[7/9] Emitting module Get
[8/9] Compiling Get APIClientDelegate.swift
[9/9] Compiling Get APIClient.swift
[11/14] Compiling Functions Version.swift
[12/14] Compiling Functions Types.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[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
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/7] Compiling Get Response.swift
[3/7] Compiling Get APIClient.swift
[4/7] Compiling Get Request.swift
[5/7] Compiling Get APIClientDelegate.swift
[6/7] Emitting module Get
[7/7] Compiling Get DataLoader.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/12] Compiling Functions Version.swift
[10/12] Compiling Functions Types.swift
[11/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.
 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
[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.
 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.1 linux