The Swift Package Index logo.Swift Package Index

Build Information

Failed to build KeyPathKit with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4606859-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/vincent-pradeilles/KeyPathKit.git
Reference: 1.6.1
Cloned https://github.com/vincent-pradeilles/KeyPathKit.git into spi-builder-workspace
SUCCESS checkout https://github.com/vincent-pradeilles/KeyPathKit.git at 1.6.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4606859-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Building for debugging...
[1/30] Emitting module KeyPathKit
[2/34] Compiling KeyPathKit min.swift
[3/34] Compiling KeyPathKit or.swift
[4/34] Compiling KeyPathKit prefix.swift
[5/34] Compiling KeyPathKit sorted.swift
[6/34] Compiling KeyPathKit filter.swift
/host/spi-builder-workspace/Sources/Operators/filterLike.swift:13:25: error: 'init(format:_:)' has been renamed to 'init(block:)': Predicate strings and key-value coding are not supported in swift-corelibs-foundation. Use a closure instead if possible.
        let predicate = NSPredicate(format:"SELF MATCHES %@", regex)
                        ^
Foundation.NSPredicate:3:24: note: 'init(format:_:)' has been explicitly marked unavailable here
    public convenience init(format predicateFormat: String, _ args: CVarArg...)
                       ^
[7/34] Compiling KeyPathKit filterIn.swift
/host/spi-builder-workspace/Sources/Operators/filterLike.swift:13:25: error: 'init(format:_:)' has been renamed to 'init(block:)': Predicate strings and key-value coding are not supported in swift-corelibs-foundation. Use a closure instead if possible.
        let predicate = NSPredicate(format:"SELF MATCHES %@", regex)
                        ^
Foundation.NSPredicate:3:24: note: 'init(format:_:)' has been explicitly marked unavailable here
    public convenience init(format predicateFormat: String, _ args: CVarArg...)
                       ^
[8/34] Compiling KeyPathKit filterLess.swift
/host/spi-builder-workspace/Sources/Operators/filterLike.swift:13:25: error: 'init(format:_:)' has been renamed to 'init(block:)': Predicate strings and key-value coding are not supported in swift-corelibs-foundation. Use a closure instead if possible.
        let predicate = NSPredicate(format:"SELF MATCHES %@", regex)
                        ^
Foundation.NSPredicate:3:24: note: 'init(format:_:)' has been explicitly marked unavailable here
    public convenience init(format predicateFormat: String, _ args: CVarArg...)
                       ^
[9/34] Compiling KeyPathKit filterLike.swift
/host/spi-builder-workspace/Sources/Operators/filterLike.swift:13:25: error: 'init(format:_:)' has been renamed to 'init(block:)': Predicate strings and key-value coding are not supported in swift-corelibs-foundation. Use a closure instead if possible.
        let predicate = NSPredicate(format:"SELF MATCHES %@", regex)
                        ^
Foundation.NSPredicate:3:24: note: 'init(format:_:)' has been explicitly marked unavailable here
    public convenience init(format predicateFormat: String, _ args: CVarArg...)
                       ^
[10/34] Compiling KeyPathKit dropPredicate.swift
[11/34] Compiling KeyPathKit filterPredicate.swift
[12/34] Compiling KeyPathKit firstPredicate.swift
[13/34] Compiling KeyPathKit prefixPredicate.swift
[14/34] Compiling KeyPathKit sum.swift
[15/34] Compiling KeyPathKit KeyPathSingleTypePredicate+Operators.swift
[16/34] Compiling KeyPathKit KeyPathSingleTypePredicate.swift
[17/34] Compiling KeyPathKit containsPredicate.swift
[18/34] Compiling KeyPathKit DoubleTypePredicate+Operators.swift
[19/34] Compiling KeyPathKit DoubleTypePredicate.swift
[20/34] Compiling KeyPathKit joinPredicate.swift
[21/34] Compiling KeyPathKit and.swift
[22/34] Compiling KeyPathKit average.swift
[23/34] Compiling KeyPathKit between.swift
[24/34] Compiling KeyPathKit contains.swift
[25/34] Compiling KeyPathKit distinct.swift
[26/34] Compiling KeyPathKit drop.swift
[27/34] Compiling KeyPathKit filterMore.swift
[28/34] Compiling KeyPathKit first.swift
[29/34] Compiling KeyPathKit flatMap.swift
[30/34] Compiling KeyPathKit groupBy.swift
[31/34] Compiling KeyPathKit join.swift
[32/34] Compiling KeyPathKit map.swift
[33/34] Compiling KeyPathKit mapTo.swift
[34/34] Compiling KeyPathKit max.swift
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 1