The Swift Package Index logo.Swift Package Index

Build Information

Failed to build AsyncTesting with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4606859-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/AsyncSwiftKits/AsyncTesting.git
Reference: v0.0.7
Cloned https://github.com/AsyncSwiftKits/AsyncTesting.git into spi-builder-workspace
SUCCESS checkout https://github.com/AsyncSwiftKits/AsyncTesting.git at v0.0.7
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4606859-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Building for debugging...
[1/4] Compiling AsyncTesting XCTestCase+AsyncTesting.swift
[2/4] Compiling AsyncTesting AsyncTesting.swift
[3/4] Emitting module AsyncTesting
[4/4] Compiling AsyncTesting AsyncExpectation.swift
/host/spi-builder-workspace/Sources/AsyncTesting/AsyncExpectation.swift:6:51: error: cannot find 'NSEC_PER_SEC' in scope
        let nanoseconds = UInt64(seconds * Double(NSEC_PER_SEC))
                                                  ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AsyncTesting/AsyncExpectation.swift:62:19: warning: 'withTaskCancellationHandler(handler:operation:)' is deprecated: renamed to 'withTaskCancellationHandler(operation:onCancel:)'
        try await withTaskCancellationHandler(handler: {
                  ^
/host/spi-builder-workspace/Sources/AsyncTesting/AsyncExpectation.swift:62:19: note: use 'withTaskCancellationHandler(operation:onCancel:)' instead
        try await withTaskCancellationHandler(handler: {
                  ^                           ~~~~~~~
                                              operation
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 1