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 Edge, reference 0.4.0 (82d0b4), with Swift 6.2 (beta) for Linux on 17 Jun 2025 20:52:50 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-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/skylab-inc/lightning.git
Reference: 0.4.0
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/skylab-inc/lightning
 * tag               0.4.0      -> FETCH_HEAD
HEAD is now at 82d0b41 Middleware tests seem to be passing now on Linux.
Cloned https://github.com/skylab-inc/lightning.git
Revision (git rev-parse @):
82d0b416e11c422ea7ee072f89a794c5d8a60cf3
SUCCESS checkout https://github.com/skylab-inc/lightning.git at 0.4.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.2
Building package at path:  $PWD
https://github.com/skylab-inc/lightning.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Fetching https://github.com/skylab-inc/StreamKit.git
[1/316] Fetching streamkit
Fetched https://github.com/skylab-inc/StreamKit.git from cache (0.24s)
Computing version for https://github.com/skylab-inc/StreamKit.git
Computed https://github.com/skylab-inc/StreamKit.git at 0.7.0 (0.59s)
Creating working copy for https://github.com/skylab-inc/StreamKit.git
Working copy of https://github.com/skylab-inc/StreamKit.git resolved at 0.7.0
Building for debugging...
[0/10] Write sources
[8/10] Write swift-version-24593BA9C3E375BF.txt
[9/24] Compiling CHTTPParser http_parser.c
[11/24] Emitting module StreamKit
[12/24] Compiling StreamKit Bag.swift
[13/24] Emitting module RunLoop
[14/24] Compiling RunLoop RunLoop.swift
[16/25] Emitting module POSIX
[17/25] Compiling POSIX FileDescriptor.swift
[18/25] Compiling POSIX Socket.swift
[19/25] Compiling POSIX SystemError.swift
[21/26] Compiling StreamKit Disposable.swift
[22/26] Compiling StreamKit Error.swift
[23/26] Compiling StreamKit Source.swift
[24/26] Compiling StreamKit Observer.swift
[25/26] Compiling StreamKit Event.swift
[26/26] Compiling StreamKit Signal.swift
[28/30] Compiling IOStream Pipe.swift
[29/30] Emitting module IOStream
[30/30] Compiling IOStream IOStream.swift
[32/34] Compiling TCP Socket.swift
[33/34] Emitting module TCP
[34/34] Compiling TCP Server.swift
[36/46] Compiling HTTP Server.swift
[37/47] Compiling HTTP Status.swift
/host/spi-builder-workspace/Sources/HTTP/Status.swift:324:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Status' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
322 |
323 | extension Status: Hashable {
324 |     public var hashValue: Int {
    |                `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Status' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
325 |         return code
326 |     }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[38/47] Compiling HTTP Serializable.swift
[39/47] Compiling HTTP Response.swift
[40/47] Compiling HTTP Version.swift
[41/47] Compiling HTTP Parser.swift
/host/spi-builder-workspace/Sources/HTTP/Parser.swift:246:54: error: cannot pass immutable value as inout argument: 'parser' is a 'let' constant
235 |     // Here I create a constant private pointer to our "constant" http_parser
236 |     // The can be therefore mutated through the pointer, but only within the RawParser.
237 |     let parser = http_parser()
    |     `- note: change 'let' to 'var' to make it mutable
238 |     private let parserPointer: UnsafeMutablePointer<http_parser>
239 |
    :
244 |         self.type = type
245 |         self.delegate = delegate
246 |         parserPointer = withUnsafeMutablePointer(to: &parser) { $0 }
    |                                                      `- error: cannot pass immutable value as inout argument: 'parser' is a 'let' constant
247 |         reset()
248 |     }
/host/spi-builder-workspace/Sources/HTTP/Parser.swift:258:13: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer [#TemporaryPointers]
256 |
257 |     public func parse(_ data: [UInt8]) throws {
258 |         try UnsafePointer(data).withMemoryRebound(to: Int8.self,
    |             |             |- note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |             |             `- note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
    |             `- warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer [#TemporaryPointers]
259 |                                                   capacity: data.count) { convertedPointer in
260 |             let bytesParsed = http_parser_execute(
/host/spi-builder-workspace/Sources/HTTP/Parser.swift:390:15: warning: assuming you mean 'Optional<HeadersCompleteDirective>.none'; did you mean 'HeadersCompleteDirective.none' instead?
388 |         )
389 |         switch directive {
390 |         case .none: return 0
    |               |- warning: assuming you mean 'Optional<HeadersCompleteDirective>.none'; did you mean 'HeadersCompleteDirective.none' instead?
    |               |- note: use 'nil' to silence this warning
    |               `- note: use 'none?' instead
391 |         case .none?: return 0
392 |         case .noBody?: return 1
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[42/47] Compiling HTTP Request.swift
/host/spi-builder-workspace/Sources/HTTP/Parser.swift:246:54: error: cannot pass immutable value as inout argument: 'parser' is a 'let' constant
235 |     // Here I create a constant private pointer to our "constant" http_parser
236 |     // The can be therefore mutated through the pointer, but only within the RawParser.
237 |     let parser = http_parser()
    |     `- note: change 'let' to 'var' to make it mutable
238 |     private let parserPointer: UnsafeMutablePointer<http_parser>
239 |
    :
244 |         self.type = type
245 |         self.delegate = delegate
246 |         parserPointer = withUnsafeMutablePointer(to: &parser) { $0 }
    |                                                      `- error: cannot pass immutable value as inout argument: 'parser' is a 'let' constant
247 |         reset()
248 |     }
/host/spi-builder-workspace/Sources/HTTP/Parser.swift:258:13: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer [#TemporaryPointers]
256 |
257 |     public func parse(_ data: [UInt8]) throws {
258 |         try UnsafePointer(data).withMemoryRebound(to: Int8.self,
    |             |             |- note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |             |             `- note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
    |             `- warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer [#TemporaryPointers]
259 |                                                   capacity: data.count) { convertedPointer in
260 |             let bytesParsed = http_parser_execute(
/host/spi-builder-workspace/Sources/HTTP/Parser.swift:390:15: warning: assuming you mean 'Optional<HeadersCompleteDirective>.none'; did you mean 'HeadersCompleteDirective.none' instead?
388 |         )
389 |         switch directive {
390 |         case .none: return 0
    |               |- warning: assuming you mean 'Optional<HeadersCompleteDirective>.none'; did you mean 'HeadersCompleteDirective.none' instead?
    |               |- note: use 'nil' to silence this warning
    |               `- note: use 'none?' instead
391 |         case .none?: return 0
392 |         case .noBody?: return 1
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[43/47] Compiling HTTP ClientConnection.swift
[44/47] Compiling HTTP Error.swift
[45/47] Emitting module HTTP
/host/spi-builder-workspace/Sources/HTTP/Method.swift:70:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Method' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
 68 |
 69 | extension Method: Hashable {
 70 |     public var hashValue: Int {
    |                `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Method' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
 71 |         switch self {
 72 |         case .delete:            return 0
/host/spi-builder-workspace/Sources/HTTP/Status.swift:324:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Status' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
322 |
323 | extension Status: Hashable {
324 |     public var hashValue: Int {
    |                `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Status' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
325 |         return code
326 |     }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[46/47] Compiling HTTP Message.swift
/host/spi-builder-workspace/Sources/HTTP/Message.swift:24:66: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value [#DeprecatedDeclaration]
22 |     /// of `rawHeaders`, the last value will be discarded.
23 |     var rawHeaderPairs: [(String, String)] {
24 |         return stride(from: 0, to: self.rawHeaders.count, by: 2).flatMap {
   |                                                                  |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value [#DeprecatedDeclaration]
   |                                                                  `- note: use 'compactMap(_:)' instead
25 |             let chunk = rawHeaders[$0..<min($0 + 2, rawHeaders.count)]
26 |             if let first = chunk.first, let last = chunk.last {
/host/spi-builder-workspace/Sources/HTTP/Method.swift:70:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Method' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
 68 |
 69 | extension Method: Hashable {
 70 |     public var hashValue: Int {
    |                `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Method' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
 71 |         switch self {
 72 |         case .delete:            return 0
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[47/47] Compiling HTTP Method.swift
/host/spi-builder-workspace/Sources/HTTP/Message.swift:24:66: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value [#DeprecatedDeclaration]
22 |     /// of `rawHeaders`, the last value will be discarded.
23 |     var rawHeaderPairs: [(String, String)] {
24 |         return stride(from: 0, to: self.rawHeaders.count, by: 2).flatMap {
   |                                                                  |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value [#DeprecatedDeclaration]
   |                                                                  `- note: use 'compactMap(_:)' instead
25 |             let chunk = rawHeaders[$0..<min($0 + 2, rawHeaders.count)]
26 |             if let first = chunk.first, let last = chunk.last {
/host/spi-builder-workspace/Sources/HTTP/Method.swift:70:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Method' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
 68 |
 69 | extension Method: Hashable {
 70 |     public var hashValue: Int {
    |                `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Method' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
 71 |         switch self {
 72 |         case .delete:            return 0
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
BUILD FAILURE 6.2 linux