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 swift-analytics, reference main (b595fd), with Swift 6.0 for Linux on 1 Jun 2025 02:45:33 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 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/dankinsoid/swift-analytics.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/dankinsoid/swift-analytics
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at b595fdb docs: Update documentation to reflect parameter type change to Encodable
Cloned https://github.com/dankinsoid/swift-analytics.git
Revision (git rev-parse @):
b595fdbe390a3d3505919f87b3c276012a7fc7f5
SUCCESS checkout https://github.com/dankinsoid/swift-analytics.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/dankinsoid/swift-analytics.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 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:eaa733228b13fb63f7b48fc0ae9a4552a427b7215d37e5caded5aa10021734d9
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/15] Compiling SwiftAnalytics Locks.swift
[4/15] Compiling SwiftAnalytics MockAnalyticsHandler.swift
[5/15] Compiling SwiftAnalytics ParametersValueEncoder.swift
/host/spi-builder-workspace/Sources/SwiftAnalytics/ParametersValueEncoder.swift:477:29: error: pattern variable binding cannot appear in an expression
475 |             }
476 |
477 |         case let .formatted(formatter):
    |                             `- error: pattern variable binding cannot appear in an expression
478 |             return .string(formatter.string(from: date))
479 |
[6/16] Compiling SwiftAnalytics AnalyticsSystem.swift
[7/16] Compiling SwiftAnalytics AnyCodingKey.swift
[8/16] Compiling SwiftAnalytics Analytics.swift
[9/16] Compiling SwiftAnalytics AnalyticsHandler.swift
[10/16] Emitting module SwiftAnalytics
[11/16] Compiling SwiftAnalytics ParametersValueDecoder.swift
/host/spi-builder-workspace/Sources/SwiftAnalytics/ParametersValueDecoder.swift:716:29: error: pattern variable binding cannot appear in an expression
714 |             }
715 |
716 |         case let .formatted(formatter):
    |                             `- error: pattern variable binding cannot appear in an expression
717 |             guard case let .string(string) = value else {
718 |                 throw DecodingError.typeMismatch(Date.self, DecodingError.Context(
[12/16] Compiling SwiftAnalytics MultiplexAnalyticsHandler.swift
[13/16] Compiling SwiftAnalytics NOOPAnalyticsHandler.swift
[14/16] Compiling SwiftAnalytics ParametersProvider.swift
[15/16] Compiling SwiftAnalytics ParametersValue+JSONString.swift
[16/16] Compiling SwiftAnalytics WithAnalyticsParameters.swift
BUILD FAILURE 6.0 linux