The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build Edge, reference 0.4.0 (82d0b4), with Swift 6.1 for Linux on 25 Apr 2025 07:34:12 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.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.61.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.1
Building package at path:  $PWD
https://github.com/skylab-inc/lightning.git
https://github.com/skylab-inc/lightning.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "streamkit",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.7.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/skylab-inc/StreamKit.git"
    }
  ],
  "manifest_display_name" : "Edge",
  "name" : "Edge",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
  ],
  "targets" : [
    {
      "c99name" : "TCPTests",
      "module_type" : "SwiftTarget",
      "name" : "TCPTests",
      "path" : "Tests/TCPTests",
      "sources" : [
        "ConnectionTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "TCP"
      ],
      "type" : "test"
    },
    {
      "c99name" : "TCP",
      "module_type" : "SwiftTarget",
      "name" : "TCP",
      "path" : "Sources/TCP",
      "sources" : [
        "Server.swift",
        "Socket.swift"
      ],
      "target_dependencies" : [
        "POSIX",
        "IOStream"
      ],
      "type" : "library"
    },
    {
      "c99name" : "RunLoop",
      "module_type" : "SwiftTarget",
      "name" : "RunLoop",
      "path" : "Sources/RunLoop",
      "sources" : [
        "RunLoop.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "RoutingTests",
      "module_type" : "SwiftTarget",
      "name" : "RoutingTests",
      "path" : "Tests/RoutingTests",
      "sources" : [
        "RouterTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Routing"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Routing",
      "module_type" : "SwiftTarget",
      "name" : "Routing",
      "path" : "Sources/Routing",
      "sources" : [
        "Routing.swift"
      ],
      "target_dependencies" : [
        "POSIX",
        "HTTP"
      ],
      "type" : "library"
    },
    {
      "c99name" : "POSIX",
      "module_type" : "SwiftTarget",
      "name" : "POSIX",
      "path" : "Sources/POSIX",
      "sources" : [
        "FileDescriptor.swift",
        "Socket.swift",
        "SystemError.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "IOStreamTests",
      "module_type" : "SwiftTarget",
      "name" : "IOStreamTests",
      "path" : "Tests/IOStreamTests",
      "sources" : [
        "PipeTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "IOStream"
      ],
      "type" : "test"
    },
    {
      "c99name" : "IOStream",
      "module_type" : "SwiftTarget",
      "name" : "IOStream",
      "path" : "Sources/IOStream",
      "product_dependencies" : [
        "StreamKit"
      ],
      "sources" : [
        "IOStream.swift",
        "Pipe.swift"
      ],
      "target_dependencies" : [
        "POSIX"
      ],
      "type" : "library"
    },
    {
      "c99name" : "HTTPTests",
      "module_type" : "SwiftTarget",
      "name" : "HTTPTests",
      "path" : "Tests/HTTPTests",
      "sources" : [
        "HTTPMessageTests.swift",
        "RequestParserTests.swift",
        "RequestSerializationTests.swift",
        "ResponseParserTests.swift",
        "ResponseSerializationTests.swift",
        "ServerTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "HTTP"
      ],
      "type" : "test"
    },
    {
      "c99name" : "HTTP",
      "module_type" : "SwiftTarget",
      "name" : "HTTP",
      "path" : "Sources/HTTP",
      "sources" : [
        "ClientConnection.swift",
        "Error.swift",
        "Message.swift",
        "Method.swift",
        "Parser.swift",
        "Request.swift",
        "Response.swift",
        "Serializable.swift",
        "Server.swift",
        "Status.swift",
        "Version.swift"
      ],
      "target_dependencies" : [
        "POSIX",
        "IOStream",
        "TCP",
        "CHTTPParser"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Edge",
      "module_type" : "SwiftTarget",
      "name" : "Edge",
      "path" : "Sources/Edge",
      "sources" : [
        "Edge.swift"
      ],
      "target_dependencies" : [
        "TCP",
        "IOStream",
        "RunLoop",
        "HTTP",
        "Routing"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CHTTPParser",
      "module_type" : "ClangTarget",
      "name" : "CHTTPParser",
      "path" : "Sources/CHTTPParser",
      "sources" : [
        "http_parser.c"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-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.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/skylab-inc/StreamKit.git
[1/316] Fetching streamkit
Fetched https://github.com/skylab-inc/StreamKit.git from cache (0.56s)
Computing version for https://github.com/skylab-inc/StreamKit.git
Computed https://github.com/skylab-inc/StreamKit.git at 0.7.0 (1.12s)
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] Compiling CHTTPParser http_parser.c
[9/10] Write swift-version-24593BA9C3E375BF.txt
[11/24] Compiling StreamKit Bag.swift
[12/24] Compiling POSIX SystemError.swift
[13/24] Compiling POSIX FileDescriptor.swift
[14/24] Emitting module POSIX
/host/spi-builder-workspace/Sources/POSIX/Socket.swift:21:23: warning: static property 'stream' is not concurrency-safe because non-'Sendable' type 'SocketType' may have shared mutable state; this is an error in the Swift 6 language mode
17 | public typealias Port = UInt16
18 |
19 | public struct SocketType {
   |               `- note: consider making struct 'SocketType' conform to the 'Sendable' protocol
20 |
21 |     public static let stream = SocketType(rawValue: sockStream)
   |                       |- warning: static property 'stream' is not concurrency-safe because non-'Sendable' type 'SocketType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'stream' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |     public static let datagram = SocketType(rawValue: sockDgram)
23 |     public static let seqPacket = SocketType(rawValue: sockSeqPacket)
/host/spi-builder-workspace/Sources/POSIX/Socket.swift:22:23: warning: static property 'datagram' is not concurrency-safe because non-'Sendable' type 'SocketType' may have shared mutable state; this is an error in the Swift 6 language mode
17 | public typealias Port = UInt16
18 |
19 | public struct SocketType {
   |               `- note: consider making struct 'SocketType' conform to the 'Sendable' protocol
20 |
21 |     public static let stream = SocketType(rawValue: sockStream)
22 |     public static let datagram = SocketType(rawValue: sockDgram)
   |                       |- warning: static property 'datagram' is not concurrency-safe because non-'Sendable' type 'SocketType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'datagram' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |     public static let seqPacket = SocketType(rawValue: sockSeqPacket)
24 |     public static let raw = SocketType(rawValue: sockRaw)
/host/spi-builder-workspace/Sources/POSIX/Socket.swift:23:23: warning: static property 'seqPacket' is not concurrency-safe because non-'Sendable' type 'SocketType' may have shared mutable state; this is an error in the Swift 6 language mode
17 | public typealias Port = UInt16
18 |
19 | public struct SocketType {
   |               `- note: consider making struct 'SocketType' conform to the 'Sendable' protocol
20 |
21 |     public static let stream = SocketType(rawValue: sockStream)
22 |     public static let datagram = SocketType(rawValue: sockDgram)
23 |     public static let seqPacket = SocketType(rawValue: sockSeqPacket)
   |                       |- warning: static property 'seqPacket' is not concurrency-safe because non-'Sendable' type 'SocketType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'seqPacket' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |     public static let raw = SocketType(rawValue: sockRaw)
25 |     public static let reliableDatagram = SocketType(rawValue: sockRDM)
/host/spi-builder-workspace/Sources/POSIX/Socket.swift:24:23: warning: static property 'raw' is not concurrency-safe because non-'Sendable' type 'SocketType' may have shared mutable state; this is an error in the Swift 6 language mode
17 | public typealias Port = UInt16
18 |
19 | public struct SocketType {
   |               `- note: consider making struct 'SocketType' conform to the 'Sendable' protocol
20 |
21 |     public static let stream = SocketType(rawValue: sockStream)
22 |     public static let datagram = SocketType(rawValue: sockDgram)
23 |     public static let seqPacket = SocketType(rawValue: sockSeqPacket)
24 |     public static let raw = SocketType(rawValue: sockRaw)
   |                       |- warning: static property 'raw' is not concurrency-safe because non-'Sendable' type 'SocketType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'raw' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 |     public static let reliableDatagram = SocketType(rawValue: sockRDM)
26 |
/host/spi-builder-workspace/Sources/POSIX/Socket.swift:25:23: warning: static property 'reliableDatagram' is not concurrency-safe because non-'Sendable' type 'SocketType' may have shared mutable state; this is an error in the Swift 6 language mode
17 | public typealias Port = UInt16
18 |
19 | public struct SocketType {
   |               `- note: consider making struct 'SocketType' conform to the 'Sendable' protocol
20 |
21 |     public static let stream = SocketType(rawValue: sockStream)
   :
23 |     public static let seqPacket = SocketType(rawValue: sockSeqPacket)
24 |     public static let raw = SocketType(rawValue: sockRaw)
25 |     public static let reliableDatagram = SocketType(rawValue: sockRDM)
   |                       |- warning: static property 'reliableDatagram' is not concurrency-safe because non-'Sendable' type 'SocketType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'reliableDatagram' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 |     public let rawValue: Int32
/host/spi-builder-workspace/Sources/POSIX/Socket.swift:35:23: warning: static property 'unix' is not concurrency-safe because non-'Sendable' type 'AddressFamily' may have shared mutable state; this is an error in the Swift 6 language mode
32 | }
33 |
34 | public struct AddressFamily {
   |               `- note: consider making struct 'AddressFamily' conform to the 'Sendable' protocol
35 |     public static let unix = AddressFamily(rawValue: AF_UNIX)
   |                       |- warning: static property 'unix' is not concurrency-safe because non-'Sendable' type 'AddressFamily' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'unix' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |     public static let inet = AddressFamily(rawValue: AF_INET)
37 |     public static let inet6 = AddressFamily(rawValue: AF_INET6)
/host/spi-builder-workspace/Sources/POSIX/Socket.swift:36:23: warning: static property 'inet' is not concurrency-safe because non-'Sendable' type 'AddressFamily' may have shared mutable state; this is an error in the Swift 6 language mode
32 | }
33 |
34 | public struct AddressFamily {
   |               `- note: consider making struct 'AddressFamily' conform to the 'Sendable' protocol
35 |     public static let unix = AddressFamily(rawValue: AF_UNIX)
36 |     public static let inet = AddressFamily(rawValue: AF_INET)
   |                       |- warning: static property 'inet' is not concurrency-safe because non-'Sendable' type 'AddressFamily' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'inet' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |     public static let inet6 = AddressFamily(rawValue: AF_INET6)
38 |     public static let ipx = AddressFamily(rawValue: AF_IPX)
/host/spi-builder-workspace/Sources/POSIX/Socket.swift:37:23: warning: static property 'inet6' is not concurrency-safe because non-'Sendable' type 'AddressFamily' may have shared mutable state; this is an error in the Swift 6 language mode
32 | }
33 |
34 | public struct AddressFamily {
   |               `- note: consider making struct 'AddressFamily' conform to the 'Sendable' protocol
35 |     public static let unix = AddressFamily(rawValue: AF_UNIX)
36 |     public static let inet = AddressFamily(rawValue: AF_INET)
37 |     public static let inet6 = AddressFamily(rawValue: AF_INET6)
   |                       |- warning: static property 'inet6' is not concurrency-safe because non-'Sendable' type 'AddressFamily' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'inet6' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 |     public static let ipx = AddressFamily(rawValue: AF_IPX)
39 |     public static let netlink = AddressFamily(rawValue: AF_APPLETALK)
/host/spi-builder-workspace/Sources/POSIX/Socket.swift:38:23: warning: static property 'ipx' is not concurrency-safe because non-'Sendable' type 'AddressFamily' may have shared mutable state; this is an error in the Swift 6 language mode
32 | }
33 |
34 | public struct AddressFamily {
   |               `- note: consider making struct 'AddressFamily' conform to the 'Sendable' protocol
35 |     public static let unix = AddressFamily(rawValue: AF_UNIX)
36 |     public static let inet = AddressFamily(rawValue: AF_INET)
37 |     public static let inet6 = AddressFamily(rawValue: AF_INET6)
38 |     public static let ipx = AddressFamily(rawValue: AF_IPX)
   |                       |- warning: static property 'ipx' is not concurrency-safe because non-'Sendable' type 'AddressFamily' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'ipx' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |     public static let netlink = AddressFamily(rawValue: AF_APPLETALK)
40 |
/host/spi-builder-workspace/Sources/POSIX/Socket.swift:39:23: warning: static property 'netlink' is not concurrency-safe because non-'Sendable' type 'AddressFamily' may have shared mutable state; this is an error in the Swift 6 language mode
32 | }
33 |
34 | public struct AddressFamily {
   |               `- note: consider making struct 'AddressFamily' conform to the 'Sendable' protocol
35 |     public static let unix = AddressFamily(rawValue: AF_UNIX)
36 |     public static let inet = AddressFamily(rawValue: AF_INET)
37 |     public static let inet6 = AddressFamily(rawValue: AF_INET6)
38 |     public static let ipx = AddressFamily(rawValue: AF_IPX)
39 |     public static let netlink = AddressFamily(rawValue: AF_APPLETALK)
   |                       |- warning: static property 'netlink' is not concurrency-safe because non-'Sendable' type 'AddressFamily' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'netlink' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 |
41 |     public let rawValue: Int32
[15/24] Compiling POSIX Socket.swift
/host/spi-builder-workspace/Sources/POSIX/Socket.swift:21:23: warning: static property 'stream' is not concurrency-safe because non-'Sendable' type 'SocketType' may have shared mutable state; this is an error in the Swift 6 language mode
17 | public typealias Port = UInt16
18 |
19 | public struct SocketType {
   |               `- note: consider making struct 'SocketType' conform to the 'Sendable' protocol
20 |
21 |     public static let stream = SocketType(rawValue: sockStream)
   |                       |- warning: static property 'stream' is not concurrency-safe because non-'Sendable' type 'SocketType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'stream' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |     public static let datagram = SocketType(rawValue: sockDgram)
23 |     public static let seqPacket = SocketType(rawValue: sockSeqPacket)
/host/spi-builder-workspace/Sources/POSIX/Socket.swift:22:23: warning: static property 'datagram' is not concurrency-safe because non-'Sendable' type 'SocketType' may have shared mutable state; this is an error in the Swift 6 language mode
17 | public typealias Port = UInt16
18 |
19 | public struct SocketType {
   |               `- note: consider making struct 'SocketType' conform to the 'Sendable' protocol
20 |
21 |     public static let stream = SocketType(rawValue: sockStream)
22 |     public static let datagram = SocketType(rawValue: sockDgram)
   |                       |- warning: static property 'datagram' is not concurrency-safe because non-'Sendable' type 'SocketType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'datagram' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |     public static let seqPacket = SocketType(rawValue: sockSeqPacket)
24 |     public static let raw = SocketType(rawValue: sockRaw)
/host/spi-builder-workspace/Sources/POSIX/Socket.swift:23:23: warning: static property 'seqPacket' is not concurrency-safe because non-'Sendable' type 'SocketType' may have shared mutable state; this is an error in the Swift 6 language mode
17 | public typealias Port = UInt16
18 |
19 | public struct SocketType {
   |               `- note: consider making struct 'SocketType' conform to the 'Sendable' protocol
20 |
21 |     public static let stream = SocketType(rawValue: sockStream)
22 |     public static let datagram = SocketType(rawValue: sockDgram)
23 |     public static let seqPacket = SocketType(rawValue: sockSeqPacket)
   |                       |- warning: static property 'seqPacket' is not concurrency-safe because non-'Sendable' type 'SocketType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'seqPacket' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |     public static let raw = SocketType(rawValue: sockRaw)
25 |     public static let reliableDatagram = SocketType(rawValue: sockRDM)
/host/spi-builder-workspace/Sources/POSIX/Socket.swift:24:23: warning: static property 'raw' is not concurrency-safe because non-'Sendable' type 'SocketType' may have shared mutable state; this is an error in the Swift 6 language mode
17 | public typealias Port = UInt16
18 |
19 | public struct SocketType {
   |               `- note: consider making struct 'SocketType' conform to the 'Sendable' protocol
20 |
21 |     public static let stream = SocketType(rawValue: sockStream)
22 |     public static let datagram = SocketType(rawValue: sockDgram)
23 |     public static let seqPacket = SocketType(rawValue: sockSeqPacket)
24 |     public static let raw = SocketType(rawValue: sockRaw)
   |                       |- warning: static property 'raw' is not concurrency-safe because non-'Sendable' type 'SocketType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'raw' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 |     public static let reliableDatagram = SocketType(rawValue: sockRDM)
26 |
/host/spi-builder-workspace/Sources/POSIX/Socket.swift:25:23: warning: static property 'reliableDatagram' is not concurrency-safe because non-'Sendable' type 'SocketType' may have shared mutable state; this is an error in the Swift 6 language mode
17 | public typealias Port = UInt16
18 |
19 | public struct SocketType {
   |               `- note: consider making struct 'SocketType' conform to the 'Sendable' protocol
20 |
21 |     public static let stream = SocketType(rawValue: sockStream)
   :
23 |     public static let seqPacket = SocketType(rawValue: sockSeqPacket)
24 |     public static let raw = SocketType(rawValue: sockRaw)
25 |     public static let reliableDatagram = SocketType(rawValue: sockRDM)
   |                       |- warning: static property 'reliableDatagram' is not concurrency-safe because non-'Sendable' type 'SocketType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'reliableDatagram' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 |     public let rawValue: Int32
/host/spi-builder-workspace/Sources/POSIX/Socket.swift:35:23: warning: static property 'unix' is not concurrency-safe because non-'Sendable' type 'AddressFamily' may have shared mutable state; this is an error in the Swift 6 language mode
32 | }
33 |
34 | public struct AddressFamily {
   |               `- note: consider making struct 'AddressFamily' conform to the 'Sendable' protocol
35 |     public static let unix = AddressFamily(rawValue: AF_UNIX)
   |                       |- warning: static property 'unix' is not concurrency-safe because non-'Sendable' type 'AddressFamily' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'unix' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |     public static let inet = AddressFamily(rawValue: AF_INET)
37 |     public static let inet6 = AddressFamily(rawValue: AF_INET6)
/host/spi-builder-workspace/Sources/POSIX/Socket.swift:36:23: warning: static property 'inet' is not concurrency-safe because non-'Sendable' type 'AddressFamily' may have shared mutable state; this is an error in the Swift 6 language mode
32 | }
33 |
34 | public struct AddressFamily {
   |               `- note: consider making struct 'AddressFamily' conform to the 'Sendable' protocol
35 |     public static let unix = AddressFamily(rawValue: AF_UNIX)
36 |     public static let inet = AddressFamily(rawValue: AF_INET)
   |                       |- warning: static property 'inet' is not concurrency-safe because non-'Sendable' type 'AddressFamily' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'inet' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |     public static let inet6 = AddressFamily(rawValue: AF_INET6)
38 |     public static let ipx = AddressFamily(rawValue: AF_IPX)
/host/spi-builder-workspace/Sources/POSIX/Socket.swift:37:23: warning: static property 'inet6' is not concurrency-safe because non-'Sendable' type 'AddressFamily' may have shared mutable state; this is an error in the Swift 6 language mode
32 | }
33 |
34 | public struct AddressFamily {
   |               `- note: consider making struct 'AddressFamily' conform to the 'Sendable' protocol
35 |     public static let unix = AddressFamily(rawValue: AF_UNIX)
36 |     public static let inet = AddressFamily(rawValue: AF_INET)
37 |     public static let inet6 = AddressFamily(rawValue: AF_INET6)
   |                       |- warning: static property 'inet6' is not concurrency-safe because non-'Sendable' type 'AddressFamily' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'inet6' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 |     public static let ipx = AddressFamily(rawValue: AF_IPX)
39 |     public static let netlink = AddressFamily(rawValue: AF_APPLETALK)
/host/spi-builder-workspace/Sources/POSIX/Socket.swift:38:23: warning: static property 'ipx' is not concurrency-safe because non-'Sendable' type 'AddressFamily' may have shared mutable state; this is an error in the Swift 6 language mode
32 | }
33 |
34 | public struct AddressFamily {
   |               `- note: consider making struct 'AddressFamily' conform to the 'Sendable' protocol
35 |     public static let unix = AddressFamily(rawValue: AF_UNIX)
36 |     public static let inet = AddressFamily(rawValue: AF_INET)
37 |     public static let inet6 = AddressFamily(rawValue: AF_INET6)
38 |     public static let ipx = AddressFamily(rawValue: AF_IPX)
   |                       |- warning: static property 'ipx' is not concurrency-safe because non-'Sendable' type 'AddressFamily' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'ipx' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |     public static let netlink = AddressFamily(rawValue: AF_APPLETALK)
40 |
/host/spi-builder-workspace/Sources/POSIX/Socket.swift:39:23: warning: static property 'netlink' is not concurrency-safe because non-'Sendable' type 'AddressFamily' may have shared mutable state; this is an error in the Swift 6 language mode
32 | }
33 |
34 | public struct AddressFamily {
   |               `- note: consider making struct 'AddressFamily' conform to the 'Sendable' protocol
35 |     public static let unix = AddressFamily(rawValue: AF_UNIX)
36 |     public static let inet = AddressFamily(rawValue: AF_INET)
37 |     public static let inet6 = AddressFamily(rawValue: AF_INET6)
38 |     public static let ipx = AddressFamily(rawValue: AF_IPX)
39 |     public static let netlink = AddressFamily(rawValue: AF_APPLETALK)
   |                       |- warning: static property 'netlink' is not concurrency-safe because non-'Sendable' type 'AddressFamily' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'netlink' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 |
41 |     public let rawValue: Int32
[16/24] Emitting module RunLoop
[17/24] Compiling RunLoop RunLoop.swift
[18/26] Compiling StreamKit Error.swift
[19/26] Emitting module StreamKit
[20/26] Compiling StreamKit Disposable.swift
[22/26] Compiling StreamKit Event.swift
[24/26] Compiling StreamKit Signal.swift
[25/26] Compiling StreamKit Source.swift
[26/26] Compiling StreamKit Observer.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 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
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
325 |         return code
326 |     }
[37/47] Compiling HTTP Server.swift
[38/47] Compiling HTTP Serializable.swift
[39/47] Compiling HTTP Response.swift
[40/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
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
   |                                                                  `- 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
 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
 71 |         switch self {
 72 |         case .delete:            return 0
[41/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
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
   |                                                                  `- 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
 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
 71 |         switch self {
 72 |         case .delete:            return 0
[42/47] Compiling HTTP ClientConnection.swift
[43/47] Compiling HTTP Error.swift
[44/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
 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
 71 |         switch self {
 72 |         case .delete:            return 0
/host/spi-builder-workspace/Sources/HTTP/Parser.swift:281:5: warning: var 'requestSettings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
279 | }
280 |
281 | var requestSettings: http_parser_settings = {
    |     |- warning: var 'requestSettings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'requestSettings' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: add '@MainActor' to make var 'requestSettings' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
282 |     var settings = http_parser_settings()
283 |     http_parser_settings_init(&settings)
/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
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
325 |         return code
326 |     }
[45/47] Compiling HTTP Parser.swift
/host/spi-builder-workspace/Sources/HTTP/Parser.swift:281:5: warning: var 'requestSettings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
279 | }
280 |
281 | var requestSettings: http_parser_settings = {
    |     |- warning: var 'requestSettings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'requestSettings' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: add '@MainActor' to make var 'requestSettings' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
282 |     var settings = http_parser_settings()
283 |     http_parser_settings_init(&settings)
/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
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
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?
391 |         case .none?: return 0
392 |         case .noBody?: return 1
[46/47] Compiling HTTP Request.swift
/host/spi-builder-workspace/Sources/HTTP/Parser.swift:281:5: warning: var 'requestSettings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
279 | }
280 |
281 | var requestSettings: http_parser_settings = {
    |     |- warning: var 'requestSettings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'requestSettings' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: add '@MainActor' to make var 'requestSettings' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
282 |     var settings = http_parser_settings()
283 |     http_parser_settings_init(&settings)
/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
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
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?
391 |         case .none?: return 0
392 |         case .noBody?: return 1
[47/47] Compiling HTTP Version.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/15] Emitting module RunLoop
[3/15] Compiling RunLoop RunLoop.swift
[5/16] Compiling POSIX SystemError.swift
[6/16] Compiling POSIX Socket.swift
[7/16] Compiling POSIX FileDescriptor.swift
[8/16] Emitting module POSIX
[9/17] Compiling StreamKit Observer.swift
[11/17] Emitting module StreamKit
[12/17] Compiling StreamKit Bag.swift
[13/17] Compiling StreamKit Source.swift
[14/17] Compiling StreamKit Event.swift
[15/17] Compiling StreamKit Error.swift
[16/17] Compiling StreamKit Disposable.swift
[17/17] Compiling StreamKit Signal.swift
[19/21] Emitting module IOStream
[20/21] Compiling IOStream Pipe.swift
[21/21] Compiling IOStream IOStream.swift
[23/25] Emitting module TCP
[24/25] Compiling TCP Server.swift
[25/25] Compiling TCP Socket.swift
[27/37] 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
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
325 |         return code
326 |     }
[28/37] Compiling HTTP Server.swift
[29/38] Compiling HTTP Serializable.swift
[30/38] Compiling HTTP ClientConnection.swift
[31/38] Compiling HTTP Error.swift
[32/38] 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
 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
 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
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
325 |         return code
326 |     }
[33/38] 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
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
   |                                                                  `- 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
 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
 71 |         switch self {
 72 |         case .delete:            return 0
[34/38] 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
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
   |                                                                  `- 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
 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
 71 |         switch self {
 72 |         case .delete:            return 0
[35/38] Compiling HTTP Response.swift
[36/38] 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
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
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?
391 |         case .none?: return 0
392 |         case .noBody?: return 1
[37/38] 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
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
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?
391 |         case .none?: return 0
392 |         case .noBody?: return 1
[38/38] Compiling HTTP Version.swift
BUILD FAILURE 6.1 linux