This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build Resolver with Swift 6.0 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-0":/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/Resolver.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/hmlongco/Resolver
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 47602af Update manifest
Cloned https://github.com/hmlongco/Resolver.git
Revision (git rev-parse @):
47602af1ac8d7952299fbd0bda3cfbd12cf3a8ca
SUCCESS checkout https://github.com/hmlongco/Resolver.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $workDir
https://github.com/hmlongco/Resolver.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/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
warning: 'spi-builder-workspace': Invalid Resource 'PrivacyInfo.xcprivacy': File not found.
Building for debugging...
[0/7] Write sources
[1/7] Write swift-version-24593BA9C3E375BF.txt
[3/9] Emitting module Resolver
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:61:23: warning: static property 'main' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 59 |
 60 |     /// Default registry used by the static Registration functions.
 61 |     public static var main: Resolver = Resolver()
    |                       |- warning: static property 'main' 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 'main' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'main' 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
 62 |     /// Default registry used by the static Resolution functions and by the Resolving protocol.
 63 |     public static var root: Resolver = main
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:63:23: warning: static property 'root' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 61 |     public static var main: Resolver = Resolver()
 62 |     /// Default registry used by the static Resolution functions and by the Resolving protocol.
 63 |     public static var root: Resolver = main
    |                       |- warning: static property 'root' 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 'root' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'root' 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
 64 |     /// Default scope applied when registering new objects.
 65 |     public static var defaultScope: ResolverScope = .graph
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:65:23: warning: static property 'defaultScope' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 63 |     public static var root: Resolver = main
 64 |     /// Default scope applied when registering new objects.
 65 |     public static var defaultScope: ResolverScope = .graph
    |                       |- warning: static property 'defaultScope' 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 'defaultScope' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'defaultScope' 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 |     /// Internal scope cache used for .scope(.container)
 67 |     public lazy var cache: ResolverScope = ResolverScopeCache()
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:607:23: warning: static property 'graph' is not concurrency-safe because non-'Sendable' type 'ResolverScopeGraph' may have shared mutable state; this is an error in the Swift 6 language mode
605 |     public static let cached = ResolverScopeCache()
606 |     /// Graph services are initialized once and only once during a given resolution cycle. This is the default scope.
607 |     public static let graph = ResolverScopeGraph()
    |                       |- warning: static property 'graph' is not concurrency-safe because non-'Sendable' type 'ResolverScopeGraph' 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
608 |     /// Shared services persist while strong references to them exist. They're then deallocated until the next resolve.
609 |     public static let shared = ResolverScopeShare()
    :
647 |
648 | /// Graph services are initialized once and only once during a given resolution cycle. This is the default scope.
649 | public final class ResolverScopeGraph: ResolverScope {
    |                    `- note: class 'ResolverScopeGraph' does not conform to the 'Sendable' protocol
650 |
651 |     public override init() {}
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:69:23: warning: static property 'decorate' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 67 |     public lazy var cache: ResolverScope = ResolverScopeCache()
 68 |     /// Decorator applied to all resolved objects
 69 |     public static var decorate: ((_ service: Any) -> Void)?
    |                       |- warning: static property 'decorate' 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 'decorate' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'decorate' 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 |     // MARK: - Lifecycle
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:105:23: warning: static property 'registerServices' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
103 |     /// Call function to force one-time initialization of the Resolver registries. Usually not needed as functionality
104 |     /// occurs automatically the first time a resolution function is called.
105 |     public static var registerServices: (() -> Void)? = {
    |                       |- warning: static property 'registerServices' 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 'registerServices' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'registerServices' 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
106 |         lock.lock()
107 |         defer { lock.unlock() }
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:372:28: warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'ResolverRecursiveLock' may have shared mutable state; this is an error in the Swift 6 language mode
351 |
352 | /// Resolving an instance of a service is a recursive process (service A needs a B which needs a C).
353 | private final class ResolverRecursiveLock {
    |                     `- note: class 'ResolverRecursiveLock' does not conform to the 'Sendable' protocol
354 |     init() {
355 |         pthread_mutexattr_init(&recursiveMutexAttr)
    :
370 |
371 | extension Resolver {
372 |     fileprivate static let lock = ResolverRecursiveLock()
    |                            |- warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'ResolverRecursiveLock' may have shared mutable state; this is an error in the Swift 6 language mode
    |                            |- note: annotate 'lock' 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
373 | }
374 |
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:453:13: warning: var 'registrationNeeded' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
451 | // Registration Internals
452 |
453 | private var registrationNeeded: Bool = true
    |             |- warning: var 'registrationNeeded' 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 'registrationNeeded' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: annotate 'registrationNeeded' 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
454 |
455 | @inline(__always)
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:601:23: warning: static property 'application' is not concurrency-safe because non-'Sendable' type 'ResolverScopeCache' may have shared mutable state; this is an error in the Swift 6 language mode
599 |
600 |     /// All application scoped services exist for lifetime of the app. (e.g Singletons)
601 |     public static let application = ResolverScopeCache()
    |                       |- warning: static property 'application' is not concurrency-safe because non-'Sendable' type 'ResolverScopeCache' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'application' 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
602 |     /// Proxy to container's scope. Cache type depends on type supplied to container (default .cache)
603 |     public static let container = ResolverScopeContainer()
    :
624 |
625 | /// Cached services exist for lifetime of the app or until their cache is reset.
626 | public class ResolverScopeCache: ResolverScope {
    |              `- note: class 'ResolverScopeCache' does not conform to the 'Sendable' protocol
627 |
628 |     public override init() {}
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:603:23: warning: static property 'container' is not concurrency-safe because non-'Sendable' type 'ResolverScopeContainer' may have shared mutable state; this is an error in the Swift 6 language mode
601 |     public static let application = ResolverScopeCache()
602 |     /// Proxy to container's scope. Cache type depends on type supplied to container (default .cache)
603 |     public static let container = ResolverScopeContainer()
    |                       |- warning: static property 'container' is not concurrency-safe because non-'Sendable' type 'ResolverScopeContainer' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'container' 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
604 |     /// Cached services exist for lifetime of the app or until their cache is reset.
605 |     public static let cached = ResolverScopeCache()
    :
703 |
704 | /// Proxy to container's scope. Cache type depends on type supplied to container (default .cache)
705 | public final class ResolverScopeContainer: ResolverScope {
    |                    `- note: class 'ResolverScopeContainer' does not conform to the 'Sendable' protocol
706 |
707 |     public override init() {}
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:605:23: warning: static property 'cached' is not concurrency-safe because non-'Sendable' type 'ResolverScopeCache' may have shared mutable state; this is an error in the Swift 6 language mode
603 |     public static let container = ResolverScopeContainer()
604 |     /// Cached services exist for lifetime of the app or until their cache is reset.
605 |     public static let cached = ResolverScopeCache()
    |                       |- warning: static property 'cached' is not concurrency-safe because non-'Sendable' type 'ResolverScopeCache' 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
606 |     /// Graph services are initialized once and only once during a given resolution cycle. This is the default scope.
607 |     public static let graph = ResolverScopeGraph()
    :
624 |
625 | /// Cached services exist for lifetime of the app or until their cache is reset.
626 | public class ResolverScopeCache: ResolverScope {
    |              `- note: class 'ResolverScopeCache' does not conform to the 'Sendable' protocol
627 |
628 |     public override init() {}
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:609:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ResolverScopeShare' may have shared mutable state; this is an error in the Swift 6 language mode
607 |     public static let graph = ResolverScopeGraph()
608 |     /// Shared services persist while strong references to them exist. They're then deallocated until the next resolve.
609 |     public static let shared = ResolverScopeShare()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ResolverScopeShare' 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
610 |     /// Unique services are created and initialized each and every time they're resolved.
611 |     public static let unique = ResolverScope()
    :
673 |
674 | /// Shared services persist while strong references to them exist. They're then deallocated until the next resolve.
675 | public final class ResolverScopeShare: ResolverScope {
    |                    `- note: class 'ResolverScopeShare' does not conform to the 'Sendable' protocol
676 |
677 |     public override init() {}
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:611:23: warning: static property 'unique' is not concurrency-safe because non-'Sendable' type 'ResolverScope' may have shared mutable state; this is an error in the Swift 6 language mode
594 | }
595 |
596 | public class ResolverScope: ResolverScopeType {
    |              `- note: class 'ResolverScope' does not conform to the 'Sendable' protocol
597 |
598 |     // Moved definitions to ResolverScope to allow for dot notation access
    :
609 |     public static let shared = ResolverScopeShare()
610 |     /// Unique services are created and initialized each and every time they're resolved.
611 |     public static let unique = ResolverScope()
    |                       |- warning: static property 'unique' is not concurrency-safe because non-'Sendable' type 'ResolverScope' 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
612 |
613 |     public init() {}
[4/9] Compiling Resolver Resolver.swift
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:61:23: warning: static property 'main' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 59 |
 60 |     /// Default registry used by the static Registration functions.
 61 |     public static var main: Resolver = Resolver()
    |                       |- warning: static property 'main' 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 'main' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'main' 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
 62 |     /// Default registry used by the static Resolution functions and by the Resolving protocol.
 63 |     public static var root: Resolver = main
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:63:23: warning: static property 'root' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 61 |     public static var main: Resolver = Resolver()
 62 |     /// Default registry used by the static Resolution functions and by the Resolving protocol.
 63 |     public static var root: Resolver = main
    |                       |- warning: static property 'root' 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 'root' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'root' 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
 64 |     /// Default scope applied when registering new objects.
 65 |     public static var defaultScope: ResolverScope = .graph
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:65:23: warning: static property 'defaultScope' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 63 |     public static var root: Resolver = main
 64 |     /// Default scope applied when registering new objects.
 65 |     public static var defaultScope: ResolverScope = .graph
    |                       |- warning: static property 'defaultScope' 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 'defaultScope' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'defaultScope' 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 |     /// Internal scope cache used for .scope(.container)
 67 |     public lazy var cache: ResolverScope = ResolverScopeCache()
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:607:23: warning: static property 'graph' is not concurrency-safe because non-'Sendable' type 'ResolverScopeGraph' may have shared mutable state; this is an error in the Swift 6 language mode
605 |     public static let cached = ResolverScopeCache()
606 |     /// Graph services are initialized once and only once during a given resolution cycle. This is the default scope.
607 |     public static let graph = ResolverScopeGraph()
    |                       |- warning: static property 'graph' is not concurrency-safe because non-'Sendable' type 'ResolverScopeGraph' 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
608 |     /// Shared services persist while strong references to them exist. They're then deallocated until the next resolve.
609 |     public static let shared = ResolverScopeShare()
    :
647 |
648 | /// Graph services are initialized once and only once during a given resolution cycle. This is the default scope.
649 | public final class ResolverScopeGraph: ResolverScope {
    |                    `- note: class 'ResolverScopeGraph' does not conform to the 'Sendable' protocol
650 |
651 |     public override init() {}
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:69:23: warning: static property 'decorate' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 67 |     public lazy var cache: ResolverScope = ResolverScopeCache()
 68 |     /// Decorator applied to all resolved objects
 69 |     public static var decorate: ((_ service: Any) -> Void)?
    |                       |- warning: static property 'decorate' 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 'decorate' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'decorate' 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 |     // MARK: - Lifecycle
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:105:23: warning: static property 'registerServices' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
103 |     /// Call function to force one-time initialization of the Resolver registries. Usually not needed as functionality
104 |     /// occurs automatically the first time a resolution function is called.
105 |     public static var registerServices: (() -> Void)? = {
    |                       |- warning: static property 'registerServices' 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 'registerServices' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'registerServices' 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
106 |         lock.lock()
107 |         defer { lock.unlock() }
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:372:28: warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'ResolverRecursiveLock' may have shared mutable state; this is an error in the Swift 6 language mode
351 |
352 | /// Resolving an instance of a service is a recursive process (service A needs a B which needs a C).
353 | private final class ResolverRecursiveLock {
    |                     `- note: class 'ResolverRecursiveLock' does not conform to the 'Sendable' protocol
354 |     init() {
355 |         pthread_mutexattr_init(&recursiveMutexAttr)
    :
370 |
371 | extension Resolver {
372 |     fileprivate static let lock = ResolverRecursiveLock()
    |                            |- warning: static property 'lock' is not concurrency-safe because non-'Sendable' type 'ResolverRecursiveLock' may have shared mutable state; this is an error in the Swift 6 language mode
    |                            |- note: annotate 'lock' 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
373 | }
374 |
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:453:13: warning: var 'registrationNeeded' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
451 | // Registration Internals
452 |
453 | private var registrationNeeded: Bool = true
    |             |- warning: var 'registrationNeeded' 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 'registrationNeeded' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: annotate 'registrationNeeded' 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
454 |
455 | @inline(__always)
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:601:23: warning: static property 'application' is not concurrency-safe because non-'Sendable' type 'ResolverScopeCache' may have shared mutable state; this is an error in the Swift 6 language mode
599 |
600 |     /// All application scoped services exist for lifetime of the app. (e.g Singletons)
601 |     public static let application = ResolverScopeCache()
    |                       |- warning: static property 'application' is not concurrency-safe because non-'Sendable' type 'ResolverScopeCache' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'application' 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
602 |     /// Proxy to container's scope. Cache type depends on type supplied to container (default .cache)
603 |     public static let container = ResolverScopeContainer()
    :
624 |
625 | /// Cached services exist for lifetime of the app or until their cache is reset.
626 | public class ResolverScopeCache: ResolverScope {
    |              `- note: class 'ResolverScopeCache' does not conform to the 'Sendable' protocol
627 |
628 |     public override init() {}
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:603:23: warning: static property 'container' is not concurrency-safe because non-'Sendable' type 'ResolverScopeContainer' may have shared mutable state; this is an error in the Swift 6 language mode
601 |     public static let application = ResolverScopeCache()
602 |     /// Proxy to container's scope. Cache type depends on type supplied to container (default .cache)
603 |     public static let container = ResolverScopeContainer()
    |                       |- warning: static property 'container' is not concurrency-safe because non-'Sendable' type 'ResolverScopeContainer' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'container' 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
604 |     /// Cached services exist for lifetime of the app or until their cache is reset.
605 |     public static let cached = ResolverScopeCache()
    :
703 |
704 | /// Proxy to container's scope. Cache type depends on type supplied to container (default .cache)
705 | public final class ResolverScopeContainer: ResolverScope {
    |                    `- note: class 'ResolverScopeContainer' does not conform to the 'Sendable' protocol
706 |
707 |     public override init() {}
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:605:23: warning: static property 'cached' is not concurrency-safe because non-'Sendable' type 'ResolverScopeCache' may have shared mutable state; this is an error in the Swift 6 language mode
603 |     public static let container = ResolverScopeContainer()
604 |     /// Cached services exist for lifetime of the app or until their cache is reset.
605 |     public static let cached = ResolverScopeCache()
    |                       |- warning: static property 'cached' is not concurrency-safe because non-'Sendable' type 'ResolverScopeCache' 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
606 |     /// Graph services are initialized once and only once during a given resolution cycle. This is the default scope.
607 |     public static let graph = ResolverScopeGraph()
    :
624 |
625 | /// Cached services exist for lifetime of the app or until their cache is reset.
626 | public class ResolverScopeCache: ResolverScope {
    |              `- note: class 'ResolverScopeCache' does not conform to the 'Sendable' protocol
627 |
628 |     public override init() {}
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:609:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ResolverScopeShare' may have shared mutable state; this is an error in the Swift 6 language mode
607 |     public static let graph = ResolverScopeGraph()
608 |     /// Shared services persist while strong references to them exist. They're then deallocated until the next resolve.
609 |     public static let shared = ResolverScopeShare()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ResolverScopeShare' 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
610 |     /// Unique services are created and initialized each and every time they're resolved.
611 |     public static let unique = ResolverScope()
    :
673 |
674 | /// Shared services persist while strong references to them exist. They're then deallocated until the next resolve.
675 | public final class ResolverScopeShare: ResolverScope {
    |                    `- note: class 'ResolverScopeShare' does not conform to the 'Sendable' protocol
676 |
677 |     public override init() {}
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:611:23: warning: static property 'unique' is not concurrency-safe because non-'Sendable' type 'ResolverScope' may have shared mutable state; this is an error in the Swift 6 language mode
594 | }
595 |
596 | public class ResolverScope: ResolverScopeType {
    |              `- note: class 'ResolverScope' does not conform to the 'Sendable' protocol
597 |
598 |     // Moved definitions to ResolverScope to allow for dot notation access
    :
609 |     public static let shared = ResolverScopeShare()
610 |     /// Unique services are created and initialized each and every time they're resolved.
611 |     public static let unique = ResolverScope()
    |                       |- warning: static property 'unique' is not concurrency-safe because non-'Sendable' type 'ResolverScope' 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
612 |
613 |     public init() {}
/host/spi-builder-workspace/Sources/Resolver/Resolver.swift:356:56: error: cannot convert value of type 'Int' to expected argument type 'Int32'
354 |     init() {
355 |         pthread_mutexattr_init(&recursiveMutexAttr)
356 |         pthread_mutexattr_settype(&recursiveMutexAttr, PTHREAD_MUTEX_RECURSIVE)
    |                                                        `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
357 |         pthread_mutex_init(&recursiveMutex, &recursiveMutexAttr)
358 |     }
BUILD FAILURE 6.0 linux
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.