Build Information
Failed to build Replicate, reference main (efd033), with Swift 6.2 for Linux on 22 Jun 2025 02:42:03 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/replicate/replicate-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/replicate/replicate-swift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at efd033f Bump version to 0.24.0
Cloned https://github.com/replicate/replicate-swift.git
Revision (git rev-parse @):
efd033f4e421112b70e82221c813417e164aab7a
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/replicate/replicate-swift.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.2
Building package at path: $PWD
https://github.com/replicate/replicate-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/16] Compiling Replicate Value.swift
[4/17] Compiling Replicate Status.swift
[5/17] Compiling Replicate Training.swift
[6/17] Compiling Replicate Webhook.swift
[7/17] Compiling Replicate Data+uriEncoded.swift
[8/17] Compiling Replicate Hardware.swift
[9/17] Compiling Replicate Identifier.swift
[10/17] Compiling Replicate Model.swift
[11/17] Compiling Replicate Deployment.swift
[12/17] Compiling Replicate Error.swift
[13/17] Compiling Replicate Predictable.swift
/host/spi-builder-workspace/Sources/Replicate/Prediction.swift:198:28: warning: capture of non-Sendable type 'Input.Type' in an isolated closure; this is an error in the Swift 6 language mode
196 | group.addTask {
197 | try await Task.sleep(nanoseconds: UInt64(delay * 1e+9))
198 | return try await client.getPrediction(Self.self, id: id)
| `- warning: capture of non-Sendable type 'Input.Type' in an isolated closure; this is an error in the Swift 6 language mode
199 | }
200 |
/host/spi-builder-workspace/Sources/Replicate/Prediction.swift:198:28: warning: capture of non-Sendable type 'Output.Type' in an isolated closure; this is an error in the Swift 6 language mode
196 | group.addTask {
197 | try await Task.sleep(nanoseconds: UInt64(delay * 1e+9))
198 | return try await client.getPrediction(Self.self, id: id)
| `- warning: capture of non-Sendable type 'Output.Type' in an isolated closure; this is an error in the Swift 6 language mode
199 | }
200 |
/host/spi-builder-workspace/Sources/Replicate/Prediction.swift:202:31: warning: capture of non-Sendable type 'Input.Type' in an isolated closure; this is an error in the Swift 6 language mode
200 |
201 | if let deadline = retrier.deadline {
202 | group.addTask {
| `- warning: capture of non-Sendable type 'Input.Type' in an isolated closure; this is an error in the Swift 6 language mode
203 | try await Task.sleep(nanoseconds: deadline.uptimeNanoseconds - DispatchTime.now().uptimeNanoseconds)
204 | throw CancellationError()
/host/spi-builder-workspace/Sources/Replicate/Prediction.swift:202:31: warning: capture of non-Sendable type 'Output.Type' in an isolated closure; this is an error in the Swift 6 language mode
200 |
201 | if let deadline = retrier.deadline {
202 | group.addTask {
| `- warning: capture of non-Sendable type 'Output.Type' in an isolated closure; this is an error in the Swift 6 language mode
203 | try await Task.sleep(nanoseconds: deadline.uptimeNanoseconds - DispatchTime.now().uptimeNanoseconds)
204 | throw CancellationError()
[14/17] Compiling Replicate Prediction.swift
/host/spi-builder-workspace/Sources/Replicate/Prediction.swift:198:28: warning: capture of non-Sendable type 'Input.Type' in an isolated closure; this is an error in the Swift 6 language mode
196 | group.addTask {
197 | try await Task.sleep(nanoseconds: UInt64(delay * 1e+9))
198 | return try await client.getPrediction(Self.self, id: id)
| `- warning: capture of non-Sendable type 'Input.Type' in an isolated closure; this is an error in the Swift 6 language mode
199 | }
200 |
/host/spi-builder-workspace/Sources/Replicate/Prediction.swift:198:28: warning: capture of non-Sendable type 'Output.Type' in an isolated closure; this is an error in the Swift 6 language mode
196 | group.addTask {
197 | try await Task.sleep(nanoseconds: UInt64(delay * 1e+9))
198 | return try await client.getPrediction(Self.self, id: id)
| `- warning: capture of non-Sendable type 'Output.Type' in an isolated closure; this is an error in the Swift 6 language mode
199 | }
200 |
/host/spi-builder-workspace/Sources/Replicate/Prediction.swift:202:31: warning: capture of non-Sendable type 'Input.Type' in an isolated closure; this is an error in the Swift 6 language mode
200 |
201 | if let deadline = retrier.deadline {
202 | group.addTask {
| `- warning: capture of non-Sendable type 'Input.Type' in an isolated closure; this is an error in the Swift 6 language mode
203 | try await Task.sleep(nanoseconds: deadline.uptimeNanoseconds - DispatchTime.now().uptimeNanoseconds)
204 | throw CancellationError()
/host/spi-builder-workspace/Sources/Replicate/Prediction.swift:202:31: warning: capture of non-Sendable type 'Output.Type' in an isolated closure; this is an error in the Swift 6 language mode
200 |
201 | if let deadline = retrier.deadline {
202 | group.addTask {
| `- warning: capture of non-Sendable type 'Output.Type' in an isolated closure; this is an error in the Swift 6 language mode
203 | try await Task.sleep(nanoseconds: deadline.uptimeNanoseconds - DispatchTime.now().uptimeNanoseconds)
204 | throw CancellationError()
[15/17] Emitting module Replicate
[16/17] Compiling Replicate Account.swift
/host/spi-builder-workspace/Sources/Replicate/Client.swift:1032:36: error: value of type 'DispatchTime' has no member 'advanced'
1030 | return Retrier(policy: self,
1031 | deadline: timeout.flatMap {
1032 | .now().advanced(by: .nanoseconds(Int($0 * 1e+9)))
| `- error: value of type 'DispatchTime' has no member 'advanced'
1033 | })
1034 | }
/host/spi-builder-workspace/Sources/Replicate/Client.swift:1032:50: error: cannot infer contextual base in reference to member 'nanoseconds'
1030 | return Retrier(policy: self,
1031 | deadline: timeout.flatMap {
1032 | .now().advanced(by: .nanoseconds(Int($0 * 1e+9)))
| `- error: cannot infer contextual base in reference to member 'nanoseconds'
1033 | })
1034 | }
[17/17] Compiling Replicate Client.swift
/host/spi-builder-workspace/Sources/Replicate/Client.swift:1032:36: error: value of type 'DispatchTime' has no member 'advanced'
1030 | return Retrier(policy: self,
1031 | deadline: timeout.flatMap {
1032 | .now().advanced(by: .nanoseconds(Int($0 * 1e+9)))
| `- error: value of type 'DispatchTime' has no member 'advanced'
1033 | })
1034 | }
/host/spi-builder-workspace/Sources/Replicate/Client.swift:1032:50: error: cannot infer contextual base in reference to member 'nanoseconds'
1030 | return Retrier(policy: self,
1031 | deadline: timeout.flatMap {
1032 | .now().advanced(by: .nanoseconds(Int($0 * 1e+9)))
| `- error: cannot infer contextual base in reference to member 'nanoseconds'
1033 | })
1034 | }
BUILD FAILURE 6.2 linux