The Swift Package Index logo.Swift Package Index

Build Information

Failed to build TypesafeUserDefaults with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4609320-1":/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.22.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kernandreas/TypesafeUserDefaults.git
Reference: 1.0.0
Cloned https://github.com/kernandreas/TypesafeUserDefaults.git into spi-builder-workspace
SUCCESS checkout https://github.com/kernandreas/TypesafeUserDefaults.git at 1.0.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Building for debugging...
[1/2] Emitting module TypesafeUserDefaults
[2/2] Compiling TypesafeUserDefaults TypesafeUserDefaults.swift
/host/spi-builder-workspace/Sources/TypesafeUserDefaults/TypesafeUserDefaults.swift:45:16: error: no exact matches in call to instance method 'value'
        return value(forKey: key.name) as? T
               ^
/host/spi-builder-workspace/Sources/TypesafeUserDefaults/TypesafeUserDefaults.swift:48:17: note: candidate expects value of type 'UserDefaults.Key<URL>' for parameter #1 (got 'String')
    public func value(forKey key: Key<URL>) -> URL? {
                ^
/host/spi-builder-workspace/Sources/TypesafeUserDefaults/TypesafeUserDefaults.swift:63:17: note: candidate expects value of type 'UserDefaults.DefaultKey<URL>' for parameter #1 (got 'String')
    public func value(forKey key: DefaultKey<URL>) -> URL {
                ^
/host/spi-builder-workspace/Sources/TypesafeUserDefaults/TypesafeUserDefaults.swift:60:16: error: no exact matches in call to instance method 'value'
        return value(forKey: key.name) as? T ?? key.defaultValue
               ^
/host/spi-builder-workspace/Sources/TypesafeUserDefaults/TypesafeUserDefaults.swift:48:17: note: candidate expects value of type 'UserDefaults.Key<URL>' for parameter #1 (got 'String')
    public func value(forKey key: Key<URL>) -> URL? {
                ^
/host/spi-builder-workspace/Sources/TypesafeUserDefaults/TypesafeUserDefaults.swift:63:17: note: candidate expects value of type 'UserDefaults.DefaultKey<URL>' for parameter #1 (got 'String')
    public func value(forKey key: DefaultKey<URL>) -> URL {
                ^
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 2