The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftMoment 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/akosma/SwiftMoment.git
Reference: master
Cloned https://github.com/akosma/SwiftMoment.git into spi-builder-workspace
SUCCESS checkout https://github.com/akosma/SwiftMoment.git at master
========================================
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/8] Compiling SwiftMoment Operators.swift
[2/9] Compiling SwiftMoment TimeUnit.swift
[3/9] Emitting module SwiftMoment
/host/spi-builder-workspace/SwiftMoment/SwiftMoment/MomentCache.swift:17:7: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'MomentCache.Key' to 'Hashable' by implementing 'hash(into:)' instead
                var hashValue: Int {
                    ^
[4/9] Compiling SwiftMoment Extensions.swift
[5/9] Compiling SwiftMoment LazyBox.swift
[6/9] Compiling SwiftMoment Moment.swift
[7/9] Compiling SwiftMoment Duration.swift
/host/spi-builder-workspace/SwiftMoment/SwiftMoment/Duration.swift:108:25: error: 'DateComponentsFormatter' is unavailable: Not supported in swift-corelibs-foundation
        let formatter = DateComponentsFormatter()
                        ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.DateComponentsFormatter:2:12: note: 'DateComponentsFormatter' has been explicitly marked unavailable here
open class DateComponentsFormatter : Formatter {
           ^
[8/9] Compiling SwiftMoment MomentCache.swift
/host/spi-builder-workspace/SwiftMoment/SwiftMoment/MomentCache.swift:17:7: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'MomentCache.Key' to 'Hashable' by implementing 'hash(into:)' instead
                var hashValue: Int {
                    ^
[9/9] Compiling SwiftMoment MomentFromNow.swift
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 1