Build Information
Successful build of Injector, reference 2.0.1 (22dccc
), with Swift 6.0 for Linux on 30 Nov 2024 05:30:55 UTC.
Swift 6 data race errors: 1
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" 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 -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
Build Log
========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ptrkstr/Injector.git
Reference: 2.0.1
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/ptrkstr/Injector
* tag 2.0.1 -> FETCH_HEAD
HEAD is now at 22dccc2 Update to Factory 1.3.7
Cloned https://github.com/ptrkstr/Injector.git
Revision (git rev-parse @):
22dccc25935bd12ba6301f012ed001cb314b9cda
SUCCESS checkout https://github.com/ptrkstr/Injector.git at 2.0.1
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/ptrkstr/Injector.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" 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 -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
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/hmlongco/Factory.git
[1/13660] Fetching factory
Fetched https://github.com/hmlongco/Factory.git from cache (0.53s)
Computing version for https://github.com/hmlongco/Factory.git
Computed https://github.com/hmlongco/Factory.git at 1.3.7 (0.42s)
Creating working copy for https://github.com/hmlongco/Factory.git
Working copy of https://github.com/hmlongco/Factory.git resolved at 1.3.7
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/5] Compiling Factory Factory.swift
[5/5] Emitting module Factory
[7/8] Compiling Injector Injector.swift
/host/spi-builder-workspace/Sources/Injector/Injector.swift:32:16: warning: static property 'cache' is not concurrency-safe because non-'Sendable' type 'SharedContainer.Scope.Cached' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | private extension Container.Scope {
32 | static let cache = Cached()
| `- warning: static property 'cache' is not concurrency-safe because non-'Sendable' type 'SharedContainer.Scope.Cached' may have shared mutable state; this is an error in the Swift 6 language mode
33 | }
34 |
/host/spi-builder-workspace/.build/checkouts/Factory/Sources/Factory/Factory.swift:241:24: note: class 'Cached' does not conform to the 'Sendable' protocol
239 | /// Defines a cached scope. The same instance will be returned by the factory until the cache is reset.
240 | public static let cached = Cached()
241 | public final class Cached: SharedContainer.Scope {
| `- note: class 'Cached' does not conform to the 'Sendable' protocol
242 | public override init() {
243 | super.init()
/host/spi-builder-workspace/Sources/Injector/Injector.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Factory'
1 | import Foundation
2 | import Factory
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Factory'
3 |
4 | public enum InjectorEnvironment {
:
30 |
31 | private extension Container.Scope {
32 | static let cache = Cached()
| |- note: annotate 'cache' 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
33 | }
34 |
[8/8] Emitting module Injector
/host/spi-builder-workspace/Sources/Injector/Injector.swift:32:16: warning: static property 'cache' is not concurrency-safe because non-'Sendable' type 'SharedContainer.Scope.Cached' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | private extension Container.Scope {
32 | static let cache = Cached()
| `- warning: static property 'cache' is not concurrency-safe because non-'Sendable' type 'SharedContainer.Scope.Cached' may have shared mutable state; this is an error in the Swift 6 language mode
33 | }
34 |
/host/spi-builder-workspace/.build/checkouts/Factory/Sources/Factory/Factory.swift:241:24: note: class 'Cached' does not conform to the 'Sendable' protocol
239 | /// Defines a cached scope. The same instance will be returned by the factory until the cache is reset.
240 | public static let cached = Cached()
241 | public final class Cached: SharedContainer.Scope {
| `- note: class 'Cached' does not conform to the 'Sendable' protocol
242 | public override init() {
243 | super.init()
/host/spi-builder-workspace/Sources/Injector/Injector.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Factory'
1 | import Foundation
2 | import Factory
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Factory'
3 |
4 | public enum InjectorEnvironment {
:
30 |
31 | private extension Container.Scope {
32 | static let cache = Cached()
| |- note: annotate 'cache' 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
33 | }
34 |
Build complete! (11.42s)
Build complete.
{
"dependencies" : [
{
"identity" : "factory",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/hmlongco/Factory.git"
}
],
"manifest_display_name" : "Injector",
"name" : "Injector",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "11.0"
},
{
"name" : "macos",
"version" : "10.14"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "6.0"
}
],
"products" : [
{
"name" : "Injector",
"targets" : [
"Injector"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "InjectorTests",
"module_type" : "SwiftTarget",
"name" : "InjectorTests",
"path" : "Tests/InjectorTests",
"sources" : [
"InjectorTests.swift"
],
"target_dependencies" : [
"Injector"
],
"type" : "test"
},
{
"c99name" : "Injector",
"module_type" : "SwiftTarget",
"name" : "Injector",
"path" : "Sources/Injector",
"product_dependencies" : [
"Factory"
],
"product_memberships" : [
"Injector"
],
"sources" : [
"Injector.swift"
],
"type" : "library"
}
],
"tools_version" : "5.6"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.