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 SwiftyGPT, reference master (611d5c), with Swift 5.8 for Linux on 15 Sep 2024 16:57:24 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/antonio-war/SwiftyGPT.git
Reference: master
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/antonio-war/SwiftyGPT
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 611d5ca Create FUNDING.yml
Cloned https://github.com/antonio-war/SwiftyGPT.git
Revision (git rev-parse @):
611d5ca6caeac40e8ec187ee7e61f07e7b9f6ff2
SUCCESS checkout https://github.com/antonio-war/SwiftyGPT.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.8
Building package at path:  $PWD
https://github.com/antonio-war/SwiftyGPT.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-5.8-latest: Pulling from finestructure/spi-images
Digest: sha256:a5e57d1af25c3272f87123c7a264de6fd88dcc01acef91f1006945662a9fd14a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.8-latest
Building for debugging...
[1/5] Compiling SwiftyGPTNetworking SwiftyGPTNetworkingResponse.swift
/host/spi-builder-workspace/Sources/SwiftyGPTNetworking/Models/SwiftyGPTNetworkingResponse.swift:11:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public var underlyingResponse: HTTPURLResponse
                                   ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftyGPTNetworking/Models/SwiftyGPTNetworkingResponse.swift:15:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
        return underlyingResponse.statusCode
               ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/5] Compiling SwiftyGPTNetworking SwiftyGPTNetworkingMethod.swift
[3/5] Emitting module SwiftyGPTNetworking
/host/spi-builder-workspace/Sources/SwiftyGPTNetworking/Clients/SwiftyGPTNetworkingClient.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private let session: URLSession
                         ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftyGPTNetworking/Clients/SwiftyGPTNetworkingClient.swift:13:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public init(session: URLSession = URLSession.shared) {
                         ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftyGPTNetworking/Clients/SwiftyGPTNetworkingClient.swift:13:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    public init(session: URLSession = URLSession.shared) {
                                      ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/SwiftyGPTNetworking/Models/SwiftyGPTNetworkingRequest.swift:17:22: error: cannot find type 'URLRequest' in scope
    var cachePolicy: URLRequest.CachePolicy { get }
                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyGPTNetworking/Models/SwiftyGPTNetworkingRequest.swift:19:28: error: cannot find type 'URLRequest' in scope
    var underlyingRequest: URLRequest { get throws }
                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyGPTNetworking/Clients/SwiftyGPTNetworkingClient.swift:10:15: error: type 'SwiftyGPTNetworkingClient' does not conform to protocol 'Equatable'
public struct SwiftyGPTNetworkingClient: Equatable {
              ^
/host/spi-builder-workspace/Sources/SwiftyGPTNetworking/Clients/SwiftyGPTNetworkingClient.swift:11:17: note: stored property type 'URLSession' (aka 'AnyObject') does not conform to protocol 'Equatable', preventing synthesized conformance of 'SwiftyGPTNetworkingClient' to 'Equatable'
    private let session: URLSession
                ^
Swift.==:1:24: note: candidate would match if 'SwiftyGPTNetworkingClient' conformed to 'RawRepresentable'
@inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
                       ^
Swift.FloatingPoint:2:24: note: candidate would match if 'SwiftyGPTNetworkingClient' conformed to 'FloatingPoint'
    public static func == (lhs: Self, rhs: Self) -> Bool
                       ^
Swift.BinaryInteger:2:24: note: candidate would match if 'SwiftyGPTNetworkingClient' conformed to 'BinaryInteger'
    public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger
                       ^
Swift._Pointer:2:24: note: candidate would match if 'SwiftyGPTNetworkingClient' conformed to '_Pointer'
    public static func == (lhs: Self, rhs: Self) -> Bool
                       ^
Swift._Pointer:3:35: note: candidate would match if 'SwiftyGPTNetworkingClient' conformed to '_Pointer'
    @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer
                                  ^
Swift.Strideable:3:35: note: candidate would match if 'SwiftyGPTNetworkingClient' conformed to 'Strideable'
    @inlinable public static func == (x: Self, y: Self) -> Bool
                                  ^
Swift.StringProtocol:2:35: note: candidate would match if 'SwiftyGPTNetworkingClient' conformed to 'StringProtocol'
    @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol
                                  ^
Swift.SIMD:4:24: note: candidate would match if 'SwiftyGPTNetworkingClient' conformed to 'SIMD'
    public static func == (a: Self, b: Self) -> Bool
                       ^
Foundation.AttributedStringProtocol:5:24: note: candidate would match if 'SwiftyGPTNetworkingClient' conformed to 'AttributedStringProtocol'
    public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol
                       ^
Foundation.__BridgedNSError:2:24: note: candidate would match if 'SwiftyGPTNetworkingClient' conformed to '__BridgedNSError'
    public static func == (lhs: Self, rhs: Self) -> Bool
                       ^
Foundation._BridgedStoredNSError:2:24: note: candidate would match if 'SwiftyGPTNetworkingClient' conformed to '_BridgedStoredNSError'
    public static func == (lhs: Self, rhs: Self) -> Bool
                       ^
Swift.Equatable:2:17: note: protocol requires function '==' with type '(SwiftyGPTNetworkingClient, SwiftyGPTNetworkingClient) -> Bool'
    static func == (lhs: Self, rhs: Self) -> Bool
                ^
/host/spi-builder-workspace/Sources/SwiftyGPTNetworking/Models/SwiftyGPTNetworkingRequest.swift:32:28: error: cannot find type 'URLRequest' in scope
    var underlyingRequest: URLRequest {
                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyGPTNetworking/Models/SwiftyGPTNetworkingResponse.swift:11:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public var underlyingResponse: HTTPURLResponse
                                   ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
[4/5] Compiling SwiftyGPTNetworking SwiftyGPTNetworkingRequest.swift
/host/spi-builder-workspace/Sources/SwiftyGPTNetworking/Models/SwiftyGPTNetworkingRequest.swift:17:22: error: cannot find type 'URLRequest' in scope
    var cachePolicy: URLRequest.CachePolicy { get }
                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyGPTNetworking/Models/SwiftyGPTNetworkingRequest.swift:19:28: error: cannot find type 'URLRequest' in scope
    var underlyingRequest: URLRequest { get throws }
                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyGPTNetworking/Models/SwiftyGPTNetworkingRequest.swift:32:28: error: cannot find type 'URLRequest' in scope
    var underlyingRequest: URLRequest {
                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyGPTNetworking/Models/SwiftyGPTNetworkingRequest.swift:34:31: error: cannot find 'URLRequest' in scope
            var request = try URLRequest(url: url, cachePolicy: cachePolicy, timeoutInterval: timeout)
                              ^~~~~~~~~~
[5/5] Compiling SwiftyGPTNetworking SwiftyGPTNetworkingClient.swift
/host/spi-builder-workspace/Sources/SwiftyGPTNetworking/Clients/SwiftyGPTNetworkingClient.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private let session: URLSession
                         ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftyGPTNetworking/Clients/SwiftyGPTNetworkingClient.swift:13:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public init(session: URLSession = URLSession.shared) {
                         ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftyGPTNetworking/Clients/SwiftyGPTNetworkingClient.swift:13:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    public init(session: URLSession = URLSession.shared) {
                                      ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/SwiftyGPTNetworking/Models/SwiftyGPTNetworkingRequest.swift:17:22: error: cannot find type 'URLRequest' in scope
    var cachePolicy: URLRequest.CachePolicy { get }
                     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyGPTNetworking/Models/SwiftyGPTNetworkingRequest.swift:19:28: error: cannot find type 'URLRequest' in scope
    var underlyingRequest: URLRequest { get throws }
                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyGPTNetworking/Clients/SwiftyGPTNetworkingClient.swift:10:15: error: type 'SwiftyGPTNetworkingClient' does not conform to protocol 'Equatable'
public struct SwiftyGPTNetworkingClient: Equatable {
              ^
/host/spi-builder-workspace/Sources/SwiftyGPTNetworking/Clients/SwiftyGPTNetworkingClient.swift:11:17: note: stored property type 'URLSession' (aka 'AnyObject') does not conform to protocol 'Equatable', preventing synthesized conformance of 'SwiftyGPTNetworkingClient' to 'Equatable'
    private let session: URLSession
                ^
Swift.==:1:24: note: candidate would match if 'SwiftyGPTNetworkingClient' conformed to 'RawRepresentable'
@inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
                       ^
Swift.FloatingPoint:2:24: note: candidate would match if 'SwiftyGPTNetworkingClient' conformed to 'FloatingPoint'
    public static func == (lhs: Self, rhs: Self) -> Bool
                       ^
Swift.BinaryInteger:2:24: note: candidate would match if 'SwiftyGPTNetworkingClient' conformed to 'BinaryInteger'
    public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger
                       ^
Swift._Pointer:2:24: note: candidate would match if 'SwiftyGPTNetworkingClient' conformed to '_Pointer'
    public static func == (lhs: Self, rhs: Self) -> Bool
                       ^
Swift._Pointer:3:35: note: candidate would match if 'SwiftyGPTNetworkingClient' conformed to '_Pointer'
    @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer
                                  ^
Swift.Strideable:3:35: note: candidate would match if 'SwiftyGPTNetworkingClient' conformed to 'Strideable'
    @inlinable public static func == (x: Self, y: Self) -> Bool
                                  ^
Swift.StringProtocol:2:35: note: candidate would match if 'SwiftyGPTNetworkingClient' conformed to 'StringProtocol'
    @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol
                                  ^
Swift.SIMD:4:24: note: candidate would match if 'SwiftyGPTNetworkingClient' conformed to 'SIMD'
    public static func == (a: Self, b: Self) -> Bool
                       ^
Foundation.AttributedStringProtocol:5:24: note: candidate would match if 'SwiftyGPTNetworkingClient' conformed to 'AttributedStringProtocol'
    public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol
                       ^
Foundation.__BridgedNSError:2:24: note: candidate would match if 'SwiftyGPTNetworkingClient' conformed to '__BridgedNSError'
    public static func == (lhs: Self, rhs: Self) -> Bool
                       ^
Foundation._BridgedStoredNSError:2:24: note: candidate would match if 'SwiftyGPTNetworkingClient' conformed to '_BridgedStoredNSError'
    public static func == (lhs: Self, rhs: Self) -> Bool
                       ^
Swift.Equatable:2:17: note: protocol requires function '==' with type '(SwiftyGPTNetworkingClient, SwiftyGPTNetworkingClient) -> Bool'
    static func == (lhs: Self, rhs: Self) -> Bool
                ^
/host/spi-builder-workspace/Sources/SwiftyGPTNetworking/Models/SwiftyGPTNetworkingRequest.swift:32:28: error: cannot find type 'URLRequest' in scope
    var underlyingRequest: URLRequest {
                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftyGPTNetworking/Clients/SwiftyGPTNetworkingClient.swift:18:60: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
        let (body, underlyingResponse) = try await session.data(for: request.underlyingRequest)
                                                   ~~~~~~~ ^~~~
BUILD FAILURE 5.8 linux