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 Flash, reference main (d6379f), with Swift 6.0 for Linux on 26 Jun 2025 13:01:06 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/nixzhu/Flash.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/nixzhu/Flash
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at d6379f8 update version
Cloned https://github.com/nixzhu/Flash.git
Revision (git rev-parse @):
d6379f88b4748812df24cc3e56237ad96db6fa8e
SUCCESS checkout https://github.com/nixzhu/Flash.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/nixzhu/Flash.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:f0ebbd71bee66c692411a61ab9a7ee6edc82316b7a7b4c6173cc06c00f20ed39
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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/8] Compiling Flash FlashMiddleware.swift
[4/8] Compiling Flash FlashHeaderField.swift
[5/8] Compiling Flash FlashResponse.swift
[6/8] Emitting module Flash
/host/spi-builder-workspace/Sources/Flash/FlashClient.swift:5:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 3 | /// A Flash client.
 4 | public struct FlashClient: Sendable {
 5 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 |     private let middlewares: [FlashMiddleware]
 7 |
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Flash/FlashClient.swift:13:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |     ///   - middlewares: A list of middlewares to intercept requests or responses (default: `[]`).
12 |     public init(
13 |         session: URLSession = .shared,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |         middlewares: [FlashMiddleware] = []
15 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Flash/FlashClient.swift:13:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
11 |     ///   - middlewares: A list of middlewares to intercept requests or responses (default: `[]`).
12 |     public init(
13 |         session: URLSession = .shared,
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
14 |         middlewares: [FlashMiddleware] = []
15 |     ) {
/host/spi-builder-workspace/Sources/Flash/FlashClient.swift:5:17: error: stored property 'session' of 'Sendable'-conforming struct 'FlashClient' has non-sendable type 'URLSession' (aka 'AnyObject')
 3 | /// A Flash client.
 4 | public struct FlashClient: Sendable {
 5 |     private let session: URLSession
   |                 `- error: stored property 'session' of 'Sendable'-conforming struct 'FlashClient' has non-sendable type 'URLSession' (aka 'AnyObject')
 6 |     private let middlewares: [FlashMiddleware]
 7 |
/host/spi-builder-workspace/Sources/Flash/FlashRequest.swift:521:21: error: cannot find type 'URLRequest' in scope
519 |     }
520 |
521 |     var urlRequest: URLRequest {
    |                     `- error: cannot find type 'URLRequest' in scope
522 |         get throws {
523 |             let url: URL = try {
/host/spi-builder-workspace/Sources/Flash/FlashRequest.swift:522:9: error: getter of noncopyable type cannot be 'async' or 'throws'
520 |
521 |     var urlRequest: URLRequest {
522 |         get throws {
    |         `- error: getter of noncopyable type cannot be 'async' or 'throws'
523 |             let url: URL = try {
524 |                 var urlComponents = URLComponents()
[7/8] Compiling Flash FlashRequest.swift
/host/spi-builder-workspace/Sources/Flash/FlashRequest.swift:521:21: error: cannot find type 'URLRequest' in scope
519 |     }
520 |
521 |     var urlRequest: URLRequest {
    |                     `- error: cannot find type 'URLRequest' in scope
522 |         get throws {
523 |             let url: URL = try {
/host/spi-builder-workspace/Sources/Flash/FlashRequest.swift:522:9: error: getter of noncopyable type cannot be 'async' or 'throws'
520 |
521 |     var urlRequest: URLRequest {
522 |         get throws {
    |         `- error: getter of noncopyable type cannot be 'async' or 'throws'
523 |             let url: URL = try {
524 |                 var urlComponents = URLComponents()
/host/spi-builder-workspace/Sources/Flash/FlashRequest.swift:546:29: error: cannot find type 'URLRequest' in scope
544 |             }()
545 |
546 |             var urlRequest: URLRequest = .init(url: url, timeoutInterval: timeoutInterval)
    |                             `- error: cannot find type 'URLRequest' in scope
547 |             urlRequest.httpMethod = method.rawValue
548 |
[8/8] Compiling Flash FlashClient.swift
/host/spi-builder-workspace/Sources/Flash/FlashClient.swift:5:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 3 | /// A Flash client.
 4 | public struct FlashClient: Sendable {
 5 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 |     private let middlewares: [FlashMiddleware]
 7 |
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Flash/FlashClient.swift:13:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |     ///   - middlewares: A list of middlewares to intercept requests or responses (default: `[]`).
12 |     public init(
13 |         session: URLSession = .shared,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |         middlewares: [FlashMiddleware] = []
15 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Flash/FlashClient.swift:13:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
11 |     ///   - middlewares: A list of middlewares to intercept requests or responses (default: `[]`).
12 |     public init(
13 |         session: URLSession = .shared,
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
14 |         middlewares: [FlashMiddleware] = []
15 |     ) {
/host/spi-builder-workspace/Sources/Flash/FlashClient.swift:5:17: error: stored property 'session' of 'Sendable'-conforming struct 'FlashClient' has non-sendable type 'URLSession' (aka 'AnyObject')
 3 | /// A Flash client.
 4 | public struct FlashClient: Sendable {
 5 |     private let session: URLSession
   |                 `- error: stored property 'session' of 'Sendable'-conforming struct 'FlashClient' has non-sendable type 'URLSession' (aka 'AnyObject')
 6 |     private let middlewares: [FlashMiddleware]
 7 |
/host/spi-builder-workspace/Sources/Flash/FlashRequest.swift:521:21: error: cannot find type 'URLRequest' in scope
519 |     }
520 |
521 |     var urlRequest: URLRequest {
    |                     `- error: cannot find type 'URLRequest' in scope
522 |         get throws {
523 |             let url: URL = try {
/host/spi-builder-workspace/Sources/Flash/FlashClient.swift:34:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
32 |         do {
33 |             let urlRequest = try request.urlRequest
34 |             let (data, urlResponse) = try await session.data(for: urlRequest)
   |                                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
35 |
36 |             guard let httpURLResponse = urlResponse as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/Flash/FlashClient.swift:48:36: error: 'nil' requires a contextual type
46 |                         else {
47 |                             assertionFailure("Invalid header field!")
48 |                             return nil
   |                                    `- error: 'nil' requires a contextual type
49 |                         }
50 |
/host/spi-builder-workspace/Sources/Flash/FlashClient.swift:33:30: warning: no calls to throwing functions occur within 'try' expression
31 |
32 |         do {
33 |             let urlRequest = try request.urlRequest
   |                              `- warning: no calls to throwing functions occur within 'try' expression
34 |             let (data, urlResponse) = try await session.data(for: urlRequest)
35 |
BUILD FAILURE 6.0 linux