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 mountebankSwift, reference 0.2.1 (0091d4), with Swift 6.0 for Linux on 30 Nov 2024 06:37:56 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.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/dave-t-c/mountebankSwift.git
Reference: 0.2.1
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/dave-t-c/mountebankSwift
 * tag               0.2.1      -> FETCH_HEAD
HEAD is now at 0091d45 Merge pull request #14 from dave-t-c/add-tvos-watchos-support
Cloned https://github.com/dave-t-c/mountebankSwift.git
Revision (git rev-parse @):
0091d45e592338a27ec27ad0c9128ada9448c16a
SUCCESS checkout https://github.com/dave-t-c/mountebankSwift.git at 0.2.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/dave-t-c/mountebankSwift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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/23] Emitting module mountebankSwift
[4/25] Compiling mountebankSwift Stub.swift
/host/spi-builder-workspace/Sources/mountebankSwift/RequestWrappers/MountebankRequestWrapper.swift:21:23: error: cannot find 'URLRequest' in scope
19 |             return
20 |         }
21 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
22 |         request.httpMethod = "DELETE"
23 |         print("Calling \(request.httpMethod!) \(request.url!)")
/host/spi-builder-workspace/Sources/mountebankSwift/RequestWrappers/MountebankRequestWrapper.swift:25:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
23 |         print("Calling \(request.httpMethod!) \(request.url!)")
24 |
25 |         _ = try await URLSession.shared.data(for: request)
   |                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
26 |     }
27 |
/host/spi-builder-workspace/Sources/mountebankSwift/RequestWrappers/MountebankRequestWrapper.swift:32:23: error: cannot find 'URLRequest' in scope
30 |             return
31 |         }
32 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
33 |         request.httpMethod = "POST"
34 |         request.httpBody = try JSONEncoder().encode(imposter)
/host/spi-builder-workspace/Sources/mountebankSwift/RequestWrappers/MountebankRequestWrapper.swift:38:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
36 |         print("Calling \(request.httpMethod!) \(request.url!)")
37 |
38 |         let (_, response) = try await URLSession.shared.data(for: request)
   |                                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
39 |         guard let httpResponse = response as? HTTPURLResponse else {
40 |             print(Constants.ExceptionMessages.invalidResponseRecievedFromServerMessage)
/host/spi-builder-workspace/Sources/mountebankSwift/RequestWrappers/MountebankRequestWrapper.swift:54:23: error: cannot find 'URLRequest' in scope
52 |             throw MountebankExceptions.unableToRetrieveImposters
53 |         }
54 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
55 |         request.httpMethod = "GET"
56 |
/host/spi-builder-workspace/Sources/mountebankSwift/RequestWrappers/MountebankRequestWrapper.swift:57:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
55 |         request.httpMethod = "GET"
56 |
57 |         let (data, response) = try await URLSession.shared.data(for: request)
   |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
58 |         guard let httpResponse = response as? HTTPURLResponse else {
59 |             print(Constants.ExceptionMessages.invalidResponseRecievedFromServerMessage)
/host/spi-builder-workspace/Sources/mountebankSwift/RequestWrappers/MountebankRequestWrapper.swift:81:23: error: cannot find 'URLRequest' in scope
79 |             throw MountebankExceptions.unableToRetrieveImposter
80 |         }
81 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
82 |         request.httpMethod = "GET"
83 |
/host/spi-builder-workspace/Sources/mountebankSwift/RequestWrappers/MountebankRequestWrapper.swift:84:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
82 |         request.httpMethod = "GET"
83 |
84 |         let (data, response) = try await URLSession.shared.data(for: request)
   |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
85 |         guard let httpResponse = response as? HTTPURLResponse else {
86 |             print(Constants.ExceptionMessages.invalidResponseRecievedFromServerMessage)
[5/25] Compiling mountebankSwift MountebankRequestWrapper.swift
/host/spi-builder-workspace/Sources/mountebankSwift/RequestWrappers/MountebankRequestWrapper.swift:21:23: error: cannot find 'URLRequest' in scope
19 |             return
20 |         }
21 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
22 |         request.httpMethod = "DELETE"
23 |         print("Calling \(request.httpMethod!) \(request.url!)")
/host/spi-builder-workspace/Sources/mountebankSwift/RequestWrappers/MountebankRequestWrapper.swift:25:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
23 |         print("Calling \(request.httpMethod!) \(request.url!)")
24 |
25 |         _ = try await URLSession.shared.data(for: request)
   |                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
26 |     }
27 |
/host/spi-builder-workspace/Sources/mountebankSwift/RequestWrappers/MountebankRequestWrapper.swift:32:23: error: cannot find 'URLRequest' in scope
30 |             return
31 |         }
32 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
33 |         request.httpMethod = "POST"
34 |         request.httpBody = try JSONEncoder().encode(imposter)
/host/spi-builder-workspace/Sources/mountebankSwift/RequestWrappers/MountebankRequestWrapper.swift:38:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
36 |         print("Calling \(request.httpMethod!) \(request.url!)")
37 |
38 |         let (_, response) = try await URLSession.shared.data(for: request)
   |                                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
39 |         guard let httpResponse = response as? HTTPURLResponse else {
40 |             print(Constants.ExceptionMessages.invalidResponseRecievedFromServerMessage)
/host/spi-builder-workspace/Sources/mountebankSwift/RequestWrappers/MountebankRequestWrapper.swift:54:23: error: cannot find 'URLRequest' in scope
52 |             throw MountebankExceptions.unableToRetrieveImposters
53 |         }
54 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
55 |         request.httpMethod = "GET"
56 |
/host/spi-builder-workspace/Sources/mountebankSwift/RequestWrappers/MountebankRequestWrapper.swift:57:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
55 |         request.httpMethod = "GET"
56 |
57 |         let (data, response) = try await URLSession.shared.data(for: request)
   |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
58 |         guard let httpResponse = response as? HTTPURLResponse else {
59 |             print(Constants.ExceptionMessages.invalidResponseRecievedFromServerMessage)
/host/spi-builder-workspace/Sources/mountebankSwift/RequestWrappers/MountebankRequestWrapper.swift:81:23: error: cannot find 'URLRequest' in scope
79 |             throw MountebankExceptions.unableToRetrieveImposter
80 |         }
81 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
82 |         request.httpMethod = "GET"
83 |
/host/spi-builder-workspace/Sources/mountebankSwift/RequestWrappers/MountebankRequestWrapper.swift:84:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
82 |         request.httpMethod = "GET"
83 |
84 |         let (data, response) = try await URLSession.shared.data(for: request)
   |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
85 |         guard let httpResponse = response as? HTTPURLResponse else {
86 |             print(Constants.ExceptionMessages.invalidResponseRecievedFromServerMessage)
[6/25] Compiling mountebankSwift Fields.swift
[7/25] Compiling mountebankSwift HttpFields.swift
[8/25] Compiling mountebankSwift Predicate.swift
[9/25] Compiling mountebankSwift HttpImposter.swift
[10/25] Compiling mountebankSwift Imposter.swift
[11/25] Compiling mountebankSwift HttpMethod.swift
[12/25] Compiling mountebankSwift MountebankClient.swift
[13/25] Compiling mountebankSwift MountebankExceptions.swift
[14/25] Compiling mountebankSwift Constants.swift
[15/25] Compiling mountebankSwift RetrieveImpostersResponse.swift
[16/25] Compiling mountebankSwift RetrievedHttpImposter.swift
[17/25] Compiling mountebankSwift RetrievedImposter.swift
[18/25] Compiling mountebankSwift SimpleRetrievedImposter.swift
[19/25] Compiling mountebankSwift HttpRequest.swift
[20/25] Compiling mountebankSwift EqualsPredicate.swift
[21/25] Compiling mountebankSwift HttpResponseFields.swift
[22/25] Compiling mountebankSwift ResponseFields.swift
[23/25] Compiling mountebankSwift IsResponse.swift
[24/25] Compiling mountebankSwift Response.swift
[25/25] Compiling mountebankSwift HttpStub.swift
BUILD FAILURE 6.0 linux