The Swift Package Index logo.Swift Package Index

Build Information

Failed to build FilRepSwift with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4609320-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/chrisvander/FilRepSwift.git
Reference: main
Cloned https://github.com/chrisvander/FilRepSwift.git into spi-builder-workspace
SUCCESS checkout https://github.com/chrisvander/FilRepSwift.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-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/3] Emitting module FilRepSwift
[2/3] Compiling FilRepSwift Miner.swift
[3/3] Compiling FilRepSwift FilRepSwift.swift
/host/spi-builder-workspace/Sources/FilRepSwift/FilRepSwift.swift:57:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
        let task = URLSession.shared.dataTask(with: url) { data, response, error in
                   ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/FilRepSwift/FilRepSwift.swift:82:46: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
        let (data, _) = try await URLSession.shared.data(from: url)
                                  ~~~~~~~~~~ ^~~~~~
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 2