Build Information
Successful build of Injection, reference main (fc8a56
), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 14:41:57 UTC.
Swift 6 data race errors: 1
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/EngOmarElsayed/Injection.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/EngOmarElsayed/Injection
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at fc8a56e Update README.md
Cloned https://github.com/EngOmarElsayed/Injection.git
Revision (git rev-parse @):
fc8a56e0e1176d0147242785a936068dcc852159
SUCCESS checkout https://github.com/EngOmarElsayed/Injection.git at main
Fetching https://github.com/apple/swift-syntax
[1/66408] Fetching swift-syntax
Fetched https://github.com/apple/swift-syntax from cache (3.57s)
Computing version for https://github.com/apple/swift-syntax
Computed https://github.com/apple/swift-syntax at 510.0.2 (3.45s)
Creating working copy for https://github.com/apple/swift-syntax
Working copy of https://github.com/apple/swift-syntax resolved at 510.0.2
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "injection",
"name": "Injection",
"url": "https://github.com/EngOmarElsayed/Injection.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Injection",
"dependencies": [
{
"identity": "swift-syntax",
"name": "swift-syntax",
"url": "https://github.com/apple/swift-syntax",
"version": "510.0.3",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-syntax",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/EngOmarElsayed/Injection.git
[2/149] Fetching injection
Fetched https://github.com/EngOmarElsayed/Injection.git from cache (0.76s)
Fetching https://github.com/apple/swift-syntax from cache
Fetched https://github.com/apple/swift-syntax from cache (0.95s)
Computing version for https://github.com/apple/swift-syntax
Computed https://github.com/apple/swift-syntax at 510.0.3 (0.03s)
Creating working copy for https://github.com/apple/swift-syntax
Working copy of https://github.com/apple/swift-syntax resolved at 510.0.3
Creating working copy for https://github.com/EngOmarElsayed/Injection.git
Working copy of https://github.com/EngOmarElsayed/Injection.git resolved at main (fc8a56e)
warning: '.resolve-product-dependencies': dependency 'injection' is not used by any target
Found 1 product dependencies
- swift-syntax
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/EngOmarElsayed/Injection.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/18] Write sources
[15/18] Write swift-version--7754E27361AE5C74.txt
[17/22] Emitting module SwiftSyntax509
[18/22] Compiling SwiftSyntax509 Empty.swift
[19/22] Emitting module SwiftSyntax510
[20/22] Compiling SwiftSyntax510 Empty.swift
[21/84] Compiling SwiftSyntax AbsolutePosition.swift
[22/84] Compiling SwiftSyntax AbsoluteRawSyntax.swift
[23/84] Compiling SwiftSyntax AbsoluteSyntaxInfo.swift
[24/84] Compiling SwiftSyntax Assert.swift
[25/84] Compiling SwiftSyntax BumpPtrAllocator.swift
[26/84] Compiling SwiftSyntax CommonAncestor.swift
[27/84] Compiling SwiftSyntax Convenience.swift
[28/90] Compiling SwiftSyntax SyntaxHashable.swift
[29/90] Compiling SwiftSyntax SyntaxIdentifier.swift
[30/90] Compiling SwiftSyntax SyntaxNodeStructure.swift
[31/90] Compiling SwiftSyntax SyntaxProtocol.swift
[32/90] Compiling SwiftSyntax SyntaxText.swift
[33/90] Compiling SwiftSyntax SyntaxTreeViewMode.swift
[34/90] Compiling SwiftSyntax TokenDiagnostic.swift
[35/90] Compiling SwiftSyntax MemoryLayout.swift
[36/90] Compiling SwiftSyntax MissingNodeInitializers.swift
[37/90] Compiling SwiftSyntax RawSyntax.swift
[38/90] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[39/90] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[40/90] Compiling SwiftSyntax RawSyntaxTokenView.swift
[41/90] Compiling SwiftSyntax SourceLength.swift
[42/90] Compiling SwiftSyntax SourceLocation.swift
[43/90] Compiling SwiftSyntax SourcePresence.swift
[44/90] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[45/90] Compiling SwiftSyntax Syntax.swift
[46/90] Compiling SwiftSyntax SyntaxArena.swift
[47/90] Compiling SwiftSyntax SyntaxChildren.swift
[48/90] Compiling SwiftSyntax SyntaxCollection.swift
[49/90] Compiling SwiftSyntax RenamedNodesCompatibility.swift
[50/90] Compiling SwiftSyntax SyntaxAnyVisitor.swift
[51/90] Compiling SwiftSyntax SyntaxBaseNodes.swift
[52/90] Compiling SwiftSyntax SyntaxCollections.swift
[53/90] Compiling SwiftSyntax SyntaxEnum.swift
[54/90] Compiling SwiftSyntax SyntaxKind.swift
[55/90] Compiling SwiftSyntax SyntaxRewriter.swift
[56/90] Compiling SwiftSyntax RawSyntaxNodesC.swift
[57/90] Compiling SwiftSyntax RawSyntaxNodesD.swift
[58/90] Compiling SwiftSyntax RawSyntaxNodesEF.swift
[59/90] Compiling SwiftSyntax RawSyntaxNodesGHI.swift
[60/90] Compiling SwiftSyntax RawSyntaxNodesJKLMN.swift
[61/90] Compiling SwiftSyntax RawSyntaxNodesOP.swift
[62/90] Compiling SwiftSyntax SyntaxTraits.swift
[63/90] Compiling SwiftSyntax SyntaxTransform.swift
[64/90] Compiling SwiftSyntax SyntaxVisitor.swift
[65/90] Compiling SwiftSyntax TokenKind.swift
[66/90] Compiling SwiftSyntax Tokens.swift
[67/90] Compiling SwiftSyntax TriviaPieces.swift
[68/90] Compiling SwiftSyntax RawSyntaxNodesAB.swift
[69/90] Emitting module SwiftSyntax
[70/90] Compiling SwiftSyntax RawSyntaxNodesQRS.swift
[71/90] Compiling SwiftSyntax RawSyntaxNodesTUVWXYZ.swift
[72/90] Compiling SwiftSyntax RawSyntaxValidation.swift
[73/90] Compiling SwiftSyntax SyntaxNodesAB.swift
[74/90] Compiling SwiftSyntax SyntaxNodesC.swift
[75/90] Compiling SwiftSyntax SyntaxNodesD.swift
[76/90] Compiling SwiftSyntax TokenSequence.swift
[77/90] Compiling SwiftSyntax TokenSyntax.swift
[78/90] Compiling SwiftSyntax Trivia.swift
[79/90] Compiling SwiftSyntax Utils.swift
[80/90] Compiling SwiftSyntax ChildNameForKeyPath.swift
[81/90] Compiling SwiftSyntax Keyword.swift
[82/90] Compiling SwiftSyntax RenamedChildrenCompatibility.swift
[83/90] Compiling SwiftSyntax SyntaxNodesEF.swift
[84/90] Compiling SwiftSyntax SyntaxNodesGHI.swift
[85/90] Compiling SwiftSyntax SyntaxNodesJKLMN.swift
[86/90] Compiling SwiftSyntax SyntaxNodesOP.swift
[87/90] Compiling SwiftSyntax SyntaxNodesQRS.swift
[88/90] Compiling SwiftSyntax SyntaxNodesTUVWXYZ.swift
[89/142] Compiling SwiftBasicFormat Trivia+FormatExtensions.swift
[90/142] Compiling SwiftBasicFormat SyntaxProtocol+Formatted.swift
[91/142] Compiling SwiftBasicFormat Syntax+Extensions.swift
[92/142] Compiling SwiftDiagnostics Message.swift
[93/142] Compiling SwiftDiagnostics Note.swift
[94/142] Emitting module SwiftDiagnostics
[95/142] Compiling SwiftDiagnostics FixIt.swift
[96/142] Compiling SwiftDiagnostics GroupedDiagnostics.swift
[97/142] Compiling SwiftDiagnostics Diagnostic.swift
[98/142] Compiling SwiftDiagnostics DiagnosticsFormatter.swift
[99/142] Compiling SwiftDiagnostics Convenience.swift
[100/142] Emitting module SwiftBasicFormat
[101/142] Compiling SwiftBasicFormat BasicFormat.swift
[102/142] Compiling SwiftParser UnicodeScalarExtensions.swift
[103/142] Compiling SwiftParser Lookahead.swift
[104/142] Compiling SwiftParser LoopProgressCondition.swift
[105/142] Compiling SwiftParser Modifiers.swift
[106/142] Compiling SwiftParser Lexeme.swift
[107/142] Compiling SwiftParser LexemeSequence.swift
[108/142] Compiling SwiftParser Lexer.swift
[109/142] Compiling SwiftParser RegexLiteralLexer.swift
[110/146] Compiling SwiftParser Names.swift
[111/146] Compiling SwiftParser Nominals.swift
[112/146] Compiling SwiftParser Parameters.swift
[113/146] Compiling SwiftParser ParseSourceFile.swift
[114/146] Compiling SwiftParser Parser.swift
[115/146] Compiling SwiftParser Patterns.swift
[116/146] Compiling SwiftParser Recovery.swift
[117/146] Compiling SwiftParser Specifiers.swift
[118/146] Compiling SwiftParser TokenSpecSet.swift
[119/146] Compiling SwiftParser TopLevel.swift
[120/146] Compiling SwiftParser TriviaParser.swift
[121/146] Compiling SwiftParser Types.swift
[122/146] Compiling SwiftParser Statements.swift
[123/146] Compiling SwiftParser StringLiteralRepresentedLiteralValue.swift
[124/146] Compiling SwiftParser StringLiterals.swift
[125/146] Compiling SwiftParser SwiftParserCompatibility.swift
[126/146] Compiling SwiftParser Attributes.swift
[127/146] Compiling SwiftParser Availability.swift
[128/146] Compiling SwiftParser CharacterInfo.swift
[129/146] Compiling SwiftParser CollectionNodes+Parsable.swift
[130/146] Compiling SwiftParser Declarations.swift
[131/146] Compiling SwiftParser SyntaxUtils.swift
[132/146] Compiling SwiftParser TokenConsumer.swift
[133/146] Compiling SwiftParser TokenPrecedence.swift
[134/146] Compiling SwiftParser TokenSpec.swift
[135/146] Emitting module SwiftParser
[136/146] Compiling SwiftParser IsLexerClassified.swift
[137/146] Compiling SwiftParser LayoutNodes+Parsable.swift
[138/146] Compiling SwiftParser Parser+TokenSpecSet.swift
[139/146] Compiling SwiftParser TokenSpecStaticMembers.swift
[140/146] Compiling SwiftParser Directives.swift
[141/146] Compiling SwiftParser ExperimentalFeatures.swift
[142/146] Compiling SwiftParser Expressions.swift
[143/146] Compiling SwiftParser IncrementalParseTransition.swift
[144/146] Compiling SwiftParser Cursor.swift
[145/169] Compiling SwiftOperators OperatorError+Diagnostics.swift
[146/169] Compiling SwiftOperators Operator.swift
[147/170] Compiling SwiftOperators OperatorTable.swift
[148/170] Compiling SwiftOperators SyntaxSynthesis.swift
[149/170] Emitting module SwiftOperators
[150/170] Compiling SwiftOperators PrecedenceGraph.swift
[151/170] Compiling SwiftOperators PrecedenceGroup.swift
[152/170] Compiling SwiftOperators OperatorTable+Semantics.swift
[153/170] Compiling SwiftOperators OperatorTable+Defaults.swift
[154/170] Compiling SwiftOperators OperatorError.swift
[155/170] Compiling SwiftOperators OperatorTable+Folding.swift
[156/170] Compiling SwiftParserDiagnostics SyntaxExtensions.swift
[157/171] Compiling SwiftParserDiagnostics ParserDiagnosticMessages.swift
[158/171] Compiling SwiftParserDiagnostics Utils.swift
[159/171] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
[160/171] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
[161/171] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
[162/171] Compiling SwiftParserDiagnostics PresenceUtils.swift
[163/171] Compiling SwiftParserDiagnostics MissingNodesError.swift
[164/171] Compiling SwiftParserDiagnostics MissingTokenError.swift
[165/171] Compiling SwiftParserDiagnostics DiagnosticExtensions.swift
[166/171] Compiling SwiftParserDiagnostics LexerDiagnosticMessages.swift
[167/171] Compiling SwiftParserDiagnostics MultiLineStringLiteralDiagnosticsGenerator.swift
[168/171] Compiling SwiftParserDiagnostics ParseDiagnosticsGenerator.swift
[169/171] Emitting module SwiftParserDiagnostics
[170/185] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
[171/186] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
[172/186] Compiling SwiftSyntaxBuilder RenamedChildrenBuilderCompatibility.swift
[173/186] Compiling SwiftSyntaxBuilder BuildableNodes.swift
[174/186] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
[175/186] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
[176/186] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.swift
[177/186] Compiling SwiftSyntaxBuilder ResultBuilders.swift
[178/186] Compiling SwiftSyntaxBuilder Indenter.swift
[179/186] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
[180/186] Emitting module SwiftSyntaxBuilder
[181/186] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
[182/186] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
[183/186] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
[184/186] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
[185/200] Compiling SwiftSyntaxMacros MemberAttributeMacro.swift
[186/201] Compiling SwiftSyntaxMacros Macro.swift
[187/201] Compiling SwiftSyntaxMacros MemberMacro.swift
[188/201] Compiling SwiftSyntaxMacros CodeItemMacro.swift
[189/201] Compiling SwiftSyntaxMacros DeclarationMacro.swift
[190/201] Compiling SwiftSyntaxMacros AbstractSourceLocation.swift
[191/201] Compiling SwiftSyntaxMacros MacroExpansionContext.swift
[192/201] Compiling SwiftSyntaxMacros ExpressionMacro.swift
[193/201] Compiling SwiftSyntaxMacros ExtensionMacro.swift
[194/201] Compiling SwiftSyntaxMacros FreestandingMacro.swift
[195/201] Compiling SwiftSyntaxMacros AccessorMacro.swift
[196/201] Compiling SwiftSyntaxMacros AttachedMacro.swift
[197/201] Compiling SwiftSyntaxMacros Macro+Format.swift
[198/201] Emitting module SwiftSyntaxMacros
[199/201] Compiling SwiftSyntaxMacros PeerMacro.swift
[200/209] Compiling SwiftSyntaxMacroExpansion IndentationUtils.swift
[201/209] Compiling SwiftSyntaxMacroExpansion MacroReplacement.swift
[202/209] Emitting module SwiftSyntaxMacroExpansion
[203/209] Compiling SwiftSyntaxMacroExpansion MacroExpansionDiagnosticMessages.swift
[204/209] Compiling SwiftSyntaxMacroExpansion MacroSystem.swift
[205/209] Compiling SwiftSyntaxMacroExpansion MacroExpansion.swift
[206/209] Compiling SwiftSyntaxMacroExpansion FunctionParameterUtils.swift
[207/209] Compiling SwiftSyntaxMacroExpansion BasicMacroExpansionContext.swift
[208/216] Compiling SwiftCompilerPluginMessageHandling Macros.swift
[209/216] Compiling SwiftCompilerPluginMessageHandling CompilerPluginMessageHandler.swift
[210/216] Compiling SwiftCompilerPluginMessageHandling PluginMessageCompatibility.swift
[211/216] Compiling SwiftCompilerPluginMessageHandling PluginMacroExpansionContext.swift
[212/216] Compiling SwiftCompilerPluginMessageHandling Diagnostics.swift
[213/216] Emitting module SwiftCompilerPluginMessageHandling
[214/216] Compiling SwiftCompilerPluginMessageHandling PluginMessages.swift
[215/218] Emitting module SwiftCompilerPlugin
[216/218] Compiling SwiftCompilerPlugin CompilerPlugin.swift
[217/224] Compiling Macros MyMacroPlugin.swift
[218/224] Compiling Macros StringExtension.swift
[219/224] Compiling Macros InjectedValuesContainer.swift
[220/224] Compiling Macros MyLibDiagnostic.swift
[221/224] Emitting module Macros
[222/224] Compiling Macros Inject.swift
/Users/admin/builder/spi-builder-workspace/Sources/Macros/Inject.swift:89:16: warning: variable 'identifier' was never mutated; consider changing to 'let' constant
87 | in context: some MacroExpansionContext
88 | ) throws -> [DeclSyntax] {
89 | guard var (identifier, binding) = checkVariable(for: declaration, node, context: context) as? (TokenSyntax, PatternBindingSyntax) else { return [] }
| `- warning: variable 'identifier' was never mutated; consider changing to 'let' constant
90 | binding.pattern = PatternSyntax(IdentifierPatternSyntax(identifier: .identifier("currentValue")))
91 |
[222/224] Write Objects.LinkFileList
[223/224] Linking Macros-tool
[225/229] Compiling Injection InjectionKey.swift
[226/229] Compiling Injection InjectedValues.swift
/Users/admin/builder/spi-builder-workspace/Sources/Injection/InjectedValues.swift:26:24: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 | public struct InjectedValues {
25 | /// This is only used by the subscript to access the computed property's in the ``InjectedValues`` extension.
26 | private static var current = InjectedValues()
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'current' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | /// This is a static subscript to read and update the currentValue of the ``InjectionKey``.
[227/229] Emitting module Injection
/Users/admin/builder/spi-builder-workspace/Sources/Injection/InjectedValues.swift:26:24: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 | public struct InjectedValues {
25 | /// This is only used by the subscript to access the computed property's in the ``InjectedValues`` extension.
26 | private static var current = InjectedValues()
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'current' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | /// This is a static subscript to read and update the currentValue of the ``InjectionKey``.
[228/229] Compiling Injection MacrosDec.swift
[229/229] Compiling Injection Injected.swift
Build complete! (46.69s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-syntax",
"requirement" : {
"range" : [
{
"lower_bound" : "510.0.0",
"upper_bound" : "511.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-syntax"
}
],
"manifest_display_name" : "Injection",
"name" : "Injection",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "14.0"
},
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "watchos",
"version" : "5.0"
},
{
"name" : "tvos",
"version" : "12.0"
}
],
"products" : [
{
"name" : "Injection",
"targets" : [
"Injection"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "Macros",
"targets" : [
"Macros"
],
"type" : {
"macro" : null
}
}
],
"targets" : [
{
"c99name" : "MacrosTest",
"module_type" : "SwiftTarget",
"name" : "MacrosTest",
"path" : "Tests/MacrosTest",
"product_dependencies" : [
"SwiftSyntaxMacrosTestSupport"
],
"sources" : [
"MacrosTest.swift"
],
"target_dependencies" : [
"Macros"
],
"type" : "test"
},
{
"c99name" : "Macros",
"module_type" : "SwiftTarget",
"name" : "Macros",
"path" : "Sources/Macros",
"product_dependencies" : [
"SwiftSyntaxMacros",
"SwiftCompilerPlugin"
],
"product_memberships" : [
"Injection",
"Macros"
],
"sources" : [
"Inject.swift",
"InjectedValuesContainer.swift",
"MyLibDiagnostic.swift",
"MyMacroPlugin.swift",
"StringExtension.swift"
],
"type" : "macro"
},
{
"c99name" : "InjectionTests",
"module_type" : "SwiftTarget",
"name" : "InjectionTests",
"path" : "Tests/InjectionTests",
"sources" : [
"InjectionTests.swift"
],
"target_dependencies" : [
"Injection"
],
"type" : "test"
},
{
"c99name" : "Injection",
"module_type" : "SwiftTarget",
"name" : "Injection",
"path" : "Sources/Injection",
"product_memberships" : [
"Injection"
],
"sources" : [
"Injected.swift",
"InjectedValues.swift",
"InjectionKey.swift",
"MacrosDec.swift"
],
"target_dependencies" : [
"Macros"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.