The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build SwiftRequest, reference main (280747), with Swift 6.1 for Linux on 27 Apr 2025 14:35:58 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ailtonvivaz/swift-request.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/ailtonvivaz/swift-request
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 2807472 Merge pull request #1 from ailtonvivaz/service-executor
Cloned https://github.com/ailtonvivaz/swift-request.git
Revision (git rev-parse @):
280747298268344b79ac53809ffea3269fe5b614
SUCCESS checkout https://github.com/ailtonvivaz/swift-request.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/ailtonvivaz/swift-request.git
https://github.com/ailtonvivaz/swift-request.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-syntax",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "509.0.0-swift-5.9-DEVELOPMENT-SNAPSHOT-2023-04-25-b",
            "upper_bound" : "510.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-syntax.git"
    }
  ],
  "manifest_display_name" : "SwiftRequest",
  "name" : "SwiftRequest",
  "path" : "/host/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" : "SwiftRequest",
      "targets" : [
        "SwiftRequest"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "SwiftRequestMacros",
      "targets" : [
        "SwiftRequestMacros"
      ],
      "type" : {
        "macro" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftRequestTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftRequestTests",
      "path" : "Tests/SwiftRequestTests",
      "product_dependencies" : [
        "SwiftSyntaxMacrosTestSupport"
      ],
      "sources" : [
        "MethodMacroTests.swift",
        "ServiceTests.swift"
      ],
      "target_dependencies" : [
        "SwiftRequestMacros"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftRequestMacros",
      "module_type" : "SwiftTarget",
      "name" : "SwiftRequestMacros",
      "path" : "Sources/SwiftRequestMacros",
      "product_dependencies" : [
        "SwiftSyntaxMacros",
        "SwiftCompilerPlugin"
      ],
      "product_memberships" : [
        "SwiftRequest",
        "SwiftRequestMacros"
      ],
      "sources" : [
        "Diagnostics.swift",
        "FunctionParameter.swift",
        "MethodDiagnostics.swift",
        "MethodMacro.swift",
        "ParamMacro.swift",
        "RequestDiagnostics.swift",
        "ServiceDiagnostics.swift",
        "ServiceMacro.swift",
        "ServiceMethodExpander.swift",
        "SimpleDiagnosticMessage.swift",
        "SwiftRequestPlugin.swift"
      ],
      "type" : "macro"
    },
    {
      "c99name" : "SwiftRequest",
      "module_type" : "SwiftTarget",
      "name" : "SwiftRequest",
      "path" : "Sources/SwiftRequest",
      "product_memberships" : [
        "SwiftRequest"
      ],
      "sources" : [
        "HTTPResponseError.swift",
        "Macros/MethodMacros.swift",
        "Macros/ParamMacros.swift",
        "Macros/ServiceMacros.swift",
        "Request+toURLRequest.swift",
        "Request.swift",
        "Service.swift",
        "ServiceContainer.swift",
        "ServiceExecutor.swift",
        "URLSessionServiceExecutor.swift"
      ],
      "target_dependencies" : [
        "SwiftRequestMacros"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -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
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/apple/swift-syntax.git
[1/70233] Fetching swift-syntax
Fetched https://github.com/apple/swift-syntax.git from cache (4.53s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 509.1.1 (7.07s)
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/30] Write sources
[14/30] Write swift-version-24593BA9C3E375BF.txt
[16/32] Emitting module SwiftSyntax509
[17/32] Compiling SwiftSyntax509 Empty.swift
[18/33] Wrapping AST for SwiftSyntax509 for debugging
[20/78] Compiling SwiftSyntax AbsolutePosition.swift
[21/78] Compiling SwiftSyntax Assert.swift
[22/78] Compiling SwiftSyntax BumpPtrAllocator.swift
[23/78] Compiling SwiftSyntax CommonAncestor.swift
[24/78] Compiling SwiftSyntax Convenience.swift
[25/78] Compiling SwiftSyntax MemoryLayout.swift
[26/78] Compiling SwiftSyntax MissingNodeInitializers.swift
[27/84] Compiling SwiftSyntax RawSyntax.swift
[28/84] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[29/84] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[30/84] Compiling SwiftSyntax RawSyntaxTokenView.swift
[31/84] Compiling SwiftSyntax SourceLength.swift
[32/84] Compiling SwiftSyntax SourceLocation.swift
[33/84] Compiling SwiftSyntax SourcePresence.swift
[34/84] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[35/84] Compiling SwiftSyntax Syntax.swift
[36/84] Compiling SwiftSyntax SyntaxArena.swift
[37/84] Compiling SwiftSyntax SyntaxChildren.swift
[38/84] Compiling SwiftSyntax SyntaxCollection.swift
[39/84] Compiling SwiftSyntax SyntaxData.swift
[40/84] Emitting module SwiftSyntax
[41/84] Compiling SwiftSyntax SyntaxDeclNodes.swift
[42/84] Compiling SwiftSyntax SyntaxExprNodes.swift
[43/84] Compiling SwiftSyntax SyntaxNodes.swift
[44/84] Compiling SwiftSyntax SyntaxPatternNodes.swift
[45/84] Compiling SwiftSyntax SyntaxStmtNodes.swift
[46/84] Compiling SwiftSyntax SyntaxTypeNodes.swift
[47/84] Compiling SwiftSyntax SyntaxText.swift
[48/84] Compiling SwiftSyntax SyntaxTreeViewMode.swift
[49/84] Compiling SwiftSyntax TokenDiagnostic.swift
[50/84] Compiling SwiftSyntax TokenSyntax.swift
[51/84] Compiling SwiftSyntax Trivia.swift
[52/84] Compiling SwiftSyntax Utils.swift
[53/84] Compiling SwiftSyntax SyntaxCollections.swift
[54/84] Compiling SwiftSyntax SyntaxEnum.swift
[55/84] Compiling SwiftSyntax SyntaxKind.swift
[56/84] Compiling SwiftSyntax SyntaxRewriter.swift
[57/84] Compiling SwiftSyntax SyntaxTraits.swift
[58/84] Compiling SwiftSyntax SyntaxTransform.swift
[59/84] Compiling SwiftSyntax ChildNameForKeyPath.swift
[60/84] Compiling SwiftSyntax Keyword.swift
[61/84] Compiling SwiftSyntax RenamedChildrenCompatibility.swift
[62/84] Compiling SwiftSyntax RenamedNodesCompatibility.swift
[63/84] Compiling SwiftSyntax SyntaxAnyVisitor.swift
[64/84] Compiling SwiftSyntax SyntaxBaseNodes.swift
[65/84] Compiling SwiftSyntax SyntaxVisitor.swift
[66/84] Compiling SwiftSyntax TokenKind.swift
[67/84] Compiling SwiftSyntax Tokens.swift
[68/84] Compiling SwiftSyntax TriviaPieces.swift
[69/84] Compiling SwiftSyntax RawSyntaxNodes.swift
[70/84] Compiling SwiftSyntax RawSyntaxValidation.swift
[71/85] Wrapping AST for SwiftSyntax for debugging
[73/136] Compiling SwiftBasicFormat SyntaxProtocol+Formatted.swift
[74/136] Compiling SwiftDiagnostics Note.swift
[75/136] Emitting module SwiftDiagnostics
[76/136] Compiling SwiftBasicFormat Trivia+FormatExtensions.swift
[77/136] Compiling SwiftDiagnostics DiagnosticsFormatter.swift
[78/136] Compiling SwiftDiagnostics Message.swift
[79/136] Compiling SwiftDiagnostics Diagnostic.swift
[80/136] Compiling SwiftDiagnostics Convenience.swift
[81/136] Compiling SwiftDiagnostics FixIt.swift
[82/136] Compiling SwiftDiagnostics GroupedDiagnostics.swift
[83/137] Wrapping AST for SwiftDiagnostics for debugging
[85/137] Emitting module SwiftBasicFormat
[86/137] Compiling SwiftBasicFormat BasicFormat.swift
[87/137] Compiling SwiftBasicFormat Syntax+Extensions.swift
[88/138] Wrapping AST for SwiftBasicFormat for debugging
[90/138] Compiling SwiftParser StringLiteralRepresentedLiteralValue.swift
[91/138] Compiling SwiftParser StringLiterals.swift
[92/138] Compiling SwiftParser SwiftParserCompatibility.swift
[93/138] Compiling SwiftParser SyntaxUtils.swift
[94/138] Compiling SwiftParser TokenConsumer.swift
[95/138] Compiling SwiftParser TokenPrecedence.swift
[96/138] Compiling SwiftParser TokenSpec.swift
[97/138] Compiling SwiftParser TokenSpecSet.swift
[98/138] Compiling SwiftParser TopLevel.swift
[99/138] Compiling SwiftParser TriviaParser.swift
[100/143] Compiling SwiftParser Modifiers.swift
[101/143] Compiling SwiftParser Names.swift
[102/143] Compiling SwiftParser Nominals.swift
[103/143] Compiling SwiftParser Parameters.swift
[104/143] Compiling SwiftParser ParseSourceFile.swift
[105/143] Compiling SwiftParser Lexer.swift
[106/143] Compiling SwiftParser RegexLiteralLexer.swift
[107/143] Compiling SwiftParser UnicodeScalarExtensions.swift
[108/143] Compiling SwiftParser Lookahead.swift
[109/143] Compiling SwiftParser LoopProgressCondition.swift
[110/143] Compiling SwiftParser Parser.swift
[111/143] Compiling SwiftParser Patterns.swift
[112/143] Compiling SwiftParser Recovery.swift
[113/143] Compiling SwiftParser Specifiers.swift
[114/143] Compiling SwiftParser Statements.swift
[115/143] Compiling SwiftParser Attributes.swift
[116/143] Compiling SwiftParser Availability.swift
[117/143] Compiling SwiftParser CharacterInfo.swift
[118/143] Compiling SwiftParser CollectionNodes+Parsable.swift
[119/143] Compiling SwiftParser Declarations.swift
[120/143] Compiling SwiftParser Directives.swift
[121/143] Compiling SwiftParser ExperimentalFeatures.swift
[122/143] Compiling SwiftParser Expressions.swift
[123/143] Compiling SwiftParser IncrementalParseTransition.swift
[124/143] Compiling SwiftParser Cursor.swift
[125/143] Compiling SwiftParser Lexeme.swift
[126/143] Compiling SwiftParser LexemeSequence.swift
[127/143] Emitting module SwiftParser
[128/143] Compiling SwiftParser Types.swift
[129/143] Compiling SwiftParser IsLexerClassified.swift
[130/143] Compiling SwiftParser LayoutNodes+Parsable.swift
[131/143] Compiling SwiftParser Parser+TokenSpecSet.swift
[132/143] Compiling SwiftParser TokenSpecStaticMembers.swift
[133/157] Wrapping AST for SwiftParser for debugging
[135/167] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
[136/168] Compiling SwiftOperators Operator.swift
[137/168] Compiling SwiftOperators OperatorError+Diagnostics.swift
[138/168] Compiling SwiftOperators OperatorError.swift
[139/168] Compiling SwiftOperators OperatorTable+Defaults.swift
[140/169] Compiling SwiftOperators PrecedenceGroup.swift
[141/169] Compiling SwiftOperators OperatorTable.swift
[142/169] Compiling SwiftOperators PrecedenceGraph.swift
[143/169] Emitting module SwiftOperators
[144/169] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
[145/169] Compiling SwiftOperators OperatorTable+Semantics.swift
[146/169] Compiling SwiftOperators SyntaxSynthesis.swift
[147/169] Compiling SwiftOperators OperatorTable+Folding.swift
[148/170] Compiling SwiftParserDiagnostics SyntaxExtensions.swift
[149/170] Compiling SwiftParserDiagnostics Utils.swift
[150/170] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
[151/170] Wrapping AST for SwiftOperators for debugging
[153/170] Compiling SwiftParserDiagnostics ParserDiagnosticMessages.swift
[154/170] Compiling SwiftParserDiagnostics PresenceUtils.swift
[157/170] Emitting module SwiftParserDiagnostics
[160/170] Compiling SwiftParserDiagnostics MultiLineStringLiteralDiagnosticsGenerator.swift
[161/170] Compiling SwiftParserDiagnostics ParseDiagnosticsGenerator.swift
[162/171] Wrapping AST for SwiftParserDiagnostics for debugging
[164/185] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.swift
[165/185] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
[166/186] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
[167/186] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
[168/186] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
[169/186] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
[170/186] Compiling SwiftSyntaxBuilder Indenter.swift
[171/186] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
[172/186] Emitting module SwiftSyntaxBuilder
[173/186] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
[174/186] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
[175/186] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
[176/186] Compiling SwiftSyntaxBuilder ResultBuilders.swift
[177/186] Compiling SwiftSyntaxBuilder BuildableNodes.swift
[178/186] Compiling SwiftSyntaxBuilder RenamedChildrenBuilderCompatibility.swift
[179/187] Wrapping AST for SwiftSyntaxBuilder for debugging
[181/201] Compiling SwiftSyntaxMacros Macro.swift
[182/201] Compiling SwiftSyntaxMacros MemberAttributeMacro.swift
[183/201] Compiling SwiftSyntaxMacros MemberMacro.swift
[184/202] Compiling SwiftSyntaxMacros FreestandingMacro.swift
[185/202] Compiling SwiftSyntaxMacros Macro+Format.swift
[186/202] Compiling SwiftSyntaxMacros CodeItemMacro.swift
[187/202] Compiling SwiftSyntaxMacros DeclarationMacro.swift
[188/202] Compiling SwiftSyntaxMacros AccessorMacro.swift
[189/202] Compiling SwiftSyntaxMacros AttachedMacro.swift
[190/202] Compiling SwiftSyntaxMacros ExpressionMacro.swift
[191/202] Compiling SwiftSyntaxMacros ExtensionMacro.swift
[192/202] Emitting module SwiftSyntaxMacros
[193/202] Compiling SwiftSyntaxMacros AbstractSourceLocation.swift
[194/202] Compiling SwiftSyntaxMacros MacroExpansionContext.swift
[195/202] Compiling SwiftSyntaxMacros PeerMacro.swift
[196/203] Wrapping AST for SwiftSyntaxMacros for debugging
[198/211] Compiling SwiftSyntaxMacroExpansion MacroExpansionDiagnosticMessages.swift
[199/211] Compiling SwiftSyntaxMacroExpansion IndentationUtils.swift
[200/211] Compiling SwiftSyntaxMacroExpansion MacroExpansion.swift
[201/211] Compiling SwiftSyntaxMacroExpansion FunctionParameterUtils.swift
[202/211] Compiling SwiftSyntaxMacroExpansion BasicMacroExpansionContext.swift
[203/211] Emitting module SwiftSyntaxMacroExpansion
[204/211] Compiling SwiftSyntaxMacroExpansion MacroReplacement.swift
[205/211] Compiling SwiftSyntaxMacroExpansion MacroSystem.swift
[206/212] Wrapping AST for SwiftSyntaxMacroExpansion for debugging
[208/219] Compiling SwiftCompilerPluginMessageHandling CompilerPluginMessageHandler.swift
[209/219] Emitting module SwiftCompilerPluginMessageHandling
[210/219] Compiling SwiftCompilerPluginMessageHandling Diagnostics.swift
[211/219] Compiling SwiftCompilerPluginMessageHandling PluginMessageCompatibility.swift
[212/219] Compiling SwiftCompilerPluginMessageHandling PluginMacroExpansionContext.swift
[213/219] Compiling SwiftCompilerPluginMessageHandling Macros.swift
[214/219] Compiling SwiftCompilerPluginMessageHandling PluginMessages.swift
[215/220] Wrapping AST for SwiftCompilerPluginMessageHandling for debugging
[217/222] Compiling SwiftCompilerPlugin CompilerPlugin.swift
[218/222] Emitting module SwiftCompilerPlugin
[219/223] Wrapping AST for SwiftCompilerPlugin for debugging
[221/234] Compiling SwiftRequestMacros ServiceDiagnostics.swift
[222/234] Compiling SwiftRequestMacros ServiceMacro.swift
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMacro.swift:21:29: warning: 'argument' is deprecated: renamed to 'arguments'
19 |         }
20 |
21 |         let resource = node.argument?.as(TupleExprElementListSyntax.self)?.first?.as(TupleExprElementSyntax.self)?.expression
   |                             |- warning: 'argument' is deprecated: renamed to 'arguments'
   |                             `- note: use 'arguments' instead
22 |
23 |         let declarations = protocolDecl.memberBlock.members
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMacro.swift:21:42: warning: 'TupleExprElementListSyntax' is deprecated: renamed to 'LabeledExprListSyntax'
19 |         }
20 |
21 |         let resource = node.argument?.as(TupleExprElementListSyntax.self)?.first?.as(TupleExprElementSyntax.self)?.expression
   |                                          |- warning: 'TupleExprElementListSyntax' is deprecated: renamed to 'LabeledExprListSyntax'
   |                                          `- note: use 'LabeledExprListSyntax' instead
22 |
23 |         let declarations = protocolDecl.memberBlock.members
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMacro.swift:21:86: warning: 'TupleExprElementSyntax' is deprecated: renamed to 'LabeledExprSyntax'
19 |         }
20 |
21 |         let resource = node.argument?.as(TupleExprElementListSyntax.self)?.first?.as(TupleExprElementSyntax.self)?.expression
   |                                                                                      |- warning: 'TupleExprElementSyntax' is deprecated: renamed to 'LabeledExprSyntax'
   |                                                                                      `- note: use 'LabeledExprSyntax' instead
22 |
23 |         let declarations = protocolDecl.memberBlock.members
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMacro.swift:50:50: error: cannot use optional chaining on non-optional value of type 'AttributeListSyntax'
48 |     ) -> FunctionDeclSyntax? {
49 |         // TODO: require method
50 |         guard let method = declaration.attributes?.first?.as(AttributeSyntax.self)?.attributeName.description else {
   |                                                  `- error: cannot use optional chaining on non-optional value of type 'AttributeListSyntax'
51 |             context.diagnose(diagnostics.methodRequired(node: declaration))
52 |             return nil
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMacro.swift:71:29: warning: 'identifier' is deprecated: renamed to 'name'
69 |         }
70 |
71 |         return protocolDecl.identifier.text
   |                             |- warning: 'identifier' is deprecated: renamed to 'name'
   |                             `- note: use 'name' instead
72 |     }
73 | }
[223/235] Compiling SwiftRequestMacros ParamMacro.swift
[224/235] Compiling SwiftRequestMacros RequestDiagnostics.swift
[225/235] Compiling SwiftRequestMacros MethodDiagnostics.swift
/host/spi-builder-workspace/Sources/SwiftRequestMacros/MethodMacro.swift:20:51: error: cannot use optional chaining on non-optional value of type 'DeclModifierListSyntax'
18 |         }
19 |
20 |         if let staticModifier = funcDecl.modifiers?.first(where: {
   |                                                   `- error: cannot use optional chaining on non-optional value of type 'DeclModifierListSyntax'
21 |             $0.name.tokenKind == TokenKind.keyword(.static)
22 |         })?.as(DeclModifierSyntax.self) {
/host/spi-builder-workspace/Sources/SwiftRequestMacros/MethodMacro.swift:33:51: warning: 'output' is deprecated: renamed to 'returnClause'
31 |         }
32 |
33 |         guard let returnType = funcDecl.signature.output?.returnType else {
   |                                                   |- warning: 'output' is deprecated: renamed to 'returnClause'
   |                                                   `- note: use 'returnClause' instead
34 |             context.diagnose(diagnostics.outputTypeRequired(node: funcDecl))
35 |             return []
/host/spi-builder-workspace/Sources/SwiftRequestMacros/MethodMacro.swift:33:59: warning: 'returnType' is deprecated: renamed to 'type'
31 |         }
32 |
33 |         guard let returnType = funcDecl.signature.output?.returnType else {
   |                                                           |- warning: 'returnType' is deprecated: renamed to 'type'
   |                                                           `- note: use 'type' instead
34 |             context.diagnose(diagnostics.outputTypeRequired(node: funcDecl))
35 |             return []
/host/spi-builder-workspace/Sources/SwiftRequestMacros/MethodMacro.swift:50:26: warning: 'SimpleTypeIdentifierSyntax' is deprecated: renamed to 'IdentifierTypeSyntax'
48 |         in context: some MacroExpansionContext
49 |     ) -> Bool {
50 |         if outputType.is(SimpleTypeIdentifierSyntax.self) {
   |                          |- warning: 'SimpleTypeIdentifierSyntax' is deprecated: renamed to 'IdentifierTypeSyntax'
   |                          `- note: use 'IdentifierTypeSyntax' instead
51 |             return true
52 |         }
/host/spi-builder-workspace/Sources/SwiftRequestMacros/MethodMacro.swift:55:51: warning: 'elementType' is deprecated: renamed to 'element'
53 |
54 |         if let arrayType = outputType.as(ArrayTypeSyntax.self) {
55 |             return validate(outputType: arrayType.elementType, in: context)
   |                                                   |- warning: 'elementType' is deprecated: renamed to 'element'
   |                                                   `- note: use 'element' instead
56 |         }
57 |
[226/235] Compiling SwiftRequestMacros MethodMacro.swift
/host/spi-builder-workspace/Sources/SwiftRequestMacros/MethodMacro.swift:20:51: error: cannot use optional chaining on non-optional value of type 'DeclModifierListSyntax'
18 |         }
19 |
20 |         if let staticModifier = funcDecl.modifiers?.first(where: {
   |                                                   `- error: cannot use optional chaining on non-optional value of type 'DeclModifierListSyntax'
21 |             $0.name.tokenKind == TokenKind.keyword(.static)
22 |         })?.as(DeclModifierSyntax.self) {
/host/spi-builder-workspace/Sources/SwiftRequestMacros/MethodMacro.swift:33:51: warning: 'output' is deprecated: renamed to 'returnClause'
31 |         }
32 |
33 |         guard let returnType = funcDecl.signature.output?.returnType else {
   |                                                   |- warning: 'output' is deprecated: renamed to 'returnClause'
   |                                                   `- note: use 'returnClause' instead
34 |             context.diagnose(diagnostics.outputTypeRequired(node: funcDecl))
35 |             return []
/host/spi-builder-workspace/Sources/SwiftRequestMacros/MethodMacro.swift:33:59: warning: 'returnType' is deprecated: renamed to 'type'
31 |         }
32 |
33 |         guard let returnType = funcDecl.signature.output?.returnType else {
   |                                                           |- warning: 'returnType' is deprecated: renamed to 'type'
   |                                                           `- note: use 'type' instead
34 |             context.diagnose(diagnostics.outputTypeRequired(node: funcDecl))
35 |             return []
/host/spi-builder-workspace/Sources/SwiftRequestMacros/MethodMacro.swift:50:26: warning: 'SimpleTypeIdentifierSyntax' is deprecated: renamed to 'IdentifierTypeSyntax'
48 |         in context: some MacroExpansionContext
49 |     ) -> Bool {
50 |         if outputType.is(SimpleTypeIdentifierSyntax.self) {
   |                          |- warning: 'SimpleTypeIdentifierSyntax' is deprecated: renamed to 'IdentifierTypeSyntax'
   |                          `- note: use 'IdentifierTypeSyntax' instead
51 |             return true
52 |         }
/host/spi-builder-workspace/Sources/SwiftRequestMacros/MethodMacro.swift:55:51: warning: 'elementType' is deprecated: renamed to 'element'
53 |
54 |         if let arrayType = outputType.as(ArrayTypeSyntax.self) {
55 |             return validate(outputType: arrayType.elementType, in: context)
   |                                                   |- warning: 'elementType' is deprecated: renamed to 'element'
   |                                                   `- note: use 'element' instead
56 |         }
57 |
[227/235] Emitting module SwiftRequestMacros
/host/spi-builder-workspace/Sources/SwiftRequestMacros/Diagnostics.swift:36:9: warning: stored property 'diagnosticID' of 'Sendable'-conforming struct 'CustomMessage' has non-sendable type 'MessageID'; this is an error in the Swift 6 language mode
34 | struct CustomMessage: DiagnosticMessage, Error {
35 |     let message: String
36 |     let diagnosticID: MessageID
   |         `- warning: stored property 'diagnosticID' of 'Sendable'-conforming struct 'CustomMessage' has non-sendable type 'MessageID'; this is an error in the Swift 6 language mode
37 |     let severity: DiagnosticSeverity
38 |
/host/spi-builder-workspace/.build/checkouts/swift-syntax/Sources/SwiftDiagnostics/Message.swift:19:15: note: struct 'MessageID' does not conform to the 'Sendable' protocol
17 | /// same wording. Eg. it’s possible that the message contains more context when
18 | /// available.
19 | public struct MessageID: Hashable {
   |               `- note: struct 'MessageID' does not conform to the 'Sendable' protocol
20 |   private let domain: String
21 |   private let id: String
/host/spi-builder-workspace/Sources/SwiftRequestMacros/Diagnostics.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SwiftDiagnostics'
 1 | import SwiftSyntax
 2 | import SwiftDiagnostics
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SwiftDiagnostics'
 3 |
 4 | protocol Diagnostics {
/host/spi-builder-workspace/Sources/SwiftRequestMacros/Diagnostics.swift:37:9: warning: stored property 'severity' of 'Sendable'-conforming struct 'CustomMessage' has non-sendable type 'DiagnosticSeverity'; this is an error in the Swift 6 language mode
35 |     let message: String
36 |     let diagnosticID: MessageID
37 |     let severity: DiagnosticSeverity
   |         `- warning: stored property 'severity' of 'Sendable'-conforming struct 'CustomMessage' has non-sendable type 'DiagnosticSeverity'; this is an error in the Swift 6 language mode
38 |
39 |     init(_ message: String, id: MessageID, severity: DiagnosticSeverity) {
/host/spi-builder-workspace/.build/checkouts/swift-syntax/Sources/SwiftDiagnostics/Message.swift:29:13: note: enum 'DiagnosticSeverity' does not conform to the 'Sendable' protocol
27 | }
28 |
29 | public enum DiagnosticSeverity {
   |             `- note: enum 'DiagnosticSeverity' does not conform to the 'Sendable' protocol
30 |   case error
31 |   case warning
/host/spi-builder-workspace/Sources/SwiftRequestMacros/FunctionParameter.swift:14:71: warning: 'TupleExprElementListSyntax' is deprecated: renamed to 'LabeledExprListSyntax'
12 |     }
13 |
14 |     static func getArguments(from syntax: FunctionParameterSyntax) -> TupleExprElementListSyntax? {
   |                                                                       |- warning: 'TupleExprElementListSyntax' is deprecated: renamed to 'LabeledExprListSyntax'
   |                                                                       `- note: use 'LabeledExprListSyntax' instead
15 |         return syntax.attributes?.first?.as(AttributeSyntax.self)?.argument?.as(TupleExprElementListSyntax.self)
16 |     }
/host/spi-builder-workspace/Sources/SwiftRequestMacros/SimpleDiagnosticMessage.swift:6:7: warning: stored property 'diagnosticID' of 'Sendable'-conforming struct 'SimpleDiagnosticMessage' has non-sendable type 'MessageID'; this is an error in the Swift 6 language mode
4 | struct SimpleDiagnosticMessage: DiagnosticMessage, Error {
5 |   let message: String
6 |   let diagnosticID: MessageID
  |       `- warning: stored property 'diagnosticID' of 'Sendable'-conforming struct 'SimpleDiagnosticMessage' has non-sendable type 'MessageID'; this is an error in the Swift 6 language mode
7 |   let severity: DiagnosticSeverity
8 | }
/host/spi-builder-workspace/.build/checkouts/swift-syntax/Sources/SwiftDiagnostics/Message.swift:19:15: note: struct 'MessageID' does not conform to the 'Sendable' protocol
17 | /// same wording. Eg. it’s possible that the message contains more context when
18 | /// available.
19 | public struct MessageID: Hashable {
   |               `- note: struct 'MessageID' does not conform to the 'Sendable' protocol
20 |   private let domain: String
21 |   private let id: String
/host/spi-builder-workspace/Sources/SwiftRequestMacros/SimpleDiagnosticMessage.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SwiftDiagnostics'
1 | import SwiftSyntax
2 | import SwiftDiagnostics
  | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SwiftDiagnostics'
3 |
4 | struct SimpleDiagnosticMessage: DiagnosticMessage, Error {
/host/spi-builder-workspace/Sources/SwiftRequestMacros/SimpleDiagnosticMessage.swift:7:7: warning: stored property 'severity' of 'Sendable'-conforming struct 'SimpleDiagnosticMessage' has non-sendable type 'DiagnosticSeverity'; this is an error in the Swift 6 language mode
5 |   let message: String
6 |   let diagnosticID: MessageID
7 |   let severity: DiagnosticSeverity
  |       `- warning: stored property 'severity' of 'Sendable'-conforming struct 'SimpleDiagnosticMessage' has non-sendable type 'DiagnosticSeverity'; this is an error in the Swift 6 language mode
8 | }
9 |
/host/spi-builder-workspace/.build/checkouts/swift-syntax/Sources/SwiftDiagnostics/Message.swift:29:13: note: enum 'DiagnosticSeverity' does not conform to the 'Sendable' protocol
27 | }
28 |
29 | public enum DiagnosticSeverity {
   |             `- note: enum 'DiagnosticSeverity' does not conform to the 'Sendable' protocol
30 |   case error
31 |   case warning
[228/235] Compiling SwiftRequestMacros Diagnostics.swift
/host/spi-builder-workspace/Sources/SwiftRequestMacros/Diagnostics.swift:36:9: warning: stored property 'diagnosticID' of 'Sendable'-conforming struct 'CustomMessage' has non-sendable type 'MessageID'; this is an error in the Swift 6 language mode
34 | struct CustomMessage: DiagnosticMessage, Error {
35 |     let message: String
36 |     let diagnosticID: MessageID
   |         `- warning: stored property 'diagnosticID' of 'Sendable'-conforming struct 'CustomMessage' has non-sendable type 'MessageID'; this is an error in the Swift 6 language mode
37 |     let severity: DiagnosticSeverity
38 |
/host/spi-builder-workspace/.build/checkouts/swift-syntax/Sources/SwiftDiagnostics/Message.swift:19:15: note: struct 'MessageID' does not conform to the 'Sendable' protocol
17 | /// same wording. Eg. it’s possible that the message contains more context when
18 | /// available.
19 | public struct MessageID: Hashable {
   |               `- note: struct 'MessageID' does not conform to the 'Sendable' protocol
20 |   private let domain: String
21 |   private let id: String
/host/spi-builder-workspace/Sources/SwiftRequestMacros/Diagnostics.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SwiftDiagnostics'
 1 | import SwiftSyntax
 2 | import SwiftDiagnostics
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SwiftDiagnostics'
 3 |
 4 | protocol Diagnostics {
/host/spi-builder-workspace/Sources/SwiftRequestMacros/Diagnostics.swift:37:9: warning: stored property 'severity' of 'Sendable'-conforming struct 'CustomMessage' has non-sendable type 'DiagnosticSeverity'; this is an error in the Swift 6 language mode
35 |     let message: String
36 |     let diagnosticID: MessageID
37 |     let severity: DiagnosticSeverity
   |         `- warning: stored property 'severity' of 'Sendable'-conforming struct 'CustomMessage' has non-sendable type 'DiagnosticSeverity'; this is an error in the Swift 6 language mode
38 |
39 |     init(_ message: String, id: MessageID, severity: DiagnosticSeverity) {
/host/spi-builder-workspace/.build/checkouts/swift-syntax/Sources/SwiftDiagnostics/Message.swift:29:13: note: enum 'DiagnosticSeverity' does not conform to the 'Sendable' protocol
27 | }
28 |
29 | public enum DiagnosticSeverity {
   |             `- note: enum 'DiagnosticSeverity' does not conform to the 'Sendable' protocol
30 |   case error
31 |   case warning
/host/spi-builder-workspace/Sources/SwiftRequestMacros/FunctionParameter.swift:14:71: warning: 'TupleExprElementListSyntax' is deprecated: renamed to 'LabeledExprListSyntax'
12 |     }
13 |
14 |     static func getArguments(from syntax: FunctionParameterSyntax) -> TupleExprElementListSyntax? {
   |                                                                       |- warning: 'TupleExprElementListSyntax' is deprecated: renamed to 'LabeledExprListSyntax'
   |                                                                       `- note: use 'LabeledExprListSyntax' instead
15 |         return syntax.attributes?.first?.as(AttributeSyntax.self)?.argument?.as(TupleExprElementListSyntax.self)
16 |     }
/host/spi-builder-workspace/Sources/SwiftRequestMacros/FunctionParameter.swift:15:33: error: cannot use optional chaining on non-optional value of type 'AttributeListSyntax'
13 |
14 |     static func getArguments(from syntax: FunctionParameterSyntax) -> TupleExprElementListSyntax? {
15 |         return syntax.attributes?.first?.as(AttributeSyntax.self)?.argument?.as(TupleExprElementListSyntax.self)
   |                                 `- error: cannot use optional chaining on non-optional value of type 'AttributeListSyntax'
16 |     }
17 | }
[229/235] Compiling SwiftRequestMacros FunctionParameter.swift
/host/spi-builder-workspace/Sources/SwiftRequestMacros/Diagnostics.swift:36:9: warning: stored property 'diagnosticID' of 'Sendable'-conforming struct 'CustomMessage' has non-sendable type 'MessageID'; this is an error in the Swift 6 language mode
34 | struct CustomMessage: DiagnosticMessage, Error {
35 |     let message: String
36 |     let diagnosticID: MessageID
   |         `- warning: stored property 'diagnosticID' of 'Sendable'-conforming struct 'CustomMessage' has non-sendable type 'MessageID'; this is an error in the Swift 6 language mode
37 |     let severity: DiagnosticSeverity
38 |
/host/spi-builder-workspace/.build/checkouts/swift-syntax/Sources/SwiftDiagnostics/Message.swift:19:15: note: struct 'MessageID' does not conform to the 'Sendable' protocol
17 | /// same wording. Eg. it’s possible that the message contains more context when
18 | /// available.
19 | public struct MessageID: Hashable {
   |               `- note: struct 'MessageID' does not conform to the 'Sendable' protocol
20 |   private let domain: String
21 |   private let id: String
/host/spi-builder-workspace/Sources/SwiftRequestMacros/Diagnostics.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SwiftDiagnostics'
 1 | import SwiftSyntax
 2 | import SwiftDiagnostics
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SwiftDiagnostics'
 3 |
 4 | protocol Diagnostics {
/host/spi-builder-workspace/Sources/SwiftRequestMacros/Diagnostics.swift:37:9: warning: stored property 'severity' of 'Sendable'-conforming struct 'CustomMessage' has non-sendable type 'DiagnosticSeverity'; this is an error in the Swift 6 language mode
35 |     let message: String
36 |     let diagnosticID: MessageID
37 |     let severity: DiagnosticSeverity
   |         `- warning: stored property 'severity' of 'Sendable'-conforming struct 'CustomMessage' has non-sendable type 'DiagnosticSeverity'; this is an error in the Swift 6 language mode
38 |
39 |     init(_ message: String, id: MessageID, severity: DiagnosticSeverity) {
/host/spi-builder-workspace/.build/checkouts/swift-syntax/Sources/SwiftDiagnostics/Message.swift:29:13: note: enum 'DiagnosticSeverity' does not conform to the 'Sendable' protocol
27 | }
28 |
29 | public enum DiagnosticSeverity {
   |             `- note: enum 'DiagnosticSeverity' does not conform to the 'Sendable' protocol
30 |   case error
31 |   case warning
/host/spi-builder-workspace/Sources/SwiftRequestMacros/FunctionParameter.swift:14:71: warning: 'TupleExprElementListSyntax' is deprecated: renamed to 'LabeledExprListSyntax'
12 |     }
13 |
14 |     static func getArguments(from syntax: FunctionParameterSyntax) -> TupleExprElementListSyntax? {
   |                                                                       |- warning: 'TupleExprElementListSyntax' is deprecated: renamed to 'LabeledExprListSyntax'
   |                                                                       `- note: use 'LabeledExprListSyntax' instead
15 |         return syntax.attributes?.first?.as(AttributeSyntax.self)?.argument?.as(TupleExprElementListSyntax.self)
16 |     }
/host/spi-builder-workspace/Sources/SwiftRequestMacros/FunctionParameter.swift:15:33: error: cannot use optional chaining on non-optional value of type 'AttributeListSyntax'
13 |
14 |     static func getArguments(from syntax: FunctionParameterSyntax) -> TupleExprElementListSyntax? {
15 |         return syntax.attributes?.first?.as(AttributeSyntax.self)?.argument?.as(TupleExprElementListSyntax.self)
   |                                 `- error: cannot use optional chaining on non-optional value of type 'AttributeListSyntax'
16 |     }
17 | }
[230/235] Compiling SwiftRequestMacros SimpleDiagnosticMessage.swift
/host/spi-builder-workspace/Sources/SwiftRequestMacros/SimpleDiagnosticMessage.swift:6:7: warning: stored property 'diagnosticID' of 'Sendable'-conforming struct 'SimpleDiagnosticMessage' has non-sendable type 'MessageID'; this is an error in the Swift 6 language mode
4 | struct SimpleDiagnosticMessage: DiagnosticMessage, Error {
5 |   let message: String
6 |   let diagnosticID: MessageID
  |       `- warning: stored property 'diagnosticID' of 'Sendable'-conforming struct 'SimpleDiagnosticMessage' has non-sendable type 'MessageID'; this is an error in the Swift 6 language mode
7 |   let severity: DiagnosticSeverity
8 | }
/host/spi-builder-workspace/.build/checkouts/swift-syntax/Sources/SwiftDiagnostics/Message.swift:19:15: note: struct 'MessageID' does not conform to the 'Sendable' protocol
17 | /// same wording. Eg. it’s possible that the message contains more context when
18 | /// available.
19 | public struct MessageID: Hashable {
   |               `- note: struct 'MessageID' does not conform to the 'Sendable' protocol
20 |   private let domain: String
21 |   private let id: String
/host/spi-builder-workspace/Sources/SwiftRequestMacros/SimpleDiagnosticMessage.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SwiftDiagnostics'
1 | import SwiftSyntax
2 | import SwiftDiagnostics
  | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SwiftDiagnostics'
3 |
4 | struct SimpleDiagnosticMessage: DiagnosticMessage, Error {
/host/spi-builder-workspace/Sources/SwiftRequestMacros/SimpleDiagnosticMessage.swift:7:7: warning: stored property 'severity' of 'Sendable'-conforming struct 'SimpleDiagnosticMessage' has non-sendable type 'DiagnosticSeverity'; this is an error in the Swift 6 language mode
5 |   let message: String
6 |   let diagnosticID: MessageID
7 |   let severity: DiagnosticSeverity
  |       `- warning: stored property 'severity' of 'Sendable'-conforming struct 'SimpleDiagnosticMessage' has non-sendable type 'DiagnosticSeverity'; this is an error in the Swift 6 language mode
8 | }
9 |
/host/spi-builder-workspace/.build/checkouts/swift-syntax/Sources/SwiftDiagnostics/Message.swift:29:13: note: enum 'DiagnosticSeverity' does not conform to the 'Sendable' protocol
27 | }
28 |
29 | public enum DiagnosticSeverity {
   |             `- note: enum 'DiagnosticSeverity' does not conform to the 'Sendable' protocol
30 |   case error
31 |   case warning
[231/235] Compiling SwiftRequestMacros SwiftRequestPlugin.swift
[232/235] Compiling SwiftRequestMacros ServiceMethodExpander.swift
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:30:70: warning: 'SimpleTypeIdentifierSyntax' is deprecated: renamed to 'IdentifierTypeSyntax'
 28 |             for attributeElement in attributes {
 29 |                 guard let attribute = attributeElement.as(AttributeSyntax.self),
 30 |                       let attributeType = attribute.attributeName.as(SimpleTypeIdentifierSyntax.self)
    |                                                                      |- warning: 'SimpleTypeIdentifierSyntax' is deprecated: renamed to 'IdentifierTypeSyntax'
    |                                                                      `- note: use 'IdentifierTypeSyntax' instead
 31 |                 else {
 32 |                   continue
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:27:12: error: initializer for conditional binding must have Optional type, not 'AttributeListSyntax'
 25 |         var methodAttribute: AttributeSyntax!
 26 |
 27 |         if let attributes = declaration.attributes {
    |            `- error: initializer for conditional binding must have Optional type, not 'AttributeListSyntax'
 28 |             for attributeElement in attributes {
 29 |                 guard let attribute = attributeElement.as(AttributeSyntax.self),
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:64:61: error: 'nil' cannot be used in context expecting type 'AttributeListSyntax'
 62 |             )
 63 |             .with(\.signature.input.parameterList, convert(declaration.signature.input.parameterList))
 64 |             .with(\.attributes, newListAttributes.isEmpty ? nil : newListAttributes)
    |                                                             `- error: 'nil' cannot be used in context expecting type 'AttributeListSyntax'
 65 |             .with(\.body, codeBlock)
 66 |
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:72:61: error: 'nil' is not compatible with expected argument type 'AttributeListSyntax'
 70 |     private func convert(_ parameters: FunctionParameterListSyntax) -> FunctionParameterListSyntax {
 71 |         FunctionParameterListSyntax(parameters.map { parameter in
 72 |             var newParameter = parameter.with(\.attributes, nil)
    |                                                             `- error: 'nil' is not compatible with expected argument type 'AttributeListSyntax'
 73 |
 74 |             if parameter.type.is(OptionalTypeSyntax.self) {
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:88:13: warning: 'TupleExprElementSyntax' is deprecated: renamed to 'LabeledExprSyntax'
 86 |     ) -> FunctionCallExprSyntax{
 87 |         FunctionCallExprSyntax(callee: "Request" as ExprSyntax) {
 88 |             TupleExprElementSyntax(label: "url", expression: endpoint)
    |             |- warning: 'TupleExprElementSyntax' is deprecated: renamed to 'LabeledExprSyntax'
    |             `- note: use 'LabeledExprSyntax' instead
 89 |
 90 |             if method != "GET" {
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:91:17: warning: 'TupleExprElementSyntax' is deprecated: renamed to 'LabeledExprSyntax'
 89 |
 90 |             if method != "GET" {
 91 |                 TupleExprElementSyntax(label: "method", expression: StringLiteralExprSyntax(content: method))
    |                 |- warning: 'TupleExprElementSyntax' is deprecated: renamed to 'LabeledExprSyntax'
    |                 `- note: use 'LabeledExprSyntax' instead
 92 |             }
 93 |
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:95:17: warning: 'TupleExprElementSyntax' is deprecated: renamed to 'LabeledExprSyntax'
 93 |
 94 |             if let queryParams = expandParameter("QueryParam", of: declaration, in: context) {
 95 |                 TupleExprElementSyntax(label: "queryParams", expression: queryParams)
    |                 |- warning: 'TupleExprElementSyntax' is deprecated: renamed to 'LabeledExprSyntax'
    |                 `- note: use 'LabeledExprSyntax' instead
 96 |             }
 97 |
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:99:17: warning: 'TupleExprElementSyntax' is deprecated: renamed to 'LabeledExprSyntax'
 97 |
 98 |             if let headers = expandParameter("Header", of: declaration, in: context) {
 99 |                 TupleExprElementSyntax(label: "headers", expression: headers)
    |                 |- warning: 'TupleExprElementSyntax' is deprecated: renamed to 'LabeledExprSyntax'
    |                 `- note: use 'LabeledExprSyntax' instead
100 |             }
101 |
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:103:17: warning: 'TupleExprElementSyntax' is deprecated: renamed to 'LabeledExprSyntax'
101 |
102 |             if let formFields = expandParameter("FormField", of: declaration, in: context) {
103 |                 TupleExprElementSyntax(label: "formFields", expression: formFields)
    |                 |- warning: 'TupleExprElementSyntax' is deprecated: renamed to 'LabeledExprSyntax'
    |                 `- note: use 'LabeledExprSyntax' instead
104 |             }
105 |
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:107:17: warning: 'TupleExprElementSyntax' is deprecated: renamed to 'LabeledExprSyntax'
105 |
106 |             if let body = expandBody(of: declaration, in: context) {
107 |                 TupleExprElementSyntax(label: "body", expression: IdentifierExprSyntax(identifier: body))
    |                 |- warning: 'TupleExprElementSyntax' is deprecated: renamed to 'LabeledExprSyntax'
    |                 `- note: use 'LabeledExprSyntax' instead
108 |             }
109 |         }
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:107:67: warning: 'IdentifierExprSyntax' is deprecated: renamed to 'DeclReferenceExprSyntax'
105 |
106 |             if let body = expandBody(of: declaration, in: context) {
107 |                 TupleExprElementSyntax(label: "body", expression: IdentifierExprSyntax(identifier: body))
    |                                                                   |- warning: 'IdentifierExprSyntax' is deprecated: renamed to 'DeclReferenceExprSyntax'
    |                                                                   `- note: use 'DeclReferenceExprSyntax' instead
108 |             }
109 |         }
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:107:67: warning: 'init(leadingTrivia:_:identifier:_:declNameArguments:_:trailingTrivia:)' is deprecated: renamed to 'DeclReferenceExprSyntax(leadingTrivia:_:baseName:_:argumentNames:_:trailingTrivia:)'
105 |
106 |             if let body = expandBody(of: declaration, in: context) {
107 |                 TupleExprElementSyntax(label: "body", expression: IdentifierExprSyntax(identifier: body))
    |                                                                   |- warning: 'init(leadingTrivia:_:identifier:_:declNameArguments:_:trailingTrivia:)' is deprecated: renamed to 'DeclReferenceExprSyntax(leadingTrivia:_:baseName:_:argumentNames:_:trailingTrivia:)'
    |                                                                   `- note: use 'DeclReferenceExprSyntax(leadingTrivia:_:baseName:_:argumentNames:_:trailingTrivia:)' instead
108 |             }
109 |         }
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:143:17: warning: 'init(leadingTrivia:_:keyExpression:_:colon:_:valueExpression:_:trailingComma:_:trailingTrivia:)' is deprecated: renamed to 'DictionaryElementSyntax(leadingTrivia:_:key:_:colon:_:value:_:trailingComma:_:trailingTrivia:)'
141 |         let dict = DictionaryElementListSyntax {
142 |             for parameter in parameters {
143 |                 DictionaryElementSyntax(
    |                 |- warning: 'init(leadingTrivia:_:keyExpression:_:colon:_:valueExpression:_:trailingComma:_:trailingTrivia:)' is deprecated: renamed to 'DictionaryElementSyntax(leadingTrivia:_:key:_:colon:_:value:_:trailingComma:_:trailingTrivia:)'
    |                 `- note: use 'DictionaryElementSyntax(leadingTrivia:_:key:_:colon:_:value:_:trailingComma:_:trailingTrivia:)' instead
144 |                     keyExpression: StringLiteralExprSyntax(content: parameter.name),
145 |                     valueExpression: "\(raw: parameter.value)" as ExprSyntax
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:158:35: warning: 'argument' is deprecated: renamed to 'arguments'
156 |         in context: some MacroExpansionContext
157 |     ) -> ExprSyntax? {
158 |         let arguments = attribute.argument?.as(TupleExprElementListSyntax.self)
    |                                   |- warning: 'argument' is deprecated: renamed to 'arguments'
    |                                   `- note: use 'arguments' instead
159 |
160 |         let parameters: [FunctionNamedParameter] = getParameters(from: declaration, with: "Path")
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:158:48: warning: 'TupleExprElementListSyntax' is deprecated: renamed to 'LabeledExprListSyntax'
156 |         in context: some MacroExpansionContext
157 |     ) -> ExprSyntax? {
158 |         let arguments = attribute.argument?.as(TupleExprElementListSyntax.self)
    |                                                |- warning: 'TupleExprElementListSyntax' is deprecated: renamed to 'LabeledExprListSyntax'
    |                                                `- note: use 'LabeledExprListSyntax' instead
159 |
160 |         let parameters: [FunctionNamedParameter] = getParameters(from: declaration, with: "Path")
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:211:52: warning: 'StringLiteralSegmentsSyntax' is deprecated: renamed to 'StringLiteralSegmentListSyntax'
209 |
210 |         // replace
211 |         let newPath = pathLiteral.with(\.segments, StringLiteralSegmentsSyntax(
    |                                                    |- warning: 'StringLiteralSegmentsSyntax' is deprecated: renamed to 'StringLiteralSegmentListSyntax'
    |                                                    `- note: use 'StringLiteralSegmentListSyntax' instead
212 |             pathLiteral.segments.compactMap { segment in
213 |                 guard let stringSegment = segment.as(StringSegmentSyntax.self) else {
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:221:24: warning: 'StringLiteralSegmentsSyntax' is deprecated: renamed to 'StringLiteralSegmentListSyntax'
219 |                 }
220 |
221 |                 return StringLiteralSegmentsSyntax.Element(StringSegmentSyntax(content: .stringSegment(newPath)))
    |                        |- warning: 'StringLiteralSegmentsSyntax' is deprecated: renamed to 'StringLiteralSegmentListSyntax'
    |                        `- note: use 'StringLiteralSegmentListSyntax' instead
222 |             }
223 |         ))
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:232:33: error: cannot use optional chaining on non-optional value of type 'AttributeListSyntax'
230 |     private func getParameters<T: FunctionParameter>(from declaration: FunctionDeclSyntax, with attributeName: String) -> [T] {
231 |         return declaration.signature.input.parameterList.filter { parameter in
232 |             parameter.attributes?.contains(where: { attribute in
    |                                 `- error: cannot use optional chaining on non-optional value of type 'AttributeListSyntax'
233 |                 attribute.as(AttributeSyntax.self)?.attributeName.as(SimpleTypeIdentifierSyntax.self)?.name.text == attributeName
234 |             }) ?? false
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/16] Write swift-version-24593BA9C3E375BF.txt
[2/18] Compiling SwiftSyntax509 Empty.swift
[3/18] Emitting module SwiftSyntax509
[5/63] Compiling SwiftSyntax AbsolutePosition.swift
[6/63] Compiling SwiftSyntax Assert.swift
[7/63] Compiling SwiftSyntax BumpPtrAllocator.swift
[8/63] Compiling SwiftSyntax CommonAncestor.swift
[9/63] Compiling SwiftSyntax Convenience.swift
[10/63] Compiling SwiftSyntax MemoryLayout.swift
[11/63] Compiling SwiftSyntax MissingNodeInitializers.swift
[12/69] Compiling SwiftSyntax RawSyntax.swift
[13/69] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[14/69] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[15/69] Compiling SwiftSyntax RawSyntaxTokenView.swift
[16/69] Compiling SwiftSyntax SourceLength.swift
[17/69] Compiling SwiftSyntax SourceLocation.swift
[18/69] Compiling SwiftSyntax SourcePresence.swift
[19/69] Emitting module SwiftSyntax
[20/69] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[21/69] Compiling SwiftSyntax Syntax.swift
[22/69] Compiling SwiftSyntax SyntaxArena.swift
[23/69] Compiling SwiftSyntax SyntaxChildren.swift
[24/69] Compiling SwiftSyntax SyntaxCollection.swift
[25/69] Compiling SwiftSyntax SyntaxData.swift
[26/69] Compiling SwiftSyntax ChildNameForKeyPath.swift
[27/69] Compiling SwiftSyntax Keyword.swift
[28/69] Compiling SwiftSyntax RenamedChildrenCompatibility.swift
[29/69] Compiling SwiftSyntax RenamedNodesCompatibility.swift
[30/69] Compiling SwiftSyntax SyntaxAnyVisitor.swift
[31/69] Compiling SwiftSyntax SyntaxBaseNodes.swift
[32/69] Compiling SwiftSyntax SyntaxDeclNodes.swift
[33/69] Compiling SwiftSyntax SyntaxExprNodes.swift
[34/69] Compiling SwiftSyntax SyntaxNodes.swift
[35/69] Compiling SwiftSyntax SyntaxPatternNodes.swift
[36/69] Compiling SwiftSyntax SyntaxStmtNodes.swift
[37/69] Compiling SwiftSyntax SyntaxTypeNodes.swift
[38/69] Compiling SwiftSyntax SyntaxText.swift
[39/69] Compiling SwiftSyntax SyntaxTreeViewMode.swift
[40/69] Compiling SwiftSyntax TokenDiagnostic.swift
[41/69] Compiling SwiftSyntax TokenSyntax.swift
[42/69] Compiling SwiftSyntax Trivia.swift
[43/69] Compiling SwiftSyntax Utils.swift
[44/69] Compiling SwiftSyntax SyntaxCollections.swift
[45/69] Compiling SwiftSyntax SyntaxEnum.swift
[46/69] Compiling SwiftSyntax SyntaxKind.swift
[47/69] Compiling SwiftSyntax SyntaxRewriter.swift
[48/69] Compiling SwiftSyntax SyntaxTraits.swift
[49/69] Compiling SwiftSyntax SyntaxTransform.swift
[50/69] Compiling SwiftSyntax SyntaxVisitor.swift
[51/69] Compiling SwiftSyntax TokenKind.swift
[52/69] Compiling SwiftSyntax Tokens.swift
[53/69] Compiling SwiftSyntax TriviaPieces.swift
[54/69] Compiling SwiftSyntax RawSyntaxNodes.swift
[55/69] Compiling SwiftSyntax RawSyntaxValidation.swift
[57/120] Compiling SwiftDiagnostics Message.swift
[58/120] Compiling SwiftDiagnostics Note.swift
[59/120] Compiling SwiftBasicFormat Trivia+FormatExtensions.swift
[60/120] Compiling SwiftBasicFormat Syntax+Extensions.swift
[61/120] Compiling SwiftBasicFormat SyntaxProtocol+Formatted.swift
[62/120] Emitting module SwiftBasicFormat
[63/120] Compiling SwiftDiagnostics Diagnostic.swift
[64/120] Compiling SwiftDiagnostics FixIt.swift
[65/120] Compiling SwiftDiagnostics Convenience.swift
[66/120] Emitting module SwiftDiagnostics
[67/120] Compiling SwiftDiagnostics DiagnosticsFormatter.swift
[68/120] Compiling SwiftDiagnostics GroupedDiagnostics.swift
[70/120] Compiling SwiftBasicFormat BasicFormat.swift
[72/120] Emitting module SwiftParser
[73/125] Compiling SwiftParser Lexer.swift
[74/125] Compiling SwiftParser RegexLiteralLexer.swift
[75/125] Compiling SwiftParser UnicodeScalarExtensions.swift
[76/125] Compiling SwiftParser Lookahead.swift
[77/125] Compiling SwiftParser LoopProgressCondition.swift
[78/125] Compiling SwiftParser TokenPrecedence.swift
[79/125] Compiling SwiftParser TokenSpec.swift
[80/125] Compiling SwiftParser TokenSpecSet.swift
[81/125] Compiling SwiftParser TopLevel.swift
[82/125] Compiling SwiftParser TriviaParser.swift
[83/125] Compiling SwiftParser StringLiteralRepresentedLiteralValue.swift
[84/125] Compiling SwiftParser StringLiterals.swift
[85/125] Compiling SwiftParser SwiftParserCompatibility.swift
[86/125] Compiling SwiftParser SyntaxUtils.swift
[87/125] Compiling SwiftParser TokenConsumer.swift
[88/125] Compiling SwiftParser Attributes.swift
[89/125] Compiling SwiftParser Availability.swift
[90/125] Compiling SwiftParser CharacterInfo.swift
[91/125] Compiling SwiftParser CollectionNodes+Parsable.swift
[92/125] Compiling SwiftParser Declarations.swift
[93/125] Compiling SwiftParser Directives.swift
[94/125] Compiling SwiftParser Modifiers.swift
[95/125] Compiling SwiftParser Names.swift
[96/125] Compiling SwiftParser Nominals.swift
[97/125] Compiling SwiftParser Parameters.swift
[98/125] Compiling SwiftParser ParseSourceFile.swift
[99/125] Compiling SwiftParser Parser.swift
[100/125] Compiling SwiftParser Patterns.swift
[101/125] Compiling SwiftParser Recovery.swift
[102/125] Compiling SwiftParser Specifiers.swift
[103/125] Compiling SwiftParser Statements.swift
[104/125] Compiling SwiftParser ExperimentalFeatures.swift
[105/125] Compiling SwiftParser Expressions.swift
[106/125] Compiling SwiftParser IncrementalParseTransition.swift
[107/125] Compiling SwiftParser Cursor.swift
[108/125] Compiling SwiftParser Lexeme.swift
[109/125] Compiling SwiftParser LexemeSequence.swift
[110/125] Compiling SwiftParser Types.swift
[111/125] Compiling SwiftParser IsLexerClassified.swift
[112/125] Compiling SwiftParser LayoutNodes+Parsable.swift
[113/125] Compiling SwiftParser Parser+TokenSpecSet.swift
[114/125] Compiling SwiftParser TokenSpecStaticMembers.swift
[115/126] Wrapping AST for SwiftParser for debugging
[117/149] Compiling SwiftParserDiagnostics DiagnosticExtensions.swift
[118/149] Compiling SwiftParserDiagnostics LexerDiagnosticMessages.swift
[119/150] Compiling SwiftOperators PrecedenceGroup.swift
[120/150] Compiling SwiftOperators OperatorTable+Semantics.swift
[121/150] Compiling SwiftOperators PrecedenceGraph.swift
[122/150] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
[123/151] Compiling SwiftOperators SyntaxSynthesis.swift
[124/151] Compiling SwiftOperators OperatorTable.swift
[125/151] Emitting module SwiftOperators
[126/151] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
[127/151] Compiling SwiftParserDiagnostics MissingNodesError.swift
[128/151] Compiling SwiftParserDiagnostics MissingTokenError.swift
[129/151] Compiling SwiftOperators OperatorTable+Folding.swift
[131/152] Emitting module SwiftParserDiagnostics
[133/152] Wrapping AST for SwiftOperators for debugging
[135/152] Compiling SwiftParserDiagnostics SyntaxExtensions.swift
[136/152] Compiling SwiftParserDiagnostics Utils.swift
[137/152] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
[140/152] Compiling SwiftParserDiagnostics ParserDiagnosticMessages.swift
[141/152] Compiling SwiftParserDiagnostics PresenceUtils.swift
[142/152] Compiling SwiftParserDiagnostics MultiLineStringLiteralDiagnosticsGenerator.swift
[143/152] Compiling SwiftParserDiagnostics ParseDiagnosticsGenerator.swift
[144/153] Wrapping AST for SwiftParserDiagnostics for debugging
[146/167] Compiling SwiftSyntaxBuilder Indenter.swift
[147/167] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
[148/167] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
[149/167] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
[150/167] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.swift
[151/167] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
[152/167] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
[153/167] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
[154/167] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
[155/167] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
[156/167] Compiling SwiftSyntaxBuilder BuildableNodes.swift
[157/167] Compiling SwiftSyntaxBuilder RenamedChildrenBuilderCompatibility.swift
[158/167] Emitting module SwiftSyntaxBuilder
[159/168] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
[160/168] Compiling SwiftSyntaxBuilder ResultBuilders.swift
[161/169] Wrapping AST for SwiftSyntaxBuilder for debugging
[163/183] Compiling SwiftSyntaxMacros AccessorMacro.swift
[164/183] Compiling SwiftSyntaxMacros AttachedMacro.swift
[165/183] Compiling SwiftSyntaxMacros CodeItemMacro.swift
[166/183] Compiling SwiftSyntaxMacros DeclarationMacro.swift
[167/184] Compiling SwiftSyntaxMacros MemberMacro.swift
[168/184] Compiling SwiftSyntaxMacros Macro.swift
[169/184] Compiling SwiftSyntaxMacros MemberAttributeMacro.swift
[170/184] Emitting module SwiftSyntaxMacros
[171/184] Compiling SwiftSyntaxMacros FreestandingMacro.swift
[172/184] Compiling SwiftSyntaxMacros Macro+Format.swift
[173/184] Compiling SwiftSyntaxMacros ExpressionMacro.swift
[174/184] Compiling SwiftSyntaxMacros ExtensionMacro.swift
[175/184] Compiling SwiftSyntaxMacros AbstractSourceLocation.swift
[176/184] Compiling SwiftSyntaxMacros MacroExpansionContext.swift
[177/184] Compiling SwiftSyntaxMacros PeerMacro.swift
[179/192] Compiling SwiftSyntaxMacroExpansion BasicMacroExpansionContext.swift
[180/192] Emitting module SwiftSyntaxMacroExpansion
[181/192] Compiling SwiftSyntaxMacroExpansion IndentationUtils.swift
[182/192] Compiling SwiftSyntaxMacroExpansion FunctionParameterUtils.swift
[183/192] Compiling SwiftSyntaxMacroExpansion MacroExpansion.swift
[184/192] Compiling SwiftSyntaxMacroExpansion MacroReplacement.swift
[185/192] Compiling SwiftSyntaxMacroExpansion MacroExpansionDiagnosticMessages.swift
[186/192] Compiling SwiftSyntaxMacroExpansion MacroSystem.swift
[187/193] Wrapping AST for SwiftSyntaxMacroExpansion for debugging
[189/200] Compiling SwiftCompilerPluginMessageHandling PluginMessageCompatibility.swift
[190/200] Compiling SwiftCompilerPluginMessageHandling Macros.swift
[191/200] Compiling SwiftCompilerPluginMessageHandling CompilerPluginMessageHandler.swift
[192/200] Compiling SwiftCompilerPluginMessageHandling Diagnostics.swift
[193/200] Emitting module SwiftCompilerPluginMessageHandling
[194/200] Compiling SwiftCompilerPluginMessageHandling PluginMacroExpansionContext.swift
[195/200] Compiling SwiftCompilerPluginMessageHandling PluginMessages.swift
[197/202] Emitting module SwiftCompilerPlugin
[198/202] Compiling SwiftCompilerPlugin CompilerPlugin.swift
[199/203] Wrapping AST for SwiftCompilerPlugin for debugging
[201/214] Compiling SwiftRequestMacros SimpleDiagnosticMessage.swift
[202/215] Compiling SwiftRequestMacros ServiceMacro.swift
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMacro.swift:21:29: warning: 'argument' is deprecated: renamed to 'arguments'
19 |         }
20 |
21 |         let resource = node.argument?.as(TupleExprElementListSyntax.self)?.first?.as(TupleExprElementSyntax.self)?.expression
   |                             |- warning: 'argument' is deprecated: renamed to 'arguments'
   |                             `- note: use 'arguments' instead
22 |
23 |         let declarations = protocolDecl.memberBlock.members
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMacro.swift:21:42: warning: 'TupleExprElementListSyntax' is deprecated: renamed to 'LabeledExprListSyntax'
19 |         }
20 |
21 |         let resource = node.argument?.as(TupleExprElementListSyntax.self)?.first?.as(TupleExprElementSyntax.self)?.expression
   |                                          |- warning: 'TupleExprElementListSyntax' is deprecated: renamed to 'LabeledExprListSyntax'
   |                                          `- note: use 'LabeledExprListSyntax' instead
22 |
23 |         let declarations = protocolDecl.memberBlock.members
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMacro.swift:21:86: warning: 'TupleExprElementSyntax' is deprecated: renamed to 'LabeledExprSyntax'
19 |         }
20 |
21 |         let resource = node.argument?.as(TupleExprElementListSyntax.self)?.first?.as(TupleExprElementSyntax.self)?.expression
   |                                                                                      |- warning: 'TupleExprElementSyntax' is deprecated: renamed to 'LabeledExprSyntax'
   |                                                                                      `- note: use 'LabeledExprSyntax' instead
22 |
23 |         let declarations = protocolDecl.memberBlock.members
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMacro.swift:50:50: error: cannot use optional chaining on non-optional value of type 'AttributeListSyntax'
48 |     ) -> FunctionDeclSyntax? {
49 |         // TODO: require method
50 |         guard let method = declaration.attributes?.first?.as(AttributeSyntax.self)?.attributeName.description else {
   |                                                  `- error: cannot use optional chaining on non-optional value of type 'AttributeListSyntax'
51 |             context.diagnose(diagnostics.methodRequired(node: declaration))
52 |             return nil
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMacro.swift:71:29: warning: 'identifier' is deprecated: renamed to 'name'
69 |         }
70 |
71 |         return protocolDecl.identifier.text
   |                             |- warning: 'identifier' is deprecated: renamed to 'name'
   |                             `- note: use 'name' instead
72 |     }
73 | }
[203/215] Compiling SwiftRequestMacros ServiceDiagnostics.swift
[204/215] Compiling SwiftRequestMacros ParamMacro.swift
[205/215] Compiling SwiftRequestMacros RequestDiagnostics.swift
[206/215] Emitting module SwiftRequestMacros
/host/spi-builder-workspace/Sources/SwiftRequestMacros/FunctionParameter.swift:14:71: warning: 'TupleExprElementListSyntax' is deprecated: renamed to 'LabeledExprListSyntax'
12 |     }
13 |
14 |     static func getArguments(from syntax: FunctionParameterSyntax) -> TupleExprElementListSyntax? {
   |                                                                       |- warning: 'TupleExprElementListSyntax' is deprecated: renamed to 'LabeledExprListSyntax'
   |                                                                       `- note: use 'LabeledExprListSyntax' instead
15 |         return syntax.attributes?.first?.as(AttributeSyntax.self)?.argument?.as(TupleExprElementListSyntax.self)
16 |     }
[207/215] Compiling SwiftRequestMacros MethodDiagnostics.swift
/host/spi-builder-workspace/Sources/SwiftRequestMacros/MethodMacro.swift:20:51: error: cannot use optional chaining on non-optional value of type 'DeclModifierListSyntax'
18 |         }
19 |
20 |         if let staticModifier = funcDecl.modifiers?.first(where: {
   |                                                   `- error: cannot use optional chaining on non-optional value of type 'DeclModifierListSyntax'
21 |             $0.name.tokenKind == TokenKind.keyword(.static)
22 |         })?.as(DeclModifierSyntax.self) {
/host/spi-builder-workspace/Sources/SwiftRequestMacros/MethodMacro.swift:33:51: warning: 'output' is deprecated: renamed to 'returnClause'
31 |         }
32 |
33 |         guard let returnType = funcDecl.signature.output?.returnType else {
   |                                                   |- warning: 'output' is deprecated: renamed to 'returnClause'
   |                                                   `- note: use 'returnClause' instead
34 |             context.diagnose(diagnostics.outputTypeRequired(node: funcDecl))
35 |             return []
/host/spi-builder-workspace/Sources/SwiftRequestMacros/MethodMacro.swift:33:59: warning: 'returnType' is deprecated: renamed to 'type'
31 |         }
32 |
33 |         guard let returnType = funcDecl.signature.output?.returnType else {
   |                                                           |- warning: 'returnType' is deprecated: renamed to 'type'
   |                                                           `- note: use 'type' instead
34 |             context.diagnose(diagnostics.outputTypeRequired(node: funcDecl))
35 |             return []
/host/spi-builder-workspace/Sources/SwiftRequestMacros/MethodMacro.swift:50:26: warning: 'SimpleTypeIdentifierSyntax' is deprecated: renamed to 'IdentifierTypeSyntax'
48 |         in context: some MacroExpansionContext
49 |     ) -> Bool {
50 |         if outputType.is(SimpleTypeIdentifierSyntax.self) {
   |                          |- warning: 'SimpleTypeIdentifierSyntax' is deprecated: renamed to 'IdentifierTypeSyntax'
   |                          `- note: use 'IdentifierTypeSyntax' instead
51 |             return true
52 |         }
/host/spi-builder-workspace/Sources/SwiftRequestMacros/MethodMacro.swift:55:51: warning: 'elementType' is deprecated: renamed to 'element'
53 |
54 |         if let arrayType = outputType.as(ArrayTypeSyntax.self) {
55 |             return validate(outputType: arrayType.elementType, in: context)
   |                                                   |- warning: 'elementType' is deprecated: renamed to 'element'
   |                                                   `- note: use 'element' instead
56 |         }
57 |
[208/215] Compiling SwiftRequestMacros MethodMacro.swift
/host/spi-builder-workspace/Sources/SwiftRequestMacros/MethodMacro.swift:20:51: error: cannot use optional chaining on non-optional value of type 'DeclModifierListSyntax'
18 |         }
19 |
20 |         if let staticModifier = funcDecl.modifiers?.first(where: {
   |                                                   `- error: cannot use optional chaining on non-optional value of type 'DeclModifierListSyntax'
21 |             $0.name.tokenKind == TokenKind.keyword(.static)
22 |         })?.as(DeclModifierSyntax.self) {
/host/spi-builder-workspace/Sources/SwiftRequestMacros/MethodMacro.swift:33:51: warning: 'output' is deprecated: renamed to 'returnClause'
31 |         }
32 |
33 |         guard let returnType = funcDecl.signature.output?.returnType else {
   |                                                   |- warning: 'output' is deprecated: renamed to 'returnClause'
   |                                                   `- note: use 'returnClause' instead
34 |             context.diagnose(diagnostics.outputTypeRequired(node: funcDecl))
35 |             return []
/host/spi-builder-workspace/Sources/SwiftRequestMacros/MethodMacro.swift:33:59: warning: 'returnType' is deprecated: renamed to 'type'
31 |         }
32 |
33 |         guard let returnType = funcDecl.signature.output?.returnType else {
   |                                                           |- warning: 'returnType' is deprecated: renamed to 'type'
   |                                                           `- note: use 'type' instead
34 |             context.diagnose(diagnostics.outputTypeRequired(node: funcDecl))
35 |             return []
/host/spi-builder-workspace/Sources/SwiftRequestMacros/MethodMacro.swift:50:26: warning: 'SimpleTypeIdentifierSyntax' is deprecated: renamed to 'IdentifierTypeSyntax'
48 |         in context: some MacroExpansionContext
49 |     ) -> Bool {
50 |         if outputType.is(SimpleTypeIdentifierSyntax.self) {
   |                          |- warning: 'SimpleTypeIdentifierSyntax' is deprecated: renamed to 'IdentifierTypeSyntax'
   |                          `- note: use 'IdentifierTypeSyntax' instead
51 |             return true
52 |         }
/host/spi-builder-workspace/Sources/SwiftRequestMacros/MethodMacro.swift:55:51: warning: 'elementType' is deprecated: renamed to 'element'
53 |
54 |         if let arrayType = outputType.as(ArrayTypeSyntax.self) {
55 |             return validate(outputType: arrayType.elementType, in: context)
   |                                                   |- warning: 'elementType' is deprecated: renamed to 'element'
   |                                                   `- note: use 'element' instead
56 |         }
57 |
[209/215] Compiling SwiftRequestMacros Diagnostics.swift
/host/spi-builder-workspace/Sources/SwiftRequestMacros/FunctionParameter.swift:14:71: warning: 'TupleExprElementListSyntax' is deprecated: renamed to 'LabeledExprListSyntax'
12 |     }
13 |
14 |     static func getArguments(from syntax: FunctionParameterSyntax) -> TupleExprElementListSyntax? {
   |                                                                       |- warning: 'TupleExprElementListSyntax' is deprecated: renamed to 'LabeledExprListSyntax'
   |                                                                       `- note: use 'LabeledExprListSyntax' instead
15 |         return syntax.attributes?.first?.as(AttributeSyntax.self)?.argument?.as(TupleExprElementListSyntax.self)
16 |     }
/host/spi-builder-workspace/Sources/SwiftRequestMacros/FunctionParameter.swift:15:33: error: cannot use optional chaining on non-optional value of type 'AttributeListSyntax'
13 |
14 |     static func getArguments(from syntax: FunctionParameterSyntax) -> TupleExprElementListSyntax? {
15 |         return syntax.attributes?.first?.as(AttributeSyntax.self)?.argument?.as(TupleExprElementListSyntax.self)
   |                                 `- error: cannot use optional chaining on non-optional value of type 'AttributeListSyntax'
16 |     }
17 | }
[210/215] Compiling SwiftRequestMacros FunctionParameter.swift
/host/spi-builder-workspace/Sources/SwiftRequestMacros/FunctionParameter.swift:14:71: warning: 'TupleExprElementListSyntax' is deprecated: renamed to 'LabeledExprListSyntax'
12 |     }
13 |
14 |     static func getArguments(from syntax: FunctionParameterSyntax) -> TupleExprElementListSyntax? {
   |                                                                       |- warning: 'TupleExprElementListSyntax' is deprecated: renamed to 'LabeledExprListSyntax'
   |                                                                       `- note: use 'LabeledExprListSyntax' instead
15 |         return syntax.attributes?.first?.as(AttributeSyntax.self)?.argument?.as(TupleExprElementListSyntax.self)
16 |     }
/host/spi-builder-workspace/Sources/SwiftRequestMacros/FunctionParameter.swift:15:33: error: cannot use optional chaining on non-optional value of type 'AttributeListSyntax'
13 |
14 |     static func getArguments(from syntax: FunctionParameterSyntax) -> TupleExprElementListSyntax? {
15 |         return syntax.attributes?.first?.as(AttributeSyntax.self)?.argument?.as(TupleExprElementListSyntax.self)
   |                                 `- error: cannot use optional chaining on non-optional value of type 'AttributeListSyntax'
16 |     }
17 | }
[211/215] Compiling SwiftRequestMacros SwiftRequestPlugin.swift
[212/215] Compiling SwiftRequestMacros ServiceMethodExpander.swift
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:30:70: warning: 'SimpleTypeIdentifierSyntax' is deprecated: renamed to 'IdentifierTypeSyntax'
 28 |             for attributeElement in attributes {
 29 |                 guard let attribute = attributeElement.as(AttributeSyntax.self),
 30 |                       let attributeType = attribute.attributeName.as(SimpleTypeIdentifierSyntax.self)
    |                                                                      |- warning: 'SimpleTypeIdentifierSyntax' is deprecated: renamed to 'IdentifierTypeSyntax'
    |                                                                      `- note: use 'IdentifierTypeSyntax' instead
 31 |                 else {
 32 |                   continue
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:27:12: error: initializer for conditional binding must have Optional type, not 'AttributeListSyntax'
 25 |         var methodAttribute: AttributeSyntax!
 26 |
 27 |         if let attributes = declaration.attributes {
    |            `- error: initializer for conditional binding must have Optional type, not 'AttributeListSyntax'
 28 |             for attributeElement in attributes {
 29 |                 guard let attribute = attributeElement.as(AttributeSyntax.self),
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:64:61: error: 'nil' cannot be used in context expecting type 'AttributeListSyntax'
 62 |             )
 63 |             .with(\.signature.input.parameterList, convert(declaration.signature.input.parameterList))
 64 |             .with(\.attributes, newListAttributes.isEmpty ? nil : newListAttributes)
    |                                                             `- error: 'nil' cannot be used in context expecting type 'AttributeListSyntax'
 65 |             .with(\.body, codeBlock)
 66 |
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:72:61: error: 'nil' is not compatible with expected argument type 'AttributeListSyntax'
 70 |     private func convert(_ parameters: FunctionParameterListSyntax) -> FunctionParameterListSyntax {
 71 |         FunctionParameterListSyntax(parameters.map { parameter in
 72 |             var newParameter = parameter.with(\.attributes, nil)
    |                                                             `- error: 'nil' is not compatible with expected argument type 'AttributeListSyntax'
 73 |
 74 |             if parameter.type.is(OptionalTypeSyntax.self) {
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:88:13: warning: 'TupleExprElementSyntax' is deprecated: renamed to 'LabeledExprSyntax'
 86 |     ) -> FunctionCallExprSyntax{
 87 |         FunctionCallExprSyntax(callee: "Request" as ExprSyntax) {
 88 |             TupleExprElementSyntax(label: "url", expression: endpoint)
    |             |- warning: 'TupleExprElementSyntax' is deprecated: renamed to 'LabeledExprSyntax'
    |             `- note: use 'LabeledExprSyntax' instead
 89 |
 90 |             if method != "GET" {
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:91:17: warning: 'TupleExprElementSyntax' is deprecated: renamed to 'LabeledExprSyntax'
 89 |
 90 |             if method != "GET" {
 91 |                 TupleExprElementSyntax(label: "method", expression: StringLiteralExprSyntax(content: method))
    |                 |- warning: 'TupleExprElementSyntax' is deprecated: renamed to 'LabeledExprSyntax'
    |                 `- note: use 'LabeledExprSyntax' instead
 92 |             }
 93 |
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:95:17: warning: 'TupleExprElementSyntax' is deprecated: renamed to 'LabeledExprSyntax'
 93 |
 94 |             if let queryParams = expandParameter("QueryParam", of: declaration, in: context) {
 95 |                 TupleExprElementSyntax(label: "queryParams", expression: queryParams)
    |                 |- warning: 'TupleExprElementSyntax' is deprecated: renamed to 'LabeledExprSyntax'
    |                 `- note: use 'LabeledExprSyntax' instead
 96 |             }
 97 |
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:99:17: warning: 'TupleExprElementSyntax' is deprecated: renamed to 'LabeledExprSyntax'
 97 |
 98 |             if let headers = expandParameter("Header", of: declaration, in: context) {
 99 |                 TupleExprElementSyntax(label: "headers", expression: headers)
    |                 |- warning: 'TupleExprElementSyntax' is deprecated: renamed to 'LabeledExprSyntax'
    |                 `- note: use 'LabeledExprSyntax' instead
100 |             }
101 |
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:103:17: warning: 'TupleExprElementSyntax' is deprecated: renamed to 'LabeledExprSyntax'
101 |
102 |             if let formFields = expandParameter("FormField", of: declaration, in: context) {
103 |                 TupleExprElementSyntax(label: "formFields", expression: formFields)
    |                 |- warning: 'TupleExprElementSyntax' is deprecated: renamed to 'LabeledExprSyntax'
    |                 `- note: use 'LabeledExprSyntax' instead
104 |             }
105 |
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:107:17: warning: 'TupleExprElementSyntax' is deprecated: renamed to 'LabeledExprSyntax'
105 |
106 |             if let body = expandBody(of: declaration, in: context) {
107 |                 TupleExprElementSyntax(label: "body", expression: IdentifierExprSyntax(identifier: body))
    |                 |- warning: 'TupleExprElementSyntax' is deprecated: renamed to 'LabeledExprSyntax'
    |                 `- note: use 'LabeledExprSyntax' instead
108 |             }
109 |         }
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:107:67: warning: 'IdentifierExprSyntax' is deprecated: renamed to 'DeclReferenceExprSyntax'
105 |
106 |             if let body = expandBody(of: declaration, in: context) {
107 |                 TupleExprElementSyntax(label: "body", expression: IdentifierExprSyntax(identifier: body))
    |                                                                   |- warning: 'IdentifierExprSyntax' is deprecated: renamed to 'DeclReferenceExprSyntax'
    |                                                                   `- note: use 'DeclReferenceExprSyntax' instead
108 |             }
109 |         }
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:107:67: warning: 'init(leadingTrivia:_:identifier:_:declNameArguments:_:trailingTrivia:)' is deprecated: renamed to 'DeclReferenceExprSyntax(leadingTrivia:_:baseName:_:argumentNames:_:trailingTrivia:)'
105 |
106 |             if let body = expandBody(of: declaration, in: context) {
107 |                 TupleExprElementSyntax(label: "body", expression: IdentifierExprSyntax(identifier: body))
    |                                                                   |- warning: 'init(leadingTrivia:_:identifier:_:declNameArguments:_:trailingTrivia:)' is deprecated: renamed to 'DeclReferenceExprSyntax(leadingTrivia:_:baseName:_:argumentNames:_:trailingTrivia:)'
    |                                                                   `- note: use 'DeclReferenceExprSyntax(leadingTrivia:_:baseName:_:argumentNames:_:trailingTrivia:)' instead
108 |             }
109 |         }
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:143:17: warning: 'init(leadingTrivia:_:keyExpression:_:colon:_:valueExpression:_:trailingComma:_:trailingTrivia:)' is deprecated: renamed to 'DictionaryElementSyntax(leadingTrivia:_:key:_:colon:_:value:_:trailingComma:_:trailingTrivia:)'
141 |         let dict = DictionaryElementListSyntax {
142 |             for parameter in parameters {
143 |                 DictionaryElementSyntax(
    |                 |- warning: 'init(leadingTrivia:_:keyExpression:_:colon:_:valueExpression:_:trailingComma:_:trailingTrivia:)' is deprecated: renamed to 'DictionaryElementSyntax(leadingTrivia:_:key:_:colon:_:value:_:trailingComma:_:trailingTrivia:)'
    |                 `- note: use 'DictionaryElementSyntax(leadingTrivia:_:key:_:colon:_:value:_:trailingComma:_:trailingTrivia:)' instead
144 |                     keyExpression: StringLiteralExprSyntax(content: parameter.name),
145 |                     valueExpression: "\(raw: parameter.value)" as ExprSyntax
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:158:35: warning: 'argument' is deprecated: renamed to 'arguments'
156 |         in context: some MacroExpansionContext
157 |     ) -> ExprSyntax? {
158 |         let arguments = attribute.argument?.as(TupleExprElementListSyntax.self)
    |                                   |- warning: 'argument' is deprecated: renamed to 'arguments'
    |                                   `- note: use 'arguments' instead
159 |
160 |         let parameters: [FunctionNamedParameter] = getParameters(from: declaration, with: "Path")
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:158:48: warning: 'TupleExprElementListSyntax' is deprecated: renamed to 'LabeledExprListSyntax'
156 |         in context: some MacroExpansionContext
157 |     ) -> ExprSyntax? {
158 |         let arguments = attribute.argument?.as(TupleExprElementListSyntax.self)
    |                                                |- warning: 'TupleExprElementListSyntax' is deprecated: renamed to 'LabeledExprListSyntax'
    |                                                `- note: use 'LabeledExprListSyntax' instead
159 |
160 |         let parameters: [FunctionNamedParameter] = getParameters(from: declaration, with: "Path")
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:211:52: warning: 'StringLiteralSegmentsSyntax' is deprecated: renamed to 'StringLiteralSegmentListSyntax'
209 |
210 |         // replace
211 |         let newPath = pathLiteral.with(\.segments, StringLiteralSegmentsSyntax(
    |                                                    |- warning: 'StringLiteralSegmentsSyntax' is deprecated: renamed to 'StringLiteralSegmentListSyntax'
    |                                                    `- note: use 'StringLiteralSegmentListSyntax' instead
212 |             pathLiteral.segments.compactMap { segment in
213 |                 guard let stringSegment = segment.as(StringSegmentSyntax.self) else {
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:221:24: warning: 'StringLiteralSegmentsSyntax' is deprecated: renamed to 'StringLiteralSegmentListSyntax'
219 |                 }
220 |
221 |                 return StringLiteralSegmentsSyntax.Element(StringSegmentSyntax(content: .stringSegment(newPath)))
    |                        |- warning: 'StringLiteralSegmentsSyntax' is deprecated: renamed to 'StringLiteralSegmentListSyntax'
    |                        `- note: use 'StringLiteralSegmentListSyntax' instead
222 |             }
223 |         ))
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:232:33: error: cannot use optional chaining on non-optional value of type 'AttributeListSyntax'
230 |     private func getParameters<T: FunctionParameter>(from declaration: FunctionDeclSyntax, with attributeName: String) -> [T] {
231 |         return declaration.signature.input.parameterList.filter { parameter in
232 |             parameter.attributes?.contains(where: { attribute in
    |                                 `- error: cannot use optional chaining on non-optional value of type 'AttributeListSyntax'
233 |                 attribute.as(AttributeSyntax.self)?.attributeName.as(SimpleTypeIdentifierSyntax.self)?.name.text == attributeName
234 |             }) ?? false
BUILD FAILURE 6.1 linux