Build Information
Failed to build Crust, reference 0.13.0 (d63368), with Swift 6.1 for Wasm on 27 May 2025 12:22:50 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/rexmas/Crust.git
Reference: 0.13.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/rexmas/Crust
* tag 0.13.0 -> FETCH_HEAD
HEAD is now at d633684 [swift-5.2] update readme
Cloned https://github.com/rexmas/Crust.git
Revision (git rev-parse @):
d6336843b93b8bc0cbfe2c4d452ac49614bb1844
SUCCESS checkout https://github.com/rexmas/Crust.git at 0.13.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/rexmas/Crust.git
https://github.com/rexmas/Crust.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "jsonvalue",
"requirement" : {
"range" : [
{
"lower_bound" : "7.0.0",
"upper_bound" : "7.1.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/rexmas/JSONValue.git"
}
],
"manifest_display_name" : "Crust",
"name" : "Crust",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.12"
},
{
"name" : "ios",
"version" : "10.0"
}
],
"products" : [
{
"name" : "Crust",
"targets" : [
"Crust"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "CrustTests",
"module_type" : "SwiftTarget",
"name" : "CrustTests",
"path" : "CrustTests",
"sources" : [
"CRMapperTests.swift",
"CollectionMappingTests.swift",
"Company.swift",
"CompanyMappingTests.swift",
"CompanyStub.swift",
"Employee.swift",
"EmployeeMappingTests.swift",
"EmployeeStub.swift",
"Mocks.swift",
"NestedMappingTests.swift",
"Operators.swift",
"Person.swift",
"StructMappingTests.swift",
"TransformTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"Crust"
],
"type" : "test"
},
{
"c99name" : "Crust",
"module_type" : "SwiftTarget",
"name" : "Crust",
"path" : "Crust",
"product_dependencies" : [
"JSONValueRX"
],
"product_memberships" : [
"Crust"
],
"sources" : [
"Mapper/Mapper.swift",
"Mapper/MappingKey.swift",
"Mapper/MappingOperator.swift",
"Mapper/MappingProtocols.swift",
"Utilities/AnyAdapter.swift",
"Utilities/Utilities.swift"
],
"type" : "library"
}
],
"tools_version" : "5.2"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:059e0fdbe549369b902c0d423739510ddee50a4a70258d1404125eb9394ef31c
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/rexmas/JSONValue.git
[1/652] Fetching jsonvalue
Fetched https://github.com/rexmas/JSONValue.git from cache (0.24s)
Computing version for https://github.com/rexmas/JSONValue.git
Computed https://github.com/rexmas/JSONValue.git at 7.0.0 (0.75s)
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...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/7] Emitting module JSONValueRX
[5/7] Compiling JSONValueRX JSONable.swift
[6/7] Compiling JSONValueRX Utilities.swift
[7/7] Compiling JSONValueRX JSON.swift
[9/15] Compiling Crust Utilities.swift
[10/15] Compiling Crust AnyAdapter.swift
[11/15] Compiling Crust MappingProtocols.swift
[12/15] Emitting module Crust
/host/spi-builder-workspace/Crust/Mapper/Mapper.swift:12:10: warning: associated value 'mappingWillBeginErrored(adapter:underlyingError:)' of 'Sendable'-conforming enum 'MapperError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
10 | case primaryKeyMissing(keyPath: String, mappingType: Any.Type) // TODO-Swift-5: opaque Mapping
11 | case mappedObjectCannotWriteToAdapter(objectType: Any.Type, adapterBaseType: Any.Type)
12 | case mappingWillBeginErrored(adapter: Any, underlyingError: Error) // TODO-Swift-5: opaque PersistanceAdapter
| `- warning: associated value 'mappingWillBeginErrored(adapter:underlyingError:)' of 'Sendable'-conforming enum 'MapperError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
13 | case mappingDidEndErrored(adapter: Any, underlyingError: Error) // TODO-Swift-5: opaque PersistanceAdapter
14 |
/host/spi-builder-workspace/Crust/Mapper/Mapper.swift:13:10: warning: associated value 'mappingDidEndErrored(adapter:underlyingError:)' of 'Sendable'-conforming enum 'MapperError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
11 | case mappedObjectCannotWriteToAdapter(objectType: Any.Type, adapterBaseType: Any.Type)
12 | case mappingWillBeginErrored(adapter: Any, underlyingError: Error) // TODO-Swift-5: opaque PersistanceAdapter
13 | case mappingDidEndErrored(adapter: Any, underlyingError: Error) // TODO-Swift-5: opaque PersistanceAdapter
| `- warning: associated value 'mappingDidEndErrored(adapter:underlyingError:)' of 'Sendable'-conforming enum 'MapperError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
14 |
15 | var errorDescription: String? {
/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 the Swift 6 language mode
61 |
62 | /// Like `RootKey` but will use the `nestedMappingKeys` of the internal key.
63 | public struct RootedKey<K: MappingKey>: MappingKey {
| `- note: 'K' previously declared here
64 | public let keyPath = ""
65 | public let rootedKey: K
:
68 | }
69 |
70 | public func nestedMappingKeys<K: MappingKey>() -> AnyKeyCollection<K>? {
| `- warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
71 | return self.rootedKey.nestedMappingKeys()
72 | }
/host/spi-builder-workspace/Crust/Mapper/MappingOperator.swift:5:10: warning: associated value 'conversionOfJSONToTypeFailed(jsonObject:toType:)' of 'Sendable'-conforming enum 'MappingError' has non-sendable type 'AnyObject'; this is an error in the Swift 6 language mode
3 |
4 | enum MappingError: LocalizedError {
5 | case conversionOfJSONToTypeFailed(jsonObject: AnyObject, toType: Any.Type)
| `- warning: associated value 'conversionOfJSONToTypeFailed(jsonObject:toType:)' of 'Sendable'-conforming enum 'MappingError' has non-sendable type 'AnyObject'; this is an error in the Swift 6 language mode
6 | case noDataAtKeyPathFromKeyToMapFrom(keyPath: JSONKeyPath, key: Any)
7 | case bindingDeconstructionFailure(fieldType: Any.Type)
/host/spi-builder-workspace/Crust/Mapper/MappingOperator.swift:6:10: warning: associated value 'noDataAtKeyPathFromKeyToMapFrom(keyPath:key:)' of 'Sendable'-conforming enum 'MappingError' has non-sendable type 'any JSONKeyPath'; this is an error in the Swift 6 language mode
4 | enum MappingError: LocalizedError {
5 | case conversionOfJSONToTypeFailed(jsonObject: AnyObject, toType: Any.Type)
6 | case noDataAtKeyPathFromKeyToMapFrom(keyPath: JSONKeyPath, key: Any)
| `- warning: associated value 'noDataAtKeyPathFromKeyToMapFrom(keyPath:key:)' of 'Sendable'-conforming enum 'MappingError' has non-sendable type 'any JSONKeyPath'; this is an error in the Swift 6 language mode
7 | case bindingDeconstructionFailure(fieldType: Any.Type)
8 | case attemptingToAssignNullToNonNullableCollection(collectionType: Any.Type, keyPath: JSONKeyPath, key: Any)
/host/spi-builder-workspace/.build/checkouts/JSONValue/Sources/JSON.swift:392:17: note: protocol 'JSONKeyPath' does not conform to the 'Sendable' protocol
390 | // MARK: - JSONKeyPath
391 |
392 | public protocol JSONKeyPath {
| `- note: protocol 'JSONKeyPath' does not conform to the 'Sendable' protocol
393 | var keyPath: String { get }
394 | }
/host/spi-builder-workspace/Crust/Mapper/MappingOperator.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'JSONValueRX'
1 | import Foundation
2 | import JSONValueRX
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'JSONValueRX'
3 |
4 | enum MappingError: LocalizedError {
/host/spi-builder-workspace/Crust/Mapper/MappingOperator.swift:6:10: warning: associated value 'noDataAtKeyPathFromKeyToMapFrom(keyPath:key:)' of 'Sendable'-conforming enum 'MappingError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
4 | enum MappingError: LocalizedError {
5 | case conversionOfJSONToTypeFailed(jsonObject: AnyObject, toType: Any.Type)
6 | case noDataAtKeyPathFromKeyToMapFrom(keyPath: JSONKeyPath, key: Any)
| `- warning: associated value 'noDataAtKeyPathFromKeyToMapFrom(keyPath:key:)' of 'Sendable'-conforming enum 'MappingError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
7 | case bindingDeconstructionFailure(fieldType: Any.Type)
8 | case attemptingToAssignNullToNonNullableCollection(collectionType: Any.Type, keyPath: JSONKeyPath, key: Any)
/host/spi-builder-workspace/Crust/Mapper/MappingOperator.swift:8:10: warning: associated value 'attemptingToAssignNullToNonNullableCollection(collectionType:keyPath:key:)' of 'Sendable'-conforming enum 'MappingError' has non-sendable type 'any JSONKeyPath'; this is an error in the Swift 6 language mode
6 | case noDataAtKeyPathFromKeyToMapFrom(keyPath: JSONKeyPath, key: Any)
7 | case bindingDeconstructionFailure(fieldType: Any.Type)
8 | case attemptingToAssignNullToNonNullableCollection(collectionType: Any.Type, keyPath: JSONKeyPath, key: Any)
| `- warning: associated value 'attemptingToAssignNullToNonNullableCollection(collectionType:keyPath:key:)' of 'Sendable'-conforming enum 'MappingError' has non-sendable type 'any JSONKeyPath'; this is an error in the Swift 6 language mode
9 | case mappingNonArrayJSONtoCollectionFailure(jsonType: Any.Type, collectionElementType: Any.Type)
10 | case stringRawValueTransformFailure(value: Any, toType: Any.Type)
/host/spi-builder-workspace/.build/checkouts/JSONValue/Sources/JSON.swift:392:17: note: protocol 'JSONKeyPath' does not conform to the 'Sendable' protocol
390 | // MARK: - JSONKeyPath
391 |
392 | public protocol JSONKeyPath {
| `- note: protocol 'JSONKeyPath' does not conform to the 'Sendable' protocol
393 | var keyPath: String { get }
394 | }
/host/spi-builder-workspace/Crust/Mapper/MappingOperator.swift:8:10: warning: associated value 'attemptingToAssignNullToNonNullableCollection(collectionType:keyPath:key:)' of 'Sendable'-conforming enum 'MappingError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
6 | case noDataAtKeyPathFromKeyToMapFrom(keyPath: JSONKeyPath, key: Any)
7 | case bindingDeconstructionFailure(fieldType: Any.Type)
8 | case attemptingToAssignNullToNonNullableCollection(collectionType: Any.Type, keyPath: JSONKeyPath, key: Any)
| `- warning: associated value 'attemptingToAssignNullToNonNullableCollection(collectionType:keyPath:key:)' of 'Sendable'-conforming enum 'MappingError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
9 | case mappingNonArrayJSONtoCollectionFailure(jsonType: Any.Type, collectionElementType: Any.Type)
10 | case stringRawValueTransformFailure(value: Any, toType: Any.Type)
/host/spi-builder-workspace/Crust/Mapper/MappingOperator.swift:10:10: warning: associated value 'stringRawValueTransformFailure(value:toType:)' of 'Sendable'-conforming enum 'MappingError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
8 | case attemptingToAssignNullToNonNullableCollection(collectionType: Any.Type, keyPath: JSONKeyPath, key: Any)
9 | case mappingNonArrayJSONtoCollectionFailure(jsonType: Any.Type, collectionElementType: Any.Type)
10 | case stringRawValueTransformFailure(value: Any, toType: Any.Type)
| `- warning: associated value 'stringRawValueTransformFailure(value:toType:)' of 'Sendable'-conforming enum 'MappingError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
11 |
12 | var errorDescription: String? {
/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 the Swift 6 language mode
231 | }
232 |
233 | private func deconstruct<T, K, M>(binding: Binding<K, M>, fieldType: T.Type) throws -> (key: K, mapping: M) {
| `- warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
234 | guard case .mapping(let key, let mapping) = binding else {
235 | throw MappingError.bindingDeconstructionFailure(fieldType: fieldType)
/host/spi-builder-workspace/Crust/Mapper/Mapper.swift:29:27: note: 'K' previously declared here
27 | }
28 |
29 | open class MappingPayload<K: MappingKey> {
| `- note: 'K' previously declared here
30 | open internal(set) var json: JSONValue
31 | open internal(set) var keys: AnyKeyCollection<K>
/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 the Swift 6 language mode
239 | }
240 |
241 | private func resolve<K, M>(keyedBinding: KeyedBinding<K, M>, key: K, inKeys: AnyKeyCollection<K>, mapping: M) throws -> ResolvedBinding<K, M> {
| `- warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
242 | switch self.dir {
243 | case .toJSON:
/host/spi-builder-workspace/Crust/Mapper/Mapper.swift:29:27: note: 'K' previously declared here
27 | }
28 |
29 | open class MappingPayload<K: MappingKey> {
| `- note: 'K' previously declared here
30 | open internal(set) var json: JSONValue
31 | open internal(set) var keys: AnyKeyCollection<K>
[13/15] 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 the Swift 6 language mode
61 |
62 | /// Like `RootKey` but will use the `nestedMappingKeys` of the internal key.
63 | public struct RootedKey<K: MappingKey>: MappingKey {
| `- note: 'K' previously declared here
64 | public let keyPath = ""
65 | public let rootedKey: K
:
68 | }
69 |
70 | public func nestedMappingKeys<K: MappingKey>() -> AnyKeyCollection<K>? {
| `- warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
71 | return self.rootedKey.nestedMappingKeys()
72 | }
[14/15] Compiling Crust MappingOperator.swift
/host/spi-builder-workspace/Crust/Mapper/MappingOperator.swift:5:10: warning: associated value 'conversionOfJSONToTypeFailed(jsonObject:toType:)' of 'Sendable'-conforming enum 'MappingError' has non-sendable type 'AnyObject'; this is an error in the Swift 6 language mode
3 |
4 | enum MappingError: LocalizedError {
5 | case conversionOfJSONToTypeFailed(jsonObject: AnyObject, toType: Any.Type)
| `- warning: associated value 'conversionOfJSONToTypeFailed(jsonObject:toType:)' of 'Sendable'-conforming enum 'MappingError' has non-sendable type 'AnyObject'; this is an error in the Swift 6 language mode
6 | case noDataAtKeyPathFromKeyToMapFrom(keyPath: JSONKeyPath, key: Any)
7 | case bindingDeconstructionFailure(fieldType: Any.Type)
/host/spi-builder-workspace/Crust/Mapper/MappingOperator.swift:6:10: warning: associated value 'noDataAtKeyPathFromKeyToMapFrom(keyPath:key:)' of 'Sendable'-conforming enum 'MappingError' has non-sendable type 'any JSONKeyPath'; this is an error in the Swift 6 language mode
4 | enum MappingError: LocalizedError {
5 | case conversionOfJSONToTypeFailed(jsonObject: AnyObject, toType: Any.Type)
6 | case noDataAtKeyPathFromKeyToMapFrom(keyPath: JSONKeyPath, key: Any)
| `- warning: associated value 'noDataAtKeyPathFromKeyToMapFrom(keyPath:key:)' of 'Sendable'-conforming enum 'MappingError' has non-sendable type 'any JSONKeyPath'; this is an error in the Swift 6 language mode
7 | case bindingDeconstructionFailure(fieldType: Any.Type)
8 | case attemptingToAssignNullToNonNullableCollection(collectionType: Any.Type, keyPath: JSONKeyPath, key: Any)
/host/spi-builder-workspace/.build/checkouts/JSONValue/Sources/JSON.swift:392:17: note: protocol 'JSONKeyPath' does not conform to the 'Sendable' protocol
390 | // MARK: - JSONKeyPath
391 |
392 | public protocol JSONKeyPath {
| `- note: protocol 'JSONKeyPath' does not conform to the 'Sendable' protocol
393 | var keyPath: String { get }
394 | }
/host/spi-builder-workspace/Crust/Mapper/MappingOperator.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'JSONValueRX'
1 | import Foundation
2 | import JSONValueRX
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'JSONValueRX'
3 |
4 | enum MappingError: LocalizedError {
/host/spi-builder-workspace/Crust/Mapper/MappingOperator.swift:6:10: warning: associated value 'noDataAtKeyPathFromKeyToMapFrom(keyPath:key:)' of 'Sendable'-conforming enum 'MappingError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
4 | enum MappingError: LocalizedError {
5 | case conversionOfJSONToTypeFailed(jsonObject: AnyObject, toType: Any.Type)
6 | case noDataAtKeyPathFromKeyToMapFrom(keyPath: JSONKeyPath, key: Any)
| `- warning: associated value 'noDataAtKeyPathFromKeyToMapFrom(keyPath:key:)' of 'Sendable'-conforming enum 'MappingError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
7 | case bindingDeconstructionFailure(fieldType: Any.Type)
8 | case attemptingToAssignNullToNonNullableCollection(collectionType: Any.Type, keyPath: JSONKeyPath, key: Any)
/host/spi-builder-workspace/Crust/Mapper/MappingOperator.swift:8:10: warning: associated value 'attemptingToAssignNullToNonNullableCollection(collectionType:keyPath:key:)' of 'Sendable'-conforming enum 'MappingError' has non-sendable type 'any JSONKeyPath'; this is an error in the Swift 6 language mode
6 | case noDataAtKeyPathFromKeyToMapFrom(keyPath: JSONKeyPath, key: Any)
7 | case bindingDeconstructionFailure(fieldType: Any.Type)
8 | case attemptingToAssignNullToNonNullableCollection(collectionType: Any.Type, keyPath: JSONKeyPath, key: Any)
| `- warning: associated value 'attemptingToAssignNullToNonNullableCollection(collectionType:keyPath:key:)' of 'Sendable'-conforming enum 'MappingError' has non-sendable type 'any JSONKeyPath'; this is an error in the Swift 6 language mode
9 | case mappingNonArrayJSONtoCollectionFailure(jsonType: Any.Type, collectionElementType: Any.Type)
10 | case stringRawValueTransformFailure(value: Any, toType: Any.Type)
/host/spi-builder-workspace/.build/checkouts/JSONValue/Sources/JSON.swift:392:17: note: protocol 'JSONKeyPath' does not conform to the 'Sendable' protocol
390 | // MARK: - JSONKeyPath
391 |
392 | public protocol JSONKeyPath {
| `- note: protocol 'JSONKeyPath' does not conform to the 'Sendable' protocol
393 | var keyPath: String { get }
394 | }
/host/spi-builder-workspace/Crust/Mapper/MappingOperator.swift:8:10: warning: associated value 'attemptingToAssignNullToNonNullableCollection(collectionType:keyPath:key:)' of 'Sendable'-conforming enum 'MappingError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
6 | case noDataAtKeyPathFromKeyToMapFrom(keyPath: JSONKeyPath, key: Any)
7 | case bindingDeconstructionFailure(fieldType: Any.Type)
8 | case attemptingToAssignNullToNonNullableCollection(collectionType: Any.Type, keyPath: JSONKeyPath, key: Any)
| `- warning: associated value 'attemptingToAssignNullToNonNullableCollection(collectionType:keyPath:key:)' of 'Sendable'-conforming enum 'MappingError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
9 | case mappingNonArrayJSONtoCollectionFailure(jsonType: Any.Type, collectionElementType: Any.Type)
10 | case stringRawValueTransformFailure(value: Any, toType: Any.Type)
/host/spi-builder-workspace/Crust/Mapper/MappingOperator.swift:10:10: warning: associated value 'stringRawValueTransformFailure(value:toType:)' of 'Sendable'-conforming enum 'MappingError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
8 | case attemptingToAssignNullToNonNullableCollection(collectionType: Any.Type, keyPath: JSONKeyPath, key: Any)
9 | case mappingNonArrayJSONtoCollectionFailure(jsonType: Any.Type, collectionElementType: Any.Type)
10 | case stringRawValueTransformFailure(value: Any, toType: Any.Type)
| `- warning: associated value 'stringRawValueTransformFailure(value:toType:)' of 'Sendable'-conforming enum 'MappingError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
11 |
12 | var errorDescription: String? {
/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 the Swift 6 language mode
231 | }
232 |
233 | private func deconstruct<T, K, M>(binding: Binding<K, M>, fieldType: T.Type) throws -> (key: K, mapping: M) {
| `- warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
234 | guard case .mapping(let key, let mapping) = binding else {
235 | throw MappingError.bindingDeconstructionFailure(fieldType: fieldType)
/host/spi-builder-workspace/Crust/Mapper/Mapper.swift:29:27: note: 'K' previously declared here
27 | }
28 |
29 | open class MappingPayload<K: MappingKey> {
| `- note: 'K' previously declared here
30 | open internal(set) var json: JSONValue
31 | open internal(set) var keys: AnyKeyCollection<K>
/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 the Swift 6 language mode
239 | }
240 |
241 | private func resolve<K, M>(keyedBinding: KeyedBinding<K, M>, key: K, inKeys: AnyKeyCollection<K>, mapping: M) throws -> ResolvedBinding<K, M> {
| `- warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
242 | switch self.dir {
243 | case .toJSON:
/host/spi-builder-workspace/Crust/Mapper/Mapper.swift:29:27: note: 'K' previously declared here
27 | }
28 |
29 | open class MappingPayload<K: MappingKey> {
| `- note: 'K' previously declared here
30 | open internal(set) var json: JSONValue
31 | open internal(set) var keys: AnyKeyCollection<K>
[15/15] Compiling Crust Mapper.swift
/host/spi-builder-workspace/Crust/Mapper/Mapper.swift:12:10: warning: associated value 'mappingWillBeginErrored(adapter:underlyingError:)' of 'Sendable'-conforming enum 'MapperError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
10 | case primaryKeyMissing(keyPath: String, mappingType: Any.Type) // TODO-Swift-5: opaque Mapping
11 | case mappedObjectCannotWriteToAdapter(objectType: Any.Type, adapterBaseType: Any.Type)
12 | case mappingWillBeginErrored(adapter: Any, underlyingError: Error) // TODO-Swift-5: opaque PersistanceAdapter
| `- warning: associated value 'mappingWillBeginErrored(adapter:underlyingError:)' of 'Sendable'-conforming enum 'MapperError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
13 | case mappingDidEndErrored(adapter: Any, underlyingError: Error) // TODO-Swift-5: opaque PersistanceAdapter
14 |
/host/spi-builder-workspace/Crust/Mapper/Mapper.swift:13:10: warning: associated value 'mappingDidEndErrored(adapter:underlyingError:)' of 'Sendable'-conforming enum 'MapperError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
11 | case mappedObjectCannotWriteToAdapter(objectType: Any.Type, adapterBaseType: Any.Type)
12 | case mappingWillBeginErrored(adapter: Any, underlyingError: Error) // TODO-Swift-5: opaque PersistanceAdapter
13 | case mappingDidEndErrored(adapter: Any, underlyingError: Error) // TODO-Swift-5: opaque PersistanceAdapter
| `- warning: associated value 'mappingDidEndErrored(adapter:underlyingError:)' of 'Sendable'-conforming enum 'MapperError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
14 |
15 | var errorDescription: String? {
/host/spi-builder-workspace/Crust/Mapper/Mapper.swift:214:26: error: value of type 'NSObject' has no member 'setValue'
212 | if case let nsObject as NSObject = object, newInstance {
213 | primaryKeyValues.forEach { (key, value) in
214 | nsObject.setValue(value, forKey: key)
| `- error: value of type 'NSObject' has no member 'setValue'
215 | }
216 | }
/host/spi-builder-workspace/Crust/Mapper/Mapper.swift:229:25: error: type of expression is ambiguous without a type annotation
227 |
228 | var keyValues = [String : CVarArg]()
229 | try primaryKeys.forEach { (primaryKey, keyPath, transform) in
| `- error: type of expression is ambiguous without a type annotation
230 | let key = keyPath?.keyPath
231 | let baseJson = key != nil ? json[key!] : json
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:059e0fdbe549369b902c0d423739510ddee50a4a70258d1404125eb9394ef31c
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/5] Compiling JSONValueRX Utilities.swift
[3/5] Compiling JSONValueRX JSONable.swift
[4/5] Emitting module JSONValueRX
[5/5] Compiling JSONValueRX JSON.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 the Swift 6 language mode
61 |
62 | /// Like `RootKey` but will use the `nestedMappingKeys` of the internal key.
63 | public struct RootedKey<K: MappingKey>: MappingKey {
| `- note: 'K' previously declared here
64 | public let keyPath = ""
65 | public let rootedKey: K
:
68 | }
69 |
70 | public func nestedMappingKeys<K: MappingKey>() -> AnyKeyCollection<K>? {
| `- warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
71 | return self.rootedKey.nestedMappingKeys()
72 | }
[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 the Swift 6 language mode
61 |
62 | /// Like `RootKey` but will use the `nestedMappingKeys` of the internal key.
63 | public struct RootedKey<K: MappingKey>: MappingKey {
| `- note: 'K' previously declared here
64 | public let keyPath = ""
65 | public let rootedKey: K
:
68 | }
69 |
70 | public func nestedMappingKeys<K: MappingKey>() -> AnyKeyCollection<K>? {
| `- warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
71 | return self.rootedKey.nestedMappingKeys()
72 | }
/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 the Swift 6 language mode
231 | }
232 |
233 | private func deconstruct<T, K, M>(binding: Binding<K, M>, fieldType: T.Type) throws -> (key: K, mapping: M) {
| `- warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
234 | guard case .mapping(let key, let mapping) = binding else {
235 | throw MappingError.bindingDeconstructionFailure(fieldType: fieldType)
/host/spi-builder-workspace/Crust/Mapper/Mapper.swift:29:27: note: 'K' previously declared here
27 | }
28 |
29 | open class MappingPayload<K: MappingKey> {
| `- note: 'K' previously declared here
30 | open internal(set) var json: JSONValue
31 | open internal(set) var keys: AnyKeyCollection<K>
/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 the Swift 6 language mode
239 | }
240 |
241 | private func resolve<K, M>(keyedBinding: KeyedBinding<K, M>, key: K, inKeys: AnyKeyCollection<K>, mapping: M) throws -> ResolvedBinding<K, M> {
| `- warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
242 | switch self.dir {
243 | case .toJSON:
/host/spi-builder-workspace/Crust/Mapper/Mapper.swift:29:27: note: 'K' previously declared here
27 | }
28 |
29 | open class MappingPayload<K: MappingKey> {
| `- note: 'K' previously declared here
30 | open internal(set) var json: JSONValue
31 | open internal(set) var keys: AnyKeyCollection<K>
[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 the Swift 6 language mode
231 | }
232 |
233 | private func deconstruct<T, K, M>(binding: Binding<K, M>, fieldType: T.Type) throws -> (key: K, mapping: M) {
| `- warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
234 | guard case .mapping(let key, let mapping) = binding else {
235 | throw MappingError.bindingDeconstructionFailure(fieldType: fieldType)
/host/spi-builder-workspace/Crust/Mapper/Mapper.swift:29:27: note: 'K' previously declared here
27 | }
28 |
29 | open class MappingPayload<K: MappingKey> {
| `- note: 'K' previously declared here
30 | open internal(set) var json: JSONValue
31 | open internal(set) var keys: AnyKeyCollection<K>
/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 the Swift 6 language mode
239 | }
240 |
241 | private func resolve<K, M>(keyedBinding: KeyedBinding<K, M>, key: K, inKeys: AnyKeyCollection<K>, mapping: M) throws -> ResolvedBinding<K, M> {
| `- warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
242 | switch self.dir {
243 | case .toJSON:
/host/spi-builder-workspace/Crust/Mapper/Mapper.swift:29:27: note: 'K' previously declared here
27 | }
28 |
29 | open class MappingPayload<K: MappingKey> {
| `- note: 'K' previously declared here
30 | open internal(set) var json: JSONValue
31 | open internal(set) var keys: AnyKeyCollection<K>
[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'
212 | if case let nsObject as NSObject = object, newInstance {
213 | primaryKeyValues.forEach { (key, value) in
214 | nsObject.setValue(value, forKey: key)
| `- error: value of type 'NSObject' has no member 'setValue'
215 | }
216 | }
/host/spi-builder-workspace/Crust/Mapper/Mapper.swift:229:25: error: type of expression is ambiguous without a type annotation
227 |
228 | var keyValues = [String : CVarArg]()
229 | try primaryKeys.forEach { (primaryKey, keyPath, transform) in
| `- error: type of expression is ambiguous without a type annotation
230 | let key = keyPath?.keyPath
231 | let baseJson = key != nil ? json[key!] : json
BUILD FAILURE 6.1 wasm