Build Information
Failed to build Cerberus, reference 0.4.2 (ed6193
), with Swift 6.0 for Linux on 26 Nov 2024 18:11:48 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.0-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
Build Log
========================================
RunAll
========================================
Builder version: 4.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/bermudadigitalstudio/cerberus.git
Reference: 0.4.2
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/bermudadigitalstudio/cerberus
* tag 0.4.2 -> FETCH_HEAD
HEAD is now at ed6193a Moved the Log repo to @bermudadigitalstudio, because it was deleted from @lgaches account.
Cloned https://github.com/bermudadigitalstudio/cerberus.git
Revision (git rev-parse @):
ed6193a45c6f7092d083aa3fb89ce99bf5dadff9
SUCCESS checkout https://github.com/bermudadigitalstudio/cerberus.git at 0.4.2
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/bermudadigitalstudio/cerberus.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.0-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.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/bermudadigitalstudio/Log.git
[1/15] Fetching log
Fetched https://github.com/bermudadigitalstudio/Log.git from cache (0.23s)
Computing version for https://github.com/bermudadigitalstudio/Log.git
Computed https://github.com/bermudadigitalstudio/Log.git at 0.0.1 (0.46s)
Creating working copy for https://github.com/bermudadigitalstudio/Log.git
Working copy of https://github.com/bermudadigitalstudio/Log.git resolved at 0.0.1
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/5] Emitting module Log
[5/5] Compiling Log Log.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/11] Compiling Cerberus RenewalManager.swift
/host/spi-builder-workspace/Sources/Cerberus/RenewalManager.swift:38:13: warning: capture of 'logger' with non-sendable type '(any Log)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 |
37 | DispatchQueue.global().asyncAfter(deadline: time) { [weak self] in
38 | logger?.debug("Beginning renewal...")
| `- warning: capture of 'logger' with non-sendable type '(any Log)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
39 |
40 | guard let strongSelf = self else {
/host/spi-builder-workspace/.build/checkouts/Log/Sources/Log/Log.swift:9:17: note: protocol 'Log' does not conform to the 'Sendable' protocol
7 | }
8 |
9 | public protocol Log {
| `- note: protocol 'Log' does not conform to the 'Sendable' protocol
10 |
11 | func log(_ level: LogLevel, _ message: @autoclosure () -> Any, _ file: String, _ function: String, line: Int, context: Any?)
/host/spi-builder-workspace/Sources/Cerberus/RenewalManager.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Log'
1 | import Dispatch
2 | import Log
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Log'
3 |
4 | public protocol VaultClientTokenRenewable: class {
/host/spi-builder-workspace/Sources/Cerberus/RenewalManager.swift:40:36: warning: capture of 'self' with non-sendable type 'RenewalManager?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
6 | func renewToken() throws
7 | }
8 | public final class RenewalManager {
| `- note: class 'RenewalManager' does not conform to the 'Sendable' protocol
9 |
10 | unowned let vaultClient: VaultClientTokenRenewable
:
38 | logger?.debug("Beginning renewal...")
39 |
40 | guard let strongSelf = self else {
| `- warning: capture of 'self' with non-sendable type 'RenewalManager?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
41 | logger?.debug("RenewalManager has deinitialized, aborting.")
42 | return
[8/11] Emitting module Cerberus
/host/spi-builder-workspace/Sources/Cerberus/VaultAPIClient.swift:4:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
2 | import Dispatch
3 |
4 | private let session = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
5 |
6 | struct Sys {
/host/spi-builder-workspace/Sources/Cerberus/VaultAPIClient.swift:4:50: error: cannot infer contextual base in reference to member 'default'
2 | import Dispatch
3 |
4 | private let session = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
5 |
6 | struct Sys {
/host/spi-builder-workspace/Sources/Cerberus/VaultAPIClient.swift:202:65: error: cannot find type 'URLRequest' in scope
200 | }
201 |
202 | private func requestForURL(_ url: URL, token: String? = nil) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
203 | let request: URLRequest
204 | if let t = token {
/host/spi-builder-workspace/Sources/Cerberus/VaultClient.swift:17:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
15 | public let vaultAuthority: URL
16 | public let logger: Log?
17 | private let session = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
18 | public var token: String?
19 | public var renewalManager: RenewalManager?
/host/spi-builder-workspace/Sources/Cerberus/VaultClient.swift:17:54: error: cannot infer contextual base in reference to member 'default'
15 | public let vaultAuthority: URL
16 | public let logger: Log?
17 | private let session = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
18 | public var token: String?
19 | public var renewalManager: RenewalManager?
[9/11] Compiling Cerberus VaultAPIClient.swift
/host/spi-builder-workspace/Sources/Cerberus/VaultAPIClient.swift:4:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
2 | import Dispatch
3 |
4 | private let session = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
5 |
6 | struct Sys {
/host/spi-builder-workspace/Sources/Cerberus/VaultAPIClient.swift:4:50: error: cannot infer contextual base in reference to member 'default'
2 | import Dispatch
3 |
4 | private let session = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
5 |
6 | struct Sys {
/host/spi-builder-workspace/Sources/Cerberus/VaultAPIClient.swift:202:65: error: cannot find type 'URLRequest' in scope
200 | }
201 |
202 | private func requestForURL(_ url: URL, token: String? = nil) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
203 | let request: URLRequest
204 | if let t = token {
/host/spi-builder-workspace/Sources/Cerberus/VaultAPIClient.swift:203:18: error: cannot find type 'URLRequest' in scope
201 |
202 | private func requestForURL(_ url: URL, token: String? = nil) -> URLRequest {
203 | let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
204 | if let t = token {
205 | var tokenReq = URLRequest(url: url)
/host/spi-builder-workspace/Sources/Cerberus/VaultAPIClient.swift:205:24: error: cannot find 'URLRequest' in scope
203 | let request: URLRequest
204 | if let t = token {
205 | var tokenReq = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
206 | tokenReq.setValue(t, forHTTPHeaderField: "X-Vault-Token")
207 | request = tokenReq
/host/spi-builder-workspace/Sources/Cerberus/VaultAPIClient.swift:209:19: error: cannot find 'URLRequest' in scope
207 | request = tokenReq
208 | } else {
209 | request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
210 | }
211 | return request
[10/11] Compiling Cerberus VaultClient+Kubernetes.swift
/host/spi-builder-workspace/Sources/Cerberus/VaultClient.swift:17:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
15 | public let vaultAuthority: URL
16 | public let logger: Log?
17 | private let session = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
18 | public var token: String?
19 | public var renewalManager: RenewalManager?
/host/spi-builder-workspace/Sources/Cerberus/VaultClient.swift:17:54: error: cannot infer contextual base in reference to member 'default'
15 | public let vaultAuthority: URL
16 | public let logger: Log?
17 | private let session = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
18 | public var token: String?
19 | public var renewalManager: RenewalManager?
[11/11] Compiling Cerberus VaultClient.swift
/host/spi-builder-workspace/Sources/Cerberus/VaultClient.swift:17:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
15 | public let vaultAuthority: URL
16 | public let logger: Log?
17 | private let session = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
18 | public var token: String?
19 | public var renewalManager: RenewalManager?
/host/spi-builder-workspace/Sources/Cerberus/VaultClient.swift:17:54: error: cannot infer contextual base in reference to member 'default'
15 | public let vaultAuthority: URL
16 | public let logger: Log?
17 | private let session = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
18 | public var token: String?
19 | public var renewalManager: RenewalManager?
BUILD FAILURE 6.0 linux