The Swift Package Index logo.Swift Package Index

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

Build Information

Failed to build OkHttpClient, reference main (0b6c9f), with Swift 6.0 for Linux on 29 Nov 2024 23:38:44 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/rmichelberger/OkHttpClient.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/rmichelberger/OkHttpClient
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 0b6c9ff Update README.md
Cloned https://github.com/rmichelberger/OkHttpClient.git
Revision (git rev-parse @):
0b6c9ff7c97c1c74a86dd6b97411c9da580d2ec0
SUCCESS checkout https://github.com/rmichelberger/OkHttpClient.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/rmichelberger/OkHttpClient.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/10] Compiling OkHttpClient OkHttpClient.swift
/host/spi-builder-workspace/Sources/OkHttpClient/Logger/Logger.swift:4:23: error: cannot find type 'URLRequest' in scope
2 |
3 | public protocol Logger {
4 |     func log(request: URLRequest)
  |                       `- error: cannot find type 'URLRequest' in scope
5 |     func log(response: HTTPURLResponse, data: Data?)
6 | }
/host/spi-builder-workspace/Sources/OkHttpClient/OkHttpClient.swift:12:48: error: cannot find type 'URLRequest' in scope
10 |     }
11 |
12 |     public func execute<T: Decodable>(request: URLRequest) async throws -> T {
   |                                                `- error: cannot find type 'URLRequest' in scope
13 |         if let logger {
14 |             logger.log(request: request)
/host/spi-builder-workspace/Sources/OkHttpClient/OkHttpClient.swift:26:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
24 |
25 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
26 | public extension URLSession {
   |        `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
27 |     func data(from url: URL) async throws -> (Data, URLResponse) {
28 |         try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/OkHttpClient/OkHttpClient.swift:14:33: error: extra argument 'request' in call
12 |     public func execute<T: Decodable>(request: URLRequest) async throws -> T {
13 |         if let logger {
14 |             logger.log(request: request)
   |                                 `- error: extra argument 'request' in call
15 |         }
16 |         let result = try await URLSession.shared.data(for: request)
/host/spi-builder-workspace/Sources/OkHttpClient/OkHttpClient.swift:14:23: error: missing arguments for parameters 'response', 'data' in call
12 |     public func execute<T: Decodable>(request: URLRequest) async throws -> T {
13 |         if let logger {
14 |             logger.log(request: request)
   |                       `- error: missing arguments for parameters 'response', 'data' in call
15 |         }
16 |         let result = try await URLSession.shared.data(for: request)
/host/spi-builder-workspace/Sources/OkHttpClient/Logger/Logger.swift:5:10: note: 'log(response:data:)' declared here
3 | public protocol Logger {
4 |     func log(request: URLRequest)
5 |     func log(response: HTTPURLResponse, data: Data?)
  |          `- note: 'log(response:data:)' declared here
6 | }
7 |
/host/spi-builder-workspace/Sources/OkHttpClient/OkHttpClient.swift:16:43: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
14 |             logger.log(request: request)
15 |         }
16 |         let result = try await URLSession.shared.data(for: request)
   |                                           `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 |         let data = result.0
18 |         if let logger, let response = result.1 as? HTTPURLResponse {
[4/10] Compiling OkHttpClient Logger.swift
/host/spi-builder-workspace/Sources/OkHttpClient/Logger/Logger.swift:4:23: error: cannot find type 'URLRequest' in scope
2 |
3 | public protocol Logger {
4 |     func log(request: URLRequest)
  |                       `- error: cannot find type 'URLRequest' in scope
5 |     func log(response: HTTPURLResponse, data: Data?)
6 | }
/host/spi-builder-workspace/Sources/OkHttpClient/Logger/Logger.swift:5:24: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
3 | public protocol Logger {
4 |     func log(request: URLRequest)
5 |     func log(response: HTTPURLResponse, data: Data?)
  |                        `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | }
7 |
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
[5/10] Compiling OkHttpClient SimpleLogger.swift
/host/spi-builder-workspace/Sources/OkHttpClient/Logger/SimpleLogger.swift:6:30: error: cannot find type 'URLRequest' in scope
 4 |     public init() {}
 5 |
 6 |     public func log(request: URLRequest) {
   |                              `- error: cannot find type 'URLRequest' in scope
 7 | #if DEBUG
 8 |         var result = "---------- Request ---------->\n"
/host/spi-builder-workspace/Sources/OkHttpClient/Logger/SimpleLogger.swift:33:31: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |     }
32 |
33 |     public func log(response: HTTPURLResponse, data: Data?) {
   |                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 | #if DEBUG
35 |         let urlString = response.url?.absoluteString
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/OkHttpClient/Logger/Logger.swift:4:23: error: cannot find type 'URLRequest' in scope
2 |
3 | public protocol Logger {
4 |     func log(request: URLRequest)
  |                       `- error: cannot find type 'URLRequest' in scope
5 |     func log(response: HTTPURLResponse, data: Data?)
6 | }
/host/spi-builder-workspace/Sources/OkHttpClient/Logger/SimpleLogger.swift:35:34: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
33 |     public func log(response: HTTPURLResponse, data: Data?) {
34 | #if DEBUG
35 |         let urlString = response.url?.absoluteString
   |                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
36 |         let components = URLComponents(string: urlString ?? "")
37 |
/host/spi-builder-workspace/Sources/OkHttpClient/Logger/SimpleLogger.swift:43:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
41 |         }
42 |
43 |         responseLog += "HTTP \(response.statusCode)"
   |                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
44 |         if let path = components?.path {
45 |             responseLog += " \(path)"
/host/spi-builder-workspace/Sources/OkHttpClient/Logger/SimpleLogger.swift:54:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
52 |             responseLog += "Host: \(host)\n"
53 |         }
54 |         for (name,value) in response.allHeaderFields {
   |                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
55 |             responseLog += "\(name): \(value)\n"
56 |         }
[6/10] Compiling OkHttpClient DataDecoder.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/10] Compiling OkHttpClient RawDataDecoder.swift
[8/10] Compiling OkHttpClient NullEncodable.swift
[9/10] Compiling OkHttpClient JSON.swift
[10/10] Emitting module OkHttpClient
/host/spi-builder-workspace/Sources/OkHttpClient/Logger/Logger.swift:4:23: error: cannot find type 'URLRequest' in scope
2 |
3 | public protocol Logger {
4 |     func log(request: URLRequest)
  |                       `- error: cannot find type 'URLRequest' in scope
5 |     func log(response: HTTPURLResponse, data: Data?)
6 | }
/host/spi-builder-workspace/Sources/OkHttpClient/Logger/Logger.swift:5:24: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
3 | public protocol Logger {
4 |     func log(request: URLRequest)
5 |     func log(response: HTTPURLResponse, data: Data?)
  |                        `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | }
7 |
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/OkHttpClient/Logger/SimpleLogger.swift:6:30: error: cannot find type 'URLRequest' in scope
 4 |     public init() {}
 5 |
 6 |     public func log(request: URLRequest) {
   |                              `- error: cannot find type 'URLRequest' in scope
 7 | #if DEBUG
 8 |         var result = "---------- Request ---------->\n"
/host/spi-builder-workspace/Sources/OkHttpClient/Logger/SimpleLogger.swift:33:31: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |     }
32 |
33 |     public func log(response: HTTPURLResponse, data: Data?) {
   |                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 | #if DEBUG
35 |         let urlString = response.url?.absoluteString
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/OkHttpClient/OkHttpClient.swift:12:48: error: cannot find type 'URLRequest' in scope
10 |     }
11 |
12 |     public func execute<T: Decodable>(request: URLRequest) async throws -> T {
   |                                                `- error: cannot find type 'URLRequest' in scope
13 |         if let logger {
14 |             logger.log(request: request)
/host/spi-builder-workspace/Sources/OkHttpClient/OkHttpClient.swift:26:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
24 |
25 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
26 | public extension URLSession {
   |        `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
27 |     func data(from url: URL) async throws -> (Data, URLResponse) {
28 |         try await withCheckedThrowingContinuation { continuation in
BUILD FAILURE 6.0 linux