The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Promise, reference master (ade6ab), with Swift 6.2 for Linux on 17 Jun 2025 12:25:53 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/timvermeulen/promise.git
Reference: master
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/timvermeulen/promise
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at ade6abe Create LICENSE
Cloned https://github.com/timvermeulen/promise.git
Revision (git rev-parse @):
ade6abeea94db78db0cc43f3288b27a00c72b8f0
SUCCESS checkout https://github.com/timvermeulen/promise.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.2
Building package at path:  $PWD
https://github.com/timvermeulen/promise.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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/15] Compiling Promise BasicFuture.swift
[4/15] Compiling Promise BasicPromise.swift
[5/16] Compiling Promise Traversable.swift
[6/16] Compiling Promise Result.swift
[7/16] Compiling Promise BasicFuture+Extras.swift
/host/spi-builder-workspace/Sources/Promise/BasicFuture/BasicFuture+Foundation.swift:21:59: warning: passing non-Sendable parameter 'resolve' to function expecting a '@Sendable' closure
18 |
19 |     func asyncAfter(deadline: DispatchTime, on queue: DispatchQueue) -> BasicFuture {
20 |         return async { resolve in
   |                        `- note: parameter 'resolve' is implicitly non-Sendable
21 |             queue.asyncAfter(deadline: deadline, execute: resolve)
   |                                                           `- warning: passing non-Sendable parameter 'resolve' to function expecting a '@Sendable' closure
22 |         }
23 |     }
/host/spi-builder-workspace/Sources/Promise/BasicFuture/BasicFuture+Foundation.swift:46:19: warning: result of call to 'scheduledTimer(withTimeInterval:repeats:block:)' is unused [#no-usage]
44 |     func delayed(by interval: TimeInterval) -> BasicFuture {
45 |         return on(.main).async { resolve in
46 |             Timer.scheduledTimer(withTimeInterval: interval, repeats: false) { _ in resolve() }
   |                   `- warning: result of call to 'scheduledTimer(withTimeInterval:repeats:block:)' is unused [#no-usage]
47 |         }
48 |     }
[8/16] Compiling Promise BasicFuture+Foundation.swift
/host/spi-builder-workspace/Sources/Promise/BasicFuture/BasicFuture+Foundation.swift:21:59: warning: passing non-Sendable parameter 'resolve' to function expecting a '@Sendable' closure
18 |
19 |     func asyncAfter(deadline: DispatchTime, on queue: DispatchQueue) -> BasicFuture {
20 |         return async { resolve in
   |                        `- note: parameter 'resolve' is implicitly non-Sendable
21 |             queue.asyncAfter(deadline: deadline, execute: resolve)
   |                                                           `- warning: passing non-Sendable parameter 'resolve' to function expecting a '@Sendable' closure
22 |         }
23 |     }
/host/spi-builder-workspace/Sources/Promise/BasicFuture/BasicFuture+Foundation.swift:46:19: warning: result of call to 'scheduledTimer(withTimeInterval:repeats:block:)' is unused [#no-usage]
44 |     func delayed(by interval: TimeInterval) -> BasicFuture {
45 |         return on(.main).async { resolve in
46 |             Timer.scheduledTimer(withTimeInterval: interval, repeats: false) { _ in resolve() }
   |                   `- warning: result of call to 'scheduledTimer(withTimeInterval:repeats:block:)' is unused [#no-usage]
47 |         }
48 |     }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/16] Emitting module Promise
/host/spi-builder-workspace/Sources/Promise/Future/Future+Foundation.swift:54:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
52 | }
53 |
54 | public extension URLSession {
   |        `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
55 |     func dataTask(with request: URLRequest) -> Future<(data: Data, response: HTTPURLResponse)> {
56 |         return Future { promise in
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[10/16] Compiling Promise Atomic.swift
/host/spi-builder-workspace/Sources/Promise/Miscellaneous/DispatchQueue+ExecutionContext.swift:5:38: warning: passing non-Sendable parameter '$0' to function expecting a '@Sendable' closure
3 | extension DispatchQueue {
4 |     var asyncContext: ExecutionContext {
5 |         return { self.async(execute: $0) }
  |                |                     `- warning: passing non-Sendable parameter '$0' to function expecting a '@Sendable' closure
  |                `- note: parameter '$0' is implicitly non-Sendable
6 |     }
7 | }
[11/16] Compiling Promise DispatchQueue+ExecutionContext.swift
/host/spi-builder-workspace/Sources/Promise/Miscellaneous/DispatchQueue+ExecutionContext.swift:5:38: warning: passing non-Sendable parameter '$0' to function expecting a '@Sendable' closure
3 | extension DispatchQueue {
4 |     var asyncContext: ExecutionContext {
5 |         return { self.async(execute: $0) }
  |                |                     `- warning: passing non-Sendable parameter '$0' to function expecting a '@Sendable' closure
  |                `- note: parameter '$0' is implicitly non-Sendable
6 |     }
7 | }
[12/16] Compiling Promise ExecutionContext.swift
[13/16] Compiling Promise Future+Extras.swift
/host/spi-builder-workspace/Sources/Promise/Future/Future+Foundation.swift:54:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
52 | }
53 |
54 | public extension URLSession {
   |        `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
55 |     func dataTask(with request: URLRequest) -> Future<(data: Data, response: HTTPURLResponse)> {
56 |         return Future { promise in
/host/spi-builder-workspace/Sources/Promise/Future/Future+Foundation.swift:24:59: warning: passing non-Sendable parameter 'resolve' to function expecting a '@Sendable' closure
21 |
22 |     func asyncAfter(deadline: DispatchTime, on queue: DispatchQueue) -> Future {
23 |         return async { resolve in
   |                        `- note: parameter 'resolve' is implicitly non-Sendable
24 |             queue.asyncAfter(deadline: deadline, execute: resolve)
   |                                                           `- warning: passing non-Sendable parameter 'resolve' to function expecting a '@Sendable' closure
25 |         }
26 |     }
/host/spi-builder-workspace/Sources/Promise/Future/Future+Foundation.swift:45:19: warning: result of call to 'scheduledTimer(withTimeInterval:repeats:block:)' is unused [#no-usage]
43 |     func delayed(by interval: TimeInterval) -> Future {
44 |         return on(.main).async { resolve in
45 |             Timer.scheduledTimer(withTimeInterval: interval, repeats: false) { _ in resolve() }
   |                   `- warning: result of call to 'scheduledTimer(withTimeInterval:repeats:block:)' is unused [#no-usage]
46 |         }
47 |     }
/host/spi-builder-workspace/Sources/Promise/Future/Future+Foundation.swift:55:33: error: cannot find type 'URLRequest' in scope
53 |
54 | public extension URLSession {
55 |     func dataTask(with request: URLRequest) -> Future<(data: Data, response: HTTPURLResponse)> {
   |                                 `- error: cannot find type 'URLRequest' in scope
56 |         return Future { promise in
57 |             let task = dataTask(with: request) { data, response, error in
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[14/16] Compiling Promise Future+Foundation.swift
/host/spi-builder-workspace/Sources/Promise/Future/Future+Foundation.swift:54:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
52 | }
53 |
54 | public extension URLSession {
   |        `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
55 |     func dataTask(with request: URLRequest) -> Future<(data: Data, response: HTTPURLResponse)> {
56 |         return Future { promise in
/host/spi-builder-workspace/Sources/Promise/Future/Future+Foundation.swift:24:59: warning: passing non-Sendable parameter 'resolve' to function expecting a '@Sendable' closure
21 |
22 |     func asyncAfter(deadline: DispatchTime, on queue: DispatchQueue) -> Future {
23 |         return async { resolve in
   |                        `- note: parameter 'resolve' is implicitly non-Sendable
24 |             queue.asyncAfter(deadline: deadline, execute: resolve)
   |                                                           `- warning: passing non-Sendable parameter 'resolve' to function expecting a '@Sendable' closure
25 |         }
26 |     }
/host/spi-builder-workspace/Sources/Promise/Future/Future+Foundation.swift:45:19: warning: result of call to 'scheduledTimer(withTimeInterval:repeats:block:)' is unused [#no-usage]
43 |     func delayed(by interval: TimeInterval) -> Future {
44 |         return on(.main).async { resolve in
45 |             Timer.scheduledTimer(withTimeInterval: interval, repeats: false) { _ in resolve() }
   |                   `- warning: result of call to 'scheduledTimer(withTimeInterval:repeats:block:)' is unused [#no-usage]
46 |         }
47 |     }
/host/spi-builder-workspace/Sources/Promise/Future/Future+Foundation.swift:55:33: error: cannot find type 'URLRequest' in scope
53 |
54 | public extension URLSession {
55 |     func dataTask(with request: URLRequest) -> Future<(data: Data, response: HTTPURLResponse)> {
   |                                 `- error: cannot find type 'URLRequest' in scope
56 |         return Future { promise in
57 |             let task = dataTask(with: request) { data, response, error in
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[15/16] Compiling Promise Future.swift
[16/16] Compiling Promise Promise.swift
BUILD FAILURE 6.2 linux