Build Information
Failed to build Knit, reference 2.1.1 (c89651
), with Swift 6.1 for Wasm on 13 Jun 2025 02:37:05 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/cashapp/knit.git
Reference: 2.1.1
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/cashapp/knit
* tag 2.1.1 -> FETCH_HEAD
HEAD is now at c89651d Merge pull request #287 from cashapp/skorulis/resolvable-escaping
Cloned https://github.com/cashapp/knit.git
Revision (git rev-parse @):
c89651d2eb8866cc95f2f3c4a54aa134a2fbda59
SUCCESS checkout https://github.com/cashapp/knit.git at 2.1.1
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/cashapp/knit.git
https://github.com/cashapp/knit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-syntax",
"requirement" : {
"range" : [
{
"lower_bound" : "510.0.2",
"upper_bound" : "602.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-syntax.git"
},
{
"identity" : "swift-argument-parser",
"requirement" : {
"range" : [
{
"lower_bound" : "1.4.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-argument-parser"
}
],
"manifest_display_name" : "Knit",
"name" : "Knit",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "14.0"
},
{
"name" : "ios",
"version" : "16.0"
}
],
"products" : [
{
"name" : "Knit",
"targets" : [
"Knit"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "KnitMacros",
"targets" : [
"KnitMacros"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "KnitTesting",
"targets" : [
"KnitTesting"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "KnitBuildPlugin",
"targets" : [
"KnitBuildPlugin"
],
"type" : {
"plugin" : null
}
},
{
"name" : "knit-cli",
"targets" : [
"knit-cli"
],
"type" : {
"executable" : null
}
},
{
"name" : "KnitMacrosImplementations",
"targets" : [
"KnitMacrosImplementations"
],
"type" : {
"macro" : null
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "knit_cli",
"module_type" : "SwiftTarget",
"name" : "knit-cli",
"path" : "Sources/knit-cli",
"product_dependencies" : [
"SwiftSyntax",
"ArgumentParser"
],
"product_memberships" : [
"KnitBuildPlugin",
"knit-cli"
],
"sources" : [
"GenCommand.swift",
"KnitCommand.swift"
],
"target_dependencies" : [
"KnitCodeGen"
],
"type" : "executable"
},
{
"c99name" : "SwinjectTests",
"module_type" : "SwiftTarget",
"name" : "SwinjectTests",
"path" : "Tests/SwinjectTests",
"sources" : [
"Animal.swift",
"BehaviorFakes.swift",
"Circularity.swift",
"ContainerTests.Arguments.swift",
"ContainerTests.Behavior.swift",
"ContainerTests.Circularity.swift",
"ContainerTests.CustomScope.swift",
"ContainerTests.CustomStringConvertible.swift",
"ContainerTests.DebugHelper.swift",
"ContainerTests.GraphCaching.swift",
"ContainerTests.Speed.swift",
"ContainerTests.TypeForwarding.swift",
"ContainerTests.swift",
"EmploymentAssembly.swift",
"Food.swift",
"LazyTests.swift",
"Person.swift",
"ProviderTests.swift",
"ServiceEntryTests.swift",
"ServiceKeyTests.swift",
"SynchronizedTests.swift",
"WeakStorageTests.swift"
],
"target_dependencies" : [
"Swinject"
],
"type" : "test"
},
{
"c99name" : "Swinject",
"module_type" : "SwiftTarget",
"name" : "Swinject",
"path" : "Sources/Swinject",
"product_memberships" : [
"Knit",
"KnitTesting"
],
"sources" : [
"Behavior.swift",
"Container.Arguments.swift",
"Container.Logging.swift",
"Container.TypeForwarding.swift",
"Container.swift",
"DebugHelper.swift",
"FunctionType.swift",
"GraphIdentifier.swift",
"InstanceStorage.swift",
"InstanceWrapper.swift",
"ObjectScope.Standard.swift",
"ObjectScope.swift",
"ReadWriteLock.swift",
"RecursiveLock.swift",
"Resolver.swift",
"ServiceEntry.TypeForwarding.swift",
"ServiceEntry.swift",
"ServiceKey.swift",
"ThreadSafeDictionary.swift",
"_Resolver.swift"
],
"type" : "library"
},
{
"c99name" : "KnitTests",
"module_type" : "SwiftTarget",
"name" : "KnitTests",
"path" : "Tests/KnitTests",
"sources" : [
"AbstractRegistrationTests.swift",
"ComplexDependencyTests.swift",
"DependencyBuilderTests.swift",
"DependencyTreeTests.swift",
"DuplicateRegistrationDetectorTests.swift",
"FakeAssemblyTests.swift",
"GeneratedModuleAssemblyTests.swift",
"MainActorTests.swift",
"ModuleAssemblerErrorFormatterTests.swift",
"ModuleAssemblerTests.swift",
"ModuleAssemblyOverrideTests.swift",
"ModuleAssemblyScopingTests.swift",
"ModuleCycleTests.swift",
"ScopedModuleAssemblerTests.swift",
"ServiceCollectorTests.swift",
"SynchronizationTests.swift",
"TestResolver.swift"
],
"target_dependencies" : [
"Knit"
],
"type" : "test"
},
{
"c99name" : "KnitTesting",
"module_type" : "SwiftTarget",
"name" : "KnitTesting",
"path" : "Sources/KnitTesting",
"product_memberships" : [
"KnitTesting"
],
"sources" : [
"Resolver+Asserts.swift"
],
"target_dependencies" : [
"Swinject",
"Knit"
],
"type" : "library"
},
{
"c99name" : "KnitMacrosTests",
"module_type" : "SwiftTarget",
"name" : "KnitMacrosTests",
"path" : "Tests/KnitMacrosTests",
"product_dependencies" : [
"SwiftSyntaxMacrosTestSupport"
],
"sources" : [
"ResolvableTests.swift",
"SwinjectResolutionTests.swift"
],
"target_dependencies" : [
"KnitMacrosImplementations",
"KnitMacros",
"KnitCodeGen",
"Swinject"
],
"type" : "test"
},
{
"c99name" : "KnitMacrosImplementations",
"module_type" : "SwiftTarget",
"name" : "KnitMacrosImplementations",
"path" : "Sources/KnitMacrosImplementations",
"product_dependencies" : [
"SwiftSyntaxMacros",
"SwiftCompilerPlugin"
],
"product_memberships" : [
"KnitMacros",
"KnitMacrosImplementations"
],
"sources" : [
"KnitMacrosPlugin.swift",
"ResolvableMacro.swift"
],
"target_dependencies" : [
"KnitCodeGen"
],
"type" : "macro"
},
{
"c99name" : "KnitMacros",
"module_type" : "SwiftTarget",
"name" : "KnitMacros",
"path" : "Sources/KnitMacros",
"product_memberships" : [
"KnitMacros"
],
"sources" : [
"KnitMacros.swift",
"MacroPropertyWrappers.swift"
],
"target_dependencies" : [
"KnitMacrosImplementations"
],
"type" : "library"
},
{
"c99name" : "KnitCodeGenTests",
"module_type" : "SwiftTarget",
"name" : "KnitCodeGenTests",
"path" : "Tests/KnitCodeGenTests",
"sources" : [
"AssemblyParsingTests.swift",
"ConfigurationSetTests.swift",
"HeaderSourceFileTests.swift",
"KnitDirectivesTests.swift",
"KnitModuleSourceFileTests.swift",
"ModuleImportTests.swift",
"ModuleNameExtractorTests.swift",
"NamedRegistrationGroupSourceTests.swift",
"NamedRegistrationGroupTests.swift",
"RegistrationEncodingTests.swift",
"RegistrationParsingTests.swift",
"TypeNamerTests.swift",
"TypeSafetySourceFileTests.swift",
"UnitTestSourceFileTests.swift"
],
"target_dependencies" : [
"KnitCodeGen"
],
"type" : "test"
},
{
"c99name" : "KnitCodeGen",
"module_type" : "SwiftTarget",
"name" : "KnitCodeGen",
"path" : "Sources/KnitCodeGen",
"product_dependencies" : [
"SwiftSyntax",
"SwiftParser",
"SwiftSyntaxBuilder"
],
"product_memberships" : [
"KnitMacros",
"KnitBuildPlugin",
"knit-cli",
"KnitMacrosImplementations"
],
"sources" : [
"AssemblyParser.swift",
"AssemblyParsing.swift",
"Configuration.swift",
"ConfigurationSet.swift",
"FunctionCallRegistrationParsing.swift",
"HeaderSourceFile.swift",
"KnitDirectives.swift",
"KnitModuleSourceFile.swift",
"ModuleImport.swift",
"ModuleNameExtractor.swift",
"NamedRegistrationGroup.swift",
"Registration.swift",
"RegistrationIntoCollection.swift",
"SourceFileSyntax+Write.swift",
"SourceGen/NamedRegistrationGroup+SourceCode.swift",
"SwiftSyntax+Helpers.swift",
"SyntaxError.swift",
"TriviaProvider.swift",
"TypeNamer.swift",
"TypeSafetySourceFile.swift",
"UnitTestSourceFile.swift"
],
"type" : "library"
},
{
"c99name" : "KnitBuildPlugin",
"module_type" : "PluginTarget",
"name" : "KnitBuildPlugin",
"path" : "Plugins/KnitBuildPlugin",
"plugin_capability" : {
"type" : "buildTool"
},
"product_memberships" : [
"KnitBuildPlugin"
],
"sources" : [
"KnitBuildPlugin.swift"
],
"target_dependencies" : [
"knit-cli"
],
"type" : "plugin"
},
{
"c99name" : "Knit",
"module_type" : "SwiftTarget",
"name" : "Knit",
"path" : "Sources/Knit",
"product_memberships" : [
"Knit",
"KnitTesting"
],
"sources" : [
"ConcurrencyAttribute.swift",
"Container+MainActorRegistration.swift",
"Container+Registration.swift",
"Container.swift",
"DuplicateRegistrationDetector.swift",
"Future+Async.swift",
"Module/AbstractAssembly.swift",
"Module/Container+AbstractRegistration.swift",
"Module/DependencyBuilder.swift",
"Module/DependencyTree.swift",
"Module/FakeAssembly.swift",
"Module/KnitModule.swift",
"Module/ModuleAssembler.swift",
"Module/ModuleAssemblerErrorFormatter.swift",
"Module/ModuleAssembly.swift",
"Module/ScopedModuleAssembler.swift",
"Resolver+Additions.swift",
"Resolver.swift",
"ServiceCollection/Container+ServiceCollection.swift",
"ServiceCollection/Resolver+ServiceCollection.swift",
"ServiceCollection/ServiceCollection.swift",
"ServiceCollection/ServiceCollector.swift"
],
"target_dependencies" : [
"Swinject"
],
"type" : "library"
}
],
"tools_version" : "5.10"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/apple/swift-syntax.git
[1/15380] Fetching swift-argument-parser
[15381/86167] Fetching swift-argument-parser, swift-syntax
Fetched https://github.com/apple/swift-argument-parser from cache (1.52s)
[13450/70787] Fetching swift-syntax
Fetched https://github.com/apple/swift-syntax.git from cache (5.64s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.1 (6.25s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 601.0.1 (2.42s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.5.1
Creating working copy for https://github.com/apple/swift-syntax.git
Working copy of https://github.com/apple/swift-syntax.git resolved at 601.0.1
[1/1] Compiling plugin KnitBuildPlugin
[2/2] Compiling plugin GenerateManual
Building for debugging...
[2/86] Write sources
[43/86] Compiling _SwiftSyntaxCShims dummy.c
[45/86] Write swift-version-24593BA9C3E375BF.txt
[47/136] Emitting module Swinject
/host/spi-builder-workspace/Sources/Swinject/Container.Logging.swift:20:13: warning: var '_loggingFunction' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | private var _loggingFunction: LoggingFunctionType? = { print($0) }
| |- warning: var '_loggingFunction' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_loggingFunction' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var '_loggingFunction' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
/host/spi-builder-workspace/Sources/Swinject/Container.swift:428:16: warning: static property 'graphIdentifierKey' is not concurrency-safe because non-'Sendable' type 'ServiceKey' may have shared mutable state; this is an error in the Swift 6 language mode
426 |
427 | private extension Container {
428 | static let graphIdentifierKey = ServiceKey(serviceType: GraphIdentifier.self, argumentsType: Resolver.self)
| |- warning: static property 'graphIdentifierKey' is not concurrency-safe because non-'Sendable' type 'ServiceKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'graphIdentifierKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
429 | }
430 |
/host/spi-builder-workspace/Sources/Swinject/ServiceKey.swift:16:17: note: consider making struct 'ServiceKey' conform to the 'Sendable' protocol
14 | // MARK: - ServiceKey
15 |
16 | internal struct ServiceKey {
| `- note: consider making struct 'ServiceKey' conform to the 'Sendable' protocol
17 | internal let serviceType: Any.Type
18 | internal let argumentsType: Any.Type
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.Standard.swift:8:23: warning: static property 'transient' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
6 | /// A new instance is always created by the ``Container`` when a type is resolved.
7 | /// The instance is not shared.
8 | public static let transient = ObjectScope(storageFactory: TransientStorage.init, description: "transient")
| |- warning: static property 'transient' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'transient' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 |
10 | /// Instances are shared only when an object graph is being created,
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.swift:14:14: note: class 'ObjectScope' does not conform to the 'Sendable' protocol
12 |
13 | /// Basic implementation of ``ObjectScopeProtocol``.
14 | public class ObjectScope: ObjectScopeProtocol, CustomStringConvertible {
| `- note: class 'ObjectScope' does not conform to the 'Sendable' protocol
15 | public private(set) var description: String
16 | private var storageFactory: () -> InstanceStorage
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.Standard.swift:12:23: warning: static property 'graph' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
10 | /// Instances are shared only when an object graph is being created,
11 | /// otherwise a new instance is created by the ``Container``. This is the default scope.
12 | public static let graph = ObjectScope(storageFactory: GraphStorage.init, description: "graph")
| |- warning: static property 'graph' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'graph' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | /// An instance provided by the ``Container`` is shared within the ``Container`` and its child `Containers`.
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.swift:14:14: note: class 'ObjectScope' does not conform to the 'Sendable' protocol
12 |
13 | /// Basic implementation of ``ObjectScopeProtocol``.
14 | public class ObjectScope: ObjectScopeProtocol, CustomStringConvertible {
| `- note: class 'ObjectScope' does not conform to the 'Sendable' protocol
15 | public private(set) var description: String
16 | private var storageFactory: () -> InstanceStorage
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.Standard.swift:15:23: warning: static property 'container' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | /// An instance provided by the ``Container`` is shared within the ``Container`` and its child `Containers`.
15 | public static let container = ObjectScope(storageFactory: PermanentStorage.init, description: "container")
| |- warning: static property 'container' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'container' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | /// An instance provided by the ``Container`` is shared within the ``Container`` and its child ``Container``s
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.swift:14:14: note: class 'ObjectScope' does not conform to the 'Sendable' protocol
12 |
13 | /// Basic implementation of ``ObjectScopeProtocol``.
14 | public class ObjectScope: ObjectScopeProtocol, CustomStringConvertible {
| `- note: class 'ObjectScope' does not conform to the 'Sendable' protocol
15 | public private(set) var description: String
16 | private var storageFactory: () -> InstanceStorage
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.Standard.swift:20:23: warning: static property 'weak' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
18 | /// as long as there are strong references to given instance. Otherwise new instance is created
19 | /// when resolving the type.
20 | public static let weak = ObjectScope(storageFactory: WeakStorage.init, description: "weak",
| |- warning: static property 'weak' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'weak' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | parent: ObjectScope.graph)
22 | }
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.swift:14:14: note: class 'ObjectScope' does not conform to the 'Sendable' protocol
12 |
13 | /// Basic implementation of ``ObjectScopeProtocol``.
14 | public class ObjectScope: ObjectScopeProtocol, CustomStringConvertible {
| `- note: class 'ObjectScope' does not conform to the 'Sendable' protocol
15 | public private(set) var description: String
16 | private var storageFactory: () -> InstanceStorage
[48/138] Emitting module SwiftSyntax510
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[49/138] Compiling SwiftSyntax510 Empty.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[50/138] Emitting module SwiftSyntax601
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[51/138] Compiling SwiftSyntax601 Empty.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[52/140] Emitting module SwiftSyntax600
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[53/140] Compiling SwiftSyntax600 Empty.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[54/141] Compiling SwiftSyntax509 Empty.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[55/141] Emitting module SwiftSyntax509
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[56/141] Emitting module SwiftSyntax601
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[57/141] Compiling SwiftSyntax601 Empty.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[60/143] Emitting module ArgumentParserToolInfo
[61/143] Compiling ArgumentParserToolInfo ToolInfo.swift
[63/144] Compiling Swinject Resolver.swift
[64/144] Compiling Swinject ServiceEntry.TypeForwarding.swift
[65/144] Compiling Swinject FunctionType.swift
/host/spi-builder-workspace/Sources/Swinject/InstanceStorage.swift:118:50: warning: conditional cast from 'Wrapped' to 'AnyObject' always succeeds
116 | return object as? Wrapped
117 | }
118 | set { object = newValue.flatMap { $0 as? AnyObject } }
| `- warning: conditional cast from 'Wrapped' to 'AnyObject' always succeeds
119 | }
120 |
[66/144] Compiling Swinject GraphIdentifier.swift
/host/spi-builder-workspace/Sources/Swinject/InstanceStorage.swift:118:50: warning: conditional cast from 'Wrapped' to 'AnyObject' always succeeds
116 | return object as? Wrapped
117 | }
118 | set { object = newValue.flatMap { $0 as? AnyObject } }
| `- warning: conditional cast from 'Wrapped' to 'AnyObject' always succeeds
119 | }
120 |
[67/144] Compiling Swinject InstanceStorage.swift
/host/spi-builder-workspace/Sources/Swinject/InstanceStorage.swift:118:50: warning: conditional cast from 'Wrapped' to 'AnyObject' always succeeds
116 | return object as? Wrapped
117 | }
118 | set { object = newValue.flatMap { $0 as? AnyObject } }
| `- warning: conditional cast from 'Wrapped' to 'AnyObject' always succeeds
119 | }
120 |
[68/144] Compiling Swinject InstanceWrapper.swift
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.Standard.swift:8:23: warning: static property 'transient' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
6 | /// A new instance is always created by the ``Container`` when a type is resolved.
7 | /// The instance is not shared.
8 | public static let transient = ObjectScope(storageFactory: TransientStorage.init, description: "transient")
| |- warning: static property 'transient' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'transient' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 |
10 | /// Instances are shared only when an object graph is being created,
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.swift:14:14: note: class 'ObjectScope' does not conform to the 'Sendable' protocol
12 |
13 | /// Basic implementation of ``ObjectScopeProtocol``.
14 | public class ObjectScope: ObjectScopeProtocol, CustomStringConvertible {
| `- note: class 'ObjectScope' does not conform to the 'Sendable' protocol
15 | public private(set) var description: String
16 | private var storageFactory: () -> InstanceStorage
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.Standard.swift:12:23: warning: static property 'graph' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
10 | /// Instances are shared only when an object graph is being created,
11 | /// otherwise a new instance is created by the ``Container``. This is the default scope.
12 | public static let graph = ObjectScope(storageFactory: GraphStorage.init, description: "graph")
| |- warning: static property 'graph' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'graph' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | /// An instance provided by the ``Container`` is shared within the ``Container`` and its child `Containers`.
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.swift:14:14: note: class 'ObjectScope' does not conform to the 'Sendable' protocol
12 |
13 | /// Basic implementation of ``ObjectScopeProtocol``.
14 | public class ObjectScope: ObjectScopeProtocol, CustomStringConvertible {
| `- note: class 'ObjectScope' does not conform to the 'Sendable' protocol
15 | public private(set) var description: String
16 | private var storageFactory: () -> InstanceStorage
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.Standard.swift:15:23: warning: static property 'container' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | /// An instance provided by the ``Container`` is shared within the ``Container`` and its child `Containers`.
15 | public static let container = ObjectScope(storageFactory: PermanentStorage.init, description: "container")
| |- warning: static property 'container' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'container' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | /// An instance provided by the ``Container`` is shared within the ``Container`` and its child ``Container``s
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.swift:14:14: note: class 'ObjectScope' does not conform to the 'Sendable' protocol
12 |
13 | /// Basic implementation of ``ObjectScopeProtocol``.
14 | public class ObjectScope: ObjectScopeProtocol, CustomStringConvertible {
| `- note: class 'ObjectScope' does not conform to the 'Sendable' protocol
15 | public private(set) var description: String
16 | private var storageFactory: () -> InstanceStorage
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.Standard.swift:20:23: warning: static property 'weak' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
18 | /// as long as there are strong references to given instance. Otherwise new instance is created
19 | /// when resolving the type.
20 | public static let weak = ObjectScope(storageFactory: WeakStorage.init, description: "weak",
| |- warning: static property 'weak' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'weak' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | parent: ObjectScope.graph)
22 | }
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.swift:14:14: note: class 'ObjectScope' does not conform to the 'Sendable' protocol
12 |
13 | /// Basic implementation of ``ObjectScopeProtocol``.
14 | public class ObjectScope: ObjectScopeProtocol, CustomStringConvertible {
| `- note: class 'ObjectScope' does not conform to the 'Sendable' protocol
15 | public private(set) var description: String
16 | private var storageFactory: () -> InstanceStorage
[69/144] Compiling Swinject ObjectScope.Standard.swift
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.Standard.swift:8:23: warning: static property 'transient' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
6 | /// A new instance is always created by the ``Container`` when a type is resolved.
7 | /// The instance is not shared.
8 | public static let transient = ObjectScope(storageFactory: TransientStorage.init, description: "transient")
| |- warning: static property 'transient' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'transient' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 |
10 | /// Instances are shared only when an object graph is being created,
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.swift:14:14: note: class 'ObjectScope' does not conform to the 'Sendable' protocol
12 |
13 | /// Basic implementation of ``ObjectScopeProtocol``.
14 | public class ObjectScope: ObjectScopeProtocol, CustomStringConvertible {
| `- note: class 'ObjectScope' does not conform to the 'Sendable' protocol
15 | public private(set) var description: String
16 | private var storageFactory: () -> InstanceStorage
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.Standard.swift:12:23: warning: static property 'graph' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
10 | /// Instances are shared only when an object graph is being created,
11 | /// otherwise a new instance is created by the ``Container``. This is the default scope.
12 | public static let graph = ObjectScope(storageFactory: GraphStorage.init, description: "graph")
| |- warning: static property 'graph' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'graph' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | /// An instance provided by the ``Container`` is shared within the ``Container`` and its child `Containers`.
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.swift:14:14: note: class 'ObjectScope' does not conform to the 'Sendable' protocol
12 |
13 | /// Basic implementation of ``ObjectScopeProtocol``.
14 | public class ObjectScope: ObjectScopeProtocol, CustomStringConvertible {
| `- note: class 'ObjectScope' does not conform to the 'Sendable' protocol
15 | public private(set) var description: String
16 | private var storageFactory: () -> InstanceStorage
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.Standard.swift:15:23: warning: static property 'container' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | /// An instance provided by the ``Container`` is shared within the ``Container`` and its child `Containers`.
15 | public static let container = ObjectScope(storageFactory: PermanentStorage.init, description: "container")
| |- warning: static property 'container' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'container' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | /// An instance provided by the ``Container`` is shared within the ``Container`` and its child ``Container``s
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.swift:14:14: note: class 'ObjectScope' does not conform to the 'Sendable' protocol
12 |
13 | /// Basic implementation of ``ObjectScopeProtocol``.
14 | public class ObjectScope: ObjectScopeProtocol, CustomStringConvertible {
| `- note: class 'ObjectScope' does not conform to the 'Sendable' protocol
15 | public private(set) var description: String
16 | private var storageFactory: () -> InstanceStorage
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.Standard.swift:20:23: warning: static property 'weak' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
18 | /// as long as there are strong references to given instance. Otherwise new instance is created
19 | /// when resolving the type.
20 | public static let weak = ObjectScope(storageFactory: WeakStorage.init, description: "weak",
| |- warning: static property 'weak' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'weak' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | parent: ObjectScope.graph)
22 | }
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.swift:14:14: note: class 'ObjectScope' does not conform to the 'Sendable' protocol
12 |
13 | /// Basic implementation of ``ObjectScopeProtocol``.
14 | public class ObjectScope: ObjectScopeProtocol, CustomStringConvertible {
| `- note: class 'ObjectScope' does not conform to the 'Sendable' protocol
15 | public private(set) var description: String
16 | private var storageFactory: () -> InstanceStorage
[70/144] Compiling Swinject ObjectScope.swift
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.Standard.swift:8:23: warning: static property 'transient' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
6 | /// A new instance is always created by the ``Container`` when a type is resolved.
7 | /// The instance is not shared.
8 | public static let transient = ObjectScope(storageFactory: TransientStorage.init, description: "transient")
| |- warning: static property 'transient' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'transient' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 |
10 | /// Instances are shared only when an object graph is being created,
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.swift:14:14: note: class 'ObjectScope' does not conform to the 'Sendable' protocol
12 |
13 | /// Basic implementation of ``ObjectScopeProtocol``.
14 | public class ObjectScope: ObjectScopeProtocol, CustomStringConvertible {
| `- note: class 'ObjectScope' does not conform to the 'Sendable' protocol
15 | public private(set) var description: String
16 | private var storageFactory: () -> InstanceStorage
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.Standard.swift:12:23: warning: static property 'graph' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
10 | /// Instances are shared only when an object graph is being created,
11 | /// otherwise a new instance is created by the ``Container``. This is the default scope.
12 | public static let graph = ObjectScope(storageFactory: GraphStorage.init, description: "graph")
| |- warning: static property 'graph' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'graph' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | /// An instance provided by the ``Container`` is shared within the ``Container`` and its child `Containers`.
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.swift:14:14: note: class 'ObjectScope' does not conform to the 'Sendable' protocol
12 |
13 | /// Basic implementation of ``ObjectScopeProtocol``.
14 | public class ObjectScope: ObjectScopeProtocol, CustomStringConvertible {
| `- note: class 'ObjectScope' does not conform to the 'Sendable' protocol
15 | public private(set) var description: String
16 | private var storageFactory: () -> InstanceStorage
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.Standard.swift:15:23: warning: static property 'container' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | /// An instance provided by the ``Container`` is shared within the ``Container`` and its child `Containers`.
15 | public static let container = ObjectScope(storageFactory: PermanentStorage.init, description: "container")
| |- warning: static property 'container' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'container' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | /// An instance provided by the ``Container`` is shared within the ``Container`` and its child ``Container``s
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.swift:14:14: note: class 'ObjectScope' does not conform to the 'Sendable' protocol
12 |
13 | /// Basic implementation of ``ObjectScopeProtocol``.
14 | public class ObjectScope: ObjectScopeProtocol, CustomStringConvertible {
| `- note: class 'ObjectScope' does not conform to the 'Sendable' protocol
15 | public private(set) var description: String
16 | private var storageFactory: () -> InstanceStorage
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.Standard.swift:20:23: warning: static property 'weak' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
18 | /// as long as there are strong references to given instance. Otherwise new instance is created
19 | /// when resolving the type.
20 | public static let weak = ObjectScope(storageFactory: WeakStorage.init, description: "weak",
| |- warning: static property 'weak' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'weak' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | parent: ObjectScope.graph)
22 | }
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.swift:14:14: note: class 'ObjectScope' does not conform to the 'Sendable' protocol
12 |
13 | /// Basic implementation of ``ObjectScopeProtocol``.
14 | public class ObjectScope: ObjectScopeProtocol, CustomStringConvertible {
| `- note: class 'ObjectScope' does not conform to the 'Sendable' protocol
15 | public private(set) var description: String
16 | private var storageFactory: () -> InstanceStorage
[74/150] Compiling SwiftSyntax600 Empty.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[75/150] Compiling SwiftSyntax510 Empty.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[76/150] Emitting module SwiftSyntax600
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[77/151] Compiling SwiftSyntax509 Empty.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[78/151] Emitting module SwiftSyntax510
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[79/152] Emitting module SwiftSyntax509
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[82/257] Wrapping AST for SwiftSyntax509 for debugging
[83/257] Wrapping AST for SwiftSyntax601 for debugging
[84/257] Wrapping AST for SwiftSyntax600 for debugging
[85/257] Wrapping AST for SwiftSyntax510 for debugging
[86/321] Wrapping AST for ArgumentParserToolInfo for debugging
[87/321] Wrapping AST for SwiftSyntax601 for debugging
[88/321] Wrapping AST for SwiftSyntax600 for debugging
[90/321] Compiling SwiftSyntax Convenience.swift
[91/321] Compiling SwiftSyntax CustomTraits.swift
[92/321] Compiling SwiftSyntax EditorPlaceholder.swift
[93/321] Compiling SwiftSyntax SyntaxIdentifier.swift
[94/321] Compiling SwiftSyntax SyntaxNodeFactory.swift
[94/326] Wrapping AST for SwiftSyntax510 for debugging
[95/326] Wrapping AST for SwiftSyntax509 for debugging
[97/326] Emitting module ArgumentParser
[101/328] Compiling SwiftSyntax SyntaxTreeViewMode.swift
[102/328] Compiling SwiftSyntax TokenDiagnostic.swift
[103/328] Compiling SwiftSyntax SyntaxProtocol.swift
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:11:9: error: cannot find 'pthread_rwlock_init' in scope
9 |
10 | init() {
11 | pthread_rwlock_init(&lock, nil)
| `- error: cannot find 'pthread_rwlock_init' in scope
12 | }
13 |
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:11:36: error: 'nil' requires a contextual type
9 |
10 | init() {
11 | pthread_rwlock_init(&lock, nil)
| `- error: 'nil' requires a contextual type
12 | }
13 |
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:15:9: error: cannot find 'pthread_rwlock_destroy' in scope
13 |
14 | deinit {
15 | pthread_rwlock_destroy(&lock)
| `- error: cannot find 'pthread_rwlock_destroy' in scope
16 | }
17 |
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:19:9: error: cannot find 'pthread_rwlock_rdlock' in scope
17 |
18 | @inlinable public func read<T>(_ block: () throws -> T) rethrows -> T {
19 | pthread_rwlock_rdlock(&lock)
| `- error: cannot find 'pthread_rwlock_rdlock' in scope
20 | defer { pthread_rwlock_unlock(&lock) }
21 |
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:20:17: error: cannot find 'pthread_rwlock_unlock' in scope
18 | @inlinable public func read<T>(_ block: () throws -> T) rethrows -> T {
19 | pthread_rwlock_rdlock(&lock)
20 | defer { pthread_rwlock_unlock(&lock) }
| `- error: cannot find 'pthread_rwlock_unlock' in scope
21 |
22 | return try block()
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:26:9: error: cannot find 'pthread_rwlock_wrlock' in scope
24 |
25 | @inlinable public func write<T>(_ block: () throws -> T) rethrows -> T {
26 | pthread_rwlock_wrlock(&lock)
| `- error: cannot find 'pthread_rwlock_wrlock' in scope
27 | defer { pthread_rwlock_unlock(&lock) }
28 |
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:27:17: error: cannot find 'pthread_rwlock_unlock' in scope
25 | @inlinable public func write<T>(_ block: () throws -> T) rethrows -> T {
26 | pthread_rwlock_wrlock(&lock)
27 | defer { pthread_rwlock_unlock(&lock) }
| `- error: cannot find 'pthread_rwlock_unlock' in scope
28 |
29 | return try block()
[104/328] Compiling SwiftSyntax SyntaxText.swift
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:11:9: error: cannot find 'pthread_rwlock_init' in scope
9 |
10 | init() {
11 | pthread_rwlock_init(&lock, nil)
| `- error: cannot find 'pthread_rwlock_init' in scope
12 | }
13 |
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:11:36: error: 'nil' requires a contextual type
9 |
10 | init() {
11 | pthread_rwlock_init(&lock, nil)
| `- error: 'nil' requires a contextual type
12 | }
13 |
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:15:9: error: cannot find 'pthread_rwlock_destroy' in scope
13 |
14 | deinit {
15 | pthread_rwlock_destroy(&lock)
| `- error: cannot find 'pthread_rwlock_destroy' in scope
16 | }
17 |
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:19:9: error: cannot find 'pthread_rwlock_rdlock' in scope
17 |
18 | @inlinable public func read<T>(_ block: () throws -> T) rethrows -> T {
19 | pthread_rwlock_rdlock(&lock)
| `- error: cannot find 'pthread_rwlock_rdlock' in scope
20 | defer { pthread_rwlock_unlock(&lock) }
21 |
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:20:17: error: cannot find 'pthread_rwlock_unlock' in scope
18 | @inlinable public func read<T>(_ block: () throws -> T) rethrows -> T {
19 | pthread_rwlock_rdlock(&lock)
20 | defer { pthread_rwlock_unlock(&lock) }
| `- error: cannot find 'pthread_rwlock_unlock' in scope
21 |
22 | return try block()
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:26:9: error: cannot find 'pthread_rwlock_wrlock' in scope
24 |
25 | @inlinable public func write<T>(_ block: () throws -> T) rethrows -> T {
26 | pthread_rwlock_wrlock(&lock)
| `- error: cannot find 'pthread_rwlock_wrlock' in scope
27 | defer { pthread_rwlock_unlock(&lock) }
28 |
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:27:17: error: cannot find 'pthread_rwlock_unlock' in scope
25 | @inlinable public func write<T>(_ block: () throws -> T) rethrows -> T {
26 | pthread_rwlock_wrlock(&lock)
27 | defer { pthread_rwlock_unlock(&lock) }
| `- error: cannot find 'pthread_rwlock_unlock' in scope
28 |
29 | return try block()
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.Standard.swift:8:23: warning: static property 'transient' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
6 | /// A new instance is always created by the ``Container`` when a type is resolved.
7 | /// The instance is not shared.
8 | public static let transient = ObjectScope(storageFactory: TransientStorage.init, description: "transient")
| |- warning: static property 'transient' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'transient' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 |
10 | /// Instances are shared only when an object graph is being created,
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.swift:14:14: note: class 'ObjectScope' does not conform to the 'Sendable' protocol
12 |
13 | /// Basic implementation of ``ObjectScopeProtocol``.
14 | public class ObjectScope: ObjectScopeProtocol, CustomStringConvertible {
| `- note: class 'ObjectScope' does not conform to the 'Sendable' protocol
15 | public private(set) var description: String
16 | private var storageFactory: () -> InstanceStorage
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.Standard.swift:12:23: warning: static property 'graph' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
10 | /// Instances are shared only when an object graph is being created,
11 | /// otherwise a new instance is created by the ``Container``. This is the default scope.
12 | public static let graph = ObjectScope(storageFactory: GraphStorage.init, description: "graph")
| |- warning: static property 'graph' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'graph' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | /// An instance provided by the ``Container`` is shared within the ``Container`` and its child `Containers`.
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.swift:14:14: note: class 'ObjectScope' does not conform to the 'Sendable' protocol
12 |
13 | /// Basic implementation of ``ObjectScopeProtocol``.
14 | public class ObjectScope: ObjectScopeProtocol, CustomStringConvertible {
| `- note: class 'ObjectScope' does not conform to the 'Sendable' protocol
15 | public private(set) var description: String
16 | private var storageFactory: () -> InstanceStorage
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.Standard.swift:15:23: warning: static property 'container' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | /// An instance provided by the ``Container`` is shared within the ``Container`` and its child `Containers`.
15 | public static let container = ObjectScope(storageFactory: PermanentStorage.init, description: "container")
| |- warning: static property 'container' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'container' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | /// An instance provided by the ``Container`` is shared within the ``Container`` and its child ``Container``s
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.swift:14:14: note: class 'ObjectScope' does not conform to the 'Sendable' protocol
12 |
13 | /// Basic implementation of ``ObjectScopeProtocol``.
14 | public class ObjectScope: ObjectScopeProtocol, CustomStringConvertible {
| `- note: class 'ObjectScope' does not conform to the 'Sendable' protocol
15 | public private(set) var description: String
16 | private var storageFactory: () -> InstanceStorage
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.Standard.swift:20:23: warning: static property 'weak' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
18 | /// as long as there are strong references to given instance. Otherwise new instance is created
19 | /// when resolving the type.
20 | public static let weak = ObjectScope(storageFactory: WeakStorage.init, description: "weak",
| |- warning: static property 'weak' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'weak' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | parent: ObjectScope.graph)
22 | }
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.swift:14:14: note: class 'ObjectScope' does not conform to the 'Sendable' protocol
12 |
13 | /// Basic implementation of ``ObjectScopeProtocol``.
14 | public class ObjectScope: ObjectScopeProtocol, CustomStringConvertible {
| `- note: class 'ObjectScope' does not conform to the 'Sendable' protocol
15 | public private(set) var description: String
16 | private var storageFactory: () -> InstanceStorage
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.Standard.swift:8:23: warning: static property 'transient' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
6 | /// A new instance is always created by the ``Container`` when a type is resolved.
7 | /// The instance is not shared.
8 | public static let transient = ObjectScope(storageFactory: TransientStorage.init, description: "transient")
| |- warning: static property 'transient' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'transient' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 |
10 | /// Instances are shared only when an object graph is being created,
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.swift:14:14: note: class 'ObjectScope' does not conform to the 'Sendable' protocol
12 |
13 | /// Basic implementation of ``ObjectScopeProtocol``.
14 | public class ObjectScope: ObjectScopeProtocol, CustomStringConvertible {
| `- note: class 'ObjectScope' does not conform to the 'Sendable' protocol
15 | public private(set) var description: String
16 | private var storageFactory: () -> InstanceStorage
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.Standard.swift:12:23: warning: static property 'graph' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
10 | /// Instances are shared only when an object graph is being created,
11 | /// otherwise a new instance is created by the ``Container``. This is the default scope.
12 | public static let graph = ObjectScope(storageFactory: GraphStorage.init, description: "graph")
| |- warning: static property 'graph' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'graph' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | /// An instance provided by the ``Container`` is shared within the ``Container`` and its child `Containers`.
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.swift:14:14: note: class 'ObjectScope' does not conform to the 'Sendable' protocol
12 |
13 | /// Basic implementation of ``ObjectScopeProtocol``.
14 | public class ObjectScope: ObjectScopeProtocol, CustomStringConvertible {
| `- note: class 'ObjectScope' does not conform to the 'Sendable' protocol
15 | public private(set) var description: String
16 | private var storageFactory: () -> InstanceStorage
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.Standard.swift:15:23: warning: static property 'container' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | /// An instance provided by the ``Container`` is shared within the ``Container`` and its child `Containers`.
15 | public static let container = ObjectScope(storageFactory: PermanentStorage.init, description: "container")
| |- warning: static property 'container' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'container' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | /// An instance provided by the ``Container`` is shared within the ``Container`` and its child ``Container``s
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.swift:14:14: note: class 'ObjectScope' does not conform to the 'Sendable' protocol
12 |
13 | /// Basic implementation of ``ObjectScopeProtocol``.
14 | public class ObjectScope: ObjectScopeProtocol, CustomStringConvertible {
| `- note: class 'ObjectScope' does not conform to the 'Sendable' protocol
15 | public private(set) var description: String
16 | private var storageFactory: () -> InstanceStorage
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.Standard.swift:20:23: warning: static property 'weak' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
18 | /// as long as there are strong references to given instance. Otherwise new instance is created
19 | /// when resolving the type.
20 | public static let weak = ObjectScope(storageFactory: WeakStorage.init, description: "weak",
| |- warning: static property 'weak' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'weak' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | parent: ObjectScope.graph)
22 | }
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.swift:14:14: note: class 'ObjectScope' does not conform to the 'Sendable' protocol
12 |
13 | /// Basic implementation of ``ObjectScopeProtocol``.
14 | public class ObjectScope: ObjectScopeProtocol, CustomStringConvertible {
| `- note: class 'ObjectScope' does not conform to the 'Sendable' protocol
15 | public private(set) var description: String
16 | private var storageFactory: () -> InstanceStorage
[107/328] Compiling SwiftSyntax SyntaxNodeStructure.swift
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.Standard.swift:8:23: warning: static property 'transient' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
6 | /// A new instance is always created by the ``Container`` when a type is resolved.
7 | /// The instance is not shared.
8 | public static let transient = ObjectScope(storageFactory: TransientStorage.init, description: "transient")
| |- warning: static property 'transient' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'transient' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 |
10 | /// Instances are shared only when an object graph is being created,
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.swift:14:14: note: class 'ObjectScope' does not conform to the 'Sendable' protocol
12 |
13 | /// Basic implementation of ``ObjectScopeProtocol``.
14 | public class ObjectScope: ObjectScopeProtocol, CustomStringConvertible {
| `- note: class 'ObjectScope' does not conform to the 'Sendable' protocol
15 | public private(set) var description: String
16 | private var storageFactory: () -> InstanceStorage
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.Standard.swift:12:23: warning: static property 'graph' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
10 | /// Instances are shared only when an object graph is being created,
11 | /// otherwise a new instance is created by the ``Container``. This is the default scope.
12 | public static let graph = ObjectScope(storageFactory: GraphStorage.init, description: "graph")
| |- warning: static property 'graph' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'graph' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | /// An instance provided by the ``Container`` is shared within the ``Container`` and its child `Containers`.
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.swift:14:14: note: class 'ObjectScope' does not conform to the 'Sendable' protocol
12 |
13 | /// Basic implementation of ``ObjectScopeProtocol``.
14 | public class ObjectScope: ObjectScopeProtocol, CustomStringConvertible {
| `- note: class 'ObjectScope' does not conform to the 'Sendable' protocol
15 | public private(set) var description: String
16 | private var storageFactory: () -> InstanceStorage
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.Standard.swift:15:23: warning: static property 'container' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | /// An instance provided by the ``Container`` is shared within the ``Container`` and its child `Containers`.
15 | public static let container = ObjectScope(storageFactory: PermanentStorage.init, description: "container")
| |- warning: static property 'container' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'container' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | /// An instance provided by the ``Container`` is shared within the ``Container`` and its child ``Container``s
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.swift:14:14: note: class 'ObjectScope' does not conform to the 'Sendable' protocol
12 |
13 | /// Basic implementation of ``ObjectScopeProtocol``.
14 | public class ObjectScope: ObjectScopeProtocol, CustomStringConvertible {
| `- note: class 'ObjectScope' does not conform to the 'Sendable' protocol
15 | public private(set) var description: String
16 | private var storageFactory: () -> InstanceStorage
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.Standard.swift:20:23: warning: static property 'weak' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
18 | /// as long as there are strong references to given instance. Otherwise new instance is created
19 | /// when resolving the type.
20 | public static let weak = ObjectScope(storageFactory: WeakStorage.init, description: "weak",
| |- warning: static property 'weak' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'weak' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | parent: ObjectScope.graph)
22 | }
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.swift:14:14: note: class 'ObjectScope' does not conform to the 'Sendable' protocol
12 |
13 | /// Basic implementation of ``ObjectScopeProtocol``.
14 | public class ObjectScope: ObjectScopeProtocol, CustomStringConvertible {
| `- note: class 'ObjectScope' does not conform to the 'Sendable' protocol
15 | public private(set) var description: String
16 | private var storageFactory: () -> InstanceStorage
[108/328] Compiling SwiftSyntax TokenSequence.swift
[109/328] Compiling SwiftSyntax TokenSyntax.swift
[110/328] Compiling SwiftSyntax AbsolutePosition.swift
/host/spi-builder-workspace/Sources/Swinject/Container.Logging.swift:20:13: warning: var '_loggingFunction' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | private var _loggingFunction: LoggingFunctionType? = { print($0) }
| |- warning: var '_loggingFunction' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_loggingFunction' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var '_loggingFunction' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
[111/328] Compiling SwiftSyntax AbsoluteRawSyntax.swift
/host/spi-builder-workspace/Sources/Swinject/Container.Logging.swift:20:13: warning: var '_loggingFunction' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | private var _loggingFunction: LoggingFunctionType? = { print($0) }
| |- warning: var '_loggingFunction' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_loggingFunction' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var '_loggingFunction' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
[112/328] Compiling SwiftSyntax AbsoluteSyntaxInfo.swift
/host/spi-builder-workspace/Sources/Swinject/Container.Logging.swift:20:13: warning: var '_loggingFunction' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | private var _loggingFunction: LoggingFunctionType? = { print($0) }
| |- warning: var '_loggingFunction' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_loggingFunction' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var '_loggingFunction' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
[113/328] Emitting module Swinject
/host/spi-builder-workspace/Sources/Swinject/Container.Logging.swift:20:13: warning: var '_loggingFunction' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 | }
19 |
20 | private var _loggingFunction: LoggingFunctionType? = { print($0) }
| |- warning: var '_loggingFunction' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_loggingFunction' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var '_loggingFunction' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
/host/spi-builder-workspace/Sources/Swinject/Container.swift:428:16: warning: static property 'graphIdentifierKey' is not concurrency-safe because non-'Sendable' type 'ServiceKey' may have shared mutable state; this is an error in the Swift 6 language mode
426 |
427 | private extension Container {
428 | static let graphIdentifierKey = ServiceKey(serviceType: GraphIdentifier.self, argumentsType: Resolver.self)
| |- warning: static property 'graphIdentifierKey' is not concurrency-safe because non-'Sendable' type 'ServiceKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'graphIdentifierKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
429 | }
430 |
/host/spi-builder-workspace/Sources/Swinject/ServiceKey.swift:16:17: note: consider making struct 'ServiceKey' conform to the 'Sendable' protocol
14 | // MARK: - ServiceKey
15 |
16 | internal struct ServiceKey {
| `- note: consider making struct 'ServiceKey' conform to the 'Sendable' protocol
17 | internal let serviceType: Any.Type
18 | internal let argumentsType: Any.Type
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.Standard.swift:8:23: warning: static property 'transient' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
6 | /// A new instance is always created by the ``Container`` when a type is resolved.
7 | /// The instance is not shared.
8 | public static let transient = ObjectScope(storageFactory: TransientStorage.init, description: "transient")
| |- warning: static property 'transient' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'transient' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 |
10 | /// Instances are shared only when an object graph is being created,
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.swift:14:14: note: class 'ObjectScope' does not conform to the 'Sendable' protocol
12 |
13 | /// Basic implementation of ``ObjectScopeProtocol``.
14 | public class ObjectScope: ObjectScopeProtocol, CustomStringConvertible {
| `- note: class 'ObjectScope' does not conform to the 'Sendable' protocol
15 | public private(set) var description: String
16 | private var storageFactory: () -> InstanceStorage
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.Standard.swift:12:23: warning: static property 'graph' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
10 | /// Instances are shared only when an object graph is being created,
11 | /// otherwise a new instance is created by the ``Container``. This is the default scope.
12 | public static let graph = ObjectScope(storageFactory: GraphStorage.init, description: "graph")
| |- warning: static property 'graph' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'graph' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | /// An instance provided by the ``Container`` is shared within the ``Container`` and its child `Containers`.
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.swift:14:14: note: class 'ObjectScope' does not conform to the 'Sendable' protocol
12 |
13 | /// Basic implementation of ``ObjectScopeProtocol``.
14 | public class ObjectScope: ObjectScopeProtocol, CustomStringConvertible {
| `- note: class 'ObjectScope' does not conform to the 'Sendable' protocol
15 | public private(set) var description: String
16 | private var storageFactory: () -> InstanceStorage
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.Standard.swift:15:23: warning: static property 'container' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | /// An instance provided by the ``Container`` is shared within the ``Container`` and its child `Containers`.
15 | public static let container = ObjectScope(storageFactory: PermanentStorage.init, description: "container")
| |- warning: static property 'container' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'container' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | /// An instance provided by the ``Container`` is shared within the ``Container`` and its child ``Container``s
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.swift:14:14: note: class 'ObjectScope' does not conform to the 'Sendable' protocol
12 |
13 | /// Basic implementation of ``ObjectScopeProtocol``.
14 | public class ObjectScope: ObjectScopeProtocol, CustomStringConvertible {
| `- note: class 'ObjectScope' does not conform to the 'Sendable' protocol
15 | public private(set) var description: String
16 | private var storageFactory: () -> InstanceStorage
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.Standard.swift:20:23: warning: static property 'weak' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
18 | /// as long as there are strong references to given instance. Otherwise new instance is created
19 | /// when resolving the type.
20 | public static let weak = ObjectScope(storageFactory: WeakStorage.init, description: "weak",
| |- warning: static property 'weak' is not concurrency-safe because non-'Sendable' type 'ObjectScope' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'weak' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | parent: ObjectScope.graph)
22 | }
/host/spi-builder-workspace/Sources/Swinject/ObjectScope.swift:14:14: note: class 'ObjectScope' does not conform to the 'Sendable' protocol
12 |
13 | /// Basic implementation of ``ObjectScopeProtocol``.
14 | public class ObjectScope: ObjectScopeProtocol, CustomStringConvertible {
| `- note: class 'ObjectScope' does not conform to the 'Sendable' protocol
15 | public private(set) var description: String
16 | private var storageFactory: () -> InstanceStorage
[114/328] Compiling SwiftSyntax Assert.swift
/host/spi-builder-workspace/Sources/Swinject/Container.swift:428:16: warning: static property 'graphIdentifierKey' is not concurrency-safe because non-'Sendable' type 'ServiceKey' may have shared mutable state; this is an error in the Swift 6 language mode
426 |
427 | private extension Container {
428 | static let graphIdentifierKey = ServiceKey(serviceType: GraphIdentifier.self, argumentsType: Resolver.self)
| |- warning: static property 'graphIdentifierKey' is not concurrency-safe because non-'Sendable' type 'ServiceKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'graphIdentifierKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
429 | }
430 |
/host/spi-builder-workspace/Sources/Swinject/ServiceKey.swift:16:17: note: consider making struct 'ServiceKey' conform to the 'Sendable' protocol
14 | // MARK: - ServiceKey
15 |
16 | internal struct ServiceKey {
| `- note: consider making struct 'ServiceKey' conform to the 'Sendable' protocol
17 | internal let serviceType: Any.Type
18 | internal let argumentsType: Any.Type
[115/328] Compiling SwiftSyntax BumpPtrAllocator.swift
/host/spi-builder-workspace/Sources/Swinject/Container.swift:428:16: warning: static property 'graphIdentifierKey' is not concurrency-safe because non-'Sendable' type 'ServiceKey' may have shared mutable state; this is an error in the Swift 6 language mode
426 |
427 | private extension Container {
428 | static let graphIdentifierKey = ServiceKey(serviceType: GraphIdentifier.self, argumentsType: Resolver.self)
| |- warning: static property 'graphIdentifierKey' is not concurrency-safe because non-'Sendable' type 'ServiceKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'graphIdentifierKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
429 | }
430 |
/host/spi-builder-workspace/Sources/Swinject/ServiceKey.swift:16:17: note: consider making struct 'ServiceKey' conform to the 'Sendable' protocol
14 | // MARK: - ServiceKey
15 |
16 | internal struct ServiceKey {
| `- note: consider making struct 'ServiceKey' conform to the 'Sendable' protocol
17 | internal let serviceType: Any.Type
18 | internal let argumentsType: Any.Type
[116/328] Compiling SwiftSyntax CommonAncestor.swift
/host/spi-builder-workspace/Sources/Swinject/Container.swift:428:16: warning: static property 'graphIdentifierKey' is not concurrency-safe because non-'Sendable' type 'ServiceKey' may have shared mutable state; this is an error in the Swift 6 language mode
426 |
427 | private extension Container {
428 | static let graphIdentifierKey = ServiceKey(serviceType: GraphIdentifier.self, argumentsType: Resolver.self)
| |- warning: static property 'graphIdentifierKey' is not concurrency-safe because non-'Sendable' type 'ServiceKey' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'graphIdentifierKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
429 | }
430 |
/host/spi-builder-workspace/Sources/Swinject/ServiceKey.swift:16:17: note: consider making struct 'ServiceKey' conform to the 'Sendable' protocol
14 | // MARK: - ServiceKey
15 |
16 | internal struct ServiceKey {
| `- note: consider making struct 'ServiceKey' conform to the 'Sendable' protocol
17 | internal let serviceType: Any.Type
18 | internal let argumentsType: Any.Type
[117/328] Compiling ArgumentParserToolInfo ToolInfo.swift
[118/328] Emitting module ArgumentParserToolInfo
[126/329] Compiling Swinject ThreadSafeDictionary.swift
[127/329] Compiling Swinject _Resolver.swift
[127/329] Wrapping AST for ArgumentParserToolInfo for debugging
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin KnitBuildPlugin
[2/2] Compiling plugin GenerateManual
Building for debugging...
[2/43] Write swift-version-24593BA9C3E375BF.txt
[4/76] Compiling SwiftSyntax510 Empty.swift
[5/76] Emitting module SwiftSyntax601
[6/76] Compiling SwiftSyntax601 Empty.swift
[7/76] Compiling SwiftSyntax509 Empty.swift
[9/76] Emitting module SwiftSyntax509
[10/76] Compiling SwiftSyntax601 Empty.swift
[11/76] Emitting module SwiftSyntax601
[12/77] Emitting module SwiftSyntax600
[13/77] Compiling SwiftSyntax600 Empty.swift
[14/79] Emitting module SwiftSyntax510
[15/80] Compiling SwiftSyntax510 Empty.swift
[16/81] Emitting module SwiftSyntax510
[17/82] Emitting module SwiftSyntax509
[25/121] Compiling SwiftSyntax Identifier.swift
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:11:9: error: cannot find 'pthread_rwlock_init' in scope
9 |
10 | init() {
11 | pthread_rwlock_init(&lock, nil)
| `- error: cannot find 'pthread_rwlock_init' in scope
12 | }
13 |
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:11:36: error: 'nil' requires a contextual type
9 |
10 | init() {
11 | pthread_rwlock_init(&lock, nil)
| `- error: 'nil' requires a contextual type
12 | }
13 |
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:15:9: error: cannot find 'pthread_rwlock_destroy' in scope
13 |
14 | deinit {
15 | pthread_rwlock_destroy(&lock)
| `- error: cannot find 'pthread_rwlock_destroy' in scope
16 | }
17 |
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:19:9: error: cannot find 'pthread_rwlock_rdlock' in scope
17 |
18 | @inlinable public func read<T>(_ block: () throws -> T) rethrows -> T {
19 | pthread_rwlock_rdlock(&lock)
| `- error: cannot find 'pthread_rwlock_rdlock' in scope
20 | defer { pthread_rwlock_unlock(&lock) }
21 |
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:20:17: error: cannot find 'pthread_rwlock_unlock' in scope
18 | @inlinable public func read<T>(_ block: () throws -> T) rethrows -> T {
19 | pthread_rwlock_rdlock(&lock)
20 | defer { pthread_rwlock_unlock(&lock) }
| `- error: cannot find 'pthread_rwlock_unlock' in scope
21 |
22 | return try block()
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:26:9: error: cannot find 'pthread_rwlock_wrlock' in scope
24 |
25 | @inlinable public func write<T>(_ block: () throws -> T) rethrows -> T {
26 | pthread_rwlock_wrlock(&lock)
| `- error: cannot find 'pthread_rwlock_wrlock' in scope
27 | defer { pthread_rwlock_unlock(&lock) }
28 |
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:27:17: error: cannot find 'pthread_rwlock_unlock' in scope
25 | @inlinable public func write<T>(_ block: () throws -> T) rethrows -> T {
26 | pthread_rwlock_wrlock(&lock)
27 | defer { pthread_rwlock_unlock(&lock) }
| `- error: cannot find 'pthread_rwlock_unlock' in scope
28 |
29 | return try block()
[26/121] Compiling SwiftSyntax MemoryLayout.swift
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:11:9: error: cannot find 'pthread_rwlock_init' in scope
9 |
10 | init() {
11 | pthread_rwlock_init(&lock, nil)
| `- error: cannot find 'pthread_rwlock_init' in scope
12 | }
13 |
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:11:36: error: 'nil' requires a contextual type
9 |
10 | init() {
11 | pthread_rwlock_init(&lock, nil)
| `- error: 'nil' requires a contextual type
12 | }
13 |
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:15:9: error: cannot find 'pthread_rwlock_destroy' in scope
13 |
14 | deinit {
15 | pthread_rwlock_destroy(&lock)
| `- error: cannot find 'pthread_rwlock_destroy' in scope
16 | }
17 |
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:19:9: error: cannot find 'pthread_rwlock_rdlock' in scope
17 |
18 | @inlinable public func read<T>(_ block: () throws -> T) rethrows -> T {
19 | pthread_rwlock_rdlock(&lock)
| `- error: cannot find 'pthread_rwlock_rdlock' in scope
20 | defer { pthread_rwlock_unlock(&lock) }
21 |
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:20:17: error: cannot find 'pthread_rwlock_unlock' in scope
18 | @inlinable public func read<T>(_ block: () throws -> T) rethrows -> T {
19 | pthread_rwlock_rdlock(&lock)
20 | defer { pthread_rwlock_unlock(&lock) }
| `- error: cannot find 'pthread_rwlock_unlock' in scope
21 |
22 | return try block()
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:26:9: error: cannot find 'pthread_rwlock_wrlock' in scope
24 |
25 | @inlinable public func write<T>(_ block: () throws -> T) rethrows -> T {
26 | pthread_rwlock_wrlock(&lock)
| `- error: cannot find 'pthread_rwlock_wrlock' in scope
27 | defer { pthread_rwlock_unlock(&lock) }
28 |
/host/spi-builder-workspace/Sources/Swinject/ReadWriteLock.swift:27:17: error: cannot find 'pthread_rwlock_unlock' in scope
25 | @inlinable public func write<T>(_ block: () throws -> T) rethrows -> T {
26 | pthread_rwlock_wrlock(&lock)
27 | defer { pthread_rwlock_unlock(&lock) }
| `- error: cannot find 'pthread_rwlock_unlock' in scope
28 |
29 | return try block()
[27/167] Compiling SwiftSyntax600 Empty.swift
[28/167] Emitting module SwiftSyntax600
[30/168] Emitting module ArgumentParserToolInfo
[31/168] Emitting module Swinject
[32/168] Compiling SwiftSyntax AbsolutePosition.swift
[33/168] Compiling SwiftSyntax AbsoluteRawSyntax.swift
[34/168] Compiling SwiftSyntax AbsoluteSyntaxInfo.swift
[35/170] Compiling Swinject ThreadSafeDictionary.swift
[36/170] Compiling Swinject _Resolver.swift
[37/170] Compiling SwiftSyntax SourceEdit.swift
[38/170] Compiling SwiftSyntax SourceLength.swift
[39/170] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[40/170] Compiling SwiftSyntax RawSyntaxTokenView.swift
[41/170] Compiling SwiftSyntax Convenience.swift
[42/170] Compiling SwiftSyntax CustomTraits.swift
[43/170] Compiling SwiftSyntax EditorPlaceholder.swift
[50/169] Compiling SwiftSyntax MissingNodeInitializers.swift
/host/spi-builder-workspace/Sources/Swinject/InstanceStorage.swift:118:50: warning: conditional cast from 'Wrapped' to 'AnyObject' always succeeds
116 | return object as? Wrapped
117 | }
118 | set { object = newValue.flatMap { $0 as? AnyObject } }
| `- warning: conditional cast from 'Wrapped' to 'AnyObject' always succeeds
119 | }
120 |
/host/spi-builder-workspace/Sources/Swinject/InstanceStorage.swift:118:50: warning: conditional cast from 'Wrapped' to 'AnyObject' always succeeds
116 | return object as? Wrapped
117 | }
118 | set { object = newValue.flatMap { $0 as? AnyObject } }
| `- warning: conditional cast from 'Wrapped' to 'AnyObject' always succeeds
119 | }
120 |
/host/spi-builder-workspace/Sources/Swinject/InstanceStorage.swift:118:50: warning: conditional cast from 'Wrapped' to 'AnyObject' always succeeds
116 | return object as? Wrapped
117 | }
118 | set { object = newValue.flatMap { $0 as? AnyObject } }
| `- warning: conditional cast from 'Wrapped' to 'AnyObject' always succeeds
119 | }
120 |
[54/169] Compiling SwiftSyntax RawSyntax.swift
[55/169] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[61/169] Compiling SwiftSyntax Assert.swift
[62/169] Compiling SwiftSyntax BumpPtrAllocator.swift
[63/169] Compiling SwiftSyntax CommonAncestor.swift
[65/234] Compiling ArgumentParserToolInfo ToolInfo.swift
[66/235] Compiling SwiftSyntax SourceLocation.swift
[67/235] Compiling SwiftSyntax SourcePresence.swift
[68/235] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[69/235] Emitting module Swinject
[70/235] Compiling SwiftSyntax Syntax.swift
[71/235] Compiling SwiftSyntax SyntaxArena.swift
[72/235] Compiling SwiftSyntax SyntaxArenaAllocatedBuffer.swift
[74/235] Emitting module ArgumentParserToolInfo
BUILD FAILURE 6.1 wasm