The Swift Package Index logo.Swift Package Index

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

Build Information

Failed to build DTOMacro, reference 0.0.0 (601a66), with Swift 6.0 for Linux on 3 Nov 2024 11:10:36 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/OctoPoulpeStudio/DTOMacro.git
Reference: 0.0.0
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/OctoPoulpeStudio/DTOMacro
 * tag               0.0.0      -> FETCH_HEAD
HEAD is now at 601a662 Update README.md
Cloned https://github.com/OctoPoulpeStudio/DTOMacro.git
Revision (git rev-parse @):
601a662c550cbecedcd219c73e8ff1525690fbb4
SUCCESS checkout https://github.com/OctoPoulpeStudio/DTOMacro.git at 0.0.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/OctoPoulpeStudio/DTOMacro.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/apple/swift-syntax.git
[1/66399] Fetching swift-syntax
Fetched https://github.com/apple/swift-syntax.git from cache (7.23s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 509.1.1 (2.89s)
Creating working copy for https://github.com/apple/swift-syntax.git
Working copy of https://github.com/apple/swift-syntax.git resolved at 509.1.1
Building for debugging...
[0/39] Write sources
[17/39] Write swift-version-24593BA9C3E375BF.txt
[19/47] Emitting module DTOTypes
[20/47] Emitting module SwiftSyntax509
[21/47] Compiling SwiftSyntax509 Empty.swift
[22/48] Wrapping AST for SwiftSyntax509 for debugging
[24/93] Compiling SwiftSyntax AbsolutePosition.swift
[25/93] Compiling SwiftSyntax Assert.swift
[26/93] Compiling SwiftSyntax BumpPtrAllocator.swift
[27/93] Compiling SwiftSyntax CommonAncestor.swift
[28/93] Compiling SwiftSyntax Convenience.swift
[29/93] Compiling SwiftSyntax MemoryLayout.swift
[30/93] Compiling SwiftSyntax MissingNodeInitializers.swift
[31/99] Compiling DTOTypes DecodableFromDTOProtocol.swift
[32/99] Compiling DTOTypes JSONDecoder+DecodableFromDTO.swift
[33/100] Compiling SwiftSyntax SyntaxText.swift
[34/100] Compiling SwiftSyntax SyntaxTreeViewMode.swift
[35/100] Compiling SwiftSyntax TokenDiagnostic.swift
[36/100] Compiling SwiftSyntax TokenSyntax.swift
[37/100] Compiling SwiftSyntax Trivia.swift
[38/100] Compiling SwiftSyntax Utils.swift
[40/100] Emitting module DTOTypes
[41/100] Compiling DTOTypes DecodableFromDTOProtocol.swift
[42/100] Compiling DTOTypes JSONDecoder+DecodableFromDTO.swift
[42/101] Wrapping AST for DTOTypes for debugging
[46/101] Compiling SwiftSyntax RawSyntax.swift
[47/101] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[48/101] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[49/101] Compiling SwiftSyntax RawSyntaxTokenView.swift
[50/101] Compiling SwiftSyntax SourceLength.swift
[51/101] Compiling SwiftSyntax SourceLocation.swift
[52/101] Compiling SwiftSyntax SourcePresence.swift
[53/101] Emitting module SwiftSyntax
[54/101] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[55/101] Compiling SwiftSyntax Syntax.swift
[56/101] Compiling SwiftSyntax SyntaxArena.swift
[57/101] Compiling SwiftSyntax SyntaxChildren.swift
[58/101] Compiling SwiftSyntax SyntaxCollection.swift
[59/101] Compiling SwiftSyntax SyntaxData.swift
[60/101] Compiling SwiftSyntax ChildNameForKeyPath.swift
[61/101] Compiling SwiftSyntax Keyword.swift
[62/101] Compiling SwiftSyntax RenamedChildrenCompatibility.swift
[63/101] Compiling SwiftSyntax RenamedNodesCompatibility.swift
[64/101] Compiling SwiftSyntax SyntaxAnyVisitor.swift
[65/101] Compiling SwiftSyntax SyntaxBaseNodes.swift
[66/101] Compiling SwiftSyntax SyntaxCollections.swift
[67/101] Compiling SwiftSyntax SyntaxEnum.swift
[68/101] Compiling SwiftSyntax SyntaxKind.swift
[69/101] Compiling SwiftSyntax SyntaxRewriter.swift
[70/101] Compiling SwiftSyntax SyntaxTraits.swift
[71/101] Compiling SwiftSyntax SyntaxTransform.swift
[72/101] Compiling SwiftSyntax SyntaxDeclNodes.swift
[73/101] Compiling SwiftSyntax SyntaxExprNodes.swift
[74/101] Compiling SwiftSyntax SyntaxNodes.swift
[75/101] Compiling SwiftSyntax SyntaxPatternNodes.swift
[76/101] Compiling SwiftSyntax SyntaxStmtNodes.swift
[77/101] Compiling SwiftSyntax SyntaxTypeNodes.swift
[78/101] Compiling SwiftSyntax SyntaxVisitor.swift
[79/101] Compiling SwiftSyntax TokenKind.swift
[80/101] Compiling SwiftSyntax Tokens.swift
[81/101] Compiling SwiftSyntax TriviaPieces.swift
[82/101] Compiling SwiftSyntax RawSyntaxNodes.swift
[83/101] Compiling SwiftSyntax RawSyntaxValidation.swift
[84/102] Wrapping AST for SwiftSyntax for debugging
[86/153] Compiling SwiftBasicFormat Syntax+Extensions.swift
[87/153] Compiling SwiftBasicFormat SyntaxProtocol+Formatted.swift
[88/153] Compiling SwiftBasicFormat Trivia+FormatExtensions.swift
[89/153] Compiling SwiftDiagnostics FixIt.swift
[90/153] Emitting module SwiftDiagnostics
[91/153] Compiling SwiftDiagnostics Note.swift
[92/153] Compiling SwiftDiagnostics Message.swift
[93/153] Compiling SwiftDiagnostics GroupedDiagnostics.swift
[94/153] Compiling SwiftDiagnostics Convenience.swift
[95/153] Compiling SwiftDiagnostics Diagnostic.swift
[96/153] Compiling SwiftDiagnostics DiagnosticsFormatter.swift
[97/154] Emitting module SwiftBasicFormat
[98/154] Compiling SwiftBasicFormat BasicFormat.swift
[100/155] Wrapping AST for SwiftBasicFormat for debugging
[101/155] Wrapping AST for SwiftDiagnostics for debugging
[103/155] Compiling SwiftParser Lexer.swift
[104/155] Compiling SwiftParser RegexLiteralLexer.swift
[105/155] Compiling SwiftParser UnicodeScalarExtensions.swift
[106/155] Compiling SwiftParser Lookahead.swift
[107/155] Compiling SwiftParser LoopProgressCondition.swift
[108/160] Compiling SwiftParser StringLiteralRepresentedLiteralValue.swift
[109/160] Compiling SwiftParser StringLiterals.swift
[110/160] Compiling SwiftParser SwiftParserCompatibility.swift
[111/160] Compiling SwiftParser SyntaxUtils.swift
[112/160] Compiling SwiftParser TokenConsumer.swift
[113/160] Compiling SwiftParser TokenPrecedence.swift
[114/160] Compiling SwiftParser TokenSpec.swift
[115/160] Compiling SwiftParser TokenSpecSet.swift
[116/160] Compiling SwiftParser TopLevel.swift
[117/160] Compiling SwiftParser TriviaParser.swift
[118/160] Emitting module SwiftParser
[119/160] Compiling SwiftParser Attributes.swift
[120/160] Compiling SwiftParser Availability.swift
[121/160] Compiling SwiftParser CharacterInfo.swift
[122/160] Compiling SwiftParser CollectionNodes+Parsable.swift
[123/160] Compiling SwiftParser Declarations.swift
[124/160] Compiling SwiftParser Directives.swift
[125/160] Compiling SwiftParser Modifiers.swift
[126/160] Compiling SwiftParser Names.swift
[127/160] Compiling SwiftParser Nominals.swift
[128/160] Compiling SwiftParser Parameters.swift
[129/160] Compiling SwiftParser ParseSourceFile.swift
[130/160] Compiling SwiftParser Parser.swift
[131/160] Compiling SwiftParser Patterns.swift
[132/160] Compiling SwiftParser Recovery.swift
[133/160] Compiling SwiftParser Specifiers.swift
[134/160] Compiling SwiftParser Statements.swift
[135/160] Compiling SwiftParser ExperimentalFeatures.swift
[136/160] Compiling SwiftParser Expressions.swift
[137/160] Compiling SwiftParser IncrementalParseTransition.swift
[138/160] Compiling SwiftParser Cursor.swift
[139/160] Compiling SwiftParser Lexeme.swift
[140/160] Compiling SwiftParser LexemeSequence.swift
[141/160] Compiling SwiftParser Types.swift
[142/160] Compiling SwiftParser IsLexerClassified.swift
[143/160] Compiling SwiftParser LayoutNodes+Parsable.swift
[144/160] Compiling SwiftParser Parser+TokenSpecSet.swift
[145/160] Compiling SwiftParser TokenSpecStaticMembers.swift
[146/161] Wrapping AST for SwiftParser for debugging
[148/184] Compiling SwiftOperators OperatorTable.swift
[149/185] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
[150/186] Compiling SwiftOperators PrecedenceGraph.swift
[151/186] Compiling SwiftOperators PrecedenceGroup.swift
[152/186] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
[153/186] Compiling SwiftOperators SyntaxSynthesis.swift
[154/186] Compiling SwiftOperators OperatorTable+Semantics.swift
[155/186] Compiling SwiftOperators OperatorError.swift
[156/186] Compiling SwiftOperators OperatorTable+Defaults.swift
[157/186] Emitting module SwiftOperators
[158/186] Compiling SwiftOperators Operator.swift
[159/186] Compiling SwiftOperators OperatorError+Diagnostics.swift
[160/186] Compiling SwiftOperators OperatorTable+Folding.swift
[161/187] Wrapping AST for SwiftOperators for debugging
[163/187] Compiling SwiftParserDiagnostics SyntaxExtensions.swift
[164/187] Compiling SwiftParserDiagnostics Utils.swift
[165/187] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
[166/187] Compiling SwiftParserDiagnostics ParserDiagnosticMessages.swift
[167/187] Compiling SwiftParserDiagnostics PresenceUtils.swift
[168/187] Emitting module SwiftParserDiagnostics
[173/187] Compiling SwiftParserDiagnostics MultiLineStringLiteralDiagnosticsGenerator.swift
[174/187] Compiling SwiftParserDiagnostics ParseDiagnosticsGenerator.swift
[175/188] Wrapping AST for SwiftParserDiagnostics for debugging
[177/202] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.swift
[178/202] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
[179/202] Compiling SwiftSyntaxBuilder Indenter.swift
[180/202] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
[181/202] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
[182/202] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
[183/202] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
[184/202] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
[185/202] Emitting module SwiftSyntaxBuilder
[186/202] Compiling SwiftSyntaxBuilder BuildableNodes.swift
[187/202] Compiling SwiftSyntaxBuilder RenamedChildrenBuilderCompatibility.swift
[188/202] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
[189/202] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
[190/203] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
[191/203] Compiling SwiftSyntaxBuilder ResultBuilders.swift
[192/204] Wrapping AST for SwiftSyntaxBuilder for debugging
[194/218] Compiling SwiftSyntaxMacros CodeItemMacro.swift
[195/218] Compiling SwiftSyntaxMacros DeclarationMacro.swift
[196/218] Compiling SwiftSyntaxMacros ExpressionMacro.swift
[197/218] Compiling SwiftSyntaxMacros ExtensionMacro.swift
[198/219] Compiling SwiftSyntaxMacros FreestandingMacro.swift
[199/219] Compiling SwiftSyntaxMacros Macro+Format.swift
[200/219] Compiling SwiftSyntaxMacros Macro.swift
[201/219] Compiling SwiftSyntaxMacros MemberAttributeMacro.swift
[202/219] Compiling SwiftSyntaxMacros MemberMacro.swift
[203/219] Compiling SwiftSyntaxMacros AccessorMacro.swift
[204/219] Compiling SwiftSyntaxMacros AttachedMacro.swift
[205/219] Compiling SwiftSyntaxMacros PeerMacro.swift
[206/219] Emitting module SwiftSyntaxMacros
[207/219] Compiling SwiftSyntaxMacros AbstractSourceLocation.swift
[208/219] Compiling SwiftSyntaxMacros MacroExpansionContext.swift
[209/220] Wrapping AST for SwiftSyntaxMacros for debugging
[211/228] Compiling SwiftSyntaxMacroExpansion FunctionParameterUtils.swift
[212/228] Compiling SwiftSyntaxMacroExpansion IndentationUtils.swift
[213/228] Compiling SwiftSyntaxMacroExpansion MacroExpansion.swift
[214/228] Compiling SwiftSyntaxMacroExpansion BasicMacroExpansionContext.swift
[215/228] Emitting module SwiftSyntaxMacroExpansion
[216/228] Compiling SwiftSyntaxMacroExpansion MacroSystem.swift
[217/228] Compiling SwiftSyntaxMacroExpansion MacroReplacement.swift
[218/228] Compiling SwiftSyntaxMacroExpansion MacroExpansionDiagnosticMessages.swift
[219/229] Wrapping AST for SwiftSyntaxMacroExpansion for debugging
[221/236] Compiling SwiftCompilerPluginMessageHandling Macros.swift
[222/236] Compiling SwiftCompilerPluginMessageHandling Diagnostics.swift
[223/236] Compiling SwiftCompilerPluginMessageHandling PluginMacroExpansionContext.swift
[224/236] Compiling SwiftCompilerPluginMessageHandling CompilerPluginMessageHandler.swift
[225/236] Compiling SwiftCompilerPluginMessageHandling PluginMessageCompatibility.swift
[226/236] Compiling SwiftCompilerPluginMessageHandling PluginMessages.swift
[227/236] Emitting module SwiftCompilerPluginMessageHandling
[228/237] Wrapping AST for SwiftCompilerPluginMessageHandling for debugging
[230/239] Emitting module SwiftCompilerPlugin
[231/239] Compiling SwiftCompilerPlugin CompilerPlugin.swift
[232/240] Wrapping AST for SwiftCompilerPlugin for debugging
[234/247] Compiling DTOMacrosImpl SyntaxNodeComparator.swift
[235/247] Compiling DTOMacrosImpl SyntaxUtils.swift
/host/spi-builder-workspace/Sources/DTOMacrosImpl/Tools/SyntaxUtils.swift:35:37: error: cannot use optional chaining on non-optional value of type 'AttributeListSyntax'
33 |     internal static func get(attributeNamed name: String, in structDecl: StructDeclSyntax?) -> AttributeSyntax? {
34 |         guard let structDecl else {return nil}
35 |         return structDecl.attributes?.filter({filter(attributeNamed: name, element: $0)}).first?.as(AttributeSyntax.self)
   |                                     `- error: cannot use optional chaining on non-optional value of type 'AttributeListSyntax'
36 |     }
37 |
/host/spi-builder-workspace/Sources/DTOMacrosImpl/Tools/SyntaxUtils.swift:40:34: error: cannot use optional chaining on non-optional value of type 'AttributeListSyntax'
38 |     internal static func get(attributeNamed name: String, in varDecl: VariableDeclSyntax?) -> AttributeSyntax? {
39 |         guard let varDecl else {return nil}
40 |         return varDecl.attributes?.filter({filter(attributeNamed: name, element: $0)}).first?.as(AttributeSyntax.self)
   |                                  `- error: cannot use optional chaining on non-optional value of type 'AttributeListSyntax'
41 |     }
42 |     internal static func has(attributeNamed name:String , in varDecl: VariableDeclSyntax?) -> Bool {
/host/spi-builder-workspace/Sources/DTOMacrosImpl/Tools/SyntaxUtils.swift:44:36: error: cannot use optional chaining on non-optional value of type 'AttributeListSyntax'
42 |     internal static func has(attributeNamed name:String , in varDecl: VariableDeclSyntax?) -> Bool {
43 |         guard let varDecl else {return false}
44 |         return !(varDecl.attributes?.filter{filter(attributeNamed: name, element: $0)}.isEmpty ?? true)
   |                                    `- error: cannot use optional chaining on non-optional value of type 'AttributeListSyntax'
45 |     }
46 |
[236/247] Compiling DTOMacrosImpl DiagnosticBuilder.swift
[237/247] Compiling DTOMacrosImpl SyntaxCreator.swift
/host/spi-builder-workspace/Sources/DTOMacrosImpl/DTOMacroImpl.swift:39:23: warning: static property 'DTO' is not concurrency-safe because non-'Sendable' type 'TokenSyntax' may have shared mutable state; this is an error in the Swift 6 language mode
 37 |
 38 | public enum DTOTokenSyntax {
 39 |     public static let DTO = TokenSyntax("DTO")
    |                       `- warning: static property 'DTO' is not concurrency-safe because non-'Sendable' type 'TokenSyntax' may have shared mutable state; this is an error in the Swift 6 language mode
 40 | }
 41 |
/host/spi-builder-workspace/.build/checkouts/swift-syntax/Sources/SwiftSyntax/TokenSyntax.swift:23:15: note: struct 'TokenSyntax' does not conform to the 'Sendable' protocol
 21 | /// token contents, the token’s `text` and trailing ``Trivia`` after the token’s
 22 | /// content.
 23 | public struct TokenSyntax: SyntaxProtocol, SyntaxHashable {
    |               `- note: struct 'TokenSyntax' does not conform to the 'Sendable' protocol
 24 |   /// The ``Syntax`` node that provides the underlying data.
 25 |   ///
/host/spi-builder-workspace/Sources/DTOMacrosImpl/DTOMacroImpl.swift:25:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SwiftSyntax'
 23 | import SwiftDiagnostics
 24 | import SwiftCompilerPlugin
 25 | import SwiftSyntax
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SwiftSyntax'
 26 | import SwiftSyntaxBuilder
 27 | import SwiftSyntaxMacros
    :
 37 |
 38 | public enum DTOTokenSyntax {
 39 |     public static let DTO = TokenSyntax("DTO")
    |                       |- note: annotate 'DTO' 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
 40 | }
 41 |
/host/spi-builder-workspace/Sources/DTOMacrosImpl/Tools/SyntaxCreator.swift:74:27: error: value of optional type 'DeclModifierListSyntax?' must be unwrapped to a value of type 'DeclModifierListSyntax'
 72 |     internal static func createInitMethod(accessor: Keyword, parameters: [FunctionParameterSyntax], statements: [CodeBlockItemSyntax]) -> MemberBlockItemSyntax {
 73 |         MemberBlockItemSyntax(decl: InitializerDeclSyntax(
 74 |             modifiers: SC.createAccessor(accessor),
    |                           |- error: value of optional type 'DeclModifierListSyntax?' must be unwrapped to a value of type 'DeclModifierListSyntax'
    |                           |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
    |                           `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
 75 |             signature: SC.createInitSignature(with: parameters),
 76 |             body: CodeBlockSyntax(statements: CodeBlockItemListSyntax(statements))
/host/spi-builder-workspace/Sources/DTOMacrosImpl/Tools/SyntaxCreator.swift:105:42: error: value of optional type 'DeclModifierListSyntax?' must be unwrapped to a value of type 'DeclModifierListSyntax'
103 |
104 |     internal static func createVariableDecl(accessor: Keyword, isVar:Bool = false, name:String, type:TypeAnnotationSyntax, value:ExprSyntaxProtocol? = nil) -> VariableDeclSyntax {
105 |         VariableDeclSyntax(modifiers: SC.createAccessor(accessor), isVar ? .var : .let, name: PatternSyntax(stringLiteral: name), type: type, initializer: value.map{InitializerClauseSyntax(value: $0)})
    |                                          |- error: value of optional type 'DeclModifierListSyntax?' must be unwrapped to a value of type 'DeclModifierListSyntax'
    |                                          |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
    |                                          `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
106 |     }
107 |
/host/spi-builder-workspace/Sources/DTOMacrosImpl/Tools/SyntaxCreator.swift:110:42: error: value of optional type 'DeclModifierListSyntax?' must be unwrapped to a value of type 'DeclModifierListSyntax'
108 |     internal static func createVariableDecl(accessors: [Keyword], isVar:Bool = false, name:String, type:TypeAnnotationSyntax, value:ExprSyntaxProtocol? = nil) -> VariableDeclSyntax {
109 |
110 |         VariableDeclSyntax(modifiers: SC.createAccessors(accessors), isVar ? .var : .let, name: PatternSyntax(stringLiteral: name), type: type, initializer: value.map{InitializerClauseSyntax(value: $0)})
    |                                          |- error: value of optional type 'DeclModifierListSyntax?' must be unwrapped to a value of type 'DeclModifierListSyntax'
    |                                          |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
    |                                          `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
111 |     }
112 |
/host/spi-builder-workspace/Sources/DTOMacrosImpl/Tools/SyntaxCreator.swift:115:27: error: value of optional type 'DeclModifierListSyntax?' must be unwrapped to a value of type 'DeclModifierListSyntax'
113 |     internal static func createStruct(accessor: Keyword, typeName:String, members: MemberBlockItemListSyntax, types:[String] = []) -> MemberBlockItemSyntax{
114 |         MemberBlockItemSyntax(decl: StructDeclSyntax(
115 |             modifiers: SC.createAccessor(accessor),
    |                           |- error: value of optional type 'DeclModifierListSyntax?' must be unwrapped to a value of type 'DeclModifierListSyntax'
    |                           |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
    |                           `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
116 |             name: "\(raw: typeName)",
117 |             inheritanceClause: SC.createInheritanceClause(types: types) ,
[238/247] Compiling DTOMacrosImpl DTODiagnostic.swift
/host/spi-builder-workspace/Sources/DTOMacrosImpl/DTODiagnostic.swift:46:23: warning: static property 'obj' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
44 |     public var severity: DiagnosticSeverity {return .error}
45 |
46 |     public static var obj:String = ""
   |                       |- warning: static property 'obj' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'obj' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'obj' 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
47 |
48 |     public var message: String {
[239/247] Compiling DTOMacrosImpl DTOMacroImpl.swift
/host/spi-builder-workspace/Sources/DTOMacrosImpl/DTOMacroImpl.swift:29:5: warning: let 'DefaultAccessor' is not concurrency-safe because non-'Sendable' type 'Keyword' may have shared mutable state; this is an error in the Swift 6 language mode
 27 | import SwiftSyntaxMacros
 28 |
 29 | let DefaultAccessor : Keyword = .public
    |     `- warning: let 'DefaultAccessor' is not concurrency-safe because non-'Sendable' type 'Keyword' may have shared mutable state; this is an error in the Swift 6 language mode
 30 |
 31 | public enum MacroName {
/host/spi-builder-workspace/.build/checkouts/swift-syntax/Sources/SwiftSyntax/generated/Keyword.swift:15:13: note: enum 'Keyword' does not conform to the 'Sendable' protocol
 13 | //===----------------------------------------------------------------------===//
 14 |
 15 | public enum Keyword: UInt8, Hashable {
    |             `- note: enum 'Keyword' does not conform to the 'Sendable' protocol
 16 |   case __consuming
 17 |   case __owned
/host/spi-builder-workspace/Sources/DTOMacrosImpl/DTOMacroImpl.swift:25:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SwiftSyntax'
 23 | import SwiftDiagnostics
 24 | import SwiftCompilerPlugin
 25 | import SwiftSyntax
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SwiftSyntax'
 26 | import SwiftSyntaxBuilder
 27 | import SwiftSyntaxMacros
 28 |
 29 | let DefaultAccessor : Keyword = .public
    |     |- note: annotate 'DefaultAccessor' 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
 30 |
 31 | public enum MacroName {
/host/spi-builder-workspace/Sources/DTOMacrosImpl/DTOMacroImpl.swift:39:23: warning: static property 'DTO' is not concurrency-safe because non-'Sendable' type 'TokenSyntax' may have shared mutable state; this is an error in the Swift 6 language mode
 37 |
 38 | public enum DTOTokenSyntax {
 39 |     public static let DTO = TokenSyntax("DTO")
    |                       |- warning: static property 'DTO' is not concurrency-safe because non-'Sendable' type 'TokenSyntax' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'DTO' 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
 40 | }
 41 |
/host/spi-builder-workspace/.build/checkouts/swift-syntax/Sources/SwiftSyntax/TokenSyntax.swift:23:15: note: struct 'TokenSyntax' does not conform to the 'Sendable' protocol
 21 | /// token contents, the token’s `text` and trailing ``Trivia`` after the token’s
 22 | /// content.
 23 | public struct TokenSyntax: SyntaxProtocol, SyntaxHashable {
    |               `- note: struct 'TokenSyntax' does not conform to the 'Sendable' protocol
 24 |   /// The ``Syntax`` node that provides the underlying data.
 25 |   ///
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/DTOMacrosImpl/DTOMacroImpl.swift:176:24: warning: static property 'createConversionMethodCall' is not concurrency-safe because non-'Sendable' type '(ParsedVariableInfo) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
174 |     }
175 |
176 |     private static let createConversionMethodCall: (ParsedVariableInfo) -> String = { info in
    |                        |- warning: static property 'createConversionMethodCall' is not concurrency-safe because non-'Sendable' type '(ParsedVariableInfo) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate 'createConversionMethodCall' 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
177 |         let processorMethodName = "DTOConversionProcessor.\(info.dtoName)"
178 |         let parameter = "dto.\(info.dtoName)"
[240/247] Emitting module DTOMacrosImpl
/host/spi-builder-workspace/Sources/DTOMacrosImpl/DTODiagnostic.swift:46:23: warning: static property 'obj' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
44 |     public var severity: DiagnosticSeverity {return .error}
45 |
46 |     public static var obj:String = ""
   |                       |- warning: static property 'obj' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'obj' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'obj' 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
47 |
48 |     public var message: String {
/host/spi-builder-workspace/Sources/DTOMacrosImpl/DTOMacroImpl.swift:29:5: warning: let 'DefaultAccessor' is not concurrency-safe because non-'Sendable' type 'Keyword' may have shared mutable state; this is an error in the Swift 6 language mode
 27 | import SwiftSyntaxMacros
 28 |
 29 | let DefaultAccessor : Keyword = .public
    |     `- warning: let 'DefaultAccessor' is not concurrency-safe because non-'Sendable' type 'Keyword' may have shared mutable state; this is an error in the Swift 6 language mode
 30 |
 31 | public enum MacroName {
/host/spi-builder-workspace/.build/checkouts/swift-syntax/Sources/SwiftSyntax/generated/Keyword.swift:15:13: note: enum 'Keyword' does not conform to the 'Sendable' protocol
 13 | //===----------------------------------------------------------------------===//
 14 |
 15 | public enum Keyword: UInt8, Hashable {
    |             `- note: enum 'Keyword' does not conform to the 'Sendable' protocol
 16 |   case __consuming
 17 |   case __owned
/host/spi-builder-workspace/Sources/DTOMacrosImpl/DTOMacroImpl.swift:25:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SwiftSyntax'
 23 | import SwiftDiagnostics
 24 | import SwiftCompilerPlugin
 25 | import SwiftSyntax
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SwiftSyntax'
 26 | import SwiftSyntaxBuilder
 27 | import SwiftSyntaxMacros
 28 |
 29 | let DefaultAccessor : Keyword = .public
    |     |- note: annotate 'DefaultAccessor' 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
 30 |
 31 | public enum MacroName {
/host/spi-builder-workspace/Sources/DTOMacrosImpl/DTOMacroImpl.swift:39:23: warning: static property 'DTO' is not concurrency-safe because non-'Sendable' type 'TokenSyntax' may have shared mutable state; this is an error in the Swift 6 language mode
 37 |
 38 | public enum DTOTokenSyntax {
 39 |     public static let DTO = TokenSyntax("DTO")
    |                       |- warning: static property 'DTO' is not concurrency-safe because non-'Sendable' type 'TokenSyntax' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'DTO' 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
 40 | }
 41 |
/host/spi-builder-workspace/.build/checkouts/swift-syntax/Sources/SwiftSyntax/TokenSyntax.swift:23:15: note: struct 'TokenSyntax' does not conform to the 'Sendable' protocol
 21 | /// token contents, the token’s `text` and trailing ``Trivia`` after the token’s
 22 | /// content.
 23 | public struct TokenSyntax: SyntaxProtocol, SyntaxHashable {
    |               `- note: struct 'TokenSyntax' does not conform to the 'Sendable' protocol
 24 |   /// The ``Syntax`` node that provides the underlying data.
 25 |   ///
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/DTOMacrosImpl/DTOMacroImpl.swift:176:24: warning: static property 'createConversionMethodCall' is not concurrency-safe because non-'Sendable' type '(ParsedVariableInfo) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
174 |     }
175 |
176 |     private static let createConversionMethodCall: (ParsedVariableInfo) -> String = { info in
    |                        |- warning: static property 'createConversionMethodCall' is not concurrency-safe because non-'Sendable' type '(ParsedVariableInfo) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate 'createConversionMethodCall' 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
177 |         let processorMethodName = "DTOConversionProcessor.\(info.dtoName)"
178 |         let parameter = "dto.\(info.dtoName)"
BUILD FAILURE 6.0 linux