Build Information
Failed to build DependencyInjectorObjectMapper with Swift 6.0 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Digipolitan/dependency-injector-object-mapper.git
Reference: master
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/Digipolitan/dependency-injector-object-mapper
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 7a5335d Merge branch 'release/1.0.6'
Cloned https://github.com/Digipolitan/dependency-injector-object-mapper.git
Revision (git rev-parse @):
7a5335dfcf6c94b0ae31b773d640331da28eee9c
SUCCESS checkout https://github.com/Digipolitan/dependency-injector-object-mapper.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $workDir
https://github.com/Digipolitan/dependency-injector-object-mapper.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Fetching https://github.com/Digipolitan/dependency-injector.git
Fetching https://github.com/Hearst-DD/ObjectMapper.git
[1/748] Fetching dependency-injector
[749/7080] Fetching dependency-injector, objectmapper
Fetched https://github.com/Digipolitan/dependency-injector.git from cache (0.32s)
Fetched https://github.com/Hearst-DD/ObjectMapper.git from cache (0.32s)
Computing version for https://github.com/Digipolitan/dependency-injector.git
Computed https://github.com/Digipolitan/dependency-injector.git at 2.2.1 (1.22s)
Computing version for https://github.com/Hearst-DD/ObjectMapper.git
Computed https://github.com/Hearst-DD/ObjectMapper.git at 3.5.3 (1.30s)
Creating working copy for https://github.com/Digipolitan/dependency-injector.git
Working copy of https://github.com/Digipolitan/dependency-injector.git resolved at 2.2.1
Creating working copy for https://github.com/Hearst-DD/ObjectMapper.git
Working copy of https://github.com/Hearst-DD/ObjectMapper.git resolved at 3.5.3
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/32] Emitting module ObjectMapper
[6/35] Compiling DependencyInjector Provider.swift
[7/35] Compiling DependencyInjector Injector.swift
[8/35] Compiling DependencyInjector Module.swift
[9/35] Compiling DependencyInjector Binder.swift
[10/35] Emitting module DependencyInjector
[11/35] Compiling DependencyInjector Injectable.swift
[13/36] Compiling ObjectMapper CodableTransform.swift
[14/36] Compiling ObjectMapper CustomDateFormatTransform.swift
[15/36] Compiling ObjectMapper DataTransform.swift
[16/36] Compiling ObjectMapper TransformOperators.swift
[17/36] Compiling ObjectMapper TransformType.swift
[18/36] Compiling ObjectMapper URLTransform.swift
[19/36] Compiling ObjectMapper HexColorTransform.swift
[20/36] Compiling ObjectMapper ISO8601DateTransform.swift
[21/36] Compiling ObjectMapper ImmutableMappable.swift
[22/36] Compiling ObjectMapper Operators.swift
[23/36] Compiling ObjectMapper ToJSON.swift
[24/36] Compiling ObjectMapper TransformOf.swift
[25/36] Compiling ObjectMapper Mappable.swift
[26/36] Compiling ObjectMapper Mapper.swift
[27/36] Compiling ObjectMapper NSDecimalNumberTransform.swift
[28/36] Compiling ObjectMapper IntegerOperators.swift
[29/36] Compiling ObjectMapper Map.swift
[30/36] Compiling ObjectMapper MapError.swift
[31/36] Compiling ObjectMapper DateFormatterTransform.swift
[32/36] Compiling ObjectMapper DateTransform.swift
[33/36] Compiling ObjectMapper DictionaryTransform.swift
[34/36] Compiling ObjectMapper EnumOperators.swift
[35/36] Compiling ObjectMapper EnumTransform.swift
[36/36] Compiling ObjectMapper FromJSON.swift
[38/42] Compiling DependencyInjectorObjectMapper Provider+ObjectMapper.swift
/host/spi-builder-workspace/Sources/DependencyInjectorObjectMapper/Provider+ObjectMapper.swift:16:31: error: value of type 'any BaseMappable.Type' has no member 'init'
14 | convenience init(type: BaseMappable.Type) {
15 | self.init { (_, arguments) -> T? in
16 | if let res = type.init(JSON: arguments ?? [:]) as? T {
| `- error: value of type 'any BaseMappable.Type' has no member 'init'
17 | return res
18 | }
[39/42] Emitting module DependencyInjectorObjectMapper
/host/spi-builder-workspace/Sources/DependencyInjectorObjectMapper/InjectorTransformer.swift:14:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'InjectorTransformerRegistry' may have shared mutable state; this is an error in the Swift 6 language mode
10 | import ObjectMapper
11 |
12 | public class InjectorTransformerRegistry {
| `- note: class 'InjectorTransformerRegistry' does not conform to the 'Sendable' protocol
13 |
14 | public static let `default` = InjectorTransformerRegistry()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'InjectorTransformerRegistry' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | private var registry: [String: Any]
/host/spi-builder-workspace/.build/checkouts/dependency-injector/Sources/DependencyInjector/Injector.swift:13:23: warning: class property 'default' is not concurrency-safe because non-'Sendable' type 'Injector' may have shared mutable state; this is an error in the Swift 6 language mode
5 | * @copyright 2017 Digipolitan. All rights reserved.
6 | */
7 | open class Injector {
| `- note: class 'Injector' does not conform to the 'Sendable' protocol
8 |
9 | /** Retrieves the list of Module */
:
11 |
12 | /** Retrieves the shared instance */
13 | public static let `default` = Injector.instance(scope: Injector.defaultScope)
| |- warning: class property 'default' is not concurrency-safe because non-'Sendable' type 'Injector' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | private static var registry = [String: Injector]()
[40/42] Compiling DependencyInjectorObjectMapper InjectorTransformer.swift
/host/spi-builder-workspace/Sources/DependencyInjectorObjectMapper/InjectorTransformer.swift:14:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'InjectorTransformerRegistry' may have shared mutable state; this is an error in the Swift 6 language mode
10 | import ObjectMapper
11 |
12 | public class InjectorTransformerRegistry {
| `- note: class 'InjectorTransformerRegistry' does not conform to the 'Sendable' protocol
13 |
14 | public static let `default` = InjectorTransformerRegistry()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'InjectorTransformerRegistry' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | private var registry: [String: Any]
/host/spi-builder-workspace/.build/checkouts/dependency-injector/Sources/DependencyInjector/Injector.swift:13:23: warning: class property 'default' is not concurrency-safe because non-'Sendable' type 'Injector' may have shared mutable state; this is an error in the Swift 6 language mode
5 | * @copyright 2017 Digipolitan. All rights reserved.
6 | */
7 | open class Injector {
| `- note: class 'Injector' does not conform to the 'Sendable' protocol
8 |
9 | /** Retrieves the list of Module */
:
11 |
12 | /** Retrieves the shared instance */
13 | public static let `default` = Injector.instance(scope: Injector.defaultScope)
| |- warning: class property 'default' is not concurrency-safe because non-'Sendable' type 'Injector' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | private static var registry = [String: Injector]()
[41/42] Compiling DependencyInjectorObjectMapper Binder+ObjectMapper.swift
[42/42] Compiling DependencyInjectorObjectMapper Map+DependencyInjector.swift
/host/spi-builder-workspace/Sources/DependencyInjectorObjectMapper/InjectorTransformer.swift:14:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'InjectorTransformerRegistry' may have shared mutable state; this is an error in the Swift 6 language mode
10 | import ObjectMapper
11 |
12 | public class InjectorTransformerRegistry {
| `- note: class 'InjectorTransformerRegistry' does not conform to the 'Sendable' protocol
13 |
14 | public static let `default` = InjectorTransformerRegistry()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'InjectorTransformerRegistry' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | private var registry: [String: Any]
BUILD FAILURE 6.0 linux