Build Information
Successful build of Factory with Swift 6.0 (beta) for Linux.
Swift 6 data race errors: 18
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/hmlongco/Factory.git
Reference: main
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/hmlongco/Factory
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 2729a04 Merge pull request #203 from 942v/fix/privacyinfo
Cloned https://github.com/hmlongco/Factory.git
Revision (git rev-parse @):
2729a04b17946f6e7f475395db1695caa94eaee2
SPI manifest file found: $workDir/.spi.yml
SUCCESS checkout https://github.com/hmlongco/Factory.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $workDir
https://github.com/hmlongco/Factory.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/apple/swift-docc-symbolkit
Fetching https://github.com/apple/swift-docc-plugin
[1/1458] Fetching swift-docc-plugin
[16/4316] Fetching swift-docc-plugin, swift-docc-symbolkit
Fetched https://github.com/apple/swift-docc-symbolkit from cache (0.82s)
Fetched https://github.com/apple/swift-docc-plugin from cache (0.83s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.1.0 (1.34s)
Computing version for https://github.com/apple/swift-docc-symbolkit
Computed https://github.com/apple/swift-docc-symbolkit at 1.0.0 (0.52s)
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.1.0
Creating working copy for https://github.com/apple/swift-docc-symbolkit
Working copy of https://github.com/apple/swift-docc-symbolkit resolved at 1.0.0
/host/spi-builder-workspace/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Convert/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: warning: switch covers known cases, but 'TargetDependency' may have additional unknown values; this is an error in the Swift 6 language mode
29 | func addTargetDependencies(_ target: Target) {
30 | for dependency in target.dependencies {
31 | switch dependency {
| |- warning: switch covers known cases, but 'TargetDependency' may have additional unknown values; this is an error in the Swift 6 language mode
| `- note: handle unknown values using "@unknown default"
32 | case .product(let product):
33 | addTargets(product.targets)
[1/1] Compiling plugin Swift-DocC
/host/spi-builder-workspace/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Preview/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: warning: switch covers known cases, but 'TargetDependency' may have additional unknown values; this is an error in the Swift 6 language mode
29 | func addTargetDependencies(_ target: Target) {
30 | for dependency in target.dependencies {
31 | switch dependency {
| |- warning: switch covers known cases, but 'TargetDependency' may have additional unknown values; this is an error in the Swift 6 language mode
| `- note: handle unknown values using "@unknown default"
32 | case .product(let product):
33 | addTargets(product.targets)
[2/2] Compiling plugin Swift-DocC Preview
Building for debugging...
[2/5] Copying PrivacyInfo.xcprivacy
[2/5] Write sources
[4/5] Write swift-version-24593BA9C3E375BF.txt
[6/19] Compiling Factory Contexts.swift
/host/spi-builder-workspace/Sources/Factory/Factory/Contexts.swift:69:23: warning: static property 'current' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
67 | extension FactoryContext {
68 | /// Global current context.
69 | public static var current = FactoryContext()
| |- warning: static property 'current' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'current' 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
70 | }
71 |
[7/19] Compiling Factory Factory.swift
/host/spi-builder-workspace/Sources/Factory/Factory/Contexts.swift:69:23: warning: static property 'current' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
67 | extension FactoryContext {
68 | /// Global current context.
69 | public static var current = FactoryContext()
| |- warning: static property 'current' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'current' 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
70 | }
71 |
[8/20] Emitting module Factory
/host/spi-builder-workspace/Sources/Factory/Factory/Containers.swift:46:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Container' may have shared mutable state; this is an error in the Swift 6 language mode
42 | ///
43 | /// See <doc:Containers> for more information.
44 | public final class Container: SharedContainer {
| `- note: class 'Container' does not conform to the 'Sendable' protocol
45 | /// Define the default shared container.
46 | public static let shared = Container()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Container' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' 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
47 | /// Define the container's manager.
48 | public let manager: ContainerManager = ContainerManager()
/host/spi-builder-workspace/Sources/Factory/Factory/Contexts.swift:69:23: warning: static property 'current' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
67 | extension FactoryContext {
68 | /// Global current context.
69 | public static var current = FactoryContext()
| |- warning: static property 'current' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'current' 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
70 | }
71 |
/host/spi-builder-workspace/Sources/Factory/Factory/Globals.swift:32:14: warning: var 'globalGraphResolutionDepth' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Master graph resolution depth counter
32 | internal var globalGraphResolutionDepth = 0
| |- warning: var 'globalGraphResolutionDepth' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalGraphResolutionDepth' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalGraphResolutionDepth' 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 | /// Internal key used for Resolver mode
/host/spi-builder-workspace/Sources/Factory/Factory/Globals.swift:35:14: warning: var 'globalResolverKey' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
33 |
34 | /// Internal key used for Resolver mode
35 | internal var globalResolverKey: StaticString = "*"
| |- warning: var 'globalResolverKey' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalResolverKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalResolverKey' 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
36 |
37 | #if DEBUG
/host/spi-builder-workspace/Sources/Factory/Factory/Globals.swift:39:14: warning: var 'globalDependencyChain' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
37 | #if DEBUG
38 | /// Internal variables used for debugging
39 | internal var globalDependencyChain: [String] = []
| |- warning: var 'globalDependencyChain' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalDependencyChain' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalDependencyChain' 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
40 | internal var globalDependencyChainMessages: [String] = []
41 | internal var globalTraceFlag: Bool = false
/host/spi-builder-workspace/Sources/Factory/Factory/Globals.swift:40:14: warning: var 'globalDependencyChainMessages' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
38 | /// Internal variables used for debugging
39 | internal var globalDependencyChain: [String] = []
40 | internal var globalDependencyChainMessages: [String] = []
| |- warning: var 'globalDependencyChainMessages' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalDependencyChainMessages' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalDependencyChainMessages' 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
41 | internal var globalTraceFlag: Bool = false
42 | internal var globalTraceResolutions: [String] = []
/host/spi-builder-workspace/Sources/Factory/Factory/Globals.swift:41:14: warning: var 'globalTraceFlag' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
39 | internal var globalDependencyChain: [String] = []
40 | internal var globalDependencyChainMessages: [String] = []
41 | internal var globalTraceFlag: Bool = false
| |- warning: var 'globalTraceFlag' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalTraceFlag' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalTraceFlag' 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
42 | internal var globalTraceResolutions: [String] = []
43 | internal var globalLogger: (String) -> Void = { print($0) }
/host/spi-builder-workspace/Sources/Factory/Factory/Globals.swift:42:14: warning: var 'globalTraceResolutions' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
40 | internal var globalDependencyChainMessages: [String] = []
41 | internal var globalTraceFlag: Bool = false
42 | internal var globalTraceResolutions: [String] = []
| |- warning: var 'globalTraceResolutions' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalTraceResolutions' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalTraceResolutions' 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
43 | internal var globalLogger: (String) -> Void = { print($0) }
44 | internal var globalDebugInformationMap: [FactoryKey:FactoryDebugInformation] = [:]
/host/spi-builder-workspace/Sources/Factory/Factory/Globals.swift:43:14: warning: var 'globalLogger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
41 | internal var globalTraceFlag: Bool = false
42 | internal var globalTraceResolutions: [String] = []
43 | internal var globalLogger: (String) -> Void = { print($0) }
| |- warning: var 'globalLogger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalLogger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalLogger' 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
44 | internal var globalDebugInformationMap: [FactoryKey:FactoryDebugInformation] = [:]
45 |
/host/spi-builder-workspace/Sources/Factory/Factory/Globals.swift:44:14: warning: var 'globalDebugInformationMap' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
42 | internal var globalTraceResolutions: [String] = []
43 | internal var globalLogger: (String) -> Void = { print($0) }
44 | internal var globalDebugInformationMap: [FactoryKey:FactoryDebugInformation] = [:]
| |- warning: var 'globalDebugInformationMap' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalDebugInformationMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalDebugInformationMap' 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
45 |
46 | /// Triggers fatalError after resetting enough stuff so unit tests can continue
/host/spi-builder-workspace/Sources/Factory/Factory/Globals.swift:58:14: warning: var 'triggerFatalError' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
56 | /// Allow unit test interception of any fatal errors that may occur running the circular dependency check
57 | /// Variation of solution: https://stackoverflow.com/questions/32873212/unit-test-fatalerror-in-swift#
58 | internal var triggerFatalError = Swift.fatalError
| |- warning: var 'triggerFatalError' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'triggerFatalError' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'triggerFatalError' 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
59 | #endif
60 |
/host/spi-builder-workspace/Sources/Factory/Factory/Locking.swift:32:14: warning: var 'globalRecursiveLock' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Master recursive lock
32 | internal var globalRecursiveLock = RecursiveLock()
| |- warning: var 'globalRecursiveLock' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalRecursiveLock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalRecursiveLock' 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 | /// Custom recursive lock
/host/spi-builder-workspace/Sources/Factory/Factory/Locking.swift:65:14: warning: let 'globalDebugLock' is not concurrency-safe because non-'Sendable' type 'SpinLock' may have shared mutable state; this is an error in the Swift 6 language mode
63 |
64 | /// Master spin lock
65 | internal let globalDebugLock = SpinLock()
| |- warning: let 'globalDebugLock' is not concurrency-safe because non-'Sendable' type 'SpinLock' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'globalDebugLock' 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
66 |
67 | #if os(macOS) || os(iOS) || os(watchOS)
:
87 | #else
88 | /// Custom spin lock compatible with Linux
89 | internal struct SpinLock {
| `- note: consider making struct 'SpinLock' conform to the 'Sendable' protocol
90 |
91 | init() {
/host/spi-builder-workspace/Sources/Factory/Factory/Scopes.swift:101:23: warning: static property 'cached' is not concurrency-safe because non-'Sendable' type 'Scope.Cached' may have shared mutable state; this is an error in the Swift 6 language mode
99 |
100 | /// A reference to the default cached scope manager.
101 | public static let cached = Cached()
| |- warning: static property 'cached' is not concurrency-safe because non-'Sendable' type 'Scope.Cached' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'cached' 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
102 | /// Defines a cached scope. The same instance will be returned by the factory until the cache is reset.
103 | public final class Cached: Scope {
| `- note: class 'Cached' does not conform to the 'Sendable' protocol
104 | public override init() {
105 | super.init()
/host/spi-builder-workspace/Sources/Factory/Factory/Scopes.swift:110:23: warning: static property 'graph' is not concurrency-safe because non-'Sendable' type 'Scope.Graph' may have shared mutable state; this is an error in the Swift 6 language mode
108 |
109 | /// A reference to the default graph scope manager.
110 | public static let graph = Graph()
| |- warning: static property 'graph' is not concurrency-safe because non-'Sendable' type 'Scope.Graph' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'graph' 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
111 | /// Defines the graph scope. A single instance of a given type will be returned during a given resolution cycle.
112 | ///
113 | /// This scope is managed and cleared by the main resolution function at the end of each resolution cycle.
114 | public final class Graph: Scope {
| `- note: class 'Graph' does not conform to the 'Sendable' protocol
115 | public override init() {
116 | super.init()
/host/spi-builder-workspace/Sources/Factory/Factory/Scopes.swift:127:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Scope.Shared' may have shared mutable state; this is an error in the Swift 6 language mode
125 |
126 | /// A reference to the default shared scope manager.
127 | public static let shared = Shared()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Scope.Shared' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' 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
128 | /// Defines a shared (weak) scope. The same instance will be returned by the factory as long as someone maintains a strong reference.
129 | public final class Shared: Scope {
| `- note: class 'Shared' does not conform to the 'Sendable' protocol
130 | public override init() {
131 | super.init()
/host/spi-builder-workspace/Sources/Factory/Factory/Scopes.swift:160:23: warning: static property 'singleton' is not concurrency-safe because non-'Sendable' type 'Scope.Singleton' may have shared mutable state; this is an error in the Swift 6 language mode
158 |
159 | /// A reference to the default singleton scope manager.
160 | public static let singleton = Singleton()
| |- warning: static property 'singleton' is not concurrency-safe because non-'Sendable' type 'Scope.Singleton' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'singleton' 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
161 | /// Defines the singleton scope. The same instance will always be returned by the factory.
162 | public final class Singleton: Scope, InternalScopeCaching {
| `- note: class 'Singleton' does not conform to the 'Sendable' protocol
163 | public override init() {
164 | super.init()
/host/spi-builder-workspace/Sources/Factory/Factory/Scopes.swift:183:23: warning: static property 'unique' is not concurrency-safe because non-'Sendable' type 'Scope.Unique' may have shared mutable state; this is an error in the Swift 6 language mode
181 | ///
182 | /// If no scope cache is specified then Factory is running in unique more.
183 | public static let unique = Unique()
| |- warning: static property 'unique' is not concurrency-safe because non-'Sendable' type 'Scope.Unique' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unique' 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
184 | /// Defines the unique scope. A new instance of a given type will be returned on every resolution cycle.
185 | public final class Unique: Scope {
| `- note: class 'Unique' does not conform to the 'Sendable' protocol
186 | public override init() {
187 | super.init()
[9/20] Compiling Factory Aliases.swift
/host/spi-builder-workspace/Sources/Factory/Factory/Containers.swift:46:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Container' may have shared mutable state; this is an error in the Swift 6 language mode
42 | ///
43 | /// See <doc:Containers> for more information.
44 | public final class Container: SharedContainer {
| `- note: class 'Container' does not conform to the 'Sendable' protocol
45 | /// Define the default shared container.
46 | public static let shared = Container()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Container' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' 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
47 | /// Define the container's manager.
48 | public let manager: ContainerManager = ContainerManager()
/host/spi-builder-workspace/Sources/Factory/Factory/Contexts.swift:69:23: warning: static property 'current' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
67 | extension FactoryContext {
68 | /// Global current context.
69 | public static var current = FactoryContext()
| |- warning: static property 'current' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'current' 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
70 | }
71 |
/host/spi-builder-workspace/Sources/Factory/Factory/Globals.swift:41:14: warning: var 'globalTraceFlag' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
39 | internal var globalDependencyChain: [String] = []
40 | internal var globalDependencyChainMessages: [String] = []
41 | internal var globalTraceFlag: Bool = false
| |- warning: var 'globalTraceFlag' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalTraceFlag' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalTraceFlag' 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
42 | internal var globalTraceResolutions: [String] = []
43 | internal var globalLogger: (String) -> Void = { print($0) }
/host/spi-builder-workspace/Sources/Factory/Factory/Globals.swift:43:14: warning: var 'globalLogger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
41 | internal var globalTraceFlag: Bool = false
42 | internal var globalTraceResolutions: [String] = []
43 | internal var globalLogger: (String) -> Void = { print($0) }
| |- warning: var 'globalLogger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalLogger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalLogger' 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
44 | internal var globalDebugInformationMap: [FactoryKey:FactoryDebugInformation] = [:]
45 |
/host/spi-builder-workspace/Sources/Factory/Factory/Locking.swift:32:14: warning: var 'globalRecursiveLock' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Master recursive lock
32 | internal var globalRecursiveLock = RecursiveLock()
| |- warning: var 'globalRecursiveLock' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalRecursiveLock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalRecursiveLock' 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 | /// Custom recursive lock
[10/20] Compiling Factory Containers.swift
/host/spi-builder-workspace/Sources/Factory/Factory/Containers.swift:46:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Container' may have shared mutable state; this is an error in the Swift 6 language mode
42 | ///
43 | /// See <doc:Containers> for more information.
44 | public final class Container: SharedContainer {
| `- note: class 'Container' does not conform to the 'Sendable' protocol
45 | /// Define the default shared container.
46 | public static let shared = Container()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Container' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' 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
47 | /// Define the container's manager.
48 | public let manager: ContainerManager = ContainerManager()
/host/spi-builder-workspace/Sources/Factory/Factory/Contexts.swift:69:23: warning: static property 'current' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
67 | extension FactoryContext {
68 | /// Global current context.
69 | public static var current = FactoryContext()
| |- warning: static property 'current' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'current' 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
70 | }
71 |
/host/spi-builder-workspace/Sources/Factory/Factory/Globals.swift:41:14: warning: var 'globalTraceFlag' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
39 | internal var globalDependencyChain: [String] = []
40 | internal var globalDependencyChainMessages: [String] = []
41 | internal var globalTraceFlag: Bool = false
| |- warning: var 'globalTraceFlag' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalTraceFlag' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalTraceFlag' 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
42 | internal var globalTraceResolutions: [String] = []
43 | internal var globalLogger: (String) -> Void = { print($0) }
/host/spi-builder-workspace/Sources/Factory/Factory/Globals.swift:43:14: warning: var 'globalLogger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
41 | internal var globalTraceFlag: Bool = false
42 | internal var globalTraceResolutions: [String] = []
43 | internal var globalLogger: (String) -> Void = { print($0) }
| |- warning: var 'globalLogger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalLogger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalLogger' 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
44 | internal var globalDebugInformationMap: [FactoryKey:FactoryDebugInformation] = [:]
45 |
/host/spi-builder-workspace/Sources/Factory/Factory/Locking.swift:32:14: warning: var 'globalRecursiveLock' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Master recursive lock
32 | internal var globalRecursiveLock = RecursiveLock()
| |- warning: var 'globalRecursiveLock' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalRecursiveLock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalRecursiveLock' 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 | /// Custom recursive lock
[11/20] Compiling Factory resource_bundle_accessor.swift
[12/20] Compiling Factory Globals.swift
/host/spi-builder-workspace/Sources/Factory/Factory/Globals.swift:32:14: warning: var 'globalGraphResolutionDepth' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Master graph resolution depth counter
32 | internal var globalGraphResolutionDepth = 0
| |- warning: var 'globalGraphResolutionDepth' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalGraphResolutionDepth' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalGraphResolutionDepth' 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 | /// Internal key used for Resolver mode
/host/spi-builder-workspace/Sources/Factory/Factory/Globals.swift:35:14: warning: var 'globalResolverKey' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
33 |
34 | /// Internal key used for Resolver mode
35 | internal var globalResolverKey: StaticString = "*"
| |- warning: var 'globalResolverKey' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalResolverKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalResolverKey' 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
36 |
37 | #if DEBUG
/host/spi-builder-workspace/Sources/Factory/Factory/Globals.swift:39:14: warning: var 'globalDependencyChain' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
37 | #if DEBUG
38 | /// Internal variables used for debugging
39 | internal var globalDependencyChain: [String] = []
| |- warning: var 'globalDependencyChain' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalDependencyChain' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalDependencyChain' 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
40 | internal var globalDependencyChainMessages: [String] = []
41 | internal var globalTraceFlag: Bool = false
/host/spi-builder-workspace/Sources/Factory/Factory/Globals.swift:40:14: warning: var 'globalDependencyChainMessages' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
38 | /// Internal variables used for debugging
39 | internal var globalDependencyChain: [String] = []
40 | internal var globalDependencyChainMessages: [String] = []
| |- warning: var 'globalDependencyChainMessages' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalDependencyChainMessages' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalDependencyChainMessages' 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
41 | internal var globalTraceFlag: Bool = false
42 | internal var globalTraceResolutions: [String] = []
/host/spi-builder-workspace/Sources/Factory/Factory/Globals.swift:41:14: warning: var 'globalTraceFlag' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
39 | internal var globalDependencyChain: [String] = []
40 | internal var globalDependencyChainMessages: [String] = []
41 | internal var globalTraceFlag: Bool = false
| |- warning: var 'globalTraceFlag' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalTraceFlag' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalTraceFlag' 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
42 | internal var globalTraceResolutions: [String] = []
43 | internal var globalLogger: (String) -> Void = { print($0) }
/host/spi-builder-workspace/Sources/Factory/Factory/Globals.swift:42:14: warning: var 'globalTraceResolutions' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
40 | internal var globalDependencyChainMessages: [String] = []
41 | internal var globalTraceFlag: Bool = false
42 | internal var globalTraceResolutions: [String] = []
| |- warning: var 'globalTraceResolutions' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalTraceResolutions' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalTraceResolutions' 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
43 | internal var globalLogger: (String) -> Void = { print($0) }
44 | internal var globalDebugInformationMap: [FactoryKey:FactoryDebugInformation] = [:]
/host/spi-builder-workspace/Sources/Factory/Factory/Globals.swift:43:14: warning: var 'globalLogger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
41 | internal var globalTraceFlag: Bool = false
42 | internal var globalTraceResolutions: [String] = []
43 | internal var globalLogger: (String) -> Void = { print($0) }
| |- warning: var 'globalLogger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalLogger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalLogger' 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
44 | internal var globalDebugInformationMap: [FactoryKey:FactoryDebugInformation] = [:]
45 |
/host/spi-builder-workspace/Sources/Factory/Factory/Globals.swift:44:14: warning: var 'globalDebugInformationMap' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
42 | internal var globalTraceResolutions: [String] = []
43 | internal var globalLogger: (String) -> Void = { print($0) }
44 | internal var globalDebugInformationMap: [FactoryKey:FactoryDebugInformation] = [:]
| |- warning: var 'globalDebugInformationMap' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalDebugInformationMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalDebugInformationMap' 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
45 |
46 | /// Triggers fatalError after resetting enough stuff so unit tests can continue
/host/spi-builder-workspace/Sources/Factory/Factory/Globals.swift:58:14: warning: var 'triggerFatalError' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
56 | /// Allow unit test interception of any fatal errors that may occur running the circular dependency check
57 | /// Variation of solution: https://stackoverflow.com/questions/32873212/unit-test-fatalerror-in-swift#
58 | internal var triggerFatalError = Swift.fatalError
| |- warning: var 'triggerFatalError' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'triggerFatalError' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'triggerFatalError' 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
59 | #endif
60 |
/host/spi-builder-workspace/Sources/Factory/Factory/Locking.swift:32:14: warning: var 'globalRecursiveLock' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Master recursive lock
32 | internal var globalRecursiveLock = RecursiveLock()
| |- warning: var 'globalRecursiveLock' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalRecursiveLock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalRecursiveLock' 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 | /// Custom recursive lock
/host/spi-builder-workspace/Sources/Factory/Factory/Containers.swift:46:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Container' may have shared mutable state; this is an error in the Swift 6 language mode
42 | ///
43 | /// See <doc:Containers> for more information.
44 | public final class Container: SharedContainer {
| `- note: class 'Container' does not conform to the 'Sendable' protocol
45 | /// Define the default shared container.
46 | public static let shared = Container()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Container' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' 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
47 | /// Define the container's manager.
48 | public let manager: ContainerManager = ContainerManager()
[13/20] Compiling Factory Injections.swift
/host/spi-builder-workspace/Sources/Factory/Factory/Globals.swift:32:14: warning: var 'globalGraphResolutionDepth' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Master graph resolution depth counter
32 | internal var globalGraphResolutionDepth = 0
| |- warning: var 'globalGraphResolutionDepth' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalGraphResolutionDepth' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalGraphResolutionDepth' 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 | /// Internal key used for Resolver mode
/host/spi-builder-workspace/Sources/Factory/Factory/Globals.swift:35:14: warning: var 'globalResolverKey' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
33 |
34 | /// Internal key used for Resolver mode
35 | internal var globalResolverKey: StaticString = "*"
| |- warning: var 'globalResolverKey' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalResolverKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalResolverKey' 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
36 |
37 | #if DEBUG
/host/spi-builder-workspace/Sources/Factory/Factory/Globals.swift:39:14: warning: var 'globalDependencyChain' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
37 | #if DEBUG
38 | /// Internal variables used for debugging
39 | internal var globalDependencyChain: [String] = []
| |- warning: var 'globalDependencyChain' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalDependencyChain' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalDependencyChain' 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
40 | internal var globalDependencyChainMessages: [String] = []
41 | internal var globalTraceFlag: Bool = false
/host/spi-builder-workspace/Sources/Factory/Factory/Globals.swift:40:14: warning: var 'globalDependencyChainMessages' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
38 | /// Internal variables used for debugging
39 | internal var globalDependencyChain: [String] = []
40 | internal var globalDependencyChainMessages: [String] = []
| |- warning: var 'globalDependencyChainMessages' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalDependencyChainMessages' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalDependencyChainMessages' 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
41 | internal var globalTraceFlag: Bool = false
42 | internal var globalTraceResolutions: [String] = []
/host/spi-builder-workspace/Sources/Factory/Factory/Globals.swift:41:14: warning: var 'globalTraceFlag' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
39 | internal var globalDependencyChain: [String] = []
40 | internal var globalDependencyChainMessages: [String] = []
41 | internal var globalTraceFlag: Bool = false
| |- warning: var 'globalTraceFlag' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalTraceFlag' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalTraceFlag' 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
42 | internal var globalTraceResolutions: [String] = []
43 | internal var globalLogger: (String) -> Void = { print($0) }
/host/spi-builder-workspace/Sources/Factory/Factory/Globals.swift:42:14: warning: var 'globalTraceResolutions' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
40 | internal var globalDependencyChainMessages: [String] = []
41 | internal var globalTraceFlag: Bool = false
42 | internal var globalTraceResolutions: [String] = []
| |- warning: var 'globalTraceResolutions' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalTraceResolutions' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalTraceResolutions' 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
43 | internal var globalLogger: (String) -> Void = { print($0) }
44 | internal var globalDebugInformationMap: [FactoryKey:FactoryDebugInformation] = [:]
/host/spi-builder-workspace/Sources/Factory/Factory/Globals.swift:43:14: warning: var 'globalLogger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
41 | internal var globalTraceFlag: Bool = false
42 | internal var globalTraceResolutions: [String] = []
43 | internal var globalLogger: (String) -> Void = { print($0) }
| |- warning: var 'globalLogger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalLogger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalLogger' 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
44 | internal var globalDebugInformationMap: [FactoryKey:FactoryDebugInformation] = [:]
45 |
/host/spi-builder-workspace/Sources/Factory/Factory/Globals.swift:44:14: warning: var 'globalDebugInformationMap' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
42 | internal var globalTraceResolutions: [String] = []
43 | internal var globalLogger: (String) -> Void = { print($0) }
44 | internal var globalDebugInformationMap: [FactoryKey:FactoryDebugInformation] = [:]
| |- warning: var 'globalDebugInformationMap' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalDebugInformationMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalDebugInformationMap' 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
45 |
46 | /// Triggers fatalError after resetting enough stuff so unit tests can continue
/host/spi-builder-workspace/Sources/Factory/Factory/Globals.swift:58:14: warning: var 'triggerFatalError' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
56 | /// Allow unit test interception of any fatal errors that may occur running the circular dependency check
57 | /// Variation of solution: https://stackoverflow.com/questions/32873212/unit-test-fatalerror-in-swift#
58 | internal var triggerFatalError = Swift.fatalError
| |- warning: var 'triggerFatalError' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'triggerFatalError' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'triggerFatalError' 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
59 | #endif
60 |
/host/spi-builder-workspace/Sources/Factory/Factory/Locking.swift:32:14: warning: var 'globalRecursiveLock' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Master recursive lock
32 | internal var globalRecursiveLock = RecursiveLock()
| |- warning: var 'globalRecursiveLock' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalRecursiveLock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalRecursiveLock' 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 | /// Custom recursive lock
/host/spi-builder-workspace/Sources/Factory/Factory/Containers.swift:46:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Container' may have shared mutable state; this is an error in the Swift 6 language mode
42 | ///
43 | /// See <doc:Containers> for more information.
44 | public final class Container: SharedContainer {
| `- note: class 'Container' does not conform to the 'Sendable' protocol
45 | /// Define the default shared container.
46 | public static let shared = Container()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Container' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' 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
47 | /// Define the container's manager.
48 | public let manager: ContainerManager = ContainerManager()
[14/20] Compiling Factory Key.swift
/host/spi-builder-workspace/Sources/Factory/Factory/Locking.swift:32:14: warning: var 'globalRecursiveLock' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Master recursive lock
32 | internal var globalRecursiveLock = RecursiveLock()
| |- warning: var 'globalRecursiveLock' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalRecursiveLock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalRecursiveLock' 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 | /// Custom recursive lock
/host/spi-builder-workspace/Sources/Factory/Factory/Locking.swift:65:14: warning: let 'globalDebugLock' is not concurrency-safe because non-'Sendable' type 'SpinLock' may have shared mutable state; this is an error in the Swift 6 language mode
63 |
64 | /// Master spin lock
65 | internal let globalDebugLock = SpinLock()
| |- warning: let 'globalDebugLock' is not concurrency-safe because non-'Sendable' type 'SpinLock' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'globalDebugLock' 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
66 |
67 | #if os(macOS) || os(iOS) || os(watchOS)
:
87 | #else
88 | /// Custom spin lock compatible with Linux
89 | internal struct SpinLock {
| `- note: consider making struct 'SpinLock' conform to the 'Sendable' protocol
90 |
91 | init() {
[15/20] Compiling Factory Locking.swift
/host/spi-builder-workspace/Sources/Factory/Factory/Locking.swift:32:14: warning: var 'globalRecursiveLock' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Master recursive lock
32 | internal var globalRecursiveLock = RecursiveLock()
| |- warning: var 'globalRecursiveLock' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalRecursiveLock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalRecursiveLock' 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 | /// Custom recursive lock
/host/spi-builder-workspace/Sources/Factory/Factory/Locking.swift:65:14: warning: let 'globalDebugLock' is not concurrency-safe because non-'Sendable' type 'SpinLock' may have shared mutable state; this is an error in the Swift 6 language mode
63 |
64 | /// Master spin lock
65 | internal let globalDebugLock = SpinLock()
| |- warning: let 'globalDebugLock' is not concurrency-safe because non-'Sendable' type 'SpinLock' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'globalDebugLock' 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
66 |
67 | #if os(macOS) || os(iOS) || os(watchOS)
:
87 | #else
88 | /// Custom spin lock compatible with Linux
89 | internal struct SpinLock {
| `- note: consider making struct 'SpinLock' conform to the 'Sendable' protocol
90 |
91 | init() {
[16/20] Compiling Factory Modifiers.swift
/host/spi-builder-workspace/Sources/Factory/Factory/Scopes.swift:101:23: warning: static property 'cached' is not concurrency-safe because non-'Sendable' type 'Scope.Cached' may have shared mutable state; this is an error in the Swift 6 language mode
99 |
100 | /// A reference to the default cached scope manager.
101 | public static let cached = Cached()
| |- warning: static property 'cached' is not concurrency-safe because non-'Sendable' type 'Scope.Cached' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'cached' 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
102 | /// Defines a cached scope. The same instance will be returned by the factory until the cache is reset.
103 | public final class Cached: Scope {
| `- note: class 'Cached' does not conform to the 'Sendable' protocol
104 | public override init() {
105 | super.init()
/host/spi-builder-workspace/Sources/Factory/Factory/Scopes.swift:110:23: warning: static property 'graph' is not concurrency-safe because non-'Sendable' type 'Scope.Graph' may have shared mutable state; this is an error in the Swift 6 language mode
108 |
109 | /// A reference to the default graph scope manager.
110 | public static let graph = Graph()
| |- warning: static property 'graph' is not concurrency-safe because non-'Sendable' type 'Scope.Graph' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'graph' 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
111 | /// Defines the graph scope. A single instance of a given type will be returned during a given resolution cycle.
112 | ///
113 | /// This scope is managed and cleared by the main resolution function at the end of each resolution cycle.
114 | public final class Graph: Scope {
| `- note: class 'Graph' does not conform to the 'Sendable' protocol
115 | public override init() {
116 | super.init()
/host/spi-builder-workspace/Sources/Factory/Factory/Scopes.swift:127:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Scope.Shared' may have shared mutable state; this is an error in the Swift 6 language mode
125 |
126 | /// A reference to the default shared scope manager.
127 | public static let shared = Shared()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Scope.Shared' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' 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
128 | /// Defines a shared (weak) scope. The same instance will be returned by the factory as long as someone maintains a strong reference.
129 | public final class Shared: Scope {
| `- note: class 'Shared' does not conform to the 'Sendable' protocol
130 | public override init() {
131 | super.init()
/host/spi-builder-workspace/Sources/Factory/Factory/Scopes.swift:160:23: warning: static property 'singleton' is not concurrency-safe because non-'Sendable' type 'Scope.Singleton' may have shared mutable state; this is an error in the Swift 6 language mode
158 |
159 | /// A reference to the default singleton scope manager.
160 | public static let singleton = Singleton()
| |- warning: static property 'singleton' is not concurrency-safe because non-'Sendable' type 'Scope.Singleton' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'singleton' 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
161 | /// Defines the singleton scope. The same instance will always be returned by the factory.
162 | public final class Singleton: Scope, InternalScopeCaching {
| `- note: class 'Singleton' does not conform to the 'Sendable' protocol
163 | public override init() {
164 | super.init()
/host/spi-builder-workspace/Sources/Factory/Factory/Scopes.swift:183:23: warning: static property 'unique' is not concurrency-safe because non-'Sendable' type 'Scope.Unique' may have shared mutable state; this is an error in the Swift 6 language mode
181 | ///
182 | /// If no scope cache is specified then Factory is running in unique more.
183 | public static let unique = Unique()
| |- warning: static property 'unique' is not concurrency-safe because non-'Sendable' type 'Scope.Unique' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unique' 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
184 | /// Defines the unique scope. A new instance of a given type will be returned on every resolution cycle.
185 | public final class Unique: Scope {
| `- note: class 'Unique' does not conform to the 'Sendable' protocol
186 | public override init() {
187 | super.init()
/host/spi-builder-workspace/Sources/Factory/Factory/Locking.swift:65:14: warning: let 'globalDebugLock' is not concurrency-safe because non-'Sendable' type 'SpinLock' may have shared mutable state; this is an error in the Swift 6 language mode
63 |
64 | /// Master spin lock
65 | internal let globalDebugLock = SpinLock()
| |- warning: let 'globalDebugLock' is not concurrency-safe because non-'Sendable' type 'SpinLock' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'globalDebugLock' 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
66 |
67 | #if os(macOS) || os(iOS) || os(watchOS)
:
87 | #else
88 | /// Custom spin lock compatible with Linux
89 | internal struct SpinLock {
| `- note: consider making struct 'SpinLock' conform to the 'Sendable' protocol
90 |
91 | init() {
/host/spi-builder-workspace/Sources/Factory/Factory/Globals.swift:44:14: warning: var 'globalDebugInformationMap' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
42 | internal var globalTraceResolutions: [String] = []
43 | internal var globalLogger: (String) -> Void = { print($0) }
44 | internal var globalDebugInformationMap: [FactoryKey:FactoryDebugInformation] = [:]
| |- warning: var 'globalDebugInformationMap' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalDebugInformationMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalDebugInformationMap' 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
45 |
46 | /// Triggers fatalError after resetting enough stuff so unit tests can continue
/host/spi-builder-workspace/Sources/Factory/Factory/Locking.swift:32:14: warning: var 'globalRecursiveLock' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Master recursive lock
32 | internal var globalRecursiveLock = RecursiveLock()
| |- warning: var 'globalRecursiveLock' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalRecursiveLock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalRecursiveLock' 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 | /// Custom recursive lock
/host/spi-builder-workspace/Sources/Factory/Factory/Globals.swift:42:14: warning: var 'globalTraceResolutions' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
40 | internal var globalDependencyChainMessages: [String] = []
41 | internal var globalTraceFlag: Bool = false
42 | internal var globalTraceResolutions: [String] = []
| |- warning: var 'globalTraceResolutions' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalTraceResolutions' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalTraceResolutions' 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
43 | internal var globalLogger: (String) -> Void = { print($0) }
44 | internal var globalDebugInformationMap: [FactoryKey:FactoryDebugInformation] = [:]
/host/spi-builder-workspace/Sources/Factory/Factory/Globals.swift:32:14: warning: var 'globalGraphResolutionDepth' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Master graph resolution depth counter
32 | internal var globalGraphResolutionDepth = 0
| |- warning: var 'globalGraphResolutionDepth' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalGraphResolutionDepth' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalGraphResolutionDepth' 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 | /// Internal key used for Resolver mode
/host/spi-builder-workspace/Sources/Factory/Factory/Globals.swift:40:14: warning: var 'globalDependencyChainMessages' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
38 | /// Internal variables used for debugging
39 | internal var globalDependencyChain: [String] = []
40 | internal var globalDependencyChainMessages: [String] = []
| |- warning: var 'globalDependencyChainMessages' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalDependencyChainMessages' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalDependencyChainMessages' 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
41 | internal var globalTraceFlag: Bool = false
42 | internal var globalTraceResolutions: [String] = []
/host/spi-builder-workspace/Sources/Factory/Factory/Globals.swift:39:14: warning: var 'globalDependencyChain' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
37 | #if DEBUG
38 | /// Internal variables used for debugging
39 | internal var globalDependencyChain: [String] = []
| |- warning: var 'globalDependencyChain' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalDependencyChain' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalDependencyChain' 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
40 | internal var globalDependencyChainMessages: [String] = []
41 | internal var globalTraceFlag: Bool = false
/host/spi-builder-workspace/Sources/Factory/Factory/Globals.swift:43:14: warning: var 'globalLogger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
41 | internal var globalTraceFlag: Bool = false
42 | internal var globalTraceResolutions: [String] = []
43 | internal var globalLogger: (String) -> Void = { print($0) }
| |- warning: var 'globalLogger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalLogger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalLogger' 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
44 | internal var globalDebugInformationMap: [FactoryKey:FactoryDebugInformation] = [:]
45 |
/host/spi-builder-workspace/Sources/Factory/Factory/Contexts.swift:69:23: warning: static property 'current' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
67 | extension FactoryContext {
68 | /// Global current context.
69 | public static var current = FactoryContext()
| |- warning: static property 'current' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'current' 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
70 | }
71 |
[17/20] Compiling Factory Registrations.swift
/host/spi-builder-workspace/Sources/Factory/Factory/Scopes.swift:101:23: warning: static property 'cached' is not concurrency-safe because non-'Sendable' type 'Scope.Cached' may have shared mutable state; this is an error in the Swift 6 language mode
99 |
100 | /// A reference to the default cached scope manager.
101 | public static let cached = Cached()
| |- warning: static property 'cached' is not concurrency-safe because non-'Sendable' type 'Scope.Cached' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'cached' 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
102 | /// Defines a cached scope. The same instance will be returned by the factory until the cache is reset.
103 | public final class Cached: Scope {
| `- note: class 'Cached' does not conform to the 'Sendable' protocol
104 | public override init() {
105 | super.init()
/host/spi-builder-workspace/Sources/Factory/Factory/Scopes.swift:110:23: warning: static property 'graph' is not concurrency-safe because non-'Sendable' type 'Scope.Graph' may have shared mutable state; this is an error in the Swift 6 language mode
108 |
109 | /// A reference to the default graph scope manager.
110 | public static let graph = Graph()
| |- warning: static property 'graph' is not concurrency-safe because non-'Sendable' type 'Scope.Graph' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'graph' 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
111 | /// Defines the graph scope. A single instance of a given type will be returned during a given resolution cycle.
112 | ///
113 | /// This scope is managed and cleared by the main resolution function at the end of each resolution cycle.
114 | public final class Graph: Scope {
| `- note: class 'Graph' does not conform to the 'Sendable' protocol
115 | public override init() {
116 | super.init()
/host/spi-builder-workspace/Sources/Factory/Factory/Scopes.swift:127:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Scope.Shared' may have shared mutable state; this is an error in the Swift 6 language mode
125 |
126 | /// A reference to the default shared scope manager.
127 | public static let shared = Shared()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Scope.Shared' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' 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
128 | /// Defines a shared (weak) scope. The same instance will be returned by the factory as long as someone maintains a strong reference.
129 | public final class Shared: Scope {
| `- note: class 'Shared' does not conform to the 'Sendable' protocol
130 | public override init() {
131 | super.init()
/host/spi-builder-workspace/Sources/Factory/Factory/Scopes.swift:160:23: warning: static property 'singleton' is not concurrency-safe because non-'Sendable' type 'Scope.Singleton' may have shared mutable state; this is an error in the Swift 6 language mode
158 |
159 | /// A reference to the default singleton scope manager.
160 | public static let singleton = Singleton()
| |- warning: static property 'singleton' is not concurrency-safe because non-'Sendable' type 'Scope.Singleton' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'singleton' 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
161 | /// Defines the singleton scope. The same instance will always be returned by the factory.
162 | public final class Singleton: Scope, InternalScopeCaching {
| `- note: class 'Singleton' does not conform to the 'Sendable' protocol
163 | public override init() {
164 | super.init()
/host/spi-builder-workspace/Sources/Factory/Factory/Scopes.swift:183:23: warning: static property 'unique' is not concurrency-safe because non-'Sendable' type 'Scope.Unique' may have shared mutable state; this is an error in the Swift 6 language mode
181 | ///
182 | /// If no scope cache is specified then Factory is running in unique more.
183 | public static let unique = Unique()
| |- warning: static property 'unique' is not concurrency-safe because non-'Sendable' type 'Scope.Unique' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unique' 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
184 | /// Defines the unique scope. A new instance of a given type will be returned on every resolution cycle.
185 | public final class Unique: Scope {
| `- note: class 'Unique' does not conform to the 'Sendable' protocol
186 | public override init() {
187 | super.init()
/host/spi-builder-workspace/Sources/Factory/Factory/Locking.swift:65:14: warning: let 'globalDebugLock' is not concurrency-safe because non-'Sendable' type 'SpinLock' may have shared mutable state; this is an error in the Swift 6 language mode
63 |
64 | /// Master spin lock
65 | internal let globalDebugLock = SpinLock()
| |- warning: let 'globalDebugLock' is not concurrency-safe because non-'Sendable' type 'SpinLock' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'globalDebugLock' 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
66 |
67 | #if os(macOS) || os(iOS) || os(watchOS)
:
87 | #else
88 | /// Custom spin lock compatible with Linux
89 | internal struct SpinLock {
| `- note: consider making struct 'SpinLock' conform to the 'Sendable' protocol
90 |
91 | init() {
/host/spi-builder-workspace/Sources/Factory/Factory/Globals.swift:44:14: warning: var 'globalDebugInformationMap' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
42 | internal var globalTraceResolutions: [String] = []
43 | internal var globalLogger: (String) -> Void = { print($0) }
44 | internal var globalDebugInformationMap: [FactoryKey:FactoryDebugInformation] = [:]
| |- warning: var 'globalDebugInformationMap' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalDebugInformationMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalDebugInformationMap' 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
45 |
46 | /// Triggers fatalError after resetting enough stuff so unit tests can continue
/host/spi-builder-workspace/Sources/Factory/Factory/Locking.swift:32:14: warning: var 'globalRecursiveLock' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Master recursive lock
32 | internal var globalRecursiveLock = RecursiveLock()
| |- warning: var 'globalRecursiveLock' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalRecursiveLock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalRecursiveLock' 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 | /// Custom recursive lock
/host/spi-builder-workspace/Sources/Factory/Factory/Globals.swift:42:14: warning: var 'globalTraceResolutions' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
40 | internal var globalDependencyChainMessages: [String] = []
41 | internal var globalTraceFlag: Bool = false
42 | internal var globalTraceResolutions: [String] = []
| |- warning: var 'globalTraceResolutions' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalTraceResolutions' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalTraceResolutions' 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
43 | internal var globalLogger: (String) -> Void = { print($0) }
44 | internal var globalDebugInformationMap: [FactoryKey:FactoryDebugInformation] = [:]
/host/spi-builder-workspace/Sources/Factory/Factory/Globals.swift:32:14: warning: var 'globalGraphResolutionDepth' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Master graph resolution depth counter
32 | internal var globalGraphResolutionDepth = 0
| |- warning: var 'globalGraphResolutionDepth' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalGraphResolutionDepth' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalGraphResolutionDepth' 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 | /// Internal key used for Resolver mode
/host/spi-builder-workspace/Sources/Factory/Factory/Globals.swift:40:14: warning: var 'globalDependencyChainMessages' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
38 | /// Internal variables used for debugging
39 | internal var globalDependencyChain: [String] = []
40 | internal var globalDependencyChainMessages: [String] = []
| |- warning: var 'globalDependencyChainMessages' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalDependencyChainMessages' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalDependencyChainMessages' 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
41 | internal var globalTraceFlag: Bool = false
42 | internal var globalTraceResolutions: [String] = []
/host/spi-builder-workspace/Sources/Factory/Factory/Globals.swift:39:14: warning: var 'globalDependencyChain' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
37 | #if DEBUG
38 | /// Internal variables used for debugging
39 | internal var globalDependencyChain: [String] = []
| |- warning: var 'globalDependencyChain' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalDependencyChain' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalDependencyChain' 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
40 | internal var globalDependencyChainMessages: [String] = []
41 | internal var globalTraceFlag: Bool = false
/host/spi-builder-workspace/Sources/Factory/Factory/Globals.swift:43:14: warning: var 'globalLogger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
41 | internal var globalTraceFlag: Bool = false
42 | internal var globalTraceResolutions: [String] = []
43 | internal var globalLogger: (String) -> Void = { print($0) }
| |- warning: var 'globalLogger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalLogger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalLogger' 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
44 | internal var globalDebugInformationMap: [FactoryKey:FactoryDebugInformation] = [:]
45 |
/host/spi-builder-workspace/Sources/Factory/Factory/Contexts.swift:69:23: warning: static property 'current' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
67 | extension FactoryContext {
68 | /// Global current context.
69 | public static var current = FactoryContext()
| |- warning: static property 'current' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'current' 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
70 | }
71 |
[18/20] Compiling Factory Resolutions.swift
/host/spi-builder-workspace/Sources/Factory/Factory/Containers.swift:46:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Container' may have shared mutable state; this is an error in the Swift 6 language mode
42 | ///
43 | /// See <doc:Containers> for more information.
44 | public final class Container: SharedContainer {
| `- note: class 'Container' does not conform to the 'Sendable' protocol
45 | /// Define the default shared container.
46 | public static let shared = Container()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Container' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' 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
47 | /// Define the container's manager.
48 | public let manager: ContainerManager = ContainerManager()
/host/spi-builder-workspace/Sources/Factory/Factory/Locking.swift:32:14: warning: var 'globalRecursiveLock' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Master recursive lock
32 | internal var globalRecursiveLock = RecursiveLock()
| |- warning: var 'globalRecursiveLock' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalRecursiveLock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalRecursiveLock' 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 | /// Custom recursive lock
/host/spi-builder-workspace/Sources/Factory/Factory/Globals.swift:35:14: warning: var 'globalResolverKey' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
33 |
34 | /// Internal key used for Resolver mode
35 | internal var globalResolverKey: StaticString = "*"
| |- warning: var 'globalResolverKey' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalResolverKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalResolverKey' 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
36 |
37 | #if DEBUG
[19/20] Compiling Factory Resolver.swift
/host/spi-builder-workspace/Sources/Factory/Factory/Containers.swift:46:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Container' may have shared mutable state; this is an error in the Swift 6 language mode
42 | ///
43 | /// See <doc:Containers> for more information.
44 | public final class Container: SharedContainer {
| `- note: class 'Container' does not conform to the 'Sendable' protocol
45 | /// Define the default shared container.
46 | public static let shared = Container()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Container' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' 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
47 | /// Define the container's manager.
48 | public let manager: ContainerManager = ContainerManager()
/host/spi-builder-workspace/Sources/Factory/Factory/Locking.swift:32:14: warning: var 'globalRecursiveLock' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Master recursive lock
32 | internal var globalRecursiveLock = RecursiveLock()
| |- warning: var 'globalRecursiveLock' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalRecursiveLock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalRecursiveLock' 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 | /// Custom recursive lock
/host/spi-builder-workspace/Sources/Factory/Factory/Globals.swift:35:14: warning: var 'globalResolverKey' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
33 |
34 | /// Internal key used for Resolver mode
35 | internal var globalResolverKey: StaticString = "*"
| |- warning: var 'globalResolverKey' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalResolverKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalResolverKey' 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
36 |
37 | #if DEBUG
[20/20] Compiling Factory Scopes.swift
/host/spi-builder-workspace/Sources/Factory/Factory/Scopes.swift:101:23: warning: static property 'cached' is not concurrency-safe because non-'Sendable' type 'Scope.Cached' may have shared mutable state; this is an error in the Swift 6 language mode
99 |
100 | /// A reference to the default cached scope manager.
101 | public static let cached = Cached()
| |- warning: static property 'cached' is not concurrency-safe because non-'Sendable' type 'Scope.Cached' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'cached' 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
102 | /// Defines a cached scope. The same instance will be returned by the factory until the cache is reset.
103 | public final class Cached: Scope {
| `- note: class 'Cached' does not conform to the 'Sendable' protocol
104 | public override init() {
105 | super.init()
/host/spi-builder-workspace/Sources/Factory/Factory/Scopes.swift:110:23: warning: static property 'graph' is not concurrency-safe because non-'Sendable' type 'Scope.Graph' may have shared mutable state; this is an error in the Swift 6 language mode
108 |
109 | /// A reference to the default graph scope manager.
110 | public static let graph = Graph()
| |- warning: static property 'graph' is not concurrency-safe because non-'Sendable' type 'Scope.Graph' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'graph' 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
111 | /// Defines the graph scope. A single instance of a given type will be returned during a given resolution cycle.
112 | ///
113 | /// This scope is managed and cleared by the main resolution function at the end of each resolution cycle.
114 | public final class Graph: Scope {
| `- note: class 'Graph' does not conform to the 'Sendable' protocol
115 | public override init() {
116 | super.init()
/host/spi-builder-workspace/Sources/Factory/Factory/Scopes.swift:127:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Scope.Shared' may have shared mutable state; this is an error in the Swift 6 language mode
125 |
126 | /// A reference to the default shared scope manager.
127 | public static let shared = Shared()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Scope.Shared' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' 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
128 | /// Defines a shared (weak) scope. The same instance will be returned by the factory as long as someone maintains a strong reference.
129 | public final class Shared: Scope {
| `- note: class 'Shared' does not conform to the 'Sendable' protocol
130 | public override init() {
131 | super.init()
/host/spi-builder-workspace/Sources/Factory/Factory/Scopes.swift:160:23: warning: static property 'singleton' is not concurrency-safe because non-'Sendable' type 'Scope.Singleton' may have shared mutable state; this is an error in the Swift 6 language mode
158 |
159 | /// A reference to the default singleton scope manager.
160 | public static let singleton = Singleton()
| |- warning: static property 'singleton' is not concurrency-safe because non-'Sendable' type 'Scope.Singleton' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'singleton' 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
161 | /// Defines the singleton scope. The same instance will always be returned by the factory.
162 | public final class Singleton: Scope, InternalScopeCaching {
| `- note: class 'Singleton' does not conform to the 'Sendable' protocol
163 | public override init() {
164 | super.init()
/host/spi-builder-workspace/Sources/Factory/Factory/Scopes.swift:183:23: warning: static property 'unique' is not concurrency-safe because non-'Sendable' type 'Scope.Unique' may have shared mutable state; this is an error in the Swift 6 language mode
181 | ///
182 | /// If no scope cache is specified then Factory is running in unique more.
183 | public static let unique = Unique()
| |- warning: static property 'unique' is not concurrency-safe because non-'Sendable' type 'Scope.Unique' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unique' 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
184 | /// Defines the unique scope. A new instance of a given type will be returned on every resolution cycle.
185 | public final class Unique: Scope {
| `- note: class 'Unique' does not conform to the 'Sendable' protocol
186 | public override init() {
187 | super.init()
/host/spi-builder-workspace/Sources/Factory/Factory/Locking.swift:32:14: warning: var 'globalRecursiveLock' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Master recursive lock
32 | internal var globalRecursiveLock = RecursiveLock()
| |- warning: var 'globalRecursiveLock' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalRecursiveLock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalRecursiveLock' 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 | /// Custom recursive lock
Build complete! (23.65s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-docc-plugin",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-docc-plugin"
}
],
"manifest_display_name" : "Factory",
"name" : "Factory",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "12.0"
},
{
"name" : "macos",
"version" : "10.14"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "8.0"
},
{
"name" : "visionos",
"version" : "1.0"
}
],
"products" : [
{
"name" : "Factory",
"targets" : [
"Factory"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "FactoryTests",
"module_type" : "SwiftTarget",
"name" : "FactoryTests",
"path" : "Tests/FactoryTests",
"sources" : [
"FactoryComponentTests.swift",
"FactoryContainerTests.swift",
"FactoryContextTests.swift",
"FactoryCoreTests.swift",
"FactoryDefectTests.swift",
"FactoryFunctionalTests.swift",
"FactoryInjectionTests.swift",
"FactoryMultithreadingTests.swift",
"FactoryParameterTests.swift",
"FactoryResolverTests.swift",
"FactoryScopeTests.swift",
"MockServices.swift",
"XCTestExtensions.swift"
],
"target_dependencies" : [
"Factory"
],
"type" : "test"
},
{
"c99name" : "Factory",
"module_type" : "SwiftTarget",
"name" : "Factory",
"path" : "Sources/Factory",
"product_memberships" : [
"Factory"
],
"resources" : [
{
"path" : "/host/spi-builder-workspace/Sources/Factory/PrivacyInfo.xcprivacy",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"Factory/Aliases.swift",
"Factory/Containers.swift",
"Factory/Contexts.swift",
"Factory/Factory.swift",
"Factory/Globals.swift",
"Factory/Injections.swift",
"Factory/Key.swift",
"Factory/Locking.swift",
"Factory/Modifiers.swift",
"Factory/Registrations.swift",
"Factory/Resolutions.swift",
"Factory/Resolver.swift",
"Factory/Scopes.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.