Build Information
Failed to build swift-log-supabase, reference main (b16c69
), with Swift 6.0 for Linux on 28 Nov 2024 20:55:42 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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/binaryscraping/swift-log-supabase.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/binaryscraping/swift-log-supabase
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at b16c693 Update README.md
Cloned https://github.com/binaryscraping/swift-log-supabase.git
Revision (git rev-parse @):
b16c693ce4952b5cfc7be595e45213cebc1979d0
SUCCESS checkout https://github.com/binaryscraping/swift-log-supabase.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/binaryscraping/swift-log-supabase.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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/apple/swift-log
[1/3709] Fetching swift-log
Fetched https://github.com/apple/swift-log from cache (0.34s)
Computing version for https://github.com/apple/swift-log
Computed https://github.com/apple/swift-log at 1.6.2 (1.00s)
Creating working copy for https://github.com/apple/swift-log
Working copy of https://github.com/apple/swift-log resolved at 1.6.2
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/8] Compiling Logging MetadataProvider.swift
[5/8] Compiling Logging Locks.swift
[6/8] Compiling Logging Logging.swift
[7/8] Emitting module Logging
[8/8] Compiling Logging LogHandler.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/13] Compiling SupabaseLogging LogEntry.swift
[11/13] Compiling SupabaseLogging LogsCache.swift
[12/13] Emitting module SupabaseLogging
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:44:15: warning: stored property 'logManager' of 'Sendable'-conforming struct 'SupabaseLogHandler' has non-sendable type 'SupabaseLogManager'; this is an error in the Swift 6 language mode
42 |
43 | private let label: String
44 | private let logManager: SupabaseLogManager
| `- warning: stored property 'logManager' of 'Sendable'-conforming struct 'SupabaseLogHandler' has non-sendable type 'SupabaseLogManager'; this is an error in the Swift 6 language mode
45 |
46 | public init(label: String, config: SupabaseLogConfig) {
:
62 | }
63 |
64 | final class SupabaseLogManager {
| `- note: class 'SupabaseLogManager' does not conform to the 'Sendable' protocol
65 |
66 | let cache: LogsCache<LogEntry>
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:74:22: warning: static property 'instances' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
72 | private static let queue = DispatchQueue(
73 | label: "co.binaryscraping.supabase-log-manager.instances")
74 | private static var instances: [SupabaseLogConfig: SupabaseLogManager] = [:]
| |- warning: static property 'instances' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'instances' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'instances' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
75 |
76 | static func shared(_ config: SupabaseLogConfig) -> SupabaseLogManager {
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:125:4: error: Objective-C interoperability is disabled
123 | }
124 |
125 | @objc
| `- error: Objective-C interoperability is disabled
126 | private func checkForLogsAndSend() {
127 | let logs = cache.pop()
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:175:4: error: Objective-C interoperability is disabled
173 |
174 | extension SupabaseLogManager {
175 | @objc func appWillTerminate() {
| `- error: Objective-C interoperability is disabled
176 | if config.isDebug {
177 | print(#function)
[13/13] Compiling SupabaseLogging SupabaseLogHandler.swift
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:44:15: warning: stored property 'logManager' of 'Sendable'-conforming struct 'SupabaseLogHandler' has non-sendable type 'SupabaseLogManager'; this is an error in the Swift 6 language mode
42 |
43 | private let label: String
44 | private let logManager: SupabaseLogManager
| `- warning: stored property 'logManager' of 'Sendable'-conforming struct 'SupabaseLogHandler' has non-sendable type 'SupabaseLogManager'; this is an error in the Swift 6 language mode
45 |
46 | public init(label: String, config: SupabaseLogConfig) {
:
62 | }
63 |
64 | final class SupabaseLogManager {
| `- note: class 'SupabaseLogManager' does not conform to the 'Sendable' protocol
65 |
66 | let cache: LogsCache<LogEntry>
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:74:22: warning: static property 'instances' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
72 | private static let queue = DispatchQueue(
73 | label: "co.binaryscraping.supabase-log-manager.instances")
74 | private static var instances: [SupabaseLogConfig: SupabaseLogManager] = [:]
| |- warning: static property 'instances' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'instances' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'instances' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
75 |
76 | static func shared(_ config: SupabaseLogConfig) -> SupabaseLogManager {
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:125:4: error: Objective-C interoperability is disabled
123 | }
124 |
125 | @objc
| `- error: Objective-C interoperability is disabled
126 | private func checkForLogsAndSend() {
127 | let logs = cache.pop()
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:175:4: error: Objective-C interoperability is disabled
173 |
174 | extension SupabaseLogManager {
175 | @objc func appWillTerminate() {
| `- error: Objective-C interoperability is disabled
176 | if config.isDebug {
177 | print(#function)
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:115:17: error: '#selector' can only be used with the Objective-C runtime
113 | sendTimer = Timer.scheduledTimer(
114 | timeInterval: minimumWaitTimeBetweenRequests, target: self,
115 | selector: #selector(checkForLogsAndSend), userInfo: nil, repeats: true)
| `- error: '#selector' can only be used with the Objective-C runtime
116 |
117 | // Fire the timer to attempt to send any cached logs from a previous session.
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:138:19: error: cannot find 'URLRequest' in scope
136 | }
137 |
138 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
139 | request.httpMethod = "POST"
140 | request.addValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:145:42: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
143 | request.httpBody = data
144 |
145 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
146 | config.waitsForConnectivity = true
147 | let session = URLSession(configuration: config)
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:147:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
145 | let config = URLSessionConfiguration.default
146 | config.waitsForConnectivity = true
147 | let session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
148 |
149 | session.dataTask(with: request) { _, response, error in
/host/spi-builder-workspace/Sources/SupabaseLogging/SupabaseLogHandler.swift:157:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
155 | guard
156 | let httpResponse = response as? HTTPURLResponse,
157 | 200..<300 ~= httpResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
158 | else {
159 | throw URLError(.badServerResponse)
BUILD FAILURE 6.0 linux