The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Evotor with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4606859-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/bergusman/evotor.git
Reference: 0.1.3
Cloned https://github.com/bergusman/evotor.git into spi-builder-workspace
SUCCESS checkout https://github.com/bergusman/evotor.git at 0.1.3
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4606859-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Building for debugging...
[1/9] Compiling Evotor Store.swift
[2/10] Compiling Evotor Employee.swift
[3/10] Emitting module Evotor
/host/spi-builder-workspace/Sources/Evotor/Models/Transactions.swift:101:5: warning: 'public' modifier is redundant for initializer declared in a public extension
    public init(from decoder: Decoder) throws {
    ^~~~~~~
    
[4/10] Compiling Evotor Document.swift
[5/10] Compiling Evotor API.swift
/host/spi-builder-workspace/Sources/Evotor/API.swift:80:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: comps.url!)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Evotor/API.swift:83:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
        let task = URLSession.shared.dataTask(with: request) { (data, response, error) in
                   ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/Evotor/API.swift:93:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            guard 200 ..< 300 ~= response.statusCode else {
                                 ~~~~~~~~ ^~~~~~~~~~
[6/10] Compiling Evotor Device.swift
/host/spi-builder-workspace/Sources/Evotor/API.swift:80:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: comps.url!)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Evotor/API.swift:83:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
        let task = URLSession.shared.dataTask(with: request) { (data, response, error) in
                   ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/Evotor/API.swift:93:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            guard 200 ..< 300 ~= response.statusCode else {
                                 ~~~~~~~~ ^~~~~~~~~~
[7/10] Compiling Evotor Product.swift
[8/10] Compiling Evotor Hooks.swift
[9/10] Compiling Evotor Receipt.swift
[10/10] Compiling Evotor Transactions.swift
/host/spi-builder-workspace/Sources/Evotor/Models/Transactions.swift:101:5: warning: 'public' modifier is redundant for initializer declared in a public extension
    public init(from decoder: Decoder) throws {
    ^~~~~~~
    
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 1