Build Information
Failed to build ScopedDefaults, reference 0.1.0 (a243ec
), with Swift 6.0 for Linux on 26 Nov 2024 13:34:16 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/regexident/ScopedDefaults.git
Reference: 0.1.0
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
* tag 0.1.0 -> FETCH_HEAD
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 0.1.0
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/regexident/ScopedDefaults.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/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
12 |
13 | public extension UserDefaultsScope {
14 | public static var keyPath: String {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
15 | if let outer = Self.outer {
16 | return "\(outer.keyPath).\(Self.key)"
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefaultsScope.swift:35:5: warning: 'public' modifier is redundant for static method declared in a public extension
33 |
34 | public extension EnumerableUserDefaultsScope {
35 | public static func factoryDefaults() -> [String : Any] {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
36 | var dictionary: [String : Any] = [:]
37 |
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefaultsScope.swift:54:5: warning: 'public' modifier is redundant for static method declared in a public extension
52 | }
53 |
54 | public static func register(on userDefaults: UserDefaults) {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
55 | let dictionary = self.factoryDefaults()
56 | userDefaults.register(defaults: dictionary)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/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 the Swift 6 language mode
17 | }
18 |
19 | public struct ScopedUserDefault<Scope, Value>: UserDefaultProtocol, AnyUserDefault
| `- note: 'Value' previously declared here
20 | where
21 | Scope: UserDefaultsScope,
:
45 |
46 | extension ScopedUserDefault: Equatable {
47 | public static func ==<Value>(
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
48 | lhs: ScopedUserDefault<Scope, Value>,
49 | rhs: ScopedUserDefault<Scope, Value>
/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 the Swift 6 language mode
53 | }
54 |
55 | public struct UserDefault<Value: Codable>: UserDefaultProtocol, AnyUserDefault {
| `- note: 'Value' previously declared here
56 | public let key: String
57 | public let defaultValue: () -> Value
:
72 |
73 | extension UserDefault: Equatable {
74 | public static func ==<Value>(
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
75 | lhs: UserDefault<Value>,
76 | rhs: UserDefault<Value>
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefaults+Extensions.swift:16:5: warning: 'public' modifier is redundant for instance method declared in a public extension
14 |
15 | public extension UserDefaults {
16 | public func get<T: UserDefaultProtocol>(for userDefault: T) -> T.Value {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
17 | return self.get(for: userDefault, default: userDefault.defaultValue())
18 | }
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefaults+Extensions.swift:20:5: warning: 'public' modifier is redundant for instance method declared in a public extension
18 | }
19 |
20 | public func get<T: UserDefaultProtocol>(
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
21 | for userDefault: T,
22 | `default` defaultValue: @autoclosure () -> T.Value
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefaults+Extensions.swift:45:5: warning: 'public' modifier is redundant for instance method declared in a public extension
43 | }
44 |
45 | public func set<T: UserDefaultProtocol>(_ value: T.Value, for userDefault: T) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
46 | typealias ValueType = T.Value
47 | typealias ContainerType = PropertyListContainer<T.Value>
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefaults+Extensions.swift:65:5: warning: 'public' modifier is redundant for instance method declared in a public extension
63 | }
64 |
65 | public func removeValue<T: UserDefaultProtocol>(for userDefault: T) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
66 | self.removeObject(forKey: userDefault.keyPath)
67 | }
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefaults+Extensions.swift:25:32: error: value of type 'UserDefaults' has no member 'value'
23 | ) -> T.Value {
24 | typealias ValueType = T.Value
25 | guard let plist = self.value(forKey: userDefault.keyPath) else {
| `- error: value of type 'UserDefaults' has no member 'value'
26 | return defaultValue()
27 | }
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefaults+Extensions.swift:50:18: error: value of type 'UserDefaults' has no member 'setValue'
48 | do {
49 | let plist = try value.asPlist()
50 | self.setValue(plist, forKey: userDefault.keyPath)
| `- error: value of type 'UserDefaults' has no member 'setValue'
51 | } catch let error {
52 | do {
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefaultsScope.swift:14:5: warning: 'public' modifier is redundant for static property declared in a public extension
12 |
13 | public extension UserDefaultsScope {
14 | public static var keyPath: String {
| `- warning: 'public' modifier is redundant for static property declared in a public extension
15 | if let outer = Self.outer {
16 | return "\(outer.keyPath).\(Self.key)"
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefaultsScope.swift:35:5: warning: 'public' modifier is redundant for static method declared in a public extension
33 |
34 | public extension EnumerableUserDefaultsScope {
35 | public static func factoryDefaults() -> [String : Any] {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
36 | var dictionary: [String : Any] = [:]
37 |
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefaultsScope.swift:54:5: warning: 'public' modifier is redundant for static method declared in a public extension
52 | }
53 |
54 | public static func register(on userDefaults: UserDefaults) {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
55 | let dictionary = self.factoryDefaults()
56 | userDefaults.register(defaults: dictionary)
[5/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 the Swift 6 language mode
17 | }
18 |
19 | public struct ScopedUserDefault<Scope, Value>: UserDefaultProtocol, AnyUserDefault
| `- note: 'Value' previously declared here
20 | where
21 | Scope: UserDefaultsScope,
:
45 |
46 | extension ScopedUserDefault: Equatable {
47 | public static func ==<Value>(
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
48 | lhs: ScopedUserDefault<Scope, Value>,
49 | rhs: ScopedUserDefault<Scope, Value>
/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 the Swift 6 language mode
53 | }
54 |
55 | public struct UserDefault<Value: Codable>: UserDefaultProtocol, AnyUserDefault {
| `- note: 'Value' previously declared here
56 | public let key: String
57 | public let defaultValue: () -> Value
:
72 |
73 | extension UserDefault: Equatable {
74 | public static func ==<Value>(
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
75 | lhs: UserDefault<Value>,
76 | rhs: UserDefault<Value>
[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
14 |
15 | public extension UserDefaults {
16 | public func get<T: UserDefaultProtocol>(for userDefault: T) -> T.Value {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
17 | return self.get(for: userDefault, default: userDefault.defaultValue())
18 | }
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefaults+Extensions.swift:20:5: warning: 'public' modifier is redundant for instance method declared in a public extension
18 | }
19 |
20 | public func get<T: UserDefaultProtocol>(
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
21 | for userDefault: T,
22 | `default` defaultValue: @autoclosure () -> T.Value
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefaults+Extensions.swift:45:5: warning: 'public' modifier is redundant for instance method declared in a public extension
43 | }
44 |
45 | public func set<T: UserDefaultProtocol>(_ value: T.Value, for userDefault: T) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
46 | typealias ValueType = T.Value
47 | typealias ContainerType = PropertyListContainer<T.Value>
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefaults+Extensions.swift:65:5: warning: 'public' modifier is redundant for instance method declared in a public extension
63 | }
64 |
65 | public func removeValue<T: UserDefaultProtocol>(for userDefault: T) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
66 | self.removeObject(forKey: userDefault.keyPath)
67 | }
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefaults+Extensions.swift:25:32: error: value of type 'UserDefaults' has no member 'value'
23 | ) -> T.Value {
24 | typealias ValueType = T.Value
25 | guard let plist = self.value(forKey: userDefault.keyPath) else {
| `- error: value of type 'UserDefaults' has no member 'value'
26 | return defaultValue()
27 | }
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefaults+Extensions.swift:50:18: error: value of type 'UserDefaults' has no member 'setValue'
48 | do {
49 | let plist = try value.asPlist()
50 | self.setValue(plist, forKey: userDefault.keyPath)
| `- error: value of type 'UserDefaults' has no member 'setValue'
51 | } catch let error {
52 | do {
BUILD FAILURE 6.0 linux