Build Information
Failed to build swift-network-request, reference 0.1.0 (8cf48a), with Swift 6.1 for Linux on 29 Jul 2025 14:27:53 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/vadimkrutovlv/swift-network-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/vadimkrutovlv/swift-network-request
* tag 0.1.0 -> FETCH_HEAD
HEAD is now at 8cf48a9 Initial commit
Cloned https://github.com/vadimkrutovlv/swift-network-request.git
Revision (git rev-parse @):
8cf48a9822d49595943ff3337c1eee4b0427a495
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/vadimkrutovlv/swift-network-request.git at 0.1.0
========================================
Build
========================================
Selected platform: linux
Swift version: 6.1
Building package at path: $PWD
https://github.com/vadimkrutovlv/swift-network-request.git
https://github.com/vadimkrutovlv/swift-network-request.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-syntax",
"requirement" : {
"range" : [
{
"lower_bound" : "601.0.1",
"upper_bound" : "602.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/swiftlang/swift-syntax.git"
},
{
"identity" : "swift-macro-testing",
"requirement" : {
"range" : [
{
"lower_bound" : "0.6.3",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/pointfreeco/swift-macro-testing"
},
{
"identity" : "swift-dependencies",
"requirement" : {
"exact" : [
"1.9.2"
]
},
"type" : "sourceControl",
"url" : "https://github.com/pointfreeco/swift-dependencies"
},
{
"identity" : "swift-docc-plugin",
"requirement" : {
"range" : [
{
"lower_bound" : "1.1.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/swiftlang/swift-docc-plugin"
}
],
"manifest_display_name" : "swift-network-request",
"name" : "swift-network-request",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "13.0"
},
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "8.0"
}
],
"products" : [
{
"name" : "SwiftNetworkRequest",
"targets" : [
"SwiftNetworkRequest"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "SwiftNetworkRequestMacros",
"targets" : [
"SwiftNetworkRequestMacros"
],
"type" : {
"macro" : null
}
}
],
"targets" : [
{
"c99name" : "SwiftNetworkRequestTests",
"module_type" : "SwiftTarget",
"name" : "SwiftNetworkRequestTests",
"path" : "Tests/SwiftNetworkRequestTests",
"product_dependencies" : [
"SwiftSyntaxMacrosTestSupport",
"MacroTesting"
],
"sources" : [
"BaseNetworkRequest.swift",
"DefaultAuthorizationTests.swift",
"DeleteMacroTests.swift",
"DynamicResponsesTests.swift",
"GetMacroTests.swift",
"Mocks/URLSessionMock.swift",
"PostMacroTests.swift",
"PutMacroTests.swift"
],
"target_dependencies" : [
"SwiftNetworkRequest",
"SwiftNetworkRequestMacros"
],
"type" : "test"
},
{
"c99name" : "SwiftNetworkRequestMacros",
"module_type" : "SwiftTarget",
"name" : "SwiftNetworkRequestMacros",
"path" : "Sources/SwiftNetworkRequestMacros",
"product_dependencies" : [
"SwiftSyntaxMacros",
"SwiftCompilerPlugin"
],
"product_memberships" : [
"SwiftNetworkRequest",
"SwiftNetworkRequestMacros"
],
"sources" : [
"Helpers.swift",
"Models.swift",
"Plugin.swift",
"RequestBuilder.swift",
"RequestMacros.swift"
],
"type" : "macro"
},
{
"c99name" : "SwiftNetworkRequest",
"module_type" : "SwiftTarget",
"name" : "SwiftNetworkRequest",
"path" : "Sources/SwiftNetworkRequest",
"product_dependencies" : [
"Dependencies"
],
"product_memberships" : [
"SwiftNetworkRequest"
],
"sources" : [
"DI/RequestAuthorization.swift",
"DI/URLSession.swift",
"Helpers/URLSession+Request.swift",
"Macros/Delete.swift",
"Macros/Get.swift",
"Macros/HelperMacros.swift",
"Macros/Post.swift",
"Macros/Put.swift",
"Models/DynamicAPIResponse.swift",
"Models/KeyValuePair.swift",
"Models/RequestConfig.swift"
],
"target_dependencies" : [
"SwiftNetworkRequestMacros"
],
"type" : "library"
}
],
"tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:2e2b3aca8600f890617c2faa770b70e33c1dfd303d6f92b308423b89ef6bde64
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/pointfreeco/swift-dependencies
Fetching https://github.com/swiftlang/swift-syntax.git
Fetching https://github.com/pointfreeco/swift-macro-testing
Fetching https://github.com/swiftlang/swift-docc-plugin
[1/908] Fetching swift-macro-testing
[909/3002] Fetching swift-macro-testing, swift-docc-plugin
[1119/9293] Fetching swift-macro-testing, swift-docc-plugin, swift-dependencies
[2252/80659] Fetching swift-macro-testing, swift-docc-plugin, swift-dependencies, swift-syntax
Fetched https://github.com/pointfreeco/swift-macro-testing from cache (1.27s)
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (1.27s)
[18424/77657] Fetching swift-dependencies, swift-syntax
Fetched https://github.com/pointfreeco/swift-dependencies from cache (8.33s)
Fetched https://github.com/swiftlang/swift-syntax.git from cache (8.42s)
Computing version for https://github.com/pointfreeco/swift-dependencies
Computed https://github.com/pointfreeco/swift-dependencies at 1.9.2 (9.53s)
Fetching https://github.com/pointfreeco/swift-clocks
Fetching https://github.com/pointfreeco/combine-schedulers
Fetching https://github.com/pointfreeco/swift-concurrency-extras
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
[1/2410] Fetching combine-schedulers
[990/3288] Fetching combine-schedulers, swift-concurrency-extras
[1098/4580] Fetching combine-schedulers, swift-concurrency-extras, swift-clocks
[4581/10062] Fetching combine-schedulers, swift-concurrency-extras, swift-clocks, xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/swift-concurrency-extras from cache (0.62s)
[4689/9184] Fetching combine-schedulers, swift-clocks, xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/swift-clocks from cache (0.62s)
[3562/7892] Fetching combine-schedulers, xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/combine-schedulers from cache (1.19s)
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (1.21s)
Computing version for https://github.com/pointfreeco/swift-macro-testing
Computed https://github.com/pointfreeco/swift-macro-testing at 0.6.3 (2.14s)
Fetching https://github.com/pointfreeco/swift-snapshot-testing
[1/15341] Fetching swift-snapshot-testing
Fetched https://github.com/pointfreeco/swift-snapshot-testing from cache (4.17s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 601.0.1 (8.04s)
Computing version for https://github.com/pointfreeco/combine-schedulers
Computed https://github.com/pointfreeco/combine-schedulers at 1.0.3 (1.11s)
Computing version for https://github.com/pointfreeco/swift-clocks
Computed https://github.com/pointfreeco/swift-clocks at 1.0.6 (0.84s)
Computing version for https://github.com/pointfreeco/swift-concurrency-extras
Computed https://github.com/pointfreeco/swift-concurrency-extras at 1.3.1 (0.72s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 1.6.0 (0.63s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.5 (0.73s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3437] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.46s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.21s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing
Computed https://github.com/pointfreeco/swift-snapshot-testing at 1.18.6 (0.66s)
Fetching https://github.com/pointfreeco/swift-custom-dump
[1/4581] Fetching swift-custom-dump
Fetched https://github.com/pointfreeco/swift-custom-dump from cache (0.39s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.3.3 (1.02s)
Creating working copy for https://github.com/pointfreeco/xctest-dynamic-overlay
Working copy of https://github.com/pointfreeco/xctest-dynamic-overlay resolved at 1.6.0
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/pointfreeco/swift-custom-dump
Working copy of https://github.com/pointfreeco/swift-custom-dump resolved at 1.3.3
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.4.5
Creating working copy for https://github.com/pointfreeco/swift-concurrency-extras
Working copy of https://github.com/pointfreeco/swift-concurrency-extras resolved at 1.3.1
Creating working copy for https://github.com/pointfreeco/swift-macro-testing
Working copy of https://github.com/pointfreeco/swift-macro-testing resolved at 0.6.3
Creating working copy for https://github.com/pointfreeco/swift-snapshot-testing
Working copy of https://github.com/pointfreeco/swift-snapshot-testing resolved at 1.18.6
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 601.0.1
Creating working copy for https://github.com/pointfreeco/swift-clocks
Working copy of https://github.com/pointfreeco/swift-clocks resolved at 1.0.6
Creating working copy for https://github.com/pointfreeco/combine-schedulers
Working copy of https://github.com/pointfreeco/combine-schedulers resolved at 1.0.3
Creating working copy for https://github.com/pointfreeco/swift-dependencies
Working copy of https://github.com/pointfreeco/swift-dependencies resolved at 1.9.2
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/54] Write sources
[34/54] Compiling _SwiftSyntaxCShims dummy.c
[35/54] Write swift-version-24593BA9C3E375BF.txt
[37/88] Emitting module SwiftSyntax600
[38/88] Emitting module IssueReportingPackageSupport
[39/88] Compiling IssueReportingPackageSupport _Test.swift
[41/89] Emitting module ConcurrencyExtras
[42/89] Compiling ConcurrencyExtras Result.swift
[43/90] Emitting module IssueReportingPackageSupport
[44/90] Compiling IssueReportingPackageSupport _Test.swift
[45/90] Compiling SwiftSyntax601 Empty.swift
[46/90] Emitting module SwiftSyntax601
[47/90] Compiling SwiftSyntax600 Empty.swift
[48/91] Compiling SwiftSyntax510 Empty.swift
[49/91] Emitting module SwiftSyntax510
[50/94] Emitting module SwiftSyntax509
[51/94] Compiling SwiftSyntax509 Empty.swift
[57/95] Compiling ConcurrencyExtras UncheckedSendable.swift
[57/95] Wrapping AST for SwiftSyntax600 for debugging
[58/95] Wrapping AST for SwiftSyntax510 for debugging
[59/96] Wrapping AST for SwiftSyntax601 for debugging
[60/121] Wrapping AST for SwiftSyntax509 for debugging
[62/179] Compiling SwiftSyntax Identifier.swift
[63/179] Compiling SwiftSyntax MemoryLayout.swift
[64/199] Emitting module IssueReporting
[65/199] Compiling SwiftSyntax SourceEdit.swift
[66/199] Compiling SwiftSyntax SourceLength.swift
[67/199] Compiling IssueReporting WithExpectedIssue.swift
[68/199] Compiling IssueReporting WithIssueContext.swift
[71/201] Emitting module IssueReporting
[72/201] Compiling ConcurrencyExtras Result.swift
[73/201] Compiling ConcurrencyExtras Task.swift
[74/202] Compiling SwiftSyntax Assert.swift
[75/202] Compiling SwiftSyntax BumpPtrAllocator.swift
[76/202] Compiling SwiftSyntax CommonAncestor.swift
[77/202] Compiling ConcurrencyExtras Task.swift
[78/202] Compiling SwiftSyntax AbsolutePosition.swift
[79/202] Compiling SwiftSyntax AbsoluteRawSyntax.swift
[80/202] Compiling SwiftSyntax MissingNodeInitializers.swift
[81/202] Compiling SwiftSyntax RawSyntax.swift
[82/202] Compiling ConcurrencyExtras MainSerialExecutor.swift
[83/202] Compiling ConcurrencyExtras LockIsolated.swift
[86/202] Compiling SwiftSyntax AbsoluteSyntaxInfo.swift
[93/202] Compiling SwiftSyntax Convenience.swift
[94/202] Compiling SwiftSyntax CustomTraits.swift
[95/202] Compiling SwiftSyntax EditorPlaceholder.swift
[96/202] Compiling ConcurrencyExtras UncheckedSendable.swift
[100/202] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[101/202] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[102/202] Compiling SwiftSyntax RawSyntaxTokenView.swift
[107/202] Emitting module ConcurrencyExtras
[110/203] Compiling ConcurrencyExtras LockIsolated.swift
[118/203] Compiling ConcurrencyExtras MainSerialExecutor.swift
[126/205] Compiling IssueReporting WithExpectedIssue.swift
[127/205] Compiling IssueReporting WithIssueContext.swift
[138/261] Compiling XCTestDynamicOverlay Exports.swift
[140/261] Emitting module CombineSchedulers
[141/261] Compiling CombineSchedulers AnyScheduler.swift
[142/261] Compiling CombineSchedulers Concurrency.swift
[143/262] Compiling CombineSchedulers ImmediateScheduler.swift
[144/262] Compiling CombineSchedulers Deprecations.swift
[145/262] Compiling CombineSchedulers Lock.swift
[146/262] Compiling CombineSchedulers NSRecursiveLock.swift
[147/262] Compiling CombineSchedulers Timer.swift
[148/262] Compiling CombineSchedulers SwiftUI.swift
[149/262] Compiling CombineSchedulers TestScheduler.swift
[150/262] Compiling CombineSchedulers UIKit.swift
[151/262] Compiling CombineSchedulers UIScheduler.swift
[152/262] Compiling Clocks Timer.swift
[155/264] Emitting module CombineSchedulers
[156/264] Compiling CombineSchedulers UIScheduler.swift
[163/264] Compiling CombineSchedulers Timer.swift
[164/264] Compiling CombineSchedulers UIKit.swift
[165/264] Compiling Clocks ImmediateClock.swift
[166/264] Emitting module Clocks
[167/264] Compiling Clocks AnyClock.swift
[168/264] Compiling Clocks Timer.swift
[169/265] Compiling CombineSchedulers UnimplementedScheduler.swift
[170/266] Compiling Clocks Lock.swift
[171/266] Compiling CombineSchedulers UnimplementedScheduler.swift
[172/266] Compiling Clocks _AsyncTimerSequence.swift
[174/267] Emitting module Clocks
[175/267] Compiling Clocks AnyClock.swift
[177/267] Compiling Clocks ImmediateClock.swift
[178/267] Compiling Clocks UnimplementedClock.swift
[180/267] Emitting module XCTestDynamicOverlay
[181/267] Compiling XCTestDynamicOverlay Deprecations.swift
[184/267] Compiling SwiftSyntax SyntaxNodeStructure.swift
[185/267] Compiling SwiftSyntax SyntaxProtocol.swift
[186/267] Compiling SwiftSyntax SyntaxText.swift
[187/267] Compiling SwiftSyntax SyntaxTreeViewMode.swift
[188/267] Compiling SwiftSyntax TokenDiagnostic.swift
[189/267] Compiling SwiftSyntax TokenSequence.swift
[190/267] Compiling SwiftSyntax TokenSyntax.swift
[191/268] Compiling Clocks TestClock.swift
[192/268] Compiling Clocks SwiftUI.swift
[194/269] Compiling XCTestDynamicOverlay Deprecations.swift
[195/269] Emitting module XCTestDynamicOverlay
[196/269] Compiling Clocks _AsyncTimerSequence.swift
[197/269] Compiling Clocks SwiftUI.swift
[198/269] Compiling Clocks TestClock.swift
[199/269] Compiling Clocks Lock.swift
[203/317] Compiling Dependencies Assert.swift
[204/317] Compiling Dependencies Calendar.swift
[205/317] Compiling Dependencies Clocks.swift
[206/317] Compiling Dependencies UUID.swift
[207/317] Compiling Dependencies WithRandomNumberGenerator.swift
[208/317] Compiling Dependencies AppEntryPoint.swift
[209/320] Compiling Dependencies Context.swift
[210/320] Compiling Dependencies Date.swift
[211/320] Compiling Dependencies FireAndForget.swift
[212/323] Compiling Dependencies Locale.swift
[213/323] Compiling Dependencies MainQueue.swift
[214/323] Compiling Dependencies MainRunLoop.swift
[215/323] Compiling Dependencies OpenURL.swift
[216/323] Compiling Dependencies TimeZone.swift
[217/323] Compiling Dependencies URLSession.swift
[221/323] Compiling Dependencies Deprecations.swift
[222/323] Compiling Dependencies Exports.swift
[223/323] Compiling Dependencies TypeName.swift
[224/323] Emitting module Dependencies
[249/323] Compiling Dependencies PreviewTrait.swift
[250/323] Compiling Dependencies TestTrait.swift
[251/323] Compiling Dependencies WithDependencies.swift
[252/323] Compiling Dependencies Dependency.swift
[253/323] Compiling Dependencies DependencyContext.swift
[254/323] Compiling Dependencies DependencyKey.swift
[255/323] Compiling Dependencies DependencyValues.swift
[256/324] Emitting module Dependencies
[266/325] Emitting module SwiftSyntax
[267/325] Compiling SwiftSyntax SyntaxEnum.swift
[268/325] Compiling SwiftSyntax SyntaxKind.swift
[269/325] Compiling SwiftSyntax SyntaxRewriter.swift
[270/325] Compiling SwiftSyntax SyntaxTraits.swift
[271/325] Compiling SwiftSyntax SyntaxVisitor.swift
[272/325] Compiling SwiftSyntax TokenKind.swift
[273/325] Compiling SwiftSyntax Tokens.swift
[274/325] Compiling SwiftSyntax TriviaPieces.swift
[275/325] Compiling SwiftSyntax RawSyntaxNodesAB.swift
[276/325] Compiling SwiftSyntax RawSyntaxNodesC.swift
[277/325] Compiling SwiftSyntax RawSyntaxNodesD.swift
[278/325] Compiling SwiftSyntax RawSyntaxNodesEF.swift
[279/325] Compiling SwiftSyntax RawSyntaxNodesGHI.swift
[280/325] Compiling SwiftSyntax RawSyntaxNodesJKLMN.swift
[281/325] Compiling SwiftSyntax RawSyntaxNodesOP.swift
[282/325] Compiling SwiftSyntax RawSyntaxNodesQRS.swift
[283/325] Compiling SwiftSyntax RawSyntaxNodesTUVWXYZ.swift
[284/325] Compiling SwiftSyntax RawSyntaxValidation.swift
[285/325] Compiling SwiftSyntax Trivia.swift
[286/325] Compiling SwiftSyntax Utils.swift
[287/325] Compiling SwiftSyntax ChildNameForKeyPath.swift
[288/325] Compiling SwiftSyntax Keyword.swift
[289/325] Compiling SwiftSyntax RenamedChildrenCompatibility.swift
[290/325] Compiling SwiftSyntax RenamedNodesCompatibility.swift
[291/325] Compiling SwiftSyntax SyntaxAnyVisitor.swift
[292/325] Compiling SwiftSyntax SyntaxBaseNodes.swift
[293/325] Compiling SwiftSyntax SyntaxCollections.swift
[294/325] Compiling SwiftSyntax SourceLocation.swift
[295/325] Compiling SwiftSyntax SourcePresence.swift
[296/325] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[297/325] Compiling SwiftSyntax Syntax.swift
[298/325] Compiling SwiftSyntax SyntaxArena.swift
[299/325] Compiling SwiftSyntax SyntaxArenaAllocatedBuffer.swift
[300/325] Compiling SwiftSyntax SyntaxChildren.swift
[301/325] Compiling SwiftSyntax SyntaxCollection.swift
[302/325] Compiling SwiftSyntax SyntaxHashable.swift
[303/325] Compiling SwiftSyntax SyntaxNodesAB.swift
[304/325] Compiling SwiftSyntax SyntaxNodesC.swift
[305/325] Compiling SwiftSyntax SyntaxNodesD.swift
[306/325] Compiling SwiftSyntax SyntaxNodesEF.swift
[307/325] Compiling SwiftSyntax SyntaxNodesGHI.swift
[308/325] Compiling SwiftSyntax SyntaxNodesJKLMN.swift
[309/325] Compiling SwiftSyntax SyntaxNodesOP.swift
[310/325] Compiling SwiftSyntax SyntaxNodesQRS.swift
[311/325] Compiling SwiftSyntax SyntaxNodesTUVWXYZ.swift
[312/326] Wrapping AST for SwiftSyntax for debugging
[314/384] Compiling SwiftParser IncrementalParseTransition.swift
[315/384] Compiling SwiftParser IsValidIdentifier.swift
[316/385] Compiling SwiftDiagnostics DiagnosticDecorator.swift
[317/385] Compiling SwiftDiagnostics FixIt.swift
[318/385] Compiling SwiftBasicFormat SyntaxProtocol+Formatted.swift
[319/385] Compiling SwiftBasicFormat Trivia+FormatExtensions.swift
[320/385] Compiling SwiftBasicFormat Syntax+Extensions.swift
[321/385] Compiling SwiftDiagnostics Message.swift
[322/385] Compiling SwiftBasicFormat InferIndentation.swift
[323/385] Compiling SwiftDiagnostics Note.swift
[324/385] Emitting module SwiftDiagnostics
[325/385] Compiling SwiftParser ExpressionInterpretedAsVersionTuple.swift
[326/385] Compiling SwiftParser Expressions.swift
[327/385] Compiling SwiftBasicFormat Indenter.swift
[328/385] Emitting module SwiftBasicFormat
[329/385] Compiling SwiftBasicFormat BasicFormat.swift
[330/386] Compiling SwiftDiagnostics DiagnosticsFormatter.swift
[332/386] Compiling SwiftDiagnostics GroupedDiagnostics.swift
[333/387] Wrapping AST for SwiftDiagnostics for debugging
[334/387] Wrapping AST for SwiftBasicFormat for debugging
[336/387] Compiling SwiftParser SwiftParserCompatibility.swift
[337/387] Compiling SwiftParser SwiftVersion.swift
[338/387] Compiling SwiftParser SyntaxUtils.swift
[339/387] Compiling SwiftParser TokenConsumer.swift
[340/387] Compiling SwiftParser TokenPrecedence.swift
[341/387] Compiling SwiftParser TokenSpec.swift
[342/387] Compiling SwiftParser TokenSpecSet.swift
[343/387] Compiling SwiftParser TopLevel.swift
[344/387] Compiling SwiftParser TriviaParser.swift
[345/387] Compiling SwiftParser Types.swift
[346/392] Compiling SwiftParser LexemeSequence.swift
[347/392] Compiling SwiftParser Lexer.swift
[348/392] Compiling SwiftParser RegexLiteralLexer.swift
[349/392] Compiling SwiftParser UnicodeScalarExtensions.swift
[350/392] Compiling SwiftParser Lookahead.swift
[351/392] Compiling SwiftParser LoopProgressCondition.swift
[352/392] Compiling SwiftParser Modifiers.swift
[353/392] Compiling SwiftParser Names.swift
[354/392] Compiling SwiftParser Nominals.swift
[355/392] Compiling SwiftParser Parameters.swift
[356/392] Compiling SwiftParser ParseSourceFile.swift
[357/392] Compiling SwiftParser Parser.swift
[358/392] Compiling SwiftParser Patterns.swift
[359/392] Compiling SwiftParser Recovery.swift
[360/392] Compiling SwiftParser Specifiers.swift
[361/392] Compiling SwiftParser Statements.swift
[362/392] Compiling SwiftParser StringLiteralRepresentedLiteralValue.swift
[363/392] Compiling SwiftParser StringLiterals.swift
[364/392] Emitting module SwiftParser
[365/392] Compiling SwiftParser Attributes.swift
[366/392] Compiling SwiftParser Availability.swift
[367/392] Compiling SwiftParser CharacterInfo.swift
[368/392] Compiling SwiftParser CollectionNodes+Parsable.swift
[369/392] Compiling SwiftParser Declarations.swift
[370/392] Compiling SwiftParser Directives.swift
[375/392] Compiling SwiftParser Cursor.swift
[376/392] Compiling SwiftParser Lexeme.swift
[377/392] Compiling SwiftParser ExperimentalFeatures.swift
[378/392] Compiling SwiftParser IsLexerClassified.swift
[379/392] Compiling SwiftParser LayoutNodes+Parsable.swift
[380/392] Compiling SwiftParser Parser+TokenSpecSet.swift
[381/392] Compiling SwiftParser TokenSpecStaticMembers.swift
[382/393] Wrapping AST for SwiftParser for debugging
[384/416] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
[385/417] Compiling SwiftOperators PrecedenceGroup.swift
[386/418] Compiling SwiftOperators PrecedenceGraph.swift
[387/418] Compiling SwiftOperators Operator.swift
[388/418] Compiling SwiftOperators OperatorError+Diagnostics.swift
[389/418] Compiling SwiftOperators OperatorError.swift
[390/418] Compiling SwiftOperators OperatorTable+Defaults.swift
[391/418] Compiling SwiftOperators OperatorTable.swift
[392/418] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
[393/418] Compiling SwiftOperators OperatorTable+Folding.swift
[394/418] Emitting module SwiftOperators
[395/418] Compiling SwiftOperators OperatorTable+Semantics.swift
[396/418] Emitting module SwiftParserDiagnostics
[397/418] Compiling SwiftOperators SyntaxSynthesis.swift
[399/419] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
[400/419] Compiling SwiftParserDiagnostics SyntaxExtensions.swift
[401/419] Compiling SwiftParserDiagnostics Utils.swift
[401/419] Wrapping AST for SwiftOperators for debugging
[403/419] Compiling SwiftParserDiagnostics ParserDiagnosticMessages.swift
[404/419] Compiling SwiftParserDiagnostics PresenceUtils.swift
[409/419] Compiling SwiftParserDiagnostics MultiLineStringLiteralDiagnosticsGenerator.swift
[410/419] Compiling SwiftParserDiagnostics ParseDiagnosticsGenerator.swift
[411/420] Wrapping AST for SwiftParserDiagnostics for debugging
[413/435] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
[414/435] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.swift
[415/435] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
[416/435] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
[417/435] Compiling SwiftSyntaxBuilder Indenter.swift
[418/435] Compiling SwiftSyntaxBuilder ListBuilder.swift
[419/435] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
[420/435] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
[421/435] Emitting module SwiftSyntaxBuilder
[422/436] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
[423/436] Compiling SwiftSyntaxBuilder BuildableNodes.swift
[424/436] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
[425/436] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
[426/436] Compiling SwiftSyntaxBuilder RenamedChildrenBuilderCompatibility.swift
[427/436] Compiling SwiftSyntaxBuilder ResultBuilders.swift
[428/436] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
[429/437] Wrapping AST for SwiftSyntaxBuilder for debugging
[431/454] Compiling SwiftSyntaxMacros MemberMacro.swift
[432/454] Compiling SwiftSyntaxMacros PeerMacro.swift
[433/456] Compiling SwiftSyntaxMacros Macro.swift
[434/456] Compiling SwiftSyntaxMacros MemberAttributeMacro.swift
[435/456] Compiling SwiftSyntaxMacros CodeItemMacro.swift
[436/456] Compiling SwiftSyntaxMacros DeclarationMacro.swift
[437/456] Compiling SwiftSyntaxMacros AccessorMacro.swift
[438/456] Compiling SwiftSyntaxMacros AttachedMacro.swift
[439/456] Compiling SwiftSyntaxMacros BodyMacro.swift
[440/456] Compiling SwiftSyntaxMacros FreestandingMacro.swift
[441/456] Compiling SwiftSyntaxMacros Macro+Format.swift
[442/456] Compiling SwiftSyntaxMacros ExpressionMacro.swift
[443/456] Compiling SwiftSyntaxMacros ExtensionMacro.swift
[444/456] Emitting module SwiftSyntaxMacros
[445/456] Compiling SwiftSyntaxMacros AbstractSourceLocation.swift
[446/456] Compiling SwiftSyntaxMacros MacroExpansionContext.swift
[447/456] Compiling SwiftSyntaxMacros MacroExpansionDiagnosticMessages.swift
[448/456] Compiling SwiftSyntaxMacros PreambleMacro.swift
[449/456] Compiling SwiftSyntaxMacros Syntax+LexicalContext.swift
[450/457] Wrapping AST for SwiftSyntaxMacros for debugging
[452/466] Compiling SwiftSyntaxMacroExpansion MacroExpansionDiagnosticMessages.swift
[453/467] Compiling SwiftSyntaxMacroExpansion MacroArgument.swift
[454/467] Compiling SwiftSyntaxMacroExpansion BasicMacroExpansionContext.swift
[455/467] Compiling SwiftSyntaxMacroExpansion FunctionParameterUtils.swift
[456/467] Compiling SwiftSyntaxMacroExpansion MacroExpansion.swift
[457/467] Compiling SwiftSyntaxMacroExpansion IndentationUtils.swift
[458/467] Emitting module SwiftSyntaxMacroExpansion
[459/467] Compiling SwiftSyntaxMacroExpansion MacroSpec.swift
[460/467] Compiling SwiftSyntaxMacroExpansion MacroReplacement.swift
[461/467] Compiling SwiftSyntaxMacroExpansion MacroSystem.swift
[462/468] Wrapping AST for SwiftSyntaxMacroExpansion for debugging
[464/480] Compiling SwiftCompilerPluginMessageHandling PluginMessageCompatibility.swift
[465/481] Compiling SwiftCompilerPluginMessageHandling LRUCache.swift
[466/481] Compiling SwiftCompilerPluginMessageHandling Macros.swift
[467/481] Compiling SwiftCompilerPluginMessageHandling PluginMacroExpansionContext.swift
[468/481] Compiling SwiftCompilerPluginMessageHandling StandardIOMessageConnection.swift
[469/481] Compiling SwiftCompilerPluginMessageHandling PluginMessages.swift
[470/481] Compiling SwiftCompilerPluginMessageHandling CompilerPluginMessageHandler.swift
[471/481] Compiling SwiftCompilerPluginMessageHandling Diagnostics.swift
[472/481] Emitting module SwiftCompilerPluginMessageHandling
[473/481] Compiling SwiftCompilerPluginMessageHandling CodingUtilities.swift
[474/481] Compiling SwiftCompilerPluginMessageHandling JSON.swift
[475/481] Compiling SwiftCompilerPluginMessageHandling JSONDecoding.swift
[476/481] Compiling SwiftCompilerPluginMessageHandling JSONEncoding.swift
[477/482] Wrapping AST for SwiftCompilerPluginMessageHandling for debugging
[479/484] Compiling SwiftCompilerPlugin CompilerPlugin.swift
[480/484] Emitting module SwiftCompilerPlugin
[481/485] Wrapping AST for SwiftCompilerPlugin for debugging
[483/491] Compiling SwiftNetworkRequestMacros RequestMacros.swift
[484/491] Emitting module SwiftNetworkRequestMacros
[485/491] Compiling SwiftNetworkRequestMacros Helpers.swift
[486/491] Compiling SwiftNetworkRequestMacros Models.swift
[487/491] Compiling SwiftNetworkRequestMacros RequestBuilder.swift
[488/491] Compiling SwiftNetworkRequestMacros Plugin.swift
[489/492] Wrapping AST for SwiftNetworkRequestMacros for debugging
[490/492] Write Objects.LinkFileList
[491/492] Linking SwiftNetworkRequestMacros-tool
error: emit-module command failed with exit code 1 (use -v to see invocation)
[493/514] Emitting module SwiftNetworkRequest
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:28: error: cannot find type 'URLRequest' in scope
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:30: error: cannot find type 'URLRequest' in scope
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:32: error: cannot find type 'URLRequest' in scope
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/DI/URLSession.swift:35:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 |
34 | private enum URLSessionKey: DependencyKey {
35 | static let liveValue: any HTTPSession = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
36 | }
37 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:86: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | }
54 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:81:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
79 | }
80 |
81 | extension URLSession: HTTPSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
82 | public func download(for request: URLRequest) async throws -> (URL, URLResponse) {
83 | try await self.download(for: request, delegate: nil)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:129:61: error: cannot find type 'URLRequest' in scope
127 | }
128 |
129 | func createURLRequest(apiRequest: ApiRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
130 | var components = URLComponents(string: apiRequest.path)
131 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:156:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
154 | }
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 | guard let httpResponse = response as? HTTPURLResponse else {
158 | throw ApiRequestError(message: "Invalid Response")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
error: emit-module command failed with exit code 1 (use -v to see invocation)
[494/514] Compiling SwiftNetworkRequest Put.swift
[495/515] Emitting module SwiftNetworkRequest
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:28: error: cannot find type 'URLRequest' in scope
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:30: error: cannot find type 'URLRequest' in scope
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:32: error: cannot find type 'URLRequest' in scope
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/DI/URLSession.swift:35:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 |
34 | private enum URLSessionKey: DependencyKey {
35 | static let liveValue: any HTTPSession = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
36 | }
37 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:86: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | }
54 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:81:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
79 | }
80 |
81 | extension URLSession: HTTPSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
82 | public func download(for request: URLRequest) async throws -> (URL, URLResponse) {
83 | try await self.download(for: request, delegate: nil)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:129:61: error: cannot find type 'URLRequest' in scope
127 | }
128 |
129 | func createURLRequest(apiRequest: ApiRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
130 | var components = URLComponents(string: apiRequest.path)
131 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:156:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
154 | }
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 | guard let httpResponse = response as? HTTPURLResponse else {
158 | throw ApiRequestError(message: "Invalid Response")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[496/515] Compiling SwiftNetworkRequest URLSession+Request.swift
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:28: error: cannot find type 'URLRequest' in scope
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:30: error: cannot find type 'URLRequest' in scope
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:86: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:32: error: cannot find type 'URLRequest' in scope
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | }
54 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:81:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
79 | }
80 |
81 | extension URLSession: HTTPSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
82 | public func download(for request: URLRequest) async throws -> (URL, URLResponse) {
83 | try await self.download(for: request, delegate: nil)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:129:61: error: cannot find type 'URLRequest' in scope
127 | }
128 |
129 | func createURLRequest(apiRequest: ApiRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
130 | var components = URLComponents(string: apiRequest.path)
131 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:156:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
154 | }
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 | guard let httpResponse = response as? HTTPURLResponse else {
158 | throw ApiRequestError(message: "Invalid Response")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:115:26: error: cannot infer contextual base in reference to member 'init'
113 | ) async throws -> Data {
114 | let urlRequest = try createURLRequest(
115 | apiRequest: .init(
| `- error: cannot infer contextual base in reference to member 'init'
116 | path: path,
117 | httpMethod: httpMethod,
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:142:23: error: cannot find 'URLRequest' in scope
140 | }
141 |
142 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
143 | request.httpMethod = apiRequest.httpMethod
144 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:157:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
157 | guard let httpResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
158 | throw ApiRequestError(message: "Invalid Response")
159 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:157:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
157 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
158 | throw ApiRequestError(message: "Invalid Response")
159 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:161:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
159 | }
160 |
161 | guard (200...299).contains(httpResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
162 | throw URLError(.badServerResponse)
163 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:82:39: error: cannot find type 'URLRequest' in scope
80 |
81 | extension URLSession: HTTPSession {
82 | public func download(for request: URLRequest) async throws -> (URL, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
83 | try await self.download(for: request, delegate: nil)
84 | }
[497/515] Compiling SwiftNetworkRequest Delete.swift
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:28: error: cannot find type 'URLRequest' in scope
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:30: error: cannot find type 'URLRequest' in scope
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:86: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:32: error: cannot find type 'URLRequest' in scope
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | }
54 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:81:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
79 | }
80 |
81 | extension URLSession: HTTPSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
82 | public func download(for request: URLRequest) async throws -> (URL, URLResponse) {
83 | try await self.download(for: request, delegate: nil)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:129:61: error: cannot find type 'URLRequest' in scope
127 | }
128 |
129 | func createURLRequest(apiRequest: ApiRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
130 | var components = URLComponents(string: apiRequest.path)
131 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:156:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
154 | }
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 | guard let httpResponse = response as? HTTPURLResponse else {
158 | throw ApiRequestError(message: "Invalid Response")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:115:26: error: cannot infer contextual base in reference to member 'init'
113 | ) async throws -> Data {
114 | let urlRequest = try createURLRequest(
115 | apiRequest: .init(
| `- error: cannot infer contextual base in reference to member 'init'
116 | path: path,
117 | httpMethod: httpMethod,
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:142:23: error: cannot find 'URLRequest' in scope
140 | }
141 |
142 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
143 | request.httpMethod = apiRequest.httpMethod
144 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:157:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
157 | guard let httpResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
158 | throw ApiRequestError(message: "Invalid Response")
159 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:157:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
157 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
158 | throw ApiRequestError(message: "Invalid Response")
159 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:161:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
159 | }
160 |
161 | guard (200...299).contains(httpResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
162 | throw URLError(.badServerResponse)
163 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:82:39: error: cannot find type 'URLRequest' in scope
80 |
81 | extension URLSession: HTTPSession {
82 | public func download(for request: URLRequest) async throws -> (URL, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
83 | try await self.download(for: request, delegate: nil)
84 | }
[498/516] Compiling SwiftNetworkRequest Post.swift
[499/516] Compiling SwiftNetworkRequest KeyValuePair.swift
[500/516] Compiling SwiftNetworkRequest Put.swift
[503/516] Compiling SwiftNetworkRequest Post.swift
[504/516] Compiling SwiftNetworkRequest Get.swift
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:28: error: cannot find type 'URLRequest' in scope
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:30: error: cannot find type 'URLRequest' in scope
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:86: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:32: error: cannot find type 'URLRequest' in scope
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | }
54 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:81:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
79 | }
80 |
81 | extension URLSession: HTTPSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
82 | public func download(for request: URLRequest) async throws -> (URL, URLResponse) {
83 | try await self.download(for: request, delegate: nil)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:129:61: error: cannot find type 'URLRequest' in scope
127 | }
128 |
129 | func createURLRequest(apiRequest: ApiRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
130 | var components = URLComponents(string: apiRequest.path)
131 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:156:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
154 | }
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 | guard let httpResponse = response as? HTTPURLResponse else {
158 | throw ApiRequestError(message: "Invalid Response")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:115:26: error: cannot infer contextual base in reference to member 'init'
113 | ) async throws -> Data {
114 | let urlRequest = try createURLRequest(
115 | apiRequest: .init(
| `- error: cannot infer contextual base in reference to member 'init'
116 | path: path,
117 | httpMethod: httpMethod,
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:142:23: error: cannot find 'URLRequest' in scope
140 | }
141 |
142 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
143 | request.httpMethod = apiRequest.httpMethod
144 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:157:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
157 | guard let httpResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
158 | throw ApiRequestError(message: "Invalid Response")
159 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:157:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
157 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
158 | throw ApiRequestError(message: "Invalid Response")
159 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:161:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
159 | }
160 |
161 | guard (200...299).contains(httpResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
162 | throw URLError(.badServerResponse)
163 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:82:39: error: cannot find type 'URLRequest' in scope
80 |
81 | extension URLSession: HTTPSession {
82 | public func download(for request: URLRequest) async throws -> (URL, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
83 | try await self.download(for: request, delegate: nil)
84 | }
[505/516] Compiling SwiftNetworkRequest HelperMacros.swift
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:28: error: cannot find type 'URLRequest' in scope
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:30: error: cannot find type 'URLRequest' in scope
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:86: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:32: error: cannot find type 'URLRequest' in scope
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | }
54 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:81:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
79 | }
80 |
81 | extension URLSession: HTTPSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
82 | public func download(for request: URLRequest) async throws -> (URL, URLResponse) {
83 | try await self.download(for: request, delegate: nil)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:129:61: error: cannot find type 'URLRequest' in scope
127 | }
128 |
129 | func createURLRequest(apiRequest: ApiRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
130 | var components = URLComponents(string: apiRequest.path)
131 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:156:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
154 | }
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 | guard let httpResponse = response as? HTTPURLResponse else {
158 | throw ApiRequestError(message: "Invalid Response")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:115:26: error: cannot infer contextual base in reference to member 'init'
113 | ) async throws -> Data {
114 | let urlRequest = try createURLRequest(
115 | apiRequest: .init(
| `- error: cannot infer contextual base in reference to member 'init'
116 | path: path,
117 | httpMethod: httpMethod,
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:142:23: error: cannot find 'URLRequest' in scope
140 | }
141 |
142 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
143 | request.httpMethod = apiRequest.httpMethod
144 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:157:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
157 | guard let httpResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
158 | throw ApiRequestError(message: "Invalid Response")
159 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:157:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
157 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
158 | throw ApiRequestError(message: "Invalid Response")
159 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:161:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
159 | }
160 |
161 | guard (200...299).contains(httpResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
162 | throw URLError(.badServerResponse)
163 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:82:39: error: cannot find type 'URLRequest' in scope
80 |
81 | extension URLSession: HTTPSession {
82 | public func download(for request: URLRequest) async throws -> (URL, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
83 | try await self.download(for: request, delegate: nil)
84 | }
[506/516] Compiling SwiftNetworkRequest RequestAuthorization.swift
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:28: error: cannot find type 'URLRequest' in scope
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:30: error: cannot find type 'URLRequest' in scope
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:32: error: cannot find type 'URLRequest' in scope
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/DI/URLSession.swift:35:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 |
34 | private enum URLSessionKey: DependencyKey {
35 | static let liveValue: any HTTPSession = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
36 | }
37 |
[507/516] Compiling SwiftNetworkRequest URLSession.swift
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:28: error: cannot find type 'URLRequest' in scope
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:30: error: cannot find type 'URLRequest' in scope
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:32: error: cannot find type 'URLRequest' in scope
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/DI/URLSession.swift:35:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 |
34 | private enum URLSessionKey: DependencyKey {
35 | static let liveValue: any HTTPSession = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
36 | }
37 |
[508/516] Compiling SwiftNetworkRequest DynamicAPIResponse.swift
[511/516] Compiling SwiftNetworkRequest KeyValuePair.swift
[512/516] Compiling SwiftNetworkRequest DynamicAPIResponse.swift
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:28: error: cannot find type 'URLRequest' in scope
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:30: error: cannot find type 'URLRequest' in scope
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:32: error: cannot find type 'URLRequest' in scope
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/DI/URLSession.swift:35:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 |
34 | private enum URLSessionKey: DependencyKey {
35 | static let liveValue: any HTTPSession = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
36 | }
37 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:28: error: cannot find type 'URLRequest' in scope
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:30: error: cannot find type 'URLRequest' in scope
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:32: error: cannot find type 'URLRequest' in scope
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/DI/URLSession.swift:35:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 |
34 | private enum URLSessionKey: DependencyKey {
35 | static let liveValue: any HTTPSession = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
36 | }
37 |
[515/516] Compiling SwiftNetworkRequest RequestConfig.swift
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:28: error: cannot find type 'URLRequest' in scope
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:30: error: cannot find type 'URLRequest' in scope
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:32: error: cannot find type 'URLRequest' in scope
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:28: error: cannot find type 'URLRequest' in scope
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:30: error: cannot find type 'URLRequest' in scope
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:32: error: cannot find type 'URLRequest' in scope
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
53 | }
54 |
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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:2e2b3aca8600f890617c2faa770b70e33c1dfd303d6f92b308423b89ef6bde64
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/21] Write swift-version-24593BA9C3E375BF.txt
[4/55] Emitting module IssueReportingPackageSupport
[5/55] Emitting module SwiftSyntax601
[6/55] Compiling SwiftSyntax601 Empty.swift
[7/55] Compiling IssueReportingPackageSupport _Test.swift
[8/55] Compiling SwiftSyntax509 Empty.swift
[9/55] Compiling IssueReportingPackageSupport _Test.swift
[10/57] Compiling SwiftSyntax510 Empty.swift
[11/57] Emitting module SwiftSyntax509
[12/57] Compiling SwiftSyntax600 Empty.swift
[13/57] Emitting module SwiftSyntax600
[14/59] Emitting module IssueReportingPackageSupport
[16/60] Emitting module SwiftSyntax510
[18/61] Compiling ConcurrencyExtras LockIsolated.swift
[22/62] Compiling ConcurrencyExtras Locking.swift
[23/62] Compiling ConcurrencyExtras UncheckedBox.swift
[25/62] Compiling ConcurrencyExtras MainSerialExecutor.swift
[26/62] Emitting module ConcurrencyExtras
[29/59] Compiling ConcurrencyExtras AsyncStream.swift
[30/59] Compiling ConcurrencyExtras AsyncThrowingStream.swift
[31/59] Compiling ConcurrencyExtras ActorIsolated.swift
[32/59] Compiling ConcurrencyExtras AnyHashableSendable.swift
[33/59] Compiling ConcurrencyExtras LockIsolated.swift
[34/59] Compiling ConcurrencyExtras MainSerialExecutor.swift
[35/59] Compiling ConcurrencyExtras Result.swift
[36/59] Compiling ConcurrencyExtras Task.swift
[37/59] Compiling ConcurrencyExtras Result.swift
[38/59] Compiling ConcurrencyExtras Task.swift
[41/59] Emitting module ConcurrencyExtras
[44/74] Compiling ConcurrencyExtras UncheckedSendable.swift
[48/99] Compiling IssueReporting FailureObserver.swift
[49/99] Compiling IssueReporting LockIsolated.swift
[50/99] Compiling IssueReporting Rethrows.swift
[51/101] Compiling IssueReporting SwiftTesting.swift
[52/101] Compiling IssueReporting UncheckedSendable.swift
[53/101] Compiling IssueReporting Warn.swift
[54/101] Compiling IssueReporting IssueReporter.swift
[55/101] Compiling IssueReporting BreakpointReporter.swift
[56/101] Compiling IssueReporting FatalErrorReporter.swift
[57/101] Compiling IssueReporting TestContext.swift
[58/101] Compiling IssueReporting Unimplemented.swift
[59/101] Compiling IssueReporting XCTest.swift
[60/101] Compiling IssueReporting IsTesting.swift
[62/101] Compiling IssueReporting RuntimeWarningReporter.swift
[63/101] Compiling IssueReporting ReportIssue.swift
[66/167] Compiling SwiftSyntax RawSyntax.swift
[67/167] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[68/167] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[69/167] Compiling SwiftSyntax RawSyntaxTokenView.swift
[70/167] Compiling SwiftSyntax SourceEdit.swift
[71/167] Compiling SwiftSyntax SourceLength.swift
[72/167] Emitting module IssueReporting
[74/167] Compiling SwiftSyntax SourceLocation.swift
[75/167] Compiling SwiftSyntax SourcePresence.swift
[76/167] Compiling SwiftSyntax Convenience.swift
[77/167] Compiling SwiftSyntax CustomTraits.swift
[78/167] Compiling SwiftSyntax EditorPlaceholder.swift
[80/168] Compiling SwiftSyntax Assert.swift
[81/168] Compiling SwiftSyntax BumpPtrAllocator.swift
[82/168] Compiling SwiftSyntax CommonAncestor.swift
[86/168] Compiling SwiftSyntax AbsolutePosition.swift
[87/168] Compiling SwiftSyntax AbsoluteRawSyntax.swift
[88/168] Compiling SwiftSyntax AbsoluteSyntaxInfo.swift
[92/215] Compiling XCTestDynamicOverlay Exports.swift
[94/215] Compiling CombineSchedulers AnyScheduler.swift
[95/215] Compiling CombineSchedulers Concurrency.swift
[96/216] Emitting module CombineSchedulers
[97/216] Compiling CombineSchedulers ImmediateScheduler.swift
[98/216] Compiling CombineSchedulers Deprecations.swift
[99/216] Compiling CombineSchedulers SwiftUI.swift
[100/216] Compiling CombineSchedulers TestScheduler.swift
[101/216] Compiling CombineSchedulers Lock.swift
[102/216] Compiling CombineSchedulers NSRecursiveLock.swift
[103/216] Compiling Clocks Timer.swift
[104/216] Compiling CombineSchedulers Timer.swift
[105/216] Compiling CombineSchedulers UIScheduler.swift
[106/216] Compiling CombineSchedulers UIKit.swift
[109/217] Compiling Clocks Timer.swift
[110/217] Emitting module CombineSchedulers
[111/219] Compiling CombineSchedulers UIScheduler.swift
[112/219] Compiling CombineSchedulers Timer.swift
[115/219] Compiling CombineSchedulers UIKit.swift
[120/219] Compiling Clocks Lock.swift
[121/219] Compiling Clocks _AsyncTimerSequence.swift
[122/219] Emitting module Clocks
[123/219] Compiling Clocks AnyClock.swift
[124/219] Compiling CombineSchedulers UnimplementedScheduler.swift
[125/220] Compiling Clocks AnyClock.swift
[126/220] Compiling Clocks ImmediateClock.swift
[127/220] Emitting module Clocks
[128/220] Compiling CombineSchedulers UnimplementedScheduler.swift
[130/221] Emitting module XCTestDynamicOverlay
[131/221] Compiling XCTestDynamicOverlay Deprecations.swift
[132/222] Compiling Clocks SwiftUI.swift
[133/222] Compiling Clocks ImmediateClock.swift
[134/222] Compiling Clocks _AsyncTimerSequence.swift
[135/222] Compiling Clocks TestClock.swift
[136/222] Compiling Clocks Lock.swift
[137/222] Compiling Clocks UnimplementedClock.swift
[138/222] Emitting module XCTestDynamicOverlay
[139/222] Compiling XCTestDynamicOverlay Deprecations.swift
[140/224] Compiling Clocks TestClock.swift
[141/224] Compiling Clocks SwiftUI.swift
[142/224] Compiling Clocks UnimplementedClock.swift
[148/271] Compiling Dependencies Date.swift
[149/271] Compiling Dependencies FireAndForget.swift
[150/271] Compiling Dependencies Dependency.swift
[151/274] Compiling Dependencies Assert.swift
[152/274] Compiling Dependencies Calendar.swift
[153/274] Compiling Dependencies Clocks.swift
[154/277] Compiling Dependencies DependencyContext.swift
[155/277] Compiling Dependencies DependencyKey.swift
[156/277] Compiling Dependencies DependencyValues.swift
[157/277] Compiling Dependencies Context.swift
[160/277] Compiling Dependencies Deprecations.swift
[161/277] Compiling Dependencies Exports.swift
[162/277] Compiling Dependencies TypeName.swift
[166/277] Compiling Dependencies UUID.swift
[167/277] Compiling Dependencies WithRandomNumberGenerator.swift
[168/277] Compiling Dependencies AppEntryPoint.swift
[169/277] Compiling Dependencies Locale.swift
[170/277] Compiling Dependencies MainQueue.swift
[171/277] Compiling Dependencies MainRunLoop.swift
[175/277] Compiling Dependencies OpenURL.swift
[176/277] Compiling Dependencies TimeZone.swift
[177/277] Compiling Dependencies URLSession.swift
[202/286] Compiling Dependencies PreviewTrait.swift
[203/286] Emitting module Dependencies
[204/286] Compiling Dependencies TestTrait.swift
[205/286] Compiling Dependencies WithDependencies.swift
[214/287] Emitting module Dependencies
[220/288] Compiling SwiftSyntax RawSyntaxNodesC.swift
[221/288] Compiling SwiftSyntax RawSyntaxNodesD.swift
[222/288] Compiling SwiftSyntax RawSyntaxNodesEF.swift
[223/288] Compiling SwiftSyntax RawSyntaxNodesGHI.swift
[224/288] Compiling SwiftSyntax RawSyntaxNodesJKLMN.swift
[225/288] Compiling SwiftSyntax RawSyntaxNodesOP.swift
[226/288] Compiling SwiftSyntax RawSyntaxNodesQRS.swift
[227/288] Compiling SwiftSyntax RawSyntaxNodesTUVWXYZ.swift
[228/288] Compiling SwiftSyntax RawSyntaxValidation.swift
[229/288] Emitting module SwiftSyntax
[230/288] Compiling SwiftSyntax SyntaxEnum.swift
[231/288] Compiling SwiftSyntax SyntaxKind.swift
[232/288] Compiling SwiftSyntax SyntaxRewriter.swift
[233/288] Compiling SwiftSyntax SyntaxTraits.swift
[234/288] Compiling SwiftSyntax SyntaxVisitor.swift
[235/288] Compiling SwiftSyntax TokenKind.swift
[236/288] Compiling SwiftSyntax Tokens.swift
[237/288] Compiling SwiftSyntax TriviaPieces.swift
[238/288] Compiling SwiftSyntax RawSyntaxNodesAB.swift
[239/288] Compiling SwiftSyntax Trivia.swift
[240/288] Compiling SwiftSyntax Utils.swift
[241/288] Compiling SwiftSyntax ChildNameForKeyPath.swift
[242/288] Compiling SwiftSyntax Keyword.swift
[243/288] Compiling SwiftSyntax RenamedChildrenCompatibility.swift
[244/288] Compiling SwiftSyntax RenamedNodesCompatibility.swift
[245/288] Compiling SwiftSyntax SyntaxAnyVisitor.swift
[246/288] Compiling SwiftSyntax SyntaxBaseNodes.swift
[247/288] Compiling SwiftSyntax SyntaxCollections.swift
[255/288] Compiling SwiftSyntax SyntaxCollection.swift
[256/288] Compiling SwiftSyntax SyntaxHashable.swift
[257/288] Compiling SwiftSyntax SyntaxIdentifier.swift
[258/288] Compiling SwiftSyntax SyntaxNodeFactory.swift
[259/288] Compiling SwiftSyntax SyntaxNodeStructure.swift
[260/288] Compiling SwiftSyntax SyntaxProtocol.swift
[261/288] Compiling SwiftSyntax SyntaxText.swift
[262/288] Compiling SwiftSyntax SyntaxTreeViewMode.swift
[263/288] Compiling SwiftSyntax TokenDiagnostic.swift
[264/288] Compiling SwiftSyntax TokenSequence.swift
[265/288] Compiling SwiftSyntax TokenSyntax.swift
[266/288] Compiling SwiftSyntax SyntaxNodesAB.swift
[267/288] Compiling SwiftSyntax SyntaxNodesC.swift
[268/288] Compiling SwiftSyntax SyntaxNodesD.swift
[269/288] Compiling SwiftSyntax SyntaxNodesEF.swift
[270/288] Compiling SwiftSyntax SyntaxNodesGHI.swift
[271/288] Compiling SwiftSyntax SyntaxNodesJKLMN.swift
[272/288] Compiling SwiftSyntax SyntaxNodesOP.swift
[273/288] Compiling SwiftSyntax SyntaxNodesQRS.swift
[274/288] Compiling SwiftSyntax SyntaxNodesTUVWXYZ.swift
[276/346] Compiling SwiftDiagnostics Message.swift
[277/347] Compiling SwiftBasicFormat Syntax+Extensions.swift
[278/347] Compiling SwiftBasicFormat Trivia+FormatExtensions.swift
[279/347] Compiling SwiftBasicFormat SyntaxProtocol+Formatted.swift
[280/347] Compiling SwiftDiagnostics GroupedDiagnostics.swift
[281/347] Compiling SwiftDiagnostics DiagnosticDecorator.swift
[282/347] Compiling SwiftDiagnostics FixIt.swift
[283/347] Compiling SwiftParser Attributes.swift
[284/347] Compiling SwiftParser Availability.swift
[285/347] Compiling SwiftDiagnostics DiagnosticsFormatter.swift
[286/347] Compiling SwiftParser CharacterInfo.swift
[287/347] Compiling SwiftParser CollectionNodes+Parsable.swift
[288/347] Emitting module SwiftDiagnostics
[289/347] Compiling SwiftDiagnostics Note.swift
[290/348] Compiling SwiftBasicFormat Indenter.swift
[291/348] Compiling SwiftBasicFormat InferIndentation.swift
[293/347] Compiling SwiftBasicFormat BasicFormat.swift
[294/347] Emitting module SwiftBasicFormat
[296/347] Compiling SwiftParser LexemeSequence.swift
[297/347] Compiling SwiftParser Lexer.swift
[298/347] Compiling SwiftParser RegexLiteralLexer.swift
[299/347] Compiling SwiftParser UnicodeScalarExtensions.swift
[300/347] Compiling SwiftParser Lookahead.swift
[301/347] Compiling SwiftParser LoopProgressCondition.swift
[302/352] Compiling SwiftParser SwiftParserCompatibility.swift
[303/352] Compiling SwiftParser SwiftVersion.swift
[304/352] Compiling SwiftParser SyntaxUtils.swift
[305/352] Compiling SwiftParser TokenConsumer.swift
[306/352] Compiling SwiftParser TokenPrecedence.swift
[307/352] Compiling SwiftParser TokenSpec.swift
[308/352] Compiling SwiftParser TokenSpecSet.swift
[309/352] Compiling SwiftParser TopLevel.swift
[310/352] Compiling SwiftParser TriviaParser.swift
[311/352] Compiling SwiftParser Types.swift
[312/352] Compiling SwiftParser Modifiers.swift
[313/352] Compiling SwiftParser Names.swift
[314/352] Compiling SwiftParser Nominals.swift
[315/352] Compiling SwiftParser Parameters.swift
[316/352] Compiling SwiftParser ParseSourceFile.swift
[317/352] Compiling SwiftParser Parser.swift
[318/352] Compiling SwiftParser Patterns.swift
[319/352] Compiling SwiftParser Recovery.swift
[320/352] Compiling SwiftParser Specifiers.swift
[321/352] Compiling SwiftParser Statements.swift
[322/352] Compiling SwiftParser StringLiteralRepresentedLiteralValue.swift
[323/352] Compiling SwiftParser StringLiterals.swift
[324/352] Emitting module SwiftParser
[325/352] Compiling SwiftParser ExpressionInterpretedAsVersionTuple.swift
[326/352] Compiling SwiftParser Expressions.swift
[327/352] Compiling SwiftParser IncrementalParseTransition.swift
[328/352] Compiling SwiftParser IsValidIdentifier.swift
[329/352] Compiling SwiftParser Cursor.swift
[330/352] Compiling SwiftParser Lexeme.swift
[335/352] Compiling SwiftParser Declarations.swift
[336/352] Compiling SwiftParser Directives.swift
[337/352] Compiling SwiftParser ExperimentalFeatures.swift
[338/352] Compiling SwiftParser IsLexerClassified.swift
[339/352] Compiling SwiftParser LayoutNodes+Parsable.swift
[340/352] Compiling SwiftParser Parser+TokenSpecSet.swift
[341/352] Compiling SwiftParser TokenSpecStaticMembers.swift
[343/375] Compiling SwiftOperators PrecedenceGroup.swift
[344/376] Compiling SwiftOperators OperatorTable.swift
[345/376] Compiling SwiftOperators PrecedenceGraph.swift
[346/376] Emitting module SwiftOperators
[347/376] Compiling SwiftParserDiagnostics DiagnosticExtensions.swift
[348/376] Compiling SwiftParserDiagnostics LexerDiagnosticMessages.swift
[349/376] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
[350/377] Compiling SwiftParserDiagnostics MissingNodesError.swift
[351/377] Compiling SwiftParserDiagnostics MissingTokenError.swift
[352/377] Compiling SwiftOperators OperatorTable+Semantics.swift
[353/377] Compiling SwiftOperators OperatorTable+Folding.swift
[354/377] Compiling SwiftOperators SyntaxSynthesis.swift
[355/378] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
[357/378] Compiling SwiftParserDiagnostics SyntaxExtensions.swift
[358/378] Compiling SwiftParserDiagnostics Utils.swift
[359/378] Emitting module SwiftParserDiagnostics
[360/378] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
[363/377] Compiling SwiftParserDiagnostics ParserDiagnosticMessages.swift
[364/377] Compiling SwiftParserDiagnostics PresenceUtils.swift
[365/377] Compiling SwiftParserDiagnostics MultiLineStringLiteralDiagnosticsGenerator.swift
[366/377] Compiling SwiftParserDiagnostics ParseDiagnosticsGenerator.swift
[370/392] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
[371/392] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.swift
[372/393] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
[373/393] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
[374/393] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
[375/393] Compiling SwiftSyntaxBuilder Indenter.swift
[376/393] Compiling SwiftSyntaxBuilder ListBuilder.swift
[377/393] Emitting module SwiftSyntaxBuilder
[378/393] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
[379/393] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
[380/393] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
[381/393] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
[382/393] Compiling SwiftSyntaxBuilder RenamedChildrenBuilderCompatibility.swift
[383/393] Compiling SwiftSyntaxBuilder ResultBuilders.swift
[384/393] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
[385/393] Compiling SwiftSyntaxBuilder BuildableNodes.swift
[387/410] Compiling SwiftSyntaxMacros Macro.swift
[388/410] Compiling SwiftSyntaxMacros MemberAttributeMacro.swift
[389/410] Compiling SwiftSyntaxMacros FreestandingMacro.swift
[390/410] Compiling SwiftSyntaxMacros Macro+Format.swift
[391/410] Compiling SwiftSyntaxMacros CodeItemMacro.swift
[392/410] Compiling SwiftSyntaxMacros DeclarationMacro.swift
[393/410] Compiling SwiftSyntaxMacros ExpressionMacro.swift
[394/410] Compiling SwiftSyntaxMacros ExtensionMacro.swift
[395/410] Compiling SwiftSyntaxMacros MemberMacro.swift
[396/410] Compiling SwiftSyntaxMacros PeerMacro.swift
[397/410] Compiling SwiftSyntaxMacros AccessorMacro.swift
[398/410] Compiling SwiftSyntaxMacros AttachedMacro.swift
[399/410] Compiling SwiftSyntaxMacros BodyMacro.swift
[400/412] Emitting module SwiftSyntaxMacros
[401/412] Compiling SwiftSyntaxMacros AbstractSourceLocation.swift
[402/412] Compiling SwiftSyntaxMacros MacroExpansionContext.swift
[403/412] Compiling SwiftSyntaxMacros MacroExpansionDiagnosticMessages.swift
[404/412] Compiling SwiftSyntaxMacros PreambleMacro.swift
[405/412] Compiling SwiftSyntaxMacros Syntax+LexicalContext.swift
[407/421] Compiling SwiftSyntaxMacroExpansion MacroSpec.swift
[408/422] Compiling SwiftSyntaxMacroExpansion MacroExpansion.swift
[409/422] Compiling SwiftSyntaxMacroExpansion IndentationUtils.swift
[410/422] Compiling SwiftSyntaxMacroExpansion BasicMacroExpansionContext.swift
[411/422] Compiling SwiftSyntaxMacroExpansion FunctionParameterUtils.swift
[412/422] Emitting module SwiftSyntaxMacroExpansion
[413/422] Compiling SwiftSyntaxMacroExpansion MacroArgument.swift
[414/422] Compiling SwiftSyntaxMacroExpansion MacroExpansionDiagnosticMessages.swift
[415/422] Compiling SwiftSyntaxMacroExpansion MacroReplacement.swift
[416/422] Compiling SwiftSyntaxMacroExpansion MacroSystem.swift
[418/434] Compiling SwiftCompilerPluginMessageHandling LRUCache.swift
[419/434] Compiling SwiftCompilerPluginMessageHandling Macros.swift
[420/435] Compiling SwiftCompilerPluginMessageHandling StandardIOMessageConnection.swift
[421/435] Compiling SwiftCompilerPluginMessageHandling PluginMacroExpansionContext.swift
[422/435] Compiling SwiftCompilerPluginMessageHandling PluginMessages.swift
[423/435] Compiling SwiftCompilerPluginMessageHandling PluginMessageCompatibility.swift
[424/435] Emitting module SwiftCompilerPluginMessageHandling
[425/435] Compiling SwiftCompilerPluginMessageHandling CodingUtilities.swift
[426/435] Compiling SwiftCompilerPluginMessageHandling JSON.swift
[427/435] Compiling SwiftCompilerPluginMessageHandling JSONDecoding.swift
[428/435] Compiling SwiftCompilerPluginMessageHandling JSONEncoding.swift
[429/435] Compiling SwiftCompilerPluginMessageHandling CompilerPluginMessageHandler.swift
[430/435] Compiling SwiftCompilerPluginMessageHandling Diagnostics.swift
[432/437] Compiling SwiftCompilerPlugin CompilerPlugin.swift
[433/437] Emitting module SwiftCompilerPlugin
[435/443] Compiling SwiftNetworkRequestMacros Helpers.swift
[436/443] Emitting module SwiftNetworkRequestMacros
[437/443] Compiling SwiftNetworkRequestMacros Plugin.swift
[438/443] Compiling SwiftNetworkRequestMacros Models.swift
[439/443] Compiling SwiftNetworkRequestMacros RequestMacros.swift
[440/443] Compiling SwiftNetworkRequestMacros RequestBuilder.swift
[441/443] Write Objects.LinkFileList
[442/443] Linking SwiftNetworkRequestMacros-tool
[444/465] Compiling SwiftNetworkRequest KeyValuePair.swift
[445/466] Compiling SwiftNetworkRequest URLSession+Request.swift
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:28: error: cannot find type 'URLRequest' in scope
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:30: error: cannot find type 'URLRequest' in scope
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:86: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:32: error: cannot find type 'URLRequest' in scope
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | }
54 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:81:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
79 | }
80 |
81 | extension URLSession: HTTPSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
82 | public func download(for request: URLRequest) async throws -> (URL, URLResponse) {
83 | try await self.download(for: request, delegate: nil)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:129:61: error: cannot find type 'URLRequest' in scope
127 | }
128 |
129 | func createURLRequest(apiRequest: ApiRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
130 | var components = URLComponents(string: apiRequest.path)
131 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:156:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
154 | }
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 | guard let httpResponse = response as? HTTPURLResponse else {
158 | throw ApiRequestError(message: "Invalid Response")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:115:26: error: cannot infer contextual base in reference to member 'init'
113 | ) async throws -> Data {
114 | let urlRequest = try createURLRequest(
115 | apiRequest: .init(
| `- error: cannot infer contextual base in reference to member 'init'
116 | path: path,
117 | httpMethod: httpMethod,
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:142:23: error: cannot find 'URLRequest' in scope
140 | }
141 |
142 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
143 | request.httpMethod = apiRequest.httpMethod
144 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:157:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
157 | guard let httpResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
158 | throw ApiRequestError(message: "Invalid Response")
159 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:157:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
157 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
158 | throw ApiRequestError(message: "Invalid Response")
159 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:161:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
159 | }
160 |
161 | guard (200...299).contains(httpResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
162 | throw URLError(.badServerResponse)
163 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:82:39: error: cannot find type 'URLRequest' in scope
80 |
81 | extension URLSession: HTTPSession {
82 | public func download(for request: URLRequest) async throws -> (URL, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
83 | try await self.download(for: request, delegate: nil)
84 | }
[446/466] Compiling SwiftNetworkRequest Delete.swift
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:28: error: cannot find type 'URLRequest' in scope
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:30: error: cannot find type 'URLRequest' in scope
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:86: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:32: error: cannot find type 'URLRequest' in scope
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | }
54 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:81:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
79 | }
80 |
81 | extension URLSession: HTTPSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
82 | public func download(for request: URLRequest) async throws -> (URL, URLResponse) {
83 | try await self.download(for: request, delegate: nil)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:129:61: error: cannot find type 'URLRequest' in scope
127 | }
128 |
129 | func createURLRequest(apiRequest: ApiRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
130 | var components = URLComponents(string: apiRequest.path)
131 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:156:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
154 | }
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 | guard let httpResponse = response as? HTTPURLResponse else {
158 | throw ApiRequestError(message: "Invalid Response")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:115:26: error: cannot infer contextual base in reference to member 'init'
113 | ) async throws -> Data {
114 | let urlRequest = try createURLRequest(
115 | apiRequest: .init(
| `- error: cannot infer contextual base in reference to member 'init'
116 | path: path,
117 | httpMethod: httpMethod,
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:142:23: error: cannot find 'URLRequest' in scope
140 | }
141 |
142 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
143 | request.httpMethod = apiRequest.httpMethod
144 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:157:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
157 | guard let httpResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
158 | throw ApiRequestError(message: "Invalid Response")
159 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:157:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
157 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
158 | throw ApiRequestError(message: "Invalid Response")
159 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:161:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
159 | }
160 |
161 | guard (200...299).contains(httpResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
162 | throw URLError(.badServerResponse)
163 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:82:39: error: cannot find type 'URLRequest' in scope
80 |
81 | extension URLSession: HTTPSession {
82 | public func download(for request: URLRequest) async throws -> (URL, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
83 | try await self.download(for: request, delegate: nil)
84 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[447/466] Emitting module SwiftNetworkRequest
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:28: error: cannot find type 'URLRequest' in scope
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:30: error: cannot find type 'URLRequest' in scope
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:32: error: cannot find type 'URLRequest' in scope
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/DI/URLSession.swift:35:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 |
34 | private enum URLSessionKey: DependencyKey {
35 | static let liveValue: any HTTPSession = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
36 | }
37 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:86: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | }
54 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:81:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
79 | }
80 |
81 | extension URLSession: HTTPSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
82 | public func download(for request: URLRequest) async throws -> (URL, URLResponse) {
83 | try await self.download(for: request, delegate: nil)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:129:61: error: cannot find type 'URLRequest' in scope
127 | }
128 |
129 | func createURLRequest(apiRequest: ApiRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
130 | var components = URLComponents(string: apiRequest.path)
131 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:156:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
154 | }
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 | guard let httpResponse = response as? HTTPURLResponse else {
158 | throw ApiRequestError(message: "Invalid Response")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[448/466] Compiling SwiftNetworkRequest RequestAuthorization.swift
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:28: error: cannot find type 'URLRequest' in scope
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:30: error: cannot find type 'URLRequest' in scope
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:32: error: cannot find type 'URLRequest' in scope
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/DI/URLSession.swift:35:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 |
34 | private enum URLSessionKey: DependencyKey {
35 | static let liveValue: any HTTPSession = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
36 | }
37 |
[449/466] Compiling SwiftNetworkRequest URLSession.swift
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:28: error: cannot find type 'URLRequest' in scope
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:30: error: cannot find type 'URLRequest' in scope
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:32: error: cannot find type 'URLRequest' in scope
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/DI/URLSession.swift:35:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 |
34 | private enum URLSessionKey: DependencyKey {
35 | static let liveValue: any HTTPSession = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
36 | }
37 |
[450/467] Compiling SwiftNetworkRequest KeyValuePair.swift
[451/467] Compiling SwiftNetworkRequest Post.swift
[452/467] Compiling SwiftNetworkRequest Get.swift
[453/467] Compiling SwiftNetworkRequest HelperMacros.swift
[454/467] Compiling SwiftNetworkRequest Put.swift
[455/467] Compiling SwiftNetworkRequest DynamicAPIResponse.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[456/467] Emitting module SwiftNetworkRequest
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:28: error: cannot find type 'URLRequest' in scope
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:30: error: cannot find type 'URLRequest' in scope
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:32: error: cannot find type 'URLRequest' in scope
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/DI/URLSession.swift:35:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 |
34 | private enum URLSessionKey: DependencyKey {
35 | static let liveValue: any HTTPSession = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
36 | }
37 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:86: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | }
54 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:81:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
79 | }
80 |
81 | extension URLSession: HTTPSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
82 | public func download(for request: URLRequest) async throws -> (URL, URLResponse) {
83 | try await self.download(for: request, delegate: nil)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:129:61: error: cannot find type 'URLRequest' in scope
127 | }
128 |
129 | func createURLRequest(apiRequest: ApiRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
130 | var components = URLComponents(string: apiRequest.path)
131 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:156:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
154 | }
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 | guard let httpResponse = response as? HTTPURLResponse else {
158 | throw ApiRequestError(message: "Invalid Response")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:28: error: cannot find type 'URLRequest' in scope
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:30: error: cannot find type 'URLRequest' in scope
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:32: error: cannot find type 'URLRequest' in scope
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/DI/URLSession.swift:35:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 |
34 | private enum URLSessionKey: DependencyKey {
35 | static let liveValue: any HTTPSession = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
36 | }
37 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:28: error: cannot find type 'URLRequest' in scope
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:30: error: cannot find type 'URLRequest' in scope
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:32: error: cannot find type 'URLRequest' in scope
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/DI/URLSession.swift:35:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 |
34 | private enum URLSessionKey: DependencyKey {
35 | static let liveValue: any HTTPSession = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
36 | }
37 |
[459/467] Compiling SwiftNetworkRequest RequestConfig.swift
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:28: error: cannot find type 'URLRequest' in scope
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:30: error: cannot find type 'URLRequest' in scope
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:32: error: cannot find type 'URLRequest' in scope
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
53 | }
54 |
[460/467] Compiling SwiftNetworkRequest Put.swift
[463/467] Compiling SwiftNetworkRequest DynamicAPIResponse.swift
[464/467] Compiling SwiftNetworkRequest Post.swift
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:28: error: cannot find type 'URLRequest' in scope
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:30: error: cannot find type 'URLRequest' in scope
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:86: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:32: error: cannot find type 'URLRequest' in scope
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | }
54 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:81:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
79 | }
80 |
81 | extension URLSession: HTTPSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
82 | public func download(for request: URLRequest) async throws -> (URL, URLResponse) {
83 | try await self.download(for: request, delegate: nil)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:129:61: error: cannot find type 'URLRequest' in scope
127 | }
128 |
129 | func createURLRequest(apiRequest: ApiRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
130 | var components = URLComponents(string: apiRequest.path)
131 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:156:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
154 | }
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 | guard let httpResponse = response as? HTTPURLResponse else {
158 | throw ApiRequestError(message: "Invalid Response")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:115:26: error: cannot infer contextual base in reference to member 'init'
113 | ) async throws -> Data {
114 | let urlRequest = try createURLRequest(
115 | apiRequest: .init(
| `- error: cannot infer contextual base in reference to member 'init'
116 | path: path,
117 | httpMethod: httpMethod,
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:142:23: error: cannot find 'URLRequest' in scope
140 | }
141 |
142 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
143 | request.httpMethod = apiRequest.httpMethod
144 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:157:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
157 | guard let httpResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
158 | throw ApiRequestError(message: "Invalid Response")
159 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:157:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
157 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
158 | throw ApiRequestError(message: "Invalid Response")
159 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:161:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
159 | }
160 |
161 | guard (200...299).contains(httpResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
162 | throw URLError(.badServerResponse)
163 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:82:39: error: cannot find type 'URLRequest' in scope
80 |
81 | extension URLSession: HTTPSession {
82 | public func download(for request: URLRequest) async throws -> (URL, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
83 | try await self.download(for: request, delegate: nil)
84 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:28: error: cannot find type 'URLRequest' in scope
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:30: error: cannot find type 'URLRequest' in scope
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:86: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:32: error: cannot find type 'URLRequest' in scope
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | }
54 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:81:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
79 | }
80 |
81 | extension URLSession: HTTPSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
82 | public func download(for request: URLRequest) async throws -> (URL, URLResponse) {
83 | try await self.download(for: request, delegate: nil)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:129:61: error: cannot find type 'URLRequest' in scope
127 | }
128 |
129 | func createURLRequest(apiRequest: ApiRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
130 | var components = URLComponents(string: apiRequest.path)
131 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:156:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
154 | }
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 | guard let httpResponse = response as? HTTPURLResponse else {
158 | throw ApiRequestError(message: "Invalid Response")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:115:26: error: cannot infer contextual base in reference to member 'init'
113 | ) async throws -> Data {
114 | let urlRequest = try createURLRequest(
115 | apiRequest: .init(
| `- error: cannot infer contextual base in reference to member 'init'
116 | path: path,
117 | httpMethod: httpMethod,
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:142:23: error: cannot find 'URLRequest' in scope
140 | }
141 |
142 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
143 | request.httpMethod = apiRequest.httpMethod
144 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:157:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
157 | guard let httpResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
158 | throw ApiRequestError(message: "Invalid Response")
159 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:157:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
157 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
158 | throw ApiRequestError(message: "Invalid Response")
159 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:161:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
159 | }
160 |
161 | guard (200...299).contains(httpResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
162 | throw URLError(.badServerResponse)
163 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:82:39: error: cannot find type 'URLRequest' in scope
80 |
81 | extension URLSession: HTTPSession {
82 | public func download(for request: URLRequest) async throws -> (URL, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
83 | try await self.download(for: request, delegate: nil)
84 | }
[467/467] Compiling SwiftNetworkRequest RequestConfig.swift
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:28: error: cannot find type 'URLRequest' in scope
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:30: error: cannot find type 'URLRequest' in scope
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:32: error: cannot find type 'URLRequest' in scope
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
53 | }
54 |
BUILD FAILURE 6.1 linux