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 Replicate with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-0":/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/replicate/replicate-swift.git
Reference: 0.21.0
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
 * tag               0.21.0     -> FETCH_HEAD
HEAD is now at 1893a95 Bump version to 0.21.0
Cloned https://github.com/replicate/replicate-swift.git
Revision (git rev-parse @):
1893a954246eb9d8c281c8d0fdb6021adb93a1cd
SPI manifest file found: $workDir/.spi.yml
SUCCESS checkout https://github.com/replicate/replicate-swift.git at 0.21.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/replicate/replicate-swift.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/16] Compiling Replicate Identifier.swift
[4/16] Compiling Replicate Model.swift
[5/17] Emitting module Replicate
[6/17] Compiling Replicate Account.swift
/host/spi-builder-workspace/Sources/Replicate/Client.swift:699:50: error: value of type 'URLSession' has no member 'data'
        let (data, response) = try await session.data(for: request)
                                         ~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/Replicate/Client.swift:932:36: error: value of type 'DispatchTime' has no member 'advanced'
                            .now().advanced(by: .nanoseconds(Int($0 * 1e+9)))
                            ~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/Replicate/Client.swift:932:50: error: cannot infer contextual base in reference to member 'nanoseconds'
                            .now().advanced(by: .nanoseconds(Int($0 * 1e+9)))
                                                ~^~~~~~~~~~~
[7/17] Compiling Replicate Client.swift
/host/spi-builder-workspace/Sources/Replicate/Client.swift:699:50: error: value of type 'URLSession' has no member 'data'
        let (data, response) = try await session.data(for: request)
                                         ~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/Replicate/Client.swift:932:36: error: value of type 'DispatchTime' has no member 'advanced'
                            .now().advanced(by: .nanoseconds(Int($0 * 1e+9)))
                            ~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/Replicate/Client.swift:932:50: error: cannot infer contextual base in reference to member 'nanoseconds'
                            .now().advanced(by: .nanoseconds(Int($0 * 1e+9)))
                                                ~^~~~~~~~~~~
[8/17] Compiling Replicate Data+uriEncoded.swift
[9/17] Compiling Replicate Hardware.swift
[10/17] Compiling Replicate Deployment.swift
[11/17] Compiling Replicate Error.swift
[12/17] Compiling Replicate Webhook.swift
[13/17] Compiling Replicate Status.swift
[14/17] Compiling Replicate Training.swift
[15/17] Compiling Replicate Predictable.swift
[16/17] Compiling Replicate Prediction.swift
[17/17] Compiling Replicate Value.swift
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/4] Compiling Replicate Client.swift
/host/spi-builder-workspace/Sources/Replicate/Client.swift:699:50: error: value of type 'URLSession' has no member 'data'
        let (data, response) = try await session.data(for: request)
                                         ~~~~~~~ ^~~~
/host/spi-builder-workspace/Sources/Replicate/Client.swift:932:36: error: value of type 'DispatchTime' has no member 'advanced'
                            .now().advanced(by: .nanoseconds(Int($0 * 1e+9)))
                            ~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/Replicate/Client.swift:932:50: error: cannot infer contextual base in reference to member 'nanoseconds'
                            .now().advanced(by: .nanoseconds(Int($0 * 1e+9)))
                                                ~^~~~~~~~~~~
[3/4] Compiling Replicate Account.swift
[4/4] Emitting module Replicate
[5/5] Compiling Replicate Deployment.swift
error: fatalError
BUILD FAILURE 5.10 linux