Build Information
Failed to build Emissary with Swift 6.0 (beta) for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" 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 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Fleuronic/Emissary.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/Fleuronic/Emissary
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at c6cbd19 Initial commit
Cloned https://github.com/Fleuronic/Emissary.git
Revision (git rev-parse @):
c6cbd191b304db37ca64ededa4eb858a4adb713b
SUCCESS checkout https://github.com/Fleuronic/Emissary.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $workDir
https://github.com/Fleuronic/Emissary.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" 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 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/10] Compiling Emissary APIError.swift
[4/10] Compiling Emissary APIResponse.swift
[5/10] Compiling Emissary MockAPI.swift
[6/10] Compiling Emissary Request.swift
[7/10] Compiling Emissary RequestState.swift
[8/10] Compiling Emissary RequestError.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/10] Emitting module Emissary
/host/spi-builder-workspace/Sources/Emissary/API/API.swift:4:15: error: struct 'URLRequest' does not exist in module 'Foundation'
2 |
3 | import struct Foundation.URL
4 | import struct Foundation.URLRequest
| `- error: struct 'URLRequest' does not exist in module 'Foundation'
5 | import struct Foundation.Data
6 |
/host/spi-builder-workspace/Sources/Emissary/API/API.swift:7:14: error: type alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'
5 | import struct Foundation.Data
6 |
7 | import class Foundation.URLSession
| `- error: type alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'
8 | import class Foundation.JSONDecoder
9 | import class Foundation.NSError
Foundation.URLSession:2:18: note: 'URLSession' declared here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' declared here
[10/10] Compiling Emissary API.swift
/host/spi-builder-workspace/Sources/Emissary/API/API.swift:4:15: error: struct 'URLRequest' does not exist in module 'Foundation'
2 |
3 | import struct Foundation.URL
4 | import struct Foundation.URLRequest
| `- error: struct 'URLRequest' does not exist in module 'Foundation'
5 | import struct Foundation.Data
6 |
/host/spi-builder-workspace/Sources/Emissary/API/API.swift:7:14: error: type alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'
5 | import struct Foundation.Data
6 |
7 | import class Foundation.URLSession
| `- error: type alias 'URLSession' (aka 'AnyObject') cannot be imported as 'class'
8 | import class Foundation.JSONDecoder
9 | import class Foundation.NSError
Foundation.URLSession:2:18: note: 'URLSession' declared here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' declared here
/host/spi-builder-workspace/Sources/Emissary/API/API.swift:32:21: error: cannot find 'URLRequest' in scope
30 | do {
31 | let url = URL(string: "\(baseURL.absoluteString)\(path)")!
32 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
33 | urlRequest.httpMethod = method
34 |
/host/spi-builder-workspace/Sources/Emissary/API/API.swift:39:41: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
37 | }
38 |
39 | let (data, _) = try await URLSession.shared.data(for: urlRequest)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
40 | return try .success(resource(from: data))
41 | } catch let error as Error {
BUILD FAILURE 6.0 linux