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 1.10.1 (b595fd), with Swift 6.1 for Linux on 1 Jun 2025 02:46:56 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.1-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: 1.10.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/dankinsoid/swift-analytics
 * tag               1.10.1     -> FETCH_HEAD
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 1.10.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/dankinsoid/swift-analytics.git
https://github.com/dankinsoid/swift-analytics.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "swift-analytics",
  "name" : "swift-analytics",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftAnalytics",
      "targets" : [
        "SwiftAnalytics"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftAnalyticsTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftAnalyticsTests",
      "path" : "Tests/SwiftAnalyticsTests",
      "sources" : [
        "ParametersValueEncoderDecoderTests.swift",
        "SwiftAnalyticsTests.swift"
      ],
      "target_dependencies" : [
        "SwiftAnalytics"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftAnalytics",
      "module_type" : "SwiftTarget",
      "name" : "SwiftAnalytics",
      "path" : "Sources/SwiftAnalytics",
      "product_memberships" : [
        "SwiftAnalytics"
      ],
      "sources" : [
        "Analytics.swift",
        "AnalyticsHandler.swift",
        "AnalyticsSystem.swift",
        "AnyCodingKey.swift",
        "Locks.swift",
        "MockAnalyticsHandler.swift",
        "MultiplexAnalyticsHandler.swift",
        "NOOPAnalyticsHandler.swift",
        "ParametersProvider.swift",
        "ParametersValue+JSONString.swift",
        "ParametersValueDecoder.swift",
        "ParametersValueEncoder.swift",
        "WithAnalyticsParameters.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.6"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-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.1-latest: Pulling from finestructure/spi-images
Digest: sha256:2b296aa7156f49efc57252cdf9ed4bb21d0f92fc98d88800e255491ba2db3116
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/15] Compiling SwiftAnalytics ParametersValueEncoder.swift
/host/spi-builder-workspace/Sources/SwiftAnalytics/ParametersValueEncoder.swift:447:16: warning: static property 'iso8601DateFormatterWithOptions' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
445 |
446 |     @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
447 |     static let iso8601DateFormatterWithOptions: ISO8601DateFormatter = {
    |                |- warning: static property 'iso8601DateFormatterWithOptions' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'iso8601DateFormatterWithOptions' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
448 |         let formatter = ISO8601DateFormatter()
449 |         return formatter
Foundation.ISO8601DateFormatter:1:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
 1 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
   |            `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
 2 |     open var timeZone: TimeZone! { get set }
 3 |     open var formatOptions: ISO8601DateFormatter.Options { get set }
/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 |
[4/15] 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(
[5/16] Compiling SwiftAnalytics MultiplexAnalyticsHandler.swift
[6/16] Compiling SwiftAnalytics NOOPAnalyticsHandler.swift
[7/16] Emitting module SwiftAnalytics
/host/spi-builder-workspace/Sources/SwiftAnalytics/AnalyticsSystem.swift:8:21: warning: static property '_handler' is not concurrency-safe because non-'Sendable' type 'AnalyticsSystem.HandlerBox' may have shared mutable state; this is an error in the Swift 6 language mode
 6 | public enum AnalyticsSystem {
 7 |
 8 | 	private static let _handler = HandlerBox(NOOPAnalyticsHandler.instance)
   |                     |- warning: static property '_handler' is not concurrency-safe because non-'Sendable' type 'AnalyticsSystem.HandlerBox' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: add '@MainActor' to make static property '_handler' part of global actor 'MainActor'
   |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 9 |
10 | 	/// `bootstrap` is an one-time configuration function which globally selects the desired analytics backend
   :
41 | 	}
42 |
43 | 	private final class HandlerBox {
   |                      `- note: class 'HandlerBox' does not conform to the 'Sendable' protocol
44 |
45 | 		private let lock = ReadWriteLock()
/host/spi-builder-workspace/Sources/SwiftAnalytics/MockAnalyticsHandler.swift:6:13: warning: stored property 'parameters' of 'Sendable'-conforming class 'MockAnalyticsHandler' is mutable; this is an error in the Swift 6 language mode
 4 | public final class MockAnalyticsHandler: AnalyticsHandler {
 5 |
 6 | 	public var parameters: Analytics.Parameters
   |             `- warning: stored property 'parameters' of 'Sendable'-conforming class 'MockAnalyticsHandler' is mutable; this is an error in the Swift 6 language mode
 7 | 	public var events: [Analytics.Event] = []
 8 |
/host/spi-builder-workspace/Sources/SwiftAnalytics/ParametersValueEncoder.swift:447:16: warning: static property 'iso8601DateFormatterWithOptions' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
445 |
446 |     @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
447 |     static let iso8601DateFormatterWithOptions: ISO8601DateFormatter = {
    |                |- warning: static property 'iso8601DateFormatterWithOptions' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'iso8601DateFormatterWithOptions' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
448 |         let formatter = ISO8601DateFormatter()
449 |         return formatter
Foundation.ISO8601DateFormatter:1:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
 1 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
   |            `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
 2 |     open var timeZone: TimeZone! { get set }
 3 |     open var formatOptions: ISO8601DateFormatter.Options { get set }
[8/16] Compiling SwiftAnalytics AnalyticsSystem.swift
/host/spi-builder-workspace/Sources/SwiftAnalytics/AnalyticsSystem.swift:8:21: warning: static property '_handler' is not concurrency-safe because non-'Sendable' type 'AnalyticsSystem.HandlerBox' may have shared mutable state; this is an error in the Swift 6 language mode
 6 | public enum AnalyticsSystem {
 7 |
 8 | 	private static let _handler = HandlerBox(NOOPAnalyticsHandler.instance)
   |                     |- warning: static property '_handler' is not concurrency-safe because non-'Sendable' type 'AnalyticsSystem.HandlerBox' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: add '@MainActor' to make static property '_handler' part of global actor 'MainActor'
   |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 9 |
10 | 	/// `bootstrap` is an one-time configuration function which globally selects the desired analytics backend
   :
41 | 	}
42 |
43 | 	private final class HandlerBox {
   |                      `- note: class 'HandlerBox' does not conform to the 'Sendable' protocol
44 |
45 | 		private let lock = ReadWriteLock()
[9/16] Compiling SwiftAnalytics AnyCodingKey.swift
/host/spi-builder-workspace/Sources/SwiftAnalytics/AnalyticsSystem.swift:8:21: warning: static property '_handler' is not concurrency-safe because non-'Sendable' type 'AnalyticsSystem.HandlerBox' may have shared mutable state; this is an error in the Swift 6 language mode
 6 | public enum AnalyticsSystem {
 7 |
 8 | 	private static let _handler = HandlerBox(NOOPAnalyticsHandler.instance)
   |                     |- warning: static property '_handler' is not concurrency-safe because non-'Sendable' type 'AnalyticsSystem.HandlerBox' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: add '@MainActor' to make static property '_handler' part of global actor 'MainActor'
   |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 9 |
10 | 	/// `bootstrap` is an one-time configuration function which globally selects the desired analytics backend
   :
41 | 	}
42 |
43 | 	private final class HandlerBox {
   |                      `- note: class 'HandlerBox' does not conform to the 'Sendable' protocol
44 |
45 | 		private let lock = ReadWriteLock()
[10/16] Compiling SwiftAnalytics Analytics.swift
[11/16] Compiling SwiftAnalytics AnalyticsHandler.swift
[12/16] Compiling SwiftAnalytics Locks.swift
/host/spi-builder-workspace/Sources/SwiftAnalytics/MockAnalyticsHandler.swift:6:13: warning: stored property 'parameters' of 'Sendable'-conforming class 'MockAnalyticsHandler' is mutable; this is an error in the Swift 6 language mode
 4 | public final class MockAnalyticsHandler: AnalyticsHandler {
 5 |
 6 | 	public var parameters: Analytics.Parameters
   |             `- warning: stored property 'parameters' of 'Sendable'-conforming class 'MockAnalyticsHandler' is mutable; this is an error in the Swift 6 language mode
 7 | 	public var events: [Analytics.Event] = []
 8 |
[13/16] Compiling SwiftAnalytics MockAnalyticsHandler.swift
/host/spi-builder-workspace/Sources/SwiftAnalytics/MockAnalyticsHandler.swift:6:13: warning: stored property 'parameters' of 'Sendable'-conforming class 'MockAnalyticsHandler' is mutable; this is an error in the Swift 6 language mode
 4 | public final class MockAnalyticsHandler: AnalyticsHandler {
 5 |
 6 | 	public var parameters: Analytics.Parameters
   |             `- warning: stored property 'parameters' of 'Sendable'-conforming class 'MockAnalyticsHandler' is mutable; this is an error in the Swift 6 language mode
 7 | 	public var events: [Analytics.Event] = []
 8 |
[14/16] Compiling SwiftAnalytics ParametersProvider.swift
[15/16] Compiling SwiftAnalytics ParametersValue+JSONString.swift
[16/16] Compiling SwiftAnalytics WithAnalyticsParameters.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:2b296aa7156f49efc57252cdf9ed4bb21d0f92fc98d88800e255491ba2db3116
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/14] Compiling SwiftAnalytics MultiplexAnalyticsHandler.swift
[3/14] Compiling SwiftAnalytics NOOPAnalyticsHandler.swift
[4/15] Compiling SwiftAnalytics Locks.swift
[5/15] Compiling SwiftAnalytics MockAnalyticsHandler.swift
[6/15] Compiling SwiftAnalytics ParametersProvider.swift
[7/15] Compiling SwiftAnalytics ParametersValue+JSONString.swift
[8/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 |
[9/15] Compiling SwiftAnalytics WithAnalyticsParameters.swift
[10/15] Compiling SwiftAnalytics Analytics.swift
[11/15] Compiling SwiftAnalytics AnalyticsHandler.swift
[12/15] Emitting module SwiftAnalytics
[13/15] Compiling SwiftAnalytics AnalyticsSystem.swift
[14/15] Compiling SwiftAnalytics AnyCodingKey.swift
[15/15] 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(
BUILD FAILURE 6.1 linux