Build Information
Failed to build SwiftRequest, reference 0.1.0 (7f3664
), with Swift 6.1 for Android on 28 May 2025 16:25:35 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ailtonvivaz/swift-request.git
Reference: 0.1.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/ailtonvivaz/swift-request
* tag 0.1.0 -> FETCH_HEAD
HEAD is now at 7f36644 Add table of contents and Installation instructions
Cloned https://github.com/ailtonvivaz/swift-request.git
Revision (git rev-parse @):
7f366445b1662691b6b64374e81a28c393999a6c
SUCCESS checkout https://github.com/ailtonvivaz/swift-request.git at 0.1.0
========================================
Build
========================================
Selected platform: android
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" : "SwiftRequestClient",
"targets" : [
"SwiftRequestClient"
],
"type" : {
"executable" : null
}
},
{
"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",
"SwiftRequestClient",
"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" : "SwiftRequestClient",
"module_type" : "SwiftTarget",
"name" : "SwiftRequestClient",
"path" : "Sources/SwiftRequestClient",
"product_memberships" : [
"SwiftRequestClient"
],
"sources" : [
"Quote.swift",
"QuoteService.swift",
"TestService.swift",
"main.swift"
],
"target_dependencies" : [
"SwiftRequest"
],
"type" : "executable"
},
{
"c99name" : "SwiftRequest",
"module_type" : "SwiftTarget",
"name" : "SwiftRequest",
"path" : "Sources/SwiftRequest",
"product_memberships" : [
"SwiftRequest",
"SwiftRequestClient"
],
"sources" : [
"HTTPResponseError.swift",
"Macros/MethodMacros.swift",
"Macros/ParamMacros.swift",
"Macros/ServiceMacros.swift",
"Request.swift",
"Service.swift",
"URLSession+execute.swift"
],
"target_dependencies" : [
"SwiftRequestMacros"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/apple/swift-syntax.git
[1/70449] Fetching swift-syntax
Fetched https://github.com/apple/swift-syntax.git from cache (7.93s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 509.1.1 (10.91s)
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/35] Write sources
[15/35] Write swift-version-24593BA9C3E375BF.txt
[17/37] Emitting module SwiftSyntax509
[18/37] Compiling SwiftSyntax509 Empty.swift
[19/38] Wrapping AST for SwiftSyntax509 for debugging
[21/83] Compiling SwiftSyntax AbsolutePosition.swift
[22/83] Compiling SwiftSyntax Assert.swift
[23/83] Compiling SwiftSyntax BumpPtrAllocator.swift
[24/83] Compiling SwiftSyntax CommonAncestor.swift
[25/83] Compiling SwiftSyntax Convenience.swift
[26/83] Compiling SwiftSyntax MemoryLayout.swift
[27/83] Compiling SwiftSyntax MissingNodeInitializers.swift
[28/89] Compiling SwiftSyntax RawSyntax.swift
[29/89] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[30/89] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[31/89] Compiling SwiftSyntax RawSyntaxTokenView.swift
[32/89] Compiling SwiftSyntax SourceLength.swift
[33/89] Compiling SwiftSyntax SourceLocation.swift
[34/89] Compiling SwiftSyntax SourcePresence.swift
[35/89] Compiling SwiftSyntax SyntaxText.swift
[36/89] Compiling SwiftSyntax SyntaxTreeViewMode.swift
[37/89] Compiling SwiftSyntax TokenDiagnostic.swift
[38/89] Compiling SwiftSyntax TokenSyntax.swift
[39/89] Compiling SwiftSyntax Trivia.swift
[40/89] Compiling SwiftSyntax Utils.swift
[41/89] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[42/89] Compiling SwiftSyntax Syntax.swift
[43/89] Compiling SwiftSyntax SyntaxArena.swift
[44/89] Compiling SwiftSyntax SyntaxChildren.swift
[45/89] Compiling SwiftSyntax SyntaxCollection.swift
[46/89] Compiling SwiftSyntax SyntaxData.swift
[47/89] Emitting module SwiftSyntax
[48/89] Compiling SwiftSyntax ChildNameForKeyPath.swift
[49/89] Compiling SwiftSyntax Keyword.swift
[50/89] Compiling SwiftSyntax RenamedChildrenCompatibility.swift
[51/89] Compiling SwiftSyntax RenamedNodesCompatibility.swift
[52/89] Compiling SwiftSyntax SyntaxAnyVisitor.swift
[53/89] Compiling SwiftSyntax SyntaxBaseNodes.swift
[54/89] Compiling SwiftSyntax SyntaxCollections.swift
[55/89] Compiling SwiftSyntax SyntaxEnum.swift
[56/89] Compiling SwiftSyntax SyntaxKind.swift
[57/89] Compiling SwiftSyntax SyntaxRewriter.swift
[58/89] Compiling SwiftSyntax SyntaxTraits.swift
[59/89] Compiling SwiftSyntax SyntaxTransform.swift
[60/89] Compiling SwiftSyntax SyntaxDeclNodes.swift
[61/89] Compiling SwiftSyntax SyntaxExprNodes.swift
[62/89] Compiling SwiftSyntax SyntaxNodes.swift
[63/89] Compiling SwiftSyntax SyntaxPatternNodes.swift
[64/89] Compiling SwiftSyntax SyntaxStmtNodes.swift
[65/89] Compiling SwiftSyntax SyntaxTypeNodes.swift
[66/89] Compiling SwiftSyntax SyntaxVisitor.swift
[67/89] Compiling SwiftSyntax TokenKind.swift
[68/89] Compiling SwiftSyntax Tokens.swift
[69/89] Compiling SwiftSyntax TriviaPieces.swift
[70/89] Compiling SwiftSyntax RawSyntaxNodes.swift
[71/89] Compiling SwiftSyntax RawSyntaxValidation.swift
[72/90] Wrapping AST for SwiftSyntax for debugging
[74/141] Compiling SwiftDiagnostics Message.swift
[75/141] Compiling SwiftDiagnostics Note.swift
[76/141] Compiling SwiftBasicFormat SyntaxProtocol+Formatted.swift
[77/141] Compiling SwiftBasicFormat Trivia+FormatExtensions.swift
[78/141] Emitting module SwiftBasicFormat
[79/141] Compiling SwiftDiagnostics FixIt.swift
[80/141] Compiling SwiftDiagnostics GroupedDiagnostics.swift
[81/141] Compiling SwiftDiagnostics Diagnostic.swift
[82/141] Compiling SwiftDiagnostics Convenience.swift
[83/141] Emitting module SwiftDiagnostics
[84/141] Compiling SwiftDiagnostics DiagnosticsFormatter.swift
[86/142] Compiling SwiftBasicFormat BasicFormat.swift
[87/142] Compiling SwiftBasicFormat Syntax+Extensions.swift
[88/143] Wrapping AST for SwiftDiagnostics for debugging
[89/143] Wrapping AST for SwiftBasicFormat for debugging
[91/143] Emitting module SwiftParser
[92/148] Compiling SwiftParser Modifiers.swift
[93/148] Compiling SwiftParser Names.swift
[94/148] Compiling SwiftParser Nominals.swift
[95/148] Compiling SwiftParser Parameters.swift
[96/148] Compiling SwiftParser ParseSourceFile.swift
[97/148] Compiling SwiftParser Lexer.swift
[98/148] Compiling SwiftParser RegexLiteralLexer.swift
[99/148] Compiling SwiftParser UnicodeScalarExtensions.swift
[100/148] Compiling SwiftParser Lookahead.swift
[101/148] Compiling SwiftParser LoopProgressCondition.swift
[102/148] Compiling SwiftParser StringLiteralRepresentedLiteralValue.swift
[103/148] Compiling SwiftParser StringLiterals.swift
[104/148] Compiling SwiftParser SwiftParserCompatibility.swift
[105/148] Compiling SwiftParser SyntaxUtils.swift
[106/148] Compiling SwiftParser TokenConsumer.swift
[107/148] Compiling SwiftParser TokenPrecedence.swift
[108/148] Compiling SwiftParser TokenSpec.swift
[109/148] Compiling SwiftParser TokenSpecSet.swift
[110/148] Compiling SwiftParser TopLevel.swift
[111/148] Compiling SwiftParser TriviaParser.swift
[112/148] Compiling SwiftParser Attributes.swift
[113/148] Compiling SwiftParser Availability.swift
[114/148] Compiling SwiftParser CharacterInfo.swift
[115/148] Compiling SwiftParser CollectionNodes+Parsable.swift
[116/148] Compiling SwiftParser Declarations.swift
[117/148] Compiling SwiftParser Directives.swift
[118/148] Compiling SwiftParser Parser.swift
[119/148] Compiling SwiftParser Patterns.swift
[120/148] Compiling SwiftParser Recovery.swift
[121/148] Compiling SwiftParser Specifiers.swift
[122/148] Compiling SwiftParser Statements.swift
[123/148] Compiling SwiftParser ExperimentalFeatures.swift
[124/148] Compiling SwiftParser Expressions.swift
[125/148] Compiling SwiftParser IncrementalParseTransition.swift
[126/148] Compiling SwiftParser Cursor.swift
[127/148] Compiling SwiftParser Lexeme.swift
[128/148] Compiling SwiftParser LexemeSequence.swift
[129/148] Compiling SwiftParser Types.swift
[130/148] Compiling SwiftParser IsLexerClassified.swift
[131/148] Compiling SwiftParser LayoutNodes+Parsable.swift
[132/148] Compiling SwiftParser Parser+TokenSpecSet.swift
[133/148] Compiling SwiftParser TokenSpecStaticMembers.swift
[134/149] Wrapping AST for SwiftParser for debugging
[136/172] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
[137/173] Compiling SwiftOperators PrecedenceGraph.swift
[138/173] Compiling SwiftOperators PrecedenceGroup.swift
[139/174] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
[140/174] Compiling SwiftOperators OperatorTable+Semantics.swift
[141/174] Compiling SwiftOperators OperatorTable.swift
[142/174] Compiling SwiftOperators SyntaxSynthesis.swift
[143/174] Compiling SwiftParserDiagnostics DiagnosticExtensions.swift
[144/174] Compiling SwiftParserDiagnostics LexerDiagnosticMessages.swift
[145/174] Emitting module SwiftOperators
[146/174] Compiling SwiftParserDiagnostics MissingNodesError.swift
[147/174] Compiling SwiftParserDiagnostics MissingTokenError.swift
[148/174] Compiling SwiftOperators OperatorTable+Folding.swift
[150/175] Emitting module SwiftParserDiagnostics
[151/175] Compiling SwiftParserDiagnostics SyntaxExtensions.swift
[152/175] Compiling SwiftParserDiagnostics Utils.swift
[153/175] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
[153/175] Wrapping AST for SwiftOperators for debugging
[155/175] Compiling SwiftParserDiagnostics ParserDiagnosticMessages.swift
[156/175] Compiling SwiftParserDiagnostics PresenceUtils.swift
[161/175] Compiling SwiftParserDiagnostics MultiLineStringLiteralDiagnosticsGenerator.swift
[162/175] Compiling SwiftParserDiagnostics ParseDiagnosticsGenerator.swift
[163/176] Wrapping AST for SwiftParserDiagnostics for debugging
[165/190] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.swift
[166/190] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
[167/191] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
[168/191] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
[169/191] Compiling SwiftSyntaxBuilder Indenter.swift
[170/191] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
[171/191] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
[172/191] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
[173/191] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
[174/191] Emitting module SwiftSyntaxBuilder
[175/191] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
[176/191] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
[177/191] Compiling SwiftSyntaxBuilder BuildableNodes.swift
[178/191] Compiling SwiftSyntaxBuilder RenamedChildrenBuilderCompatibility.swift
[179/191] Compiling SwiftSyntaxBuilder ResultBuilders.swift
[180/192] Wrapping AST for SwiftSyntaxBuilder for debugging
[182/206] Compiling SwiftSyntaxMacros AccessorMacro.swift
[183/206] Compiling SwiftSyntaxMacros AttachedMacro.swift
[184/207] Compiling SwiftSyntaxMacros MemberMacro.swift
[185/207] Compiling SwiftSyntaxMacros Macro.swift
[186/207] Compiling SwiftSyntaxMacros MemberAttributeMacro.swift
[187/207] Compiling SwiftSyntaxMacros FreestandingMacro.swift
[188/207] Compiling SwiftSyntaxMacros Macro+Format.swift
[189/207] Compiling SwiftSyntaxMacros ExpressionMacro.swift
[190/207] Compiling SwiftSyntaxMacros ExtensionMacro.swift
[191/207] Compiling SwiftSyntaxMacros CodeItemMacro.swift
[192/207] Compiling SwiftSyntaxMacros DeclarationMacro.swift
[193/207] Emitting module SwiftSyntaxMacros
[194/207] Compiling SwiftSyntaxMacros AbstractSourceLocation.swift
[195/207] Compiling SwiftSyntaxMacros MacroExpansionContext.swift
[196/207] Compiling SwiftSyntaxMacros PeerMacro.swift
[197/208] Wrapping AST for SwiftSyntaxMacros for debugging
[199/216] Compiling SwiftSyntaxMacroExpansion FunctionParameterUtils.swift
[200/216] Compiling SwiftSyntaxMacroExpansion BasicMacroExpansionContext.swift
[201/216] Emitting module SwiftSyntaxMacroExpansion
[202/216] Compiling SwiftSyntaxMacroExpansion MacroExpansion.swift
[203/216] Compiling SwiftSyntaxMacroExpansion IndentationUtils.swift
[204/216] Compiling SwiftSyntaxMacroExpansion MacroExpansionDiagnosticMessages.swift
[205/216] Compiling SwiftSyntaxMacroExpansion MacroReplacement.swift
[206/216] Compiling SwiftSyntaxMacroExpansion MacroSystem.swift
[207/217] Wrapping AST for SwiftSyntaxMacroExpansion for debugging
[209/224] Compiling SwiftCompilerPluginMessageHandling PluginMessageCompatibility.swift
[210/224] Compiling SwiftCompilerPluginMessageHandling Macros.swift
[211/224] Compiling SwiftCompilerPluginMessageHandling Diagnostics.swift
[212/224] Compiling SwiftCompilerPluginMessageHandling CompilerPluginMessageHandler.swift
[213/224] Emitting module SwiftCompilerPluginMessageHandling
[214/224] Compiling SwiftCompilerPluginMessageHandling PluginMessages.swift
[215/224] Compiling SwiftCompilerPluginMessageHandling PluginMacroExpansionContext.swift
[216/225] Wrapping AST for SwiftCompilerPluginMessageHandling for debugging
[218/227] Emitting module SwiftCompilerPlugin
[219/227] Compiling SwiftCompilerPlugin CompilerPlugin.swift
[220/228] Wrapping AST for SwiftCompilerPlugin for debugging
[222/239] Compiling SwiftRequestMacros ServiceDiagnostics.swift
[223/240] 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
[224/240] 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 |
[225/240] 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 |
[226/240] 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 | }
[227/240] 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 | }
[228/240] Compiling SwiftRequestMacros ParamMacro.swift
[229/240] Compiling SwiftRequestMacros RequestDiagnostics.swift
[230/240] 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
[231/240] Compiling SwiftRequestMacros SwiftRequestPlugin.swift
[232/240] 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 | }
[233/240] 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: [FunctionPathParameter] = 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: [FunctionPathParameter] = getParameters(from: declaration, with: "Path")
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:201:52: warning: 'StringLiteralSegmentsSyntax' is deprecated: renamed to 'StringLiteralSegmentListSyntax'
199 |
200 | // replace
201 | let newPath = pathLiteral.with(\.segments, StringLiteralSegmentsSyntax(
| |- warning: 'StringLiteralSegmentsSyntax' is deprecated: renamed to 'StringLiteralSegmentListSyntax'
| `- note: use 'StringLiteralSegmentListSyntax' instead
202 | pathLiteral.segments.compactMap { segment in
203 | guard let stringSegment = segment.as(StringSegmentSyntax.self) else {
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:211:24: warning: 'StringLiteralSegmentsSyntax' is deprecated: renamed to 'StringLiteralSegmentListSyntax'
209 | }
210 |
211 | return StringLiteralSegmentsSyntax.Element(StringSegmentSyntax(content: .stringSegment(newPath)))
| |- warning: 'StringLiteralSegmentsSyntax' is deprecated: renamed to 'StringLiteralSegmentListSyntax'
| `- note: use 'StringLiteralSegmentListSyntax' instead
212 | }
213 | ))
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:222:33: error: cannot use optional chaining on non-optional value of type 'AttributeListSyntax'
220 | private func getParameters<T: FunctionParameter>(from declaration: FunctionDeclSyntax, with attributeName: String) -> [T] {
221 | return declaration.signature.input.parameterList.filter { parameter in
222 | parameter.attributes?.contains(where: { attribute in
| `- error: cannot use optional chaining on non-optional value of type 'AttributeListSyntax'
223 | attribute.as(AttributeSyntax.self)?.attributeName.as(SimpleTypeIdentifierSyntax.self)?.name.text == attributeName
224 | }) ?? false
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/20] Write swift-version-24593BA9C3E375BF.txt
[2/22] Emitting module SwiftSyntax509
[3/22] Compiling SwiftSyntax509 Empty.swift
[5/67] Compiling SwiftSyntax SyntaxText.swift
[6/67] Compiling SwiftSyntax SyntaxTreeViewMode.swift
[7/67] Compiling SwiftSyntax TokenDiagnostic.swift
[8/67] Compiling SwiftSyntax TokenSyntax.swift
[9/67] Compiling SwiftSyntax Trivia.swift
[10/67] Compiling SwiftSyntax Utils.swift
[11/73] Compiling SwiftSyntax RawSyntax.swift
[12/73] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[13/73] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[14/73] Compiling SwiftSyntax RawSyntaxTokenView.swift
[15/73] Compiling SwiftSyntax SourceLength.swift
[16/73] Compiling SwiftSyntax SourceLocation.swift
[17/73] Compiling SwiftSyntax SourcePresence.swift
[18/73] Compiling SwiftSyntax AbsolutePosition.swift
[19/73] Compiling SwiftSyntax Assert.swift
[20/73] Compiling SwiftSyntax BumpPtrAllocator.swift
[21/73] Compiling SwiftSyntax CommonAncestor.swift
[22/73] Compiling SwiftSyntax Convenience.swift
[23/73] Compiling SwiftSyntax MemoryLayout.swift
[24/73] Compiling SwiftSyntax MissingNodeInitializers.swift
[25/73] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[26/73] Compiling SwiftSyntax Syntax.swift
[27/73] Compiling SwiftSyntax SyntaxArena.swift
[28/73] Compiling SwiftSyntax SyntaxChildren.swift
[29/73] Compiling SwiftSyntax SyntaxCollection.swift
[30/73] Compiling SwiftSyntax SyntaxData.swift
[31/73] Emitting module SwiftSyntax
[32/73] Compiling SwiftSyntax ChildNameForKeyPath.swift
[33/73] Compiling SwiftSyntax Keyword.swift
[34/73] Compiling SwiftSyntax RenamedChildrenCompatibility.swift
[35/73] Compiling SwiftSyntax RenamedNodesCompatibility.swift
[36/73] Compiling SwiftSyntax SyntaxAnyVisitor.swift
[37/73] Compiling SwiftSyntax SyntaxBaseNodes.swift
[38/73] Compiling SwiftSyntax SyntaxCollections.swift
[39/73] Compiling SwiftSyntax SyntaxEnum.swift
[40/73] Compiling SwiftSyntax SyntaxKind.swift
[41/73] Compiling SwiftSyntax SyntaxRewriter.swift
[42/73] Compiling SwiftSyntax SyntaxTraits.swift
[43/73] Compiling SwiftSyntax SyntaxTransform.swift
[44/73] Compiling SwiftSyntax SyntaxDeclNodes.swift
[45/73] Compiling SwiftSyntax SyntaxExprNodes.swift
[46/73] Compiling SwiftSyntax SyntaxNodes.swift
[47/73] Compiling SwiftSyntax SyntaxPatternNodes.swift
[48/73] Compiling SwiftSyntax SyntaxStmtNodes.swift
[49/73] Compiling SwiftSyntax SyntaxTypeNodes.swift
[50/73] Compiling SwiftSyntax SyntaxVisitor.swift
[51/73] Compiling SwiftSyntax TokenKind.swift
[52/73] Compiling SwiftSyntax Tokens.swift
[53/73] Compiling SwiftSyntax TriviaPieces.swift
[54/73] Compiling SwiftSyntax RawSyntaxNodes.swift
[55/73] Compiling SwiftSyntax RawSyntaxValidation.swift
[57/87] Emitting module SwiftDiagnostics
[58/109] Compiling SwiftDiagnostics FixIt.swift
[59/124] Compiling SwiftDiagnostics Convenience.swift
[60/124] Compiling SwiftDiagnostics Message.swift
[61/124] Compiling SwiftDiagnostics Note.swift
[62/124] Compiling SwiftBasicFormat Syntax+Extensions.swift
[63/124] Compiling SwiftBasicFormat SyntaxProtocol+Formatted.swift
[64/124] Compiling SwiftBasicFormat Trivia+FormatExtensions.swift
[65/124] Compiling SwiftDiagnostics DiagnosticsFormatter.swift
[66/124] Compiling SwiftDiagnostics Diagnostic.swift
[67/124] Compiling SwiftDiagnostics GroupedDiagnostics.swift
[69/124] Emitting module SwiftBasicFormat
[70/124] Compiling SwiftBasicFormat BasicFormat.swift
[72/124] Compiling SwiftParser Modifiers.swift
[73/124] Compiling SwiftParser Names.swift
[74/124] Compiling SwiftParser Nominals.swift
[75/124] Compiling SwiftParser Parameters.swift
[76/124] Compiling SwiftParser ParseSourceFile.swift
[77/124] Emitting module SwiftParser
[78/129] Compiling SwiftParser Lexer.swift
[79/129] Compiling SwiftParser RegexLiteralLexer.swift
[80/129] Compiling SwiftParser UnicodeScalarExtensions.swift
[81/129] Compiling SwiftParser Lookahead.swift
[82/129] Compiling SwiftParser LoopProgressCondition.swift
[83/129] Compiling SwiftParser StringLiteralRepresentedLiteralValue.swift
[84/129] Compiling SwiftParser StringLiterals.swift
[85/129] Compiling SwiftParser SwiftParserCompatibility.swift
[86/129] Compiling SwiftParser SyntaxUtils.swift
[87/129] Compiling SwiftParser TokenConsumer.swift
[88/129] Compiling SwiftParser TokenPrecedence.swift
[89/129] Compiling SwiftParser TokenSpec.swift
[90/129] Compiling SwiftParser TokenSpecSet.swift
[91/129] Compiling SwiftParser TopLevel.swift
[92/129] Compiling SwiftParser TriviaParser.swift
[93/129] Compiling SwiftParser Parser.swift
[94/129] Compiling SwiftParser Patterns.swift
[95/129] Compiling SwiftParser Recovery.swift
[96/129] Compiling SwiftParser Specifiers.swift
[97/129] Compiling SwiftParser Statements.swift
[98/129] Compiling SwiftParser Types.swift
[99/129] Compiling SwiftParser IsLexerClassified.swift
[100/129] Compiling SwiftParser LayoutNodes+Parsable.swift
[101/129] Compiling SwiftParser Parser+TokenSpecSet.swift
[102/129] Compiling SwiftParser TokenSpecStaticMembers.swift
[103/129] Compiling SwiftParser Attributes.swift
[104/129] Compiling SwiftParser Availability.swift
[105/129] Compiling SwiftParser CharacterInfo.swift
[106/129] Compiling SwiftParser CollectionNodes+Parsable.swift
[107/129] Compiling SwiftParser Declarations.swift
[108/129] Compiling SwiftParser Directives.swift
[109/129] Compiling SwiftParser ExperimentalFeatures.swift
[110/129] Compiling SwiftParser Expressions.swift
[111/129] Compiling SwiftParser IncrementalParseTransition.swift
[112/129] Compiling SwiftParser Cursor.swift
[113/129] Compiling SwiftParser Lexeme.swift
[114/129] Compiling SwiftParser LexemeSequence.swift
[115/130] Wrapping AST for SwiftParser for debugging
[117/153] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
[118/154] Compiling SwiftOperators PrecedenceGroup.swift
[119/155] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
[120/155] Compiling SwiftOperators OperatorTable.swift
[121/155] Compiling SwiftOperators PrecedenceGraph.swift
[122/155] Compiling SwiftOperators SyntaxSynthesis.swift
[123/155] Emitting module SwiftParserDiagnostics
[124/155] Compiling SwiftParserDiagnostics SyntaxExtensions.swift
[125/155] Compiling SwiftParserDiagnostics Utils.swift
[126/155] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
[127/155] Compiling SwiftOperators OperatorTable+Folding.swift
[128/155] Compiling SwiftOperators OperatorError.swift
[129/155] Compiling SwiftOperators OperatorTable+Defaults.swift
[130/155] Compiling SwiftOperators Operator.swift
[131/155] Compiling SwiftOperators OperatorError+Diagnostics.swift
[132/155] Emitting module SwiftOperators
[133/155] Compiling SwiftOperators OperatorTable+Semantics.swift
[138/156] Wrapping AST for SwiftOperators for debugging
[140/156] Compiling SwiftParserDiagnostics MissingNodesError.swift
[141/156] Compiling SwiftParserDiagnostics MissingTokenError.swift
[142/156] Compiling SwiftParserDiagnostics MultiLineStringLiteralDiagnosticsGenerator.swift
[143/156] Compiling SwiftParserDiagnostics ParseDiagnosticsGenerator.swift
[144/157] Wrapping AST for SwiftParserDiagnostics for debugging
[146/171] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
[147/171] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
[148/172] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
[149/172] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
[150/172] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
[151/172] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
[152/172] Compiling SwiftSyntaxBuilder Indenter.swift
[153/172] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
[154/172] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.swift
[155/172] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
[156/172] Compiling SwiftSyntaxBuilder BuildableNodes.swift
[157/172] Compiling SwiftSyntaxBuilder RenamedChildrenBuilderCompatibility.swift
[158/172] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
[159/172] Emitting module SwiftSyntaxBuilder
[160/172] Compiling SwiftSyntaxBuilder ResultBuilders.swift
[161/173] Wrapping AST for SwiftSyntaxBuilder for debugging
[163/187] Compiling SwiftSyntaxMacros CodeItemMacro.swift
[164/187] Compiling SwiftSyntaxMacros DeclarationMacro.swift
[165/187] Compiling SwiftSyntaxMacros AccessorMacro.swift
[166/187] Compiling SwiftSyntaxMacros AttachedMacro.swift
[167/188] Compiling SwiftSyntaxMacros Macro.swift
[168/188] Compiling SwiftSyntaxMacros MemberAttributeMacro.swift
[169/188] Compiling SwiftSyntaxMacros FreestandingMacro.swift
[170/188] Compiling SwiftSyntaxMacros Macro+Format.swift
[171/188] Compiling SwiftSyntaxMacros ExpressionMacro.swift
[172/188] Compiling SwiftSyntaxMacros ExtensionMacro.swift
[173/188] Compiling SwiftSyntaxMacros MemberMacro.swift
[174/188] Compiling SwiftSyntaxMacros PeerMacro.swift
[175/188] Emitting module SwiftSyntaxMacros
[176/188] Compiling SwiftSyntaxMacros AbstractSourceLocation.swift
[177/188] Compiling SwiftSyntaxMacros MacroExpansionContext.swift
[179/196] Compiling SwiftSyntaxMacroExpansion FunctionParameterUtils.swift
[180/196] Compiling SwiftSyntaxMacroExpansion MacroExpansionDiagnosticMessages.swift
[181/196] Emitting module SwiftSyntaxMacroExpansion
[182/196] Compiling SwiftSyntaxMacroExpansion BasicMacroExpansionContext.swift
[183/196] Compiling SwiftSyntaxMacroExpansion MacroReplacement.swift
[184/196] Compiling SwiftSyntaxMacroExpansion IndentationUtils.swift
[185/196] Compiling SwiftSyntaxMacroExpansion MacroExpansion.swift
[186/196] Compiling SwiftSyntaxMacroExpansion MacroSystem.swift
[187/197] Wrapping AST for SwiftSyntaxMacroExpansion for debugging
[189/204] Compiling SwiftCompilerPluginMessageHandling Diagnostics.swift
[190/204] Compiling SwiftCompilerPluginMessageHandling Macros.swift
[191/204] Emitting module SwiftCompilerPluginMessageHandling
[192/204] Compiling SwiftCompilerPluginMessageHandling CompilerPluginMessageHandler.swift
[193/204] Compiling SwiftCompilerPluginMessageHandling PluginMessageCompatibility.swift
[194/204] Compiling SwiftCompilerPluginMessageHandling PluginMessages.swift
[195/204] Compiling SwiftCompilerPluginMessageHandling PluginMacroExpansionContext.swift
[197/206] Emitting module SwiftCompilerPlugin
[198/206] Compiling SwiftCompilerPlugin CompilerPlugin.swift
[199/207] Wrapping AST for SwiftCompilerPlugin for debugging
[201/218] 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 | }
[202/218] Compiling SwiftRequestMacros ServiceDiagnostics.swift
[203/219] Compiling SwiftRequestMacros SimpleDiagnosticMessage.swift
[204/219] Compiling SwiftRequestMacros ParamMacro.swift
[205/219] Compiling SwiftRequestMacros RequestDiagnostics.swift
[206/219] 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 | }
[207/219] 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 | }
[208/219] 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 |
[209/219] 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 |
[210/219] 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 | }
[211/219] Compiling SwiftRequestMacros SwiftRequestPlugin.swift
[212/219] 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: [FunctionPathParameter] = 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: [FunctionPathParameter] = getParameters(from: declaration, with: "Path")
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:201:52: warning: 'StringLiteralSegmentsSyntax' is deprecated: renamed to 'StringLiteralSegmentListSyntax'
199 |
200 | // replace
201 | let newPath = pathLiteral.with(\.segments, StringLiteralSegmentsSyntax(
| |- warning: 'StringLiteralSegmentsSyntax' is deprecated: renamed to 'StringLiteralSegmentListSyntax'
| `- note: use 'StringLiteralSegmentListSyntax' instead
202 | pathLiteral.segments.compactMap { segment in
203 | guard let stringSegment = segment.as(StringSegmentSyntax.self) else {
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:211:24: warning: 'StringLiteralSegmentsSyntax' is deprecated: renamed to 'StringLiteralSegmentListSyntax'
209 | }
210 |
211 | return StringLiteralSegmentsSyntax.Element(StringSegmentSyntax(content: .stringSegment(newPath)))
| |- warning: 'StringLiteralSegmentsSyntax' is deprecated: renamed to 'StringLiteralSegmentListSyntax'
| `- note: use 'StringLiteralSegmentListSyntax' instead
212 | }
213 | ))
/host/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:222:33: error: cannot use optional chaining on non-optional value of type 'AttributeListSyntax'
220 | private func getParameters<T: FunctionParameter>(from declaration: FunctionDeclSyntax, with attributeName: String) -> [T] {
221 | return declaration.signature.input.parameterList.filter { parameter in
222 | parameter.attributes?.contains(where: { attribute in
| `- error: cannot use optional chaining on non-optional value of type 'AttributeListSyntax'
223 | attribute.as(AttributeSyntax.self)?.attributeName.as(SimpleTypeIdentifierSyntax.self)?.name.text == attributeName
224 | }) ?? false
BUILD FAILURE 6.1 android