The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build Threadcrumb, reference 1.0.1 (a5d287), with Swift 6.0 for Linux on 30 Nov 2024 15:57:59 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-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.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/naftaly/Threadcrumb.git
Reference: 1.0.1
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/naftaly/Threadcrumb
 * tag               1.0.1      -> FETCH_HEAD
HEAD is now at a5d2877 Updated availability, tests and readme.
Cloned https://github.com/naftaly/Threadcrumb.git
Revision (git rev-parse @):
a5d2877d31f9712837e78935be3293fb6be6e545
SUCCESS checkout https://github.com/naftaly/Threadcrumb.git at 1.0.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/naftaly/Threadcrumb.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/4] Emitting module Threadcrumb
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Threadcrumb/Threadcrumb.swift:473:13: warning: let '_lookupTable' is not concurrency-safe because non-'Sendable' type '[String : (inout [String]) -> ()]' may have shared mutable state; this is an error in the Swift 6 language mode
471 | // MARK: - Lookup table
472 |
473 | private let _lookupTable: [String: (inout [String])->()] = [
    |             |- warning: let '_lookupTable' is not concurrency-safe because non-'Sendable' type '[String : (inout [String]) -> ()]' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: annotate '_lookupTable' 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
474 |     "0": THREAD_CRUMB__0,
475 |     "1": THREAD_CRUMB__1,
[4/4] Compiling Threadcrumb Threadcrumb.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Threadcrumb/Threadcrumb.swift:473:13: warning: let '_lookupTable' is not concurrency-safe because non-'Sendable' type '[String : (inout [String]) -> ()]' may have shared mutable state; this is an error in the Swift 6 language mode
471 | // MARK: - Lookup table
472 |
473 | private let _lookupTable: [String: (inout [String])->()] = [
    |             |- warning: let '_lookupTable' is not concurrency-safe because non-'Sendable' type '[String : (inout [String]) -> ()]' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: annotate '_lookupTable' 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
474 |     "0": THREAD_CRUMB__0,
475 |     "1": THREAD_CRUMB__1,
/host/spi-builder-workspace/Sources/Threadcrumb/Threadcrumb.swift:23:30: warning: capture of 'self' with non-sendable type 'Threadcrumb?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  8 |
  9 | @available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, visionOS 1.0, *)
 10 | final public class Threadcrumb {
    |                    `- note: class 'Threadcrumb' does not conform to the 'Sendable' protocol
 11 |
 12 |     /// The identifier for the thread.
    :
 21 |
 22 |         self._thread = Thread { [weak self] in
 23 |             guard let self = self else {
    |                              `- warning: capture of 'self' with non-sendable type 'Threadcrumb?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 24 |                 return
 25 |             }
/host/spi-builder-workspace/Sources/Threadcrumb/Threadcrumb.swift:71:19: error: missing argument label 'arguments:' in call
 69 |     ///   - arguments: The arguments to substitute into `format`.
 70 |     public func log(_ format: String, _ arguments: CVarArg...) {
 71 |         log(String(format: format, arguments))
    |                   `- error: missing argument label 'arguments:' in call
 72 |     }
 73 |
BUILD FAILURE 6.0 linux