Build Information
Successful build of swift-dependencies-macro with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 3
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Ryu0118/swift-dependencies-macro.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Ryu0118/swift-dependencies-macro
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 9611dbc Update README.md
Cloned https://github.com/Ryu0118/swift-dependencies-macro.git
Revision (git rev-parse @):
9611dbccca163bab4fa40bac2b271eafebfe9210
SUCCESS checkout https://github.com/Ryu0118/swift-dependencies-macro.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/Ryu0118/swift-dependencies-macro.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/30] Write sources
[3/30] Write DependenciesMacroClient-entitlement.plist
[3/30] Write sources
[22/30] Write swift-version-6F35C1178C84523A.txt
[24/49] Emitting module SwiftSyntax509
[25/49] Compiling SwiftSyntax509 Empty.swift
[26/95] Compiling SwiftSyntax AbsolutePosition.swift
[27/95] Compiling SwiftSyntax Assert.swift
[28/95] Compiling SwiftSyntax BumpPtrAllocator.swift
[29/95] Compiling SwiftSyntax CommonAncestor.swift
[30/95] Compiling SwiftSyntax Convenience.swift
[31/100] Compiling SwiftSyntax RawSyntaxTokenView.swift
[32/100] Compiling SwiftSyntax SourceLength.swift
[33/100] Compiling SwiftSyntax SourceLocation.swift
[34/100] Compiling SwiftSyntax SourcePresence.swift
[35/100] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[36/100] Compiling SwiftSyntax SyntaxText.swift
[37/100] Compiling SwiftSyntax SyntaxTreeViewMode.swift
[38/100] Compiling SwiftSyntax TokenDiagnostic.swift
[39/100] Compiling SwiftSyntax TokenSyntax.swift
[40/100] Compiling SwiftSyntax Trivia.swift
[41/100] Compiling XCTestDynamicOverlay Unimplemented.swift
[42/100] Compiling ConcurrencyExtras MainSerialExecutor.swift
[43/100] Compiling ConcurrencyExtras UncheckedSendable.swift
[44/100] Compiling ConcurrencyExtras Task.swift
[45/100] Emitting module ConcurrencyExtras
[46/100] Compiling ConcurrencyExtras ActorIsolated.swift
[47/100] Compiling ConcurrencyExtras AsyncStream.swift
[48/100] Compiling ConcurrencyExtras LockIsolated.swift
[49/100] Compiling ConcurrencyExtras AsyncThrowingStream.swift
[50/100] Compiling XCTestDynamicOverlay XCTFail.swift
[51/100] Compiling XCTestDynamicOverlay XCTCurrentTestCase.swift
[52/100] Compiling XCTestDynamicOverlay XCTIsTesting.swift
[53/100] Compiling XCTestDynamicOverlay GeneratePlaceholder.swift
[54/100] Compiling XCTestDynamicOverlay DefaultInitializable.swift
[55/100] Emitting module XCTestDynamicOverlay
[56/100] Compiling XCTestDynamicOverlay RuntimeWarnings.swift
[57/100] Compiling XCTestDynamicOverlay Deprecations.swift
[58/122] Emitting module SwiftSyntax
[59/122] Compiling Clocks Timer.swift
[60/122] Compiling CombineSchedulers UIScheduler.swift
[61/122] Compiling CombineSchedulers UIKit.swift
[62/123] Compiling CombineSchedulers AnyScheduler.swift
[63/123] Compiling CombineSchedulers Concurrency.swift
[64/123] Emitting module Clocks
[65/123] Emitting module CombineSchedulers
[66/123] Compiling Clocks UnimplementedClock.swift
[67/123] Compiling Clocks TestClock.swift
[68/123] Compiling CombineSchedulers ImmediateScheduler.swift
[69/123] Compiling CombineSchedulers Deprecations.swift
[70/123] Compiling CombineSchedulers NSRecursiveLock.swift
[71/123] Compiling CombineSchedulers UnimplementedScheduler.swift
[72/123] Compiling SwiftSyntax Tokens.swift
[73/123] Compiling SwiftSyntax TriviaPieces.swift
[74/123] Compiling SwiftSyntax RawSyntaxNodes.swift
[75/123] Compiling SwiftSyntax RawSyntaxValidation.swift
[76/123] Compiling SwiftSyntax SyntaxDeclNodes.swift
[77/123] Compiling Clocks Shims.swift
[78/123] Compiling Clocks Lock.swift
[79/123] Compiling Clocks AnyClock.swift
[80/123] Compiling Clocks SwiftUI.swift
[81/123] Compiling Clocks ImmediateClock.swift
[82/123] Compiling Clocks _AsyncTimerSequence.swift
[83/123] Compiling CombineSchedulers TestScheduler.swift
[84/123] Compiling CombineSchedulers Timer.swift
[85/123] Compiling CombineSchedulers Lock.swift
[86/123] Compiling CombineSchedulers SwiftUI.swift
[87/145] Compiling Dependencies Locale.swift
[88/145] Compiling Dependencies MainQueue.swift
[89/145] Compiling Dependencies MainRunLoop.swift
[90/145] Compiling Dependencies OpenURL.swift
[91/147] Compiling Dependencies TimeZone.swift
[92/147] Compiling Dependencies URLSession.swift
[93/147] Compiling Dependencies Deprecations.swift
[94/147] Compiling Dependencies Exports.swift
[95/147] Compiling Dependencies Context.swift
[96/147] Compiling Dependencies Date.swift
[97/147] Compiling Dependencies FireAndForget.swift
[98/147] Compiling Dependencies UUID.swift
[99/147] Compiling Dependencies WithRandomNumberGenerator.swift
[100/147] Compiling Dependencies OpenExistential.swift
[101/147] Compiling Dependencies RuntimeWarnings.swift
[102/147] Emitting module Dependencies
[103/147] Compiling Dependencies Dependency.swift
[104/147] Compiling Dependencies DependencyContext.swift
[105/147] Compiling Dependencies DependencyKey.swift
[106/147] Compiling Dependencies DependencyValues.swift
[107/147] Compiling Dependencies Calendar.swift
[108/147] Compiling Dependencies Clocks.swift
[109/147] Compiling Dependencies TypeName.swift
[110/147] Compiling Dependencies WithDependencies.swift
[111/147] Compiling SwiftSyntax SyntaxExprNodes.swift
[112/147] Compiling SwiftSyntax SyntaxNodes.swift
[113/147] Compiling SwiftSyntax SyntaxPatternNodes.swift
[114/147] Compiling SwiftSyntax SyntaxStmtNodes.swift
[115/147] Compiling SwiftSyntax SyntaxTypeNodes.swift
[116/147] Compiling SwiftSyntax SyntaxAnyVisitor.swift
[117/147] Compiling SwiftSyntax SyntaxBaseNodes.swift
[118/147] Compiling SwiftSyntax SyntaxCollections.swift
[119/147] Compiling SwiftSyntax SyntaxEnum.swift
[120/147] Compiling SwiftSyntax SyntaxKind.swift
[126/147] Compiling SwiftSyntax SyntaxRewriter.swift
[127/147] Compiling SwiftSyntax SyntaxTraits.swift
[128/147] Compiling SwiftSyntax SyntaxTransform.swift
[129/147] Compiling SwiftSyntax SyntaxVisitor.swift
[130/147] Compiling SwiftSyntax TokenKind.swift
[134/147] Compiling SwiftSyntax SyntaxCollection.swift
[135/147] Compiling SwiftSyntax SyntaxData.swift
[136/147] Compiling SwiftSyntax Utils.swift
[137/147] Compiling SwiftSyntax ChildNameForKeyPath.swift
[138/147] Compiling SwiftSyntax Keyword.swift
[139/147] Compiling SwiftSyntax RenamedChildrenCompatibility.swift
[140/147] Compiling SwiftSyntax RenamedNodesCompatibility.swift
[141/199] Compiling SwiftDiagnostics Note.swift
[142/199] Compiling SwiftDiagnostics Message.swift
[143/199] Compiling SwiftBasicFormat Trivia+FormatExtensions.swift
[144/199] Compiling SwiftBasicFormat SyntaxProtocol+Formatted.swift
[145/199] Compiling SwiftDiagnostics FixIt.swift
[146/199] Compiling SwiftDiagnostics GroupedDiagnostics.swift
[147/199] Compiling SwiftDiagnostics Diagnostic.swift
[148/199] Compiling SwiftDiagnostics Convenience.swift
[149/199] Emitting module SwiftDiagnostics
[150/199] Compiling SwiftDiagnostics DiagnosticsFormatter.swift
[151/199] Compiling SwiftBasicFormat Syntax+Extensions.swift
[152/199] Emitting module SwiftBasicFormat
[153/199] Compiling SwiftBasicFormat BasicFormat.swift
[154/199] Compiling SwiftParser UnicodeScalarExtensions.swift
[155/199] Compiling SwiftParser Lookahead.swift
[156/199] Compiling SwiftParser LoopProgressCondition.swift
[157/199] Compiling SwiftParser Modifiers.swift
[158/203] Compiling SwiftParser Statements.swift
[159/203] Compiling SwiftParser StringLiteralRepresentedLiteralValue.swift
[160/203] Compiling SwiftParser StringLiterals.swift
[161/203] Compiling SwiftParser SwiftParserCompatibility.swift
[162/203] Compiling SwiftParser Lexeme.swift
[163/203] Compiling SwiftParser LexemeSequence.swift
[164/203] Compiling SwiftParser Lexer.swift
[165/203] Compiling SwiftParser RegexLiteralLexer.swift
[166/203] Compiling SwiftParser SyntaxUtils.swift
[167/203] Compiling SwiftParser TokenConsumer.swift
[168/203] Compiling SwiftParser TokenPrecedence.swift
[169/203] Compiling SwiftParser TokenSpec.swift
[170/203] Compiling SwiftParser Names.swift
[171/203] Compiling SwiftParser Nominals.swift
[172/203] Compiling SwiftParser Parameters.swift
[173/203] Compiling SwiftParser ParseSourceFile.swift
[174/203] Compiling SwiftParser Parser.swift
[175/203] Compiling SwiftParser Patterns.swift
[176/203] Compiling SwiftParser Recovery.swift
[177/203] Compiling SwiftParser Specifiers.swift
[178/203] Compiling SwiftParser TokenSpecSet.swift
[179/203] Compiling SwiftParser TopLevel.swift
[180/203] Compiling SwiftParser TriviaParser.swift
[181/203] Compiling SwiftParser Types.swift
[182/203] Compiling SwiftParser IsLexerClassified.swift
[183/203] Compiling SwiftParser LayoutNodes+Parsable.swift
[184/203] Compiling SwiftParser Parser+TokenSpecSet.swift
[185/203] Compiling SwiftParser TokenSpecStaticMembers.swift
[186/203] Emitting module SwiftParser
[187/203] Compiling SwiftParser Attributes.swift
[188/203] Compiling SwiftParser Availability.swift
[189/203] Compiling SwiftParser CharacterInfo.swift
[190/203] Compiling SwiftParser CollectionNodes+Parsable.swift
[191/203] Compiling SwiftParser Declarations.swift
[192/203] Compiling SwiftParser Directives.swift
[193/203] Compiling SwiftParser ExperimentalFeatures.swift
[194/203] Compiling SwiftParser Expressions.swift
[195/203] Compiling SwiftParser IncrementalParseTransition.swift
[196/203] Compiling SwiftParser Cursor.swift
[197/226] Compiling SwiftOperators OperatorTable.swift
[198/226] Compiling SwiftOperators PrecedenceGroup.swift
[199/226] Compiling SwiftOperators PrecedenceGraph.swift
[200/227] Compiling SwiftOperators SyntaxSynthesis.swift
[201/227] Compiling SwiftOperators OperatorTable+Semantics.swift
[202/227] Compiling SwiftOperators OperatorTable+Defaults.swift
[203/227] Compiling SwiftOperators OperatorError.swift
[204/227] Compiling SwiftOperators OperatorError+Diagnostics.swift
[205/227] Compiling SwiftOperators Operator.swift
[206/227] Emitting module SwiftOperators
[207/227] Compiling SwiftOperators OperatorTable+Folding.swift
[208/227] Compiling SwiftParserDiagnostics Utils.swift
[209/227] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
[210/227] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
[211/228] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
[212/228] Compiling SwiftParserDiagnostics SyntaxExtensions.swift
[213/228] Compiling SwiftParserDiagnostics PresenceUtils.swift
[214/228] Compiling SwiftParserDiagnostics ParserDiagnosticMessages.swift
[215/228] Compiling SwiftParserDiagnostics MissingNodesError.swift
[216/228] Compiling SwiftParserDiagnostics MissingTokenError.swift
[217/228] Compiling SwiftParserDiagnostics MultiLineStringLiteralDiagnosticsGenerator.swift
[218/228] Compiling SwiftParserDiagnostics ParseDiagnosticsGenerator.swift
[219/228] Compiling SwiftParserDiagnostics DiagnosticExtensions.swift
[220/228] Compiling SwiftParserDiagnostics LexerDiagnosticMessages.swift
[221/228] Emitting module SwiftParserDiagnostics
[222/242] Compiling SwiftSyntaxBuilder RenamedChildrenBuilderCompatibility.swift
[223/243] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
[224/243] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
[225/243] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
[226/243] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.swift
[227/243] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
[228/243] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
[229/243] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
[230/243] Compiling SwiftSyntaxBuilder BuildableNodes.swift
[231/243] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
[232/243] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
[233/243] Compiling SwiftSyntaxBuilder Indenter.swift
[234/243] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
[235/243] Emitting module SwiftSyntaxBuilder
[236/243] Compiling SwiftSyntaxBuilder ResultBuilders.swift
[237/257] Compiling SwiftSyntaxMacros Macro.swift
[238/258] Compiling SwiftSyntaxMacros MemberMacro.swift
[239/258] Compiling SwiftSyntaxMacros MemberAttributeMacro.swift
[240/258] Compiling SwiftSyntaxMacros FreestandingMacro.swift
[241/258] Compiling SwiftSyntaxMacros ExpressionMacro.swift
[242/258] Compiling SwiftSyntaxMacros ExtensionMacro.swift
[243/258] Compiling SwiftSyntaxMacros CodeItemMacro.swift
[244/258] Compiling SwiftSyntaxMacros DeclarationMacro.swift
[245/258] Compiling SwiftSyntaxMacros AccessorMacro.swift
[246/258] Compiling SwiftSyntaxMacros AttachedMacro.swift
[247/258] Compiling SwiftSyntaxMacros Macro+Format.swift
[248/258] Compiling SwiftSyntaxMacros PeerMacro.swift
[249/258] Emitting module SwiftSyntaxMacros
[250/258] Compiling SwiftSyntaxMacros AbstractSourceLocation.swift
[251/258] Compiling SwiftSyntaxMacros MacroExpansionContext.swift
[252/266] Compiling SwiftSyntaxMacroExpansion MacroExpansionDiagnosticMessages.swift
[253/266] Compiling SwiftSyntaxMacroExpansion MacroReplacement.swift
[254/266] Compiling SwiftSyntaxMacroExpansion IndentationUtils.swift
[255/266] Compiling SwiftSyntaxMacroExpansion BasicMacroExpansionContext.swift
[256/266] Compiling SwiftSyntaxMacroExpansion MacroExpansion.swift
[257/266] Compiling SwiftSyntaxMacroExpansion FunctionParameterUtils.swift
[258/266] Emitting module SwiftSyntaxMacroExpansion
[259/266] Compiling SwiftSyntaxMacroExpansion MacroSystem.swift
[260/273] Emitting module SwiftCompilerPluginMessageHandling
[261/273] Compiling SwiftCompilerPluginMessageHandling PluginMessages.swift
[262/273] Compiling SwiftCompilerPluginMessageHandling PluginMessageCompatibility.swift
[263/273] Compiling SwiftCompilerPluginMessageHandling PluginMacroExpansionContext.swift
[264/273] Compiling SwiftCompilerPluginMessageHandling Macros.swift
[265/273] Compiling SwiftCompilerPluginMessageHandling Diagnostics.swift
[266/273] Compiling SwiftCompilerPluginMessageHandling CompilerPluginMessageHandler.swift
[267/275] Compiling SwiftCompilerPlugin CompilerPlugin.swift
[268/275] Emitting module SwiftCompilerPlugin
[269/285] Compiling DependenciesMacroPlugin DependencyValuesMacro.swift
[270/285] Compiling DependenciesMacroPlugin DependencyValueMacroDiagnostic.swift
[271/285] Compiling PublicInitMacroPlugin PublicInitMacroPlugin.swift
[272/285] Compiling PublicInitMacroPlugin PublicInitMacroDiagnostic.swift
[273/285] Emitting module DependenciesMacroPlugin
[274/285] Compiling DependenciesMacroPlugin DependenciesMacro.swift
[275/285] Compiling DependenciesMacroPlugin DependenciesMacroPlugin.swift
[276/285] Compiling DependenciesMacroPlugin DependenciesMacroDiagnostic.swift
[276/285] Write Objects.LinkFileList
[278/285] Emitting module PublicInitMacroPlugin
/Users/admin/builder/spi-builder-workspace/Sources/PublicInitMacroPlugin/PublicInitMacro.swift:99:16: warning: static property 'escaping' is not concurrency-safe because non-'Sendable' type 'AttributeSyntax' may have shared mutable state; this is an error in the Swift 6 language mode
97 |
98 | extension AttributeSyntax {
99 | static let escaping = AttributeSyntax(
| `- warning: static property 'escaping' is not concurrency-safe because non-'Sendable' type 'AttributeSyntax' may have shared mutable state; this is an error in the Swift 6 language mode
100 | atSign: .atSignToken(),
101 | attributeName: IdentifierTypeSyntax(
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-syntax/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodes.swift:636:15: note: struct 'AttributeSyntax' does not conform to the 'Sendable' protocol
634 | /// - ``AttributeListSyntax``
635 | /// - ``SwitchCaseSyntax``.``SwitchCaseSyntax/attribute``
636 | public struct AttributeSyntax: SyntaxProtocol, SyntaxHashable {
| `- note: struct 'AttributeSyntax' does not conform to the 'Sendable' protocol
637 | public enum Arguments: SyntaxChildChoices, SyntaxHashable {
638 | case `argumentList`(LabeledExprListSyntax)
/Users/admin/builder/spi-builder-workspace/Sources/PublicInitMacroPlugin/PublicInitMacro.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SwiftSyntax'
1 | import SwiftSyntax
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SwiftSyntax'
2 | import SwiftSyntaxBuilder
3 | import SwiftSyntaxMacros
:
97 |
98 | extension AttributeSyntax {
99 | static let escaping = AttributeSyntax(
| |- note: annotate 'escaping' 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
100 | atSign: .atSignToken(),
101 | attributeName: IdentifierTypeSyntax(
[279/285] Compiling PublicInitMacroPlugin PublicInitMacro.swift
/Users/admin/builder/spi-builder-workspace/Sources/PublicInitMacroPlugin/PublicInitMacro.swift:99:16: warning: static property 'escaping' is not concurrency-safe because non-'Sendable' type 'AttributeSyntax' may have shared mutable state; this is an error in the Swift 6 language mode
97 |
98 | extension AttributeSyntax {
99 | static let escaping = AttributeSyntax(
| `- warning: static property 'escaping' is not concurrency-safe because non-'Sendable' type 'AttributeSyntax' may have shared mutable state; this is an error in the Swift 6 language mode
100 | atSign: .atSignToken(),
101 | attributeName: IdentifierTypeSyntax(
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-syntax/Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodes.swift:636:15: note: struct 'AttributeSyntax' does not conform to the 'Sendable' protocol
634 | /// - ``AttributeListSyntax``
635 | /// - ``SwitchCaseSyntax``.``SwitchCaseSyntax/attribute``
636 | public struct AttributeSyntax: SyntaxProtocol, SyntaxHashable {
| `- note: struct 'AttributeSyntax' does not conform to the 'Sendable' protocol
637 | public enum Arguments: SyntaxChildChoices, SyntaxHashable {
638 | case `argumentList`(LabeledExprListSyntax)
/Users/admin/builder/spi-builder-workspace/Sources/PublicInitMacroPlugin/PublicInitMacro.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SwiftSyntax'
1 | import SwiftSyntax
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SwiftSyntax'
2 | import SwiftSyntaxBuilder
3 | import SwiftSyntaxMacros
:
97 |
98 | extension AttributeSyntax {
99 | static let escaping = AttributeSyntax(
| |- note: annotate 'escaping' 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
100 | atSign: .atSignToken(),
101 | attributeName: IdentifierTypeSyntax(
[279/285] Write Objects.LinkFileList
[280/285] Linking DependenciesMacroPlugin
[281/285] Linking PublicInitMacroPlugin
[283/287] Emitting module DependenciesMacro
[284/287] Compiling DependenciesMacro DependenciesMacro.swift
[285/289] Compiling DependenciesMacroClient main.swift
macro expansion @Dependencies:2:23: warning: static property 'testValue' is not concurrency-safe because non-'Sendable' type 'TestClient' may have shared mutable state; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/DependenciesMacroClient/main.swift:8:2: note: expanded code originates here
4 | @PublicInit
5 | @Dependencies
6 | public struct TestClient {
| `- note: consider making struct 'TestClient' conform to the 'Sendable' protocol
7 | public var request: @Sendable (_ request: String) -> Void
8 | }
+--- macro expansion @Dependencies ----------------------------------
|1 | extension TestClient: TestDependencyKey {
|2 | public static let testValue = TestClient(
| | |- warning: static property 'testValue' is not concurrency-safe because non-'Sendable' type 'TestClient' may have shared mutable state; this is an error in the Swift 6 language mode
| | |- note: annotate 'testValue' 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
|3 | request: unimplemented("\(Self.self).request")
|4 | )
+--------------------------------------------------------------------
9 |
10 | @DependencyValue(TestClient.self)
macro expansion @Dependencies:1:1: warning: type 'TestClient' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/DependenciesMacroClient/main.swift:8:2: note: expanded code originates here
4 | @PublicInit
5 | @Dependencies
6 | public struct TestClient {
| `- note: consider making struct 'TestClient' conform to the 'Sendable' protocol
7 | public var request: @Sendable (_ request: String) -> Void
8 | }
+--- macro expansion @Dependencies ----------------------------------
|1 | extension TestClient: TestDependencyKey {
| | `- warning: type 'TestClient' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
|2 | public static let testValue = TestClient(
|3 | request: unimplemented("\(Self.self).request")
+--------------------------------------------------------------------
9 |
10 | @DependencyValue(TestClient.self)
[286/289] Emitting module DependenciesMacroClient
macro expansion @Dependencies:2:23: warning: static property 'testValue' is not concurrency-safe because non-'Sendable' type 'TestClient' may have shared mutable state; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/DependenciesMacroClient/main.swift:8:2: note: expanded code originates here
4 | @PublicInit
5 | @Dependencies
6 | public struct TestClient {
| `- note: consider making struct 'TestClient' conform to the 'Sendable' protocol
7 | public var request: @Sendable (_ request: String) -> Void
8 | }
+--- macro expansion @Dependencies ----------------------------------
|1 | extension TestClient: TestDependencyKey {
|2 | public static let testValue = TestClient(
| | |- warning: static property 'testValue' is not concurrency-safe because non-'Sendable' type 'TestClient' may have shared mutable state; this is an error in the Swift 6 language mode
| | |- note: annotate 'testValue' 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
|3 | request: unimplemented("\(Self.self).request")
|4 | )
+--------------------------------------------------------------------
9 |
10 | @DependencyValue(TestClient.self)
macro expansion @Dependencies:1:1: warning: type 'TestClient' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/DependenciesMacroClient/main.swift:8:2: note: expanded code originates here
4 | @PublicInit
5 | @Dependencies
6 | public struct TestClient {
| `- note: consider making struct 'TestClient' conform to the 'Sendable' protocol
7 | public var request: @Sendable (_ request: String) -> Void
8 | }
+--- macro expansion @Dependencies ----------------------------------
|1 | extension TestClient: TestDependencyKey {
| | `- warning: type 'TestClient' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
|2 | public static let testValue = TestClient(
|3 | request: unimplemented("\(Self.self).request")
+--------------------------------------------------------------------
9 |
10 | @DependencyValue(TestClient.self)
[286/289] Write Objects.LinkFileList
[287/289] Linking DependenciesMacroClient
[288/289] Applying DependenciesMacroClient
Build complete! (74.44s)
Fetching https://github.com/pointfreeco/swift-concurrency-extras
Fetching https://github.com/pointfreeco/swift-dependencies
Fetching https://github.com/pointfreeco/swift-snapshot-testing
Fetching https://github.com/pointfreeco/swift-clocks
Fetching https://github.com/pointfreeco/swift-macro-testing.git
Fetching https://github.com/apple/swift-syntax.git
Fetching https://github.com/pointfreeco/combine-schedulers
[1/417] Fetching swift-macro-testing
[122/2661] Fetching swift-macro-testing, combine-schedulers
[190/3091] Fetching swift-macro-testing, combine-schedulers, swift-concurrency-extras
[313/4366] Fetching swift-macro-testing, combine-schedulers, swift-concurrency-extras, swift-clocks
[732/8385] Fetching swift-macro-testing, combine-schedulers, swift-concurrency-extras, swift-clocks, swift-dependencies
[4274/19634] Fetching swift-macro-testing, combine-schedulers, swift-concurrency-extras, swift-clocks, swift-dependencies, swift-snapshot-testing
[9286/80572] Fetching swift-macro-testing, combine-schedulers, swift-concurrency-extras, swift-clocks, swift-dependencies, swift-snapshot-testing, swift-syntax
Fetched https://github.com/pointfreeco/swift-concurrency-extras from cache (2.49s)
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/swift-clocks from cache (3.19s)
Fetched https://github.com/pointfreeco/swift-dependencies from cache (3.19s)
Fetched https://github.com/pointfreeco/swift-macro-testing.git from cache (3.19s)
Fetched https://github.com/apple/swift-syntax.git from cache (3.19s)
Fetched https://github.com/pointfreeco/swift-snapshot-testing from cache (3.19s)
Fetched https://github.com/pointfreeco/combine-schedulers from cache (3.19s)
Computing version for https://github.com/pointfreeco/swift-dependencies
[1/2356] Fetching xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (1.16s)
Computed https://github.com/pointfreeco/swift-dependencies at 1.0.0 (0.99s)
Computing version for https://github.com/pointfreeco/swift-macro-testing.git
Computed https://github.com/pointfreeco/swift-macro-testing.git at 0.1.0 (0.50s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 509.0.0 (0.80s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 1.0.2 (0.66s)
Computing version for https://github.com/pointfreeco/swift-concurrency-extras
Computed https://github.com/pointfreeco/swift-concurrency-extras at 1.0.0 (0.64s)
Computing version for https://github.com/pointfreeco/swift-clocks
Computed https://github.com/pointfreeco/swift-clocks at 1.0.0 (0.65s)
Computing version for https://github.com/pointfreeco/combine-schedulers
Computed https://github.com/pointfreeco/combine-schedulers at 1.0.0 (0.75s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing
Computed https://github.com/pointfreeco/swift-snapshot-testing at 1.13.0 (0.64s)
Creating working copy for https://github.com/pointfreeco/swift-clocks
Working copy of https://github.com/pointfreeco/swift-clocks resolved at 1.0.0
Creating working copy for https://github.com/pointfreeco/swift-dependencies
Working copy of https://github.com/pointfreeco/swift-dependencies resolved at 1.0.0
Creating working copy for https://github.com/pointfreeco/swift-snapshot-testing
Working copy of https://github.com/pointfreeco/swift-snapshot-testing resolved at 1.13.0
Creating working copy for https://github.com/apple/swift-syntax.git
Working copy of https://github.com/apple/swift-syntax.git resolved at 509.0.0
Creating working copy for https://github.com/pointfreeco/xctest-dynamic-overlay
Working copy of https://github.com/pointfreeco/xctest-dynamic-overlay resolved at 1.0.2
Creating working copy for https://github.com/pointfreeco/swift-macro-testing.git
Working copy of https://github.com/pointfreeco/swift-macro-testing.git resolved at 0.1.0
Creating working copy for https://github.com/pointfreeco/combine-schedulers
Working copy of https://github.com/pointfreeco/combine-schedulers resolved at 1.0.0
Creating working copy for https://github.com/pointfreeco/swift-concurrency-extras
Working copy of https://github.com/pointfreeco/swift-concurrency-extras resolved at 1.0.0
Build complete.
{
"dependencies" : [
{
"identity" : "swift-syntax",
"requirement" : {
"range" : [
{
"lower_bound" : "509.0.0",
"upper_bound" : "510.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-syntax.git"
},
{
"identity" : "swift-macro-testing",
"requirement" : {
"range" : [
{
"lower_bound" : "0.1.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/pointfreeco/swift-macro-testing.git"
},
{
"identity" : "swift-dependencies",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/pointfreeco/swift-dependencies"
}
],
"manifest_display_name" : "swift-dependencies-macro",
"name" : "swift-dependencies-macro",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "6.0"
},
{
"name" : "maccatalyst",
"version" : "13.0"
}
],
"products" : [
{
"name" : "DependenciesMacro",
"targets" : [
"DependenciesMacro"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "DependenciesMacroClient",
"targets" : [
"DependenciesMacroClient"
],
"type" : {
"executable" : null
}
},
{
"name" : "PublicInitMacroPlugin",
"targets" : [
"PublicInitMacroPlugin"
],
"type" : {
"macro" : null
}
},
{
"name" : "DependenciesMacroPlugin",
"targets" : [
"DependenciesMacroPlugin"
],
"type" : {
"macro" : null
}
}
],
"targets" : [
{
"c99name" : "PublicInitMacroTests",
"module_type" : "SwiftTarget",
"name" : "PublicInitMacroTests",
"path" : "Tests/PublicInitMacroTests",
"product_dependencies" : [
"MacroTesting"
],
"sources" : [
"PublicInitMacroTests.swift"
],
"target_dependencies" : [
"PublicInitMacroPlugin"
],
"type" : "test"
},
{
"c99name" : "PublicInitMacroPlugin",
"module_type" : "SwiftTarget",
"name" : "PublicInitMacroPlugin",
"path" : "Sources/PublicInitMacroPlugin",
"product_dependencies" : [
"SwiftSyntax",
"SwiftSyntaxBuilder",
"SwiftSyntaxMacros",
"SwiftCompilerPlugin"
],
"product_memberships" : [
"DependenciesMacro",
"DependenciesMacroClient",
"PublicInitMacroPlugin"
],
"sources" : [
"PublicInitMacro.swift",
"PublicInitMacroDiagnostic.swift",
"PublicInitMacroPlugin.swift"
],
"type" : "macro"
},
{
"c99name" : "DependenciesMacroTests",
"module_type" : "SwiftTarget",
"name" : "DependenciesMacroTests",
"path" : "Tests/DependenciesMacroTests",
"product_dependencies" : [
"MacroTesting"
],
"sources" : [
"DependenciesMacroTests.swift",
"DependencyValueMacroTests.swift"
],
"target_dependencies" : [
"DependenciesMacroPlugin"
],
"type" : "test"
},
{
"c99name" : "DependenciesMacroPlugin",
"module_type" : "SwiftTarget",
"name" : "DependenciesMacroPlugin",
"path" : "Sources/DependenciesMacroPlugin",
"product_dependencies" : [
"SwiftSyntax",
"SwiftSyntaxBuilder",
"SwiftSyntaxMacros",
"SwiftCompilerPlugin"
],
"product_memberships" : [
"DependenciesMacro",
"DependenciesMacroClient",
"DependenciesMacroPlugin"
],
"sources" : [
"DependenciesMacro.swift",
"DependenciesMacroDiagnostic.swift",
"DependenciesMacroPlugin.swift",
"DependencyValueMacroDiagnostic.swift",
"DependencyValuesMacro.swift"
],
"type" : "macro"
},
{
"c99name" : "DependenciesMacroClient",
"module_type" : "SwiftTarget",
"name" : "DependenciesMacroClient",
"path" : "Sources/DependenciesMacroClient",
"product_dependencies" : [
"Dependencies"
],
"product_memberships" : [
"DependenciesMacroClient"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"DependenciesMacro"
],
"type" : "executable"
},
{
"c99name" : "DependenciesMacro",
"module_type" : "SwiftTarget",
"name" : "DependenciesMacro",
"path" : "Sources/DependenciesMacro",
"product_dependencies" : [
"Dependencies"
],
"product_memberships" : [
"DependenciesMacro",
"DependenciesMacroClient"
],
"sources" : [
"DependenciesMacro.swift"
],
"target_dependencies" : [
"DependenciesMacroPlugin",
"PublicInitMacroPlugin"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.