Build Information
Failed to build ScopedDefaults with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.39.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/regexident/ScopedDefaults.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/regexident/ScopedDefaults
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at a243ecc Added ignored ‘.xcodeproj’ contents
Cloned https://github.com/regexident/ScopedDefaults.git
Revision (git rev-parse @):
a243ecc9292ac67dbdbbe223b75775f8cc439942
SUCCESS checkout https://github.com/regexident/ScopedDefaults.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $workDir
https://github.com/regexident/ScopedDefaults.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/6] Emitting module ScopedDefaults
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefault.swift:47:27: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in Swift 6
public static func ==<Value>(
^
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefault.swift:19:40: note: 'Value' previously declared here
public struct ScopedUserDefault<Scope, Value>: UserDefaultProtocol, AnyUserDefault
^
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefault.swift:74:27: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in Swift 6
public static func ==<Value>(
^
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefault.swift:55:27: note: 'Value' previously declared here
public struct UserDefault<Value: Codable>: UserDefaultProtocol, AnyUserDefault {
^
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefaults+Extensions.swift:16:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func get<T: UserDefaultProtocol>(for userDefault: T) -> T.Value {
^~~~~~~
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefaults+Extensions.swift:20:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func get<T: UserDefaultProtocol>(
^~~~~~~
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefaults+Extensions.swift:45:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func set<T: UserDefaultProtocol>(_ value: T.Value, for userDefault: T) {
^~~~~~~
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefaults+Extensions.swift:65:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func removeValue<T: UserDefaultProtocol>(for userDefault: T) {
^~~~~~~
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefaultsScope.swift:14:5: warning: 'public' modifier is redundant for static property declared in a public extension
public static var keyPath: String {
^~~~~~~
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefaultsScope.swift:35:5: warning: 'public' modifier is redundant for static method declared in a public extension
public static func factoryDefaults() -> [String : Any] {
^~~~~~~
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefaultsScope.swift:54:5: warning: 'public' modifier is redundant for static method declared in a public extension
public static func register(on userDefaults: UserDefaults) {
^~~~~~~
[4/6] Compiling ScopedDefaults UserDefault.swift
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefault.swift:47:27: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in Swift 6
public static func ==<Value>(
^
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefault.swift:19:40: note: 'Value' previously declared here
public struct ScopedUserDefault<Scope, Value>: UserDefaultProtocol, AnyUserDefault
^
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefault.swift:74:27: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in Swift 6
public static func ==<Value>(
^
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefault.swift:55:27: note: 'Value' previously declared here
public struct UserDefault<Value: Codable>: UserDefaultProtocol, AnyUserDefault {
^
[5/6] Compiling ScopedDefaults UserDefaultsScope.swift
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefaultsScope.swift:14:5: warning: 'public' modifier is redundant for static property declared in a public extension
public static var keyPath: String {
^~~~~~~
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefaultsScope.swift:35:5: warning: 'public' modifier is redundant for static method declared in a public extension
public static func factoryDefaults() -> [String : Any] {
^~~~~~~
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefaultsScope.swift:54:5: warning: 'public' modifier is redundant for static method declared in a public extension
public static func register(on userDefaults: UserDefaults) {
^~~~~~~
[6/6] Compiling ScopedDefaults UserDefaults+Extensions.swift
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefaults+Extensions.swift:16:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func get<T: UserDefaultProtocol>(for userDefault: T) -> T.Value {
^~~~~~~
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefaults+Extensions.swift:20:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func get<T: UserDefaultProtocol>(
^~~~~~~
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefaults+Extensions.swift:45:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func set<T: UserDefaultProtocol>(_ value: T.Value, for userDefault: T) {
^~~~~~~
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefaults+Extensions.swift:65:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func removeValue<T: UserDefaultProtocol>(for userDefault: T) {
^~~~~~~
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefaults+Extensions.swift:25:32: error: value of type 'UserDefaults' has no member 'value'
guard let plist = self.value(forKey: userDefault.keyPath) else {
~~~~ ^~~~~
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefaults+Extensions.swift:50:18: error: value of type 'UserDefaults' has no member 'setValue'
self.setValue(plist, forKey: userDefault.keyPath)
~~~~ ^~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux