Build Information
Failed to build Knit, reference main (3d4afe), with Swift 6.1 for Wasm on 19 Feb 2026 06:59:04 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/cashapp/knit.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/cashapp/knit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 3d4afea Merge pull request #317 from cashapp/bradfol/fix-warning
Cloned https://github.com/cashapp/knit.git
Revision (git rev-parse @):
3d4afea562b95a95725f689be819b10ff93351fc
SUCCESS checkout https://github.com/cashapp/knit.git at main
========================================
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" : "603.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" : "15.0"
},
{
"name" : "ios",
"version" : "17.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",
"DebugHelper.swift",
"FunctionType.swift",
"GraphIdentifier.swift",
"InstanceStorage.swift",
"InstanceWrapper.swift",
"ObjectScope.Standard.swift",
"ObjectScope.swift",
"ReadWriteLock.swift",
"RecursiveLock.swift",
"ServiceEntry.TypeForwarding.swift",
"ServiceEntry.swift",
"ServiceKey.swift",
"SwinjectContainer.Arguments.swift",
"SwinjectContainer.Logging.swift",
"SwinjectContainer.TypeForwarding.swift",
"SwinjectContainer.swift",
"SwinjectResolver.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",
"Knit",
"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",
"Exports.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" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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:58b971189c4d3c564696bb40c86e07506670ed096ab7351a005c7c449525017a
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/17159] Fetching swift-argument-parser
[17160/91455] Fetching swift-argument-parser, swift-syntax
Fetched https://github.com/apple/swift-argument-parser from cache (4.41s)
Fetched https://github.com/apple/swift-syntax.git from cache (4.46s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.7.0 (5.06s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 602.0.0 (2.49s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.7.0
Creating working copy for https://github.com/apple/swift-syntax.git
Working copy of https://github.com/apple/swift-syntax.git resolved at 602.0.0
[1/1] Compiling plugin KnitBuildPlugin
[2/2] Compiling plugin GenerateManual
[3/3] Compiling plugin GenerateDoccReference
Building for debugging...
[3/91] Write sources
[46/91] Compiling _SwiftSyntaxCShims PlatformMutex.c
[48/91] Write swift-version-24593BA9C3E375BF.txt
[50/139] 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
[51/139] 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
[52/140] Emitting module SwiftSyntax602
<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 SwiftSyntax602 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] 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
[55/141] 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
[56/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
[57/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
[58/143] Emitting module Swinject
/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/SwinjectContainer.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/SwinjectContainer.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 SwinjectContainer {
428 | static let graphIdentifierKey = ServiceKey(serviceType: GraphIdentifier.self, argumentsType: SwinjectResolver.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
[59/143] Compiling Swinject GraphIdentifier.swift
[60/143] Compiling Swinject InstanceStorage.swift
[61/143] Compiling Swinject InstanceWrapper.swift
[62/145] 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
[63/145] 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
[64/146] Emitting module SwiftSyntax602
<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
[65/146] Compiling SwiftSyntax602 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
[72/147] Compiling Swinject SwinjectResolver.swift
[73/147] Compiling Swinject _Resolver.swift
[74/151] 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
[75/151] 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
[77/160] 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
[78/160] 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
[79/160] 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
[80/160] 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
[81/162] 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
[82/162] 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
[85/163] Wrapping AST for SwiftSyntax602 for debugging
[86/163] Wrapping AST for SwiftSyntax601 for debugging
[87/191] Wrapping AST for SwiftSyntax600 for debugging
[88/206] Wrapping AST for SwiftSyntax510 for debugging
[89/226] Wrapping AST for SwiftSyntax602 for debugging
[90/226] Wrapping AST for SwiftSyntax509 for debugging
[91/226] Wrapping AST for SwiftSyntax601 for debugging
[92/226] Wrapping AST for SwiftSyntax600 for debugging
[94/289] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[95/289] Compiling SwiftSyntax Syntax.swift
[96/289] Compiling SwiftSyntax SyntaxChildren.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
/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()
[97/289] Compiling SwiftSyntax SyntaxCollection.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
/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()
[98/289] Compiling SwiftSyntax SyntaxHashable.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
/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()
[98/289] Wrapping AST for SwiftSyntax510 for debugging
[100/289] Compiling SwiftSyntax ArenaAllocatedBuffer.swift
[101/289] Compiling SwiftSyntax Assert.swift
[102/289] Compiling SwiftSyntax SyntaxIdentifier.swift
[103/289] Compiling SwiftSyntax AbsolutePosition.swift
[104/289] Compiling SwiftSyntax AbsoluteSyntaxInfo.swift
[105/289] Compiling SwiftSyntax BumpPtrAllocator.swift
/host/spi-builder-workspace/Sources/Swinject/SwinjectContainer.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 |
[106/289] Compiling SwiftSyntax CommonAncestor.swift
/host/spi-builder-workspace/Sources/Swinject/SwinjectContainer.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 |
[107/289] Compiling SwiftSyntax Convenience.swift
/host/spi-builder-workspace/Sources/Swinject/SwinjectContainer.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 SwinjectContainer {
428 | static let graphIdentifierKey = ServiceKey(serviceType: GraphIdentifier.self, argumentsType: SwinjectResolver.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
[108/289] Compiling SwiftSyntax CustomTraits.swift
/host/spi-builder-workspace/Sources/Swinject/SwinjectContainer.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 SwinjectContainer {
428 | static let graphIdentifierKey = ServiceKey(serviceType: GraphIdentifier.self, argumentsType: SwinjectResolver.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
[108/289] Wrapping AST for SwiftSyntax509 for debugging
[110/289] Emitting module ArgumentParserToolInfo
<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-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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:58b971189c4d3c564696bb40c86e07506670ed096ab7351a005c7c449525017a
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
[3/3] Compiling plugin GenerateDoccReference
Building for debugging...
[3/46] Write swift-version-24593BA9C3E375BF.txt
[5/91] Emitting module SwiftSyntax600
[6/92] Compiling SwiftSyntax600 Empty.swift
[7/95] Emitting module SwiftSyntax602
[8/95] Compiling SwiftSyntax600 Empty.swift
[9/95] Emitting module SwiftSyntax602
[10/95] Compiling SwiftSyntax602 Empty.swift
[12/96] Compiling SwiftSyntax601 Empty.swift
[13/95] Compiling Swinject ObjectScope.Standard.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()
[14/95] Compiling Swinject ObjectScope.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()
[15/95] Compiling Swinject ReadWriteLock.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()
[17/96] Emitting module SwiftSyntax601
[18/96] Compiling SwiftSyntax601 Empty.swift
[19/96] Compiling SwiftSyntax602 Empty.swift
[20/97] Emitting module SwiftSyntax601
[21/99] Emitting module SwiftSyntax600
[26/98] Compiling Swinject Behavior.swift
[27/98] Compiling Swinject DebugHelper.swift
[28/98] Compiling Swinject FunctionType.swift
[29/98] Emitting module Swinject
[30/102] Compiling Swinject SwinjectResolver.swift
[31/102] Compiling Swinject _Resolver.swift
[35/102] Emitting module Swinject
[36/104] Compiling SwiftSyntax510 Empty.swift
[37/104] Emitting module SwiftSyntax510
[38/105] Compiling Swinject ServiceEntry.swift
[39/105] Compiling Swinject ServiceKey.swift
[40/105] Compiling Swinject RecursiveLock.swift
[41/105] Compiling Swinject ServiceEntry.TypeForwarding.swift
[42/107] Compiling SwiftSyntax510 Empty.swift
[43/107] Compiling SwiftSyntax509 Empty.swift
[44/107] Emitting module SwiftSyntax509
[45/107] Emitting module SwiftSyntax510
[47/113] Emitting module SwiftSyntax509
[48/113] Compiling SwiftSyntax509 Empty.swift
[49/112] Compiling Swinject SwinjectResolver.swift
[50/112] Compiling Swinject _Resolver.swift
[52/112] Compiling Swinject GraphIdentifier.swift
[53/112] Compiling Swinject InstanceStorage.swift
[54/112] Compiling Swinject InstanceWrapper.swift
[57/111] Compiling Swinject SwinjectContainer.Arguments.swift
[58/111] Compiling Swinject SwinjectContainer.Logging.swift
[59/111] Compiling Swinject SwinjectContainer.TypeForwarding.swift
[60/111] Compiling Swinject SwinjectContainer.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 |
BUILD FAILURE 6.1 wasm