Build Information
Failed to build Requests, reference master (8504a5), with Swift 6.4 for Linux on 16 Sep 2026 00:12:07 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344845-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/alexjohnj/Requests.git
Reference: master
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/alexjohnj/Requests
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 8504a52 Version Bump
Cloned https://github.com/alexjohnj/Requests.git
Revision (git rev-parse @):
8504a521e463f5a6fe4d55c3876e3747295f5730
SUCCESS checkout https://github.com/alexjohnj/Requests.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.4
Building package at path: $PWD
https://github.com/alexjohnj/Requests.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344845-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:c77fcce225e223ac0fafed844619173fc6de8d62dd560eeb28db3182af6a282b
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest
Building for debugging...
[Planning deferred tasks]
error: SwiftCompile normal x86_64 failed with a nonzero exit code. Command line: cd /host
[28 / 36] Requests
/host/spi-builder-workspace/Sources/DefaultValue.swift:23:37: [1;31merror: [1;39mcannot find 'URLRequest' in scope[0;0m
[0;36m21 |[0;0m
[0;36m22 |[0;0m /// The `useProtocolCachePolicy`.
[0;36m23 |[0;0m public static let cachePolicy = [4;39mURLRequest[0;0m.CachePolicy.useProtocolCachePolicy
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'URLRequest' in scope[0;0m
[0;36m24 |[0;0m
[0;36m25 |[0;0m /// 60 seconds.
/host/spi-builder-workspace/Sources/Request.swift:179:29: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m177 |[0;0m public var queryItems: [URLQueryItem]
[0;36m178 |[0;0m
[0;36m179 |[0;0m public var cachePolicy: [4;39mURLRequest[0;0m.CachePolicy
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m180 |[0;0m
[0;36m181 |[0;0m public var timeoutInterval: TimeInterval
/host/spi-builder-workspace/Sources/Request.swift:204:20: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m202 |[0;0m header: Header = DefaultValue.header,
[0;36m203 |[0;0m queryItems: [URLQueryItem] = DefaultValue.queryItems,
[0;36m204 |[0;0m cachePolicy: [4;39mURLRequest[0;0m.CachePolicy = DefaultValue.cachePolicy,
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m205 |[0;0m timeoutInterval: TimeInterval = DefaultValue.timeout,
[0;36m206 |[0;0m bodyProvider: BodyProvider = DefaultValue.bodyProvider,
/host/spi-builder-workspace/Sources/RequestConvertible.swift:56:22: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m54 |[0;0m
[0;36m55 |[0;0m /// The caching policy to specify when converted to a `URLRequest`. Defaults to `.useProtocolCachePolicy`.
[0;36m56 |[0;0m var cachePolicy: [4;39mURLRequest[0;0m.CachePolicy { get }
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m57 |[0;0m
[0;36m58 |[0;0m /// The timeout interval to specify when converted to a `URLRequest`. Defaults to `60.0`.
/host/spi-builder-workspace/Sources/RequestConvertible.swift:86:29: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m84 |[0;0m }
[0;36m85 |[0;0m
[0;36m86 |[0;0m public var cachePolicy: [4;39mURLRequest[0;0m.CachePolicy {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m87 |[0;0m return DefaultValue.cachePolicy
[0;36m88 |[0;0m }
/host/spi-builder-workspace/Sources/RequestConvertible.swift:139:42: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m137 |[0;0m /// - Any errors thrown by the request's `bodyProvider`.
[0;36m138 |[0;0m ///
[0;36m139 |[0;0m public func toURLRequest() throws -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m140 |[0;0m guard let url = buildRequestURL() else {
[0;36m141 |[0;0m throw InvalidRequestURLError()
/host/spi-builder-workspace/Sources/RequestError.swift:36:25: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m34 |[0;0m
[0;36m35 |[0;0m /// The failed request or `nil` if the request could not be constructed.
[0;36m36 |[0;0m public let request: [4;39mURLRequest[0;0m?
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m37 |[0;0m
[0;36m38 |[0;0m /// A response received before the error occurred or `nil` if there was no response.
/host/spi-builder-workspace/Sources/RequestError.swift:39:26: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m37 |[0;0m
[0;36m38 |[0;0m /// A response received before the error occurred or `nil` if there was no response.
[0;36m39 |[0;0m public let response: [4;39mURLResponse[0;0m?
[0;36m|[0;0m `- [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m40 |[0;0m
[0;36m41 |[0;0m /// A HTTP response received before the error occurred or `nil` if there was no response or `response` is not an
Foundation.URLResponse:2:18: [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/RequestError.swift:44:30: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m42 |[0;0m /// HTTP response.
[0;36m43 |[0;0m ///
[0;36m44 |[0;0m public var httpResponse: [4;39mHTTPURLResponse[0;0m? {
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m45 |[0;0m return response as? HTTPURLResponse
[0;36m46 |[0;0m }
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/RequestError.swift:48:50: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m46 |[0;0m }
[0;36m47 |[0;0m
[0;36m48 |[0;0m public init(underlyingError: Error, request: [4;39mURLRequest[0;0m?, response: URLResponse?) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m49 |[0;0m self.underlyingError = underlyingError
[0;36m50 |[0;0m self.request = request
/host/spi-builder-workspace/Sources/RequestError.swift:48:73: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m46 |[0;0m }
[0;36m47 |[0;0m
[0;36m48 |[0;0m public init(underlyingError: Error, request: URLRequest?, response: [4;39mURLResponse[0;0m?) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m49 |[0;0m self.underlyingError = underlyingError
[0;36m50 |[0;0m self.request = request
Foundation.URLResponse:2:18: [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/ResponseDecoder.swift:14:25: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m12 |[0;0m
[0;36m13 |[0;0m /// The body of the decoder.
[0;36m14 |[0;0m public let decode: ([4;39mHTTPURLResponse[0;0m, Data) throws -> Response
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m15 |[0;0m
[0;36m16 |[0;0m public init(_ decode: @escaping (HTTPURLResponse, Data) throws -> Response) {
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/ResponseDecoder.swift:16:38: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m14 |[0;0m public let decode: (HTTPURLResponse, Data) throws -> Response
[0;36m15 |[0;0m
[0;36m16 |[0;0m public init(_ decode: @escaping ([4;39mHTTPURLResponse[0;0m, Data) throws -> Response) {
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m17 |[0;0m self.decode = decode
[0;36m18 |[0;0m }
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/URLQueryItem+ExpresibleByDictionaryLiteral.swift:7:1: [1;33mwarning: [1;39mextension declares a conformance of imported type 'Array' to imported protocol 'ExpressibleByDictionaryLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future[0;0m
[0;36m5 |[0;0m import Foundation
[0;36m6 |[0;0m
[0;36m7 |[0;0m extension Array: ExpressibleByDictionaryLiteral where Element == URLQueryItem {
[0;36m|[0;0m |- [1;33mwarning: [1;39mextension declares a conformance of imported type 'Array' to imported protocol 'ExpressibleByDictionaryLiteral'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39madd '@retroactive' to silence this warning[0;0m
[0;36m8 |[0;0m
[0;36m9 |[0;0m public typealias Key = String
/host/spi-builder-workspace/Sources/URLSession+Requests.swift:10:52: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m8 |[0;0m import Foundation
[0;36m9 |[0;0m
[0;36m10 |[0;0m public typealias NetworkResult<Resource> = Result<([4;39mHTTPURLResponse[0;0m, Resource), RequestTransportError>
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m11 |[0;0m
[0;36m12 |[0;0m extension URLSession {
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/URLSession+Requests.swift:12:1: [1;31merror: [1;39mnon-nominal type 'URLSession' (aka 'AnyObject') cannot be extended[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
[0;36m10 |[0;0m public typealias NetworkResult<Resource> = Result<(HTTPURLResponse, Resource), RequestTransportError>
[0;36m11 |[0;0m
[0;36m12 |[0;0m extension [4;39mURLSession[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mnon-nominal type 'URLSession' (aka 'AnyObject') cannot be extended[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
[0;36m13 |[0;0m
[0;36m14 |[0;0m /// Executes a `RequestConvertible` request and attempts to decode the response body.
/host/spi-builder-workspace/Sources/URLSession+Requests.swift:128:71: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m126 |[0;0m // MARK: - Helper Functions
[0;36m127 |[0;0m
[0;36m128 |[0;0m private func decodeBody<Body>(from data: Data?, forResponse response: [4;39mHTTPURLResponse[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m129 |[0;0m using responseDecoder: ResponseDecoder<Body>) throws -> Body {
[0;36m130 |[0;0m guard Body.self != Void.self else { return () as! Body } // swiftlint:disable:this force_cast
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/AuthenticationProvider.swift /host/spi-builder-workspace/Sources/BodyProvider.swift /host/spi-builder-workspace/Sources/CaseInsensitiveString.swift /host/spi-builder-workspace/Sources/DefaultValue.swift /host/spi-builder-workspace/Sources/Field.swift /host/spi-builder-workspace/Sources/HTTPMethod.swift /host/spi-builder-workspace/Sources/Header.swift /host/spi-builder-workspace/Sources/MediaType.swift /host/spi-builder-workspace/Sources/Request.swift /host/spi-builder-workspace/Sources/RequestBody.swift /host/spi-builder-workspace/Sources/RequestConvertible.swift /host/spi-builder-workspace/Sources/RequestError.swift /host/spi-builder-workspace/Sources/ResponseDecoder.swift /host/spi-builder-workspace/Sources/URL+StaticString.swift /host/spi-builder-workspace/Sources/URLQueryItem+ExpresibleByDictionaryLiteral.swift /host/spi-builder-workspace/Sources/URLSession+Requests.swift -target x86_64-unknown-linux-gnu -disable-objc-interop -I /host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -fno-omit-frame-pointer -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/Requests.build/Debug-linux-x86_64/Requests-t.build/DerivedSources-normal/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/Requests.build/Debug-linux-x86_64/Requests-t.build/DerivedSources/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/Requests.build/Debug-linux-x86_64/Requests-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name Requests -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/Requests.build/Debug-linux-x86_64/Requests-t.build/Objects-normal/x86_64/Requests_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Requests.build/Debug-linux-x86_64/Requests-t.build/Objects-normal/x86_64/Modules/Requests.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Requests.build/Debug-linux-x86_64/Requests-t.build/Objects-normal/x86_64/Modules/Requests.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Requests.build/Debug-linux-x86_64/Requests-t.build/Objects-normal/x86_64/Requests-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Requests.build/Debug-linux-x86_64/Requests-t.build/Objects-normal/x86_64/Requests-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Requests.build/Debug-linux-x86_64/Requests-t.build/Objects-normal/x86_64/Requests-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/Requests.build/Debug-linux-x86_64/Requests-t.build/Objects-normal/x86_64/Modules/Requests.swiftmodule
error: Build failed
BUILD FAILURE 6.4 linux