Build Information
Failed to build Crust with Swift 5.9 for Linux.
Build Command
docker run --rm -v "checkouts-4609320-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.22.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/rexmas/Crust.git
Reference: 0.13.0
Cloned https://github.com/rexmas/Crust.git into spi-builder-workspace
SUCCESS checkout https://github.com/rexmas/Crust.git at 0.13.0
========================================
Build
========================================
Selected platform: linux
Swift version: 5.9
Building package at path: spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Fetching https://github.com/rexmas/JSONValue.git
[1/634] Fetching jsonvalue
Fetched https://github.com/rexmas/JSONValue.git (0.21s)
Computing version for https://github.com/rexmas/JSONValue.git
Computed https://github.com/rexmas/JSONValue.git at 7.0.0 (0.32s)
Creating working copy for https://github.com/rexmas/JSONValue.git
Working copy of https://github.com/rexmas/JSONValue.git resolved at 7.0.0
Building for debugging...
[1/4] Compiling JSONValueRX JSON.swift
[2/4] Compiling JSONValueRX Utilities.swift
[3/4] Emitting module JSONValueRX
[4/4] Compiling JSONValueRX JSONable.swift
[7/13] Compiling Crust Utilities.swift
[8/13] Compiling Crust AnyAdapter.swift
[9/13] Compiling Crust MappingProtocols.swift
[10/13] Compiling Crust MappingKey.swift
/host/spi-builder-workspace/Crust/Mapper/MappingKey.swift:70:35: warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in Swift 6
public func nestedMappingKeys<K: MappingKey>() -> AnyKeyCollection<K>? {
^
/host/spi-builder-workspace/Crust/Mapper/MappingKey.swift:63:25: note: 'K' previously declared here
public struct RootedKey<K: MappingKey>: MappingKey {
^
[11/13] Emitting module Crust
/host/spi-builder-workspace/Crust/Mapper/MappingKey.swift:70:35: warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in Swift 6
public func nestedMappingKeys<K: MappingKey>() -> AnyKeyCollection<K>? {
^
/host/spi-builder-workspace/Crust/Mapper/MappingKey.swift:63:25: note: 'K' previously declared here
public struct RootedKey<K: MappingKey>: MappingKey {
^
/host/spi-builder-workspace/Crust/Mapper/MappingOperator.swift:233:33: warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in Swift 6
private func deconstruct<T, K, M>(binding: Binding<K, M>, fieldType: T.Type) throws -> (key: K, mapping: M) {
^
/host/spi-builder-workspace/Crust/Mapper/Mapper.swift:29:27: note: 'K' previously declared here
open class MappingPayload<K: MappingKey> {
^
/host/spi-builder-workspace/Crust/Mapper/MappingOperator.swift:241:26: warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in Swift 6
private func resolve<K, M>(keyedBinding: KeyedBinding<K, M>, key: K, inKeys: AnyKeyCollection<K>, mapping: M) throws -> ResolvedBinding<K, M> {
^
/host/spi-builder-workspace/Crust/Mapper/Mapper.swift:29:27: note: 'K' previously declared here
open class MappingPayload<K: MappingKey> {
^
[12/13] Compiling Crust MappingOperator.swift
/host/spi-builder-workspace/Crust/Mapper/MappingOperator.swift:233:33: warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in Swift 6
private func deconstruct<T, K, M>(binding: Binding<K, M>, fieldType: T.Type) throws -> (key: K, mapping: M) {
^
/host/spi-builder-workspace/Crust/Mapper/Mapper.swift:29:27: note: 'K' previously declared here
open class MappingPayload<K: MappingKey> {
^
/host/spi-builder-workspace/Crust/Mapper/MappingOperator.swift:241:26: warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in Swift 6
private func resolve<K, M>(keyedBinding: KeyedBinding<K, M>, key: K, inKeys: AnyKeyCollection<K>, mapping: M) throws -> ResolvedBinding<K, M> {
^
/host/spi-builder-workspace/Crust/Mapper/Mapper.swift:29:27: note: 'K' previously declared here
open class MappingPayload<K: MappingKey> {
^
[13/13] Compiling Crust Mapper.swift
/host/spi-builder-workspace/Crust/Mapper/Mapper.swift:214:26: error: value of type 'NSObject' has no member 'setValue'
nsObject.setValue(value, forKey: key)
~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Crust/Mapper/Mapper.swift:229:25: error: type of expression is ambiguous without a type annotation
try primaryKeys.forEach { (primaryKey, keyPath, transform) in
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.9 linux
Build Machine: Linux 2