The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build json-logger with Swift 5.8 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.32.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/xcode-actions/json-logger.git
Reference: 0.2.0
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/xcode-actions/json-logger
 * tag               0.2.0      -> FETCH_HEAD
HEAD is now at 502d98b Fix Swift 5.10 concurrency warnings
Cloned https://github.com/xcode-actions/json-logger.git
Revision (git rev-parse @):
502d98b1ca4ff83497dfed2791d6a438e785b66e
SUCCESS checkout https://github.com/xcode-actions/json-logger.git at 0.2.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.8
Building package at path:  $workDir
https://github.com/xcode-actions/json-logger.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Fetching https://github.com/Frizlab/generic-json.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-system.git
[1/519] Fetching generic-json
[520/3692] Fetching generic-json, swift-log
[2107/6762] Fetching generic-json, swift-log, swift-system
Fetched https://github.com/apple/swift-system.git (0.40s)
Fetched https://github.com/Frizlab/generic-json.git (0.40s)
Fetched https://github.com/apple/swift-log.git (0.41s)
Computing version for https://github.com/Frizlab/generic-json.git
Computed https://github.com/Frizlab/generic-json.git at 3.0.0 (0.31s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.5.3 (0.37s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.2.1 (0.38s)
Creating working copy for https://github.com/Frizlab/generic-json.git
Working copy of https://github.com/Frizlab/generic-json.git resolved at 3.0.0
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.5.3
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.2.1
Building for debugging...
[0/1] Compiling CSystem shims.c
[2/32] Emitting module SystemPackage
[3/34] Compiling SystemPackage Util.swift
[4/34] Compiling SystemPackage UtilConsumers.swift
[5/34] Compiling SystemPackage PlatformString.swift
[6/34] Compiling SystemPackage SystemString.swift
[7/34] Compiling SystemPackage Errno.swift
[8/34] Compiling SystemPackage FileDescriptor.swift
[9/34] Compiling SystemPackage FileHelpers.swift
[10/34] Compiling SystemPackage FileOperations.swift
[11/34] Compiling SystemPackage FilePath.swift
[12/34] Compiling SystemPackage FilePathComponentView.swift
[13/34] Emitting module Logging
[14/34] Compiling Logging Locks.swift
[15/34] Compiling Logging MetadataProvider.swift
[16/34] Compiling GenericJSON Querying.swift
[17/34] Compiling SystemPackage Mocking.swift
[18/34] Compiling SystemPackage Syscalls.swift
[19/34] Compiling SystemPackage WindowsSyscallAdapters.swift
[20/34] Compiling SystemPackage FilePathSyntax.swift
[21/34] Compiling SystemPackage FilePathWindows.swift
[22/34] Compiling SystemPackage FilePermissions.swift
[23/34] Compiling SystemPackage FilePathComponents.swift
[24/34] Compiling SystemPackage FilePathParsing.swift
[25/34] Compiling SystemPackage FilePathString.swift
[26/34] Compiling SystemPackage CInterop.swift
[27/34] Compiling SystemPackage Constants.swift
[28/34] Compiling SystemPackage Exports.swift
[29/34] Compiling GenericJSON Merging.swift
[30/35] Emitting module GenericJSON
[31/35] Compiling GenericJSON Initialization.swift
[32/35] Compiling GenericJSON JSON.swift
[37/38] Compiling Logging Logging.swift
[38/38] Compiling Logging LogHandler.swift
[41/45] Compiling JSONLogger NSLock+Linux.swift
[42/45] Compiling JSONLogger String+Utils.swift
[43/45] Emitting module JSONLogger
/host/spi-builder-workspace/Sources/LogLine.swift:14:13: warning: stored property 'date' of 'Sendable'-conforming struct 'LogLine' has non-sendable type 'Date'
        public var date: Date
                   ^
Foundation.Date:1:15: note: struct 'Date' does not conform to the 'Sendable' protocol
public struct Date : ReferenceConvertible, Comparable, Equatable {
              ^
/host/spi-builder-workspace/Sources/LogLine.swift:1:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
import Foundation
^
@preconcurrency
[44/45] Compiling JSONLogger LogLine.swift
/host/spi-builder-workspace/Sources/LogLine.swift:14:13: warning: stored property 'date' of 'Sendable'-conforming struct 'LogLine' has non-sendable type 'Date'
        public var date: Date
                   ^
Foundation.Date:1:15: note: struct 'Date' does not conform to the 'Sendable' protocol
public struct Date : ReferenceConvertible, Comparable, Equatable {
              ^
/host/spi-builder-workspace/Sources/LogLine.swift:1:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
import Foundation
^
@preconcurrency
[45/45] Compiling JSONLogger JSONLogger.swift
/host/spi-builder-workspace/Sources/JSONLogger.swift:233:9: error: consecutive statements on a line must be separated by ';'
                return switch metadataValue {
                      ^
                      ;
/host/spi-builder-workspace/Sources/JSONLogger.swift:233:3: error: non-void function should return a value
                return switch metadataValue {
                ^
/host/spi-builder-workspace/Sources/JSONLogger.swift:234:39: error: reference to member 'string' cannot be resolved without a contextual type
                        case let .string(s):              .string(s)
                                                          ~^~~~~~
/host/spi-builder-workspace/Sources/JSONLogger.swift:235:39: error: reference to member 'array' cannot be resolved without a contextual type
                        case let .array(array):           .array (array     .map      (jsonMetadataValue(_:)))
                                                          ~^~~~~
/host/spi-builder-workspace/Sources/JSONLogger.swift:236:39: error: reference to member 'object' cannot be resolved without a contextual type
                        case let .dictionary(dictionary): .object(dictionary.mapValues(jsonMetadataValue(_:)))
                                                          ~^~~~~~
/host/spi-builder-workspace/Sources/JSONLogger.swift:243:6: warning: expression of type 'JSON' is unused
                                        json
                                        ^~~~
/host/spi-builder-workspace/Sources/JSONLogger.swift:245:7: error: reference to member 'string' cannot be resolved without a contextual type
                                        .string(s.description)
                                        ~^~~~~~
[0/1] Planning build
Building for debugging...
[0/1] Compiling CSystem shims.c
[2/4] Emitting module Logging
[3/5] Emitting module GenericJSON
[8/8] Emitting module SystemPackage
warning: Will not do cross-module incremental builds, priors saved at TimePoint(seconds: 1710215424, nanoseconds: 0)), but the previous build started at TimePoint(seconds: 1710215424, nanoseconds: 645261000), at '/host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/JSONLogger.build/master.priors'
[11/15] Compiling JSONLogger NSLock+Linux.swift
[12/15] Compiling JSONLogger String+Utils.swift
[13/15] Emitting module JSONLogger
/host/spi-builder-workspace/Sources/LogLine.swift:14:13: warning: stored property 'date' of 'Sendable'-conforming struct 'LogLine' has non-sendable type 'Date'
        public var date: Date
                   ^
Foundation.Date:1:15: note: struct 'Date' does not conform to the 'Sendable' protocol
public struct Date : ReferenceConvertible, Comparable, Equatable {
              ^
/host/spi-builder-workspace/Sources/LogLine.swift:1:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
import Foundation
^
@preconcurrency
[14/15] Compiling JSONLogger LogLine.swift
/host/spi-builder-workspace/Sources/LogLine.swift:14:13: warning: stored property 'date' of 'Sendable'-conforming struct 'LogLine' has non-sendable type 'Date'
        public var date: Date
                   ^
Foundation.Date:1:15: note: struct 'Date' does not conform to the 'Sendable' protocol
public struct Date : ReferenceConvertible, Comparable, Equatable {
              ^
/host/spi-builder-workspace/Sources/LogLine.swift:1:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
import Foundation
^
@preconcurrency
[15/15] Compiling JSONLogger JSONLogger.swift
/host/spi-builder-workspace/Sources/JSONLogger.swift:233:9: error: consecutive statements on a line must be separated by ';'
                return switch metadataValue {
                      ^
                      ;
/host/spi-builder-workspace/Sources/JSONLogger.swift:233:3: error: non-void function should return a value
                return switch metadataValue {
                ^
/host/spi-builder-workspace/Sources/JSONLogger.swift:234:39: error: reference to member 'string' cannot be resolved without a contextual type
                        case let .string(s):              .string(s)
                                                          ~^~~~~~
/host/spi-builder-workspace/Sources/JSONLogger.swift:235:39: error: reference to member 'array' cannot be resolved without a contextual type
                        case let .array(array):           .array (array     .map      (jsonMetadataValue(_:)))
                                                          ~^~~~~
/host/spi-builder-workspace/Sources/JSONLogger.swift:236:39: error: reference to member 'object' cannot be resolved without a contextual type
                        case let .dictionary(dictionary): .object(dictionary.mapValues(jsonMetadataValue(_:)))
                                                          ~^~~~~~
/host/spi-builder-workspace/Sources/JSONLogger.swift:243:6: warning: expression of type 'JSON' is unused
                                        json
                                        ^~~~
/host/spi-builder-workspace/Sources/JSONLogger.swift:245:7: error: reference to member 'string' cannot be resolved without a contextual type
                                        .string(s.description)
                                        ~^~~~~~
BUILD FAILURE 5.8 linux