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 GitHub, reference main (15da0d), with Swift 6.1 for Android on 27 May 2025 22:11:46 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/eneko/github.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/eneko/github
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 15da0d9 Create FUNDING.yml
Cloned https://github.com/eneko/github.git
Revision (git rev-parse @):
15da0d97d49d7fab76a9847c0cf1c2fe4bd49e55
SUCCESS checkout https://github.com/eneko/github.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/eneko/github.git
https://github.com/eneko/github.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "GitHub",
  "name" : "GitHub",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "GitHub",
      "targets" : [
        "GitHub"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "GitHubTests",
      "module_type" : "SwiftTarget",
      "name" : "GitHubTests",
      "path" : "Tests/GitHubTests",
      "sources" : [
        "GitHubTests.swift"
      ],
      "target_dependencies" : [
        "GitHub"
      ],
      "type" : "test"
    },
    {
      "c99name" : "GitHub",
      "module_type" : "SwiftTarget",
      "name" : "GitHub",
      "path" : "Sources/GitHub",
      "product_memberships" : [
        "GitHub"
      ],
      "sources" : [
        "Client.swift",
        "GitHub.swift",
        "GitHubError.swift",
        "Models.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/7] Compiling GitHub Models.swift
[4/7] Compiling GitHub GitHubError.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/7] Emitting module GitHub
/host/spi-builder-workspace/Sources/GitHub/Client.swift:22:58: error: cannot find type 'URLRequest' in scope
20 |     }
21 |
22 |     func makeURLRequest(with request: Request) throws -> URLRequest {
   |                                                          `- error: cannot find type 'URLRequest' in scope
23 |         guard let url = URL(string: "https://api.github.com/graphql") else {
24 |             fatalError("Failed to make url")
/host/spi-builder-workspace/Sources/GitHub/Client.swift:37:29: error: cannot find type 'URLRequest' in scope
35 |     }
36 |
37 |     func submit(urlRequest: URLRequest) throws -> Response {
   |                             `- error: cannot find type 'URLRequest' in scope
38 |         var responseData: Response?
39 |         let semaphore = DispatchSemaphore(value: 0)
/host/spi-builder-workspace/Sources/GitHub/Client.swift:53:29: error: cannot find type 'URLRequest' in scope
51 |     }
52 |
53 |     func submit(urlRequest: URLRequest, completion: @escaping CompletionBlock) {
   |                             `- error: cannot find type 'URLRequest' in scope
54 |         let session = URLSession(configuration: URLSessionConfiguration.default, delegate: nil, delegateQueue: OperationQueue())
55 |         let task = session.dataTask(with: urlRequest) { (data, response, error) in
[6/7] Compiling GitHub Client.swift
/host/spi-builder-workspace/Sources/GitHub/Client.swift:22:58: error: cannot find type 'URLRequest' in scope
20 |     }
21 |
22 |     func makeURLRequest(with request: Request) throws -> URLRequest {
   |                                                          `- error: cannot find type 'URLRequest' in scope
23 |         guard let url = URL(string: "https://api.github.com/graphql") else {
24 |             fatalError("Failed to make url")
/host/spi-builder-workspace/Sources/GitHub/Client.swift:37:29: error: cannot find type 'URLRequest' in scope
35 |     }
36 |
37 |     func submit(urlRequest: URLRequest) throws -> Response {
   |                             `- error: cannot find type 'URLRequest' in scope
38 |         var responseData: Response?
39 |         let semaphore = DispatchSemaphore(value: 0)
/host/spi-builder-workspace/Sources/GitHub/Client.swift:53:29: error: cannot find type 'URLRequest' in scope
51 |     }
52 |
53 |     func submit(urlRequest: URLRequest, completion: @escaping CompletionBlock) {
   |                             `- error: cannot find type 'URLRequest' in scope
54 |         let session = URLSession(configuration: URLSessionConfiguration.default, delegate: nil, delegateQueue: OperationQueue())
55 |         let task = session.dataTask(with: urlRequest) { (data, response, error) in
/host/spi-builder-workspace/Sources/GitHub/Client.swift:19:26: error: incorrect argument label in call (have 'urlRequest:', expected 'request:')
17 |     func submit(request: Request) throws -> Response {
18 |         let urlRequest = try makeURLRequest(with: request)
19 |         return try submit(urlRequest: urlRequest)
   |                          `- error: incorrect argument label in call (have 'urlRequest:', expected 'request:')
20 |     }
21 |
/host/spi-builder-workspace/Sources/GitHub/Client.swift:27:26: error: cannot find 'URLRequest' in scope
25 |         }
26 |
27 |         var urlRequest = URLRequest(url: url)
   |                          `- error: cannot find 'URLRequest' in scope
28 |         urlRequest.httpMethod = "POST"
29 |         urlRequest.setValue("bearer \(token)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/GitHub/Client.swift:40:40: error: extra trailing closure passed in call
38 |         var responseData: Response?
39 |         let semaphore = DispatchSemaphore(value: 0)
40 |         submit(urlRequest: urlRequest) { (response, error) in
   |                                        `- error: extra trailing closure passed in call
41 |             responseData = response
42 |             semaphore.signal()
/host/spi-builder-workspace/Sources/GitHub/Client.swift:54:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
52 |
53 |     func submit(urlRequest: URLRequest, completion: @escaping CompletionBlock) {
54 |         let session = URLSession(configuration: URLSessionConfiguration.default, delegate: nil, delegateQueue: OperationQueue())
   |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
55 |         let task = session.dataTask(with: urlRequest) { (data, response, error) in
56 |             guard let data = data else {
/host/spi-builder-workspace/Sources/GitHub/Client.swift:54:73: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
52 |
53 |     func submit(urlRequest: URLRequest, completion: @escaping CompletionBlock) {
54 |         let session = URLSession(configuration: URLSessionConfiguration.default, delegate: nil, delegateQueue: OperationQueue())
   |                                                                         `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
55 |         let task = session.dataTask(with: urlRequest) { (data, response, error) in
56 |             guard let data = data else {
/host/spi-builder-workspace/Sources/GitHub/Client.swift:54:92: error: 'nil' requires a contextual type
52 |
53 |     func submit(urlRequest: URLRequest, completion: @escaping CompletionBlock) {
54 |         let session = URLSession(configuration: URLSessionConfiguration.default, delegate: nil, delegateQueue: OperationQueue())
   |                                                                                            `- error: 'nil' requires a contextual type
55 |         let task = session.dataTask(with: urlRequest) { (data, response, error) in
56 |             guard let data = data else {
[7/7] Compiling GitHub GitHub.swift
/host/spi-builder-workspace/Sources/GitHub/Client.swift:37:29: error: cannot find type 'URLRequest' in scope
35 |     }
36 |
37 |     func submit(urlRequest: URLRequest) throws -> Response {
   |                             `- error: cannot find type 'URLRequest' in scope
38 |         var responseData: Response?
39 |         let semaphore = DispatchSemaphore(value: 0)
/host/spi-builder-workspace/Sources/GitHub/Client.swift:53:29: error: cannot find type 'URLRequest' in scope
51 |     }
52 |
53 |     func submit(urlRequest: URLRequest, completion: @escaping CompletionBlock) {
   |                             `- error: cannot find type 'URLRequest' in scope
54 |         let session = URLSession(configuration: URLSessionConfiguration.default, delegate: nil, delegateQueue: OperationQueue())
55 |         let task = session.dataTask(with: urlRequest) { (data, response, error) in
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/6] Emitting module GitHub
/host/spi-builder-workspace/Sources/GitHub/Client.swift:22:58: error: cannot find type 'URLRequest' in scope
20 |     }
21 |
22 |     func makeURLRequest(with request: Request) throws -> URLRequest {
   |                                                          `- error: cannot find type 'URLRequest' in scope
23 |         guard let url = URL(string: "https://api.github.com/graphql") else {
24 |             fatalError("Failed to make url")
/host/spi-builder-workspace/Sources/GitHub/Client.swift:37:29: error: cannot find type 'URLRequest' in scope
35 |     }
36 |
37 |     func submit(urlRequest: URLRequest) throws -> Response {
   |                             `- error: cannot find type 'URLRequest' in scope
38 |         var responseData: Response?
39 |         let semaphore = DispatchSemaphore(value: 0)
/host/spi-builder-workspace/Sources/GitHub/Client.swift:53:29: error: cannot find type 'URLRequest' in scope
51 |     }
52 |
53 |     func submit(urlRequest: URLRequest, completion: @escaping CompletionBlock) {
   |                             `- error: cannot find type 'URLRequest' in scope
54 |         let session = URLSession(configuration: URLSessionConfiguration.default, delegate: nil, delegateQueue: OperationQueue())
55 |         let task = session.dataTask(with: urlRequest) { (data, response, error) in
[3/6] Compiling GitHub Client.swift
/host/spi-builder-workspace/Sources/GitHub/Client.swift:22:58: error: cannot find type 'URLRequest' in scope
20 |     }
21 |
22 |     func makeURLRequest(with request: Request) throws -> URLRequest {
   |                                                          `- error: cannot find type 'URLRequest' in scope
23 |         guard let url = URL(string: "https://api.github.com/graphql") else {
24 |             fatalError("Failed to make url")
/host/spi-builder-workspace/Sources/GitHub/Client.swift:37:29: error: cannot find type 'URLRequest' in scope
35 |     }
36 |
37 |     func submit(urlRequest: URLRequest) throws -> Response {
   |                             `- error: cannot find type 'URLRequest' in scope
38 |         var responseData: Response?
39 |         let semaphore = DispatchSemaphore(value: 0)
/host/spi-builder-workspace/Sources/GitHub/Client.swift:53:29: error: cannot find type 'URLRequest' in scope
51 |     }
52 |
53 |     func submit(urlRequest: URLRequest, completion: @escaping CompletionBlock) {
   |                             `- error: cannot find type 'URLRequest' in scope
54 |         let session = URLSession(configuration: URLSessionConfiguration.default, delegate: nil, delegateQueue: OperationQueue())
55 |         let task = session.dataTask(with: urlRequest) { (data, response, error) in
/host/spi-builder-workspace/Sources/GitHub/Client.swift:19:26: error: incorrect argument label in call (have 'urlRequest:', expected 'request:')
17 |     func submit(request: Request) throws -> Response {
18 |         let urlRequest = try makeURLRequest(with: request)
19 |         return try submit(urlRequest: urlRequest)
   |                          `- error: incorrect argument label in call (have 'urlRequest:', expected 'request:')
20 |     }
21 |
/host/spi-builder-workspace/Sources/GitHub/Client.swift:27:26: error: cannot find 'URLRequest' in scope
25 |         }
26 |
27 |         var urlRequest = URLRequest(url: url)
   |                          `- error: cannot find 'URLRequest' in scope
28 |         urlRequest.httpMethod = "POST"
29 |         urlRequest.setValue("bearer \(token)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/GitHub/Client.swift:40:40: error: extra trailing closure passed in call
38 |         var responseData: Response?
39 |         let semaphore = DispatchSemaphore(value: 0)
40 |         submit(urlRequest: urlRequest) { (response, error) in
   |                                        `- error: extra trailing closure passed in call
41 |             responseData = response
42 |             semaphore.signal()
/host/spi-builder-workspace/Sources/GitHub/Client.swift:54:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
52 |
53 |     func submit(urlRequest: URLRequest, completion: @escaping CompletionBlock) {
54 |         let session = URLSession(configuration: URLSessionConfiguration.default, delegate: nil, delegateQueue: OperationQueue())
   |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
55 |         let task = session.dataTask(with: urlRequest) { (data, response, error) in
56 |             guard let data = data else {
/host/spi-builder-workspace/Sources/GitHub/Client.swift:54:73: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
52 |
53 |     func submit(urlRequest: URLRequest, completion: @escaping CompletionBlock) {
54 |         let session = URLSession(configuration: URLSessionConfiguration.default, delegate: nil, delegateQueue: OperationQueue())
   |                                                                         `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
55 |         let task = session.dataTask(with: urlRequest) { (data, response, error) in
56 |             guard let data = data else {
/host/spi-builder-workspace/Sources/GitHub/Client.swift:54:92: error: 'nil' requires a contextual type
52 |
53 |     func submit(urlRequest: URLRequest, completion: @escaping CompletionBlock) {
54 |         let session = URLSession(configuration: URLSessionConfiguration.default, delegate: nil, delegateQueue: OperationQueue())
   |                                                                                            `- error: 'nil' requires a contextual type
55 |         let task = session.dataTask(with: urlRequest) { (data, response, error) in
56 |             guard let data = data else {
[4/6] Compiling GitHub GitHubError.swift
[5/6] Compiling GitHub Models.swift
[6/6] Compiling GitHub GitHub.swift
/host/spi-builder-workspace/Sources/GitHub/Client.swift:37:29: error: cannot find type 'URLRequest' in scope
35 |     }
36 |
37 |     func submit(urlRequest: URLRequest) throws -> Response {
   |                             `- error: cannot find type 'URLRequest' in scope
38 |         var responseData: Response?
39 |         let semaphore = DispatchSemaphore(value: 0)
/host/spi-builder-workspace/Sources/GitHub/Client.swift:53:29: error: cannot find type 'URLRequest' in scope
51 |     }
52 |
53 |     func submit(urlRequest: URLRequest, completion: @escaping CompletionBlock) {
   |                             `- error: cannot find type 'URLRequest' in scope
54 |         let session = URLSession(configuration: URLSessionConfiguration.default, delegate: nil, delegateQueue: OperationQueue())
55 |         let task = session.dataTask(with: urlRequest) { (data, response, error) in
BUILD FAILURE 6.1 android