Build Information
Failed to build SwiftyUserDefaults with Swift 6.0 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" 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 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sunshinejr/SwiftyUserDefaults.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/sunshinejr/SwiftyUserDefaults
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 558c015 Update README.md
Cloned https://github.com/sunshinejr/SwiftyUserDefaults.git
Revision (git rev-parse @):
558c015e49524ebf5031b66980a722a4c225c302
SUCCESS checkout https://github.com/sunshinejr/SwiftyUserDefaults.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $workDir
https://github.com/sunshinejr/SwiftyUserDefaults.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" 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 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/15] Compiling SwiftyUserDefaults OptionalType.swift
[4/15] Compiling SwiftyUserDefaults DefaultsSerializable.swift
[5/16] Compiling SwiftyUserDefaults DefaultsKeys.swift
[6/16] Compiling SwiftyUserDefaults DefaultsObserver.swift
[7/16] Compiling SwiftyUserDefaults DefaultsBridges.swift
[8/16] Compiling SwiftyUserDefaults DefaultsKey.swift
[9/16] Compiling SwiftyUserDefaults Defaults.swift
/host/spi-builder-workspace/Sources/Defaults.swift:35:12: warning: var 'Defaults' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
33 | /// ~~~
34 |
35 | public var Defaults = DefaultsAdapter<DefaultsKeys>(defaults: .standard, keyStore: .init())
| |- warning: var 'Defaults' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'Defaults' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'Defaults' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | public extension UserDefaults {
[10/16] Compiling SwiftyUserDefaults DefaultsAdapter.swift
/host/spi-builder-workspace/Sources/Defaults.swift:35:12: warning: var 'Defaults' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
33 | /// ~~~
34 |
35 | public var Defaults = DefaultsAdapter<DefaultsKeys>(defaults: .standard, keyStore: .init())
| |- warning: var 'Defaults' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'Defaults' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'Defaults' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | public extension UserDefaults {
[11/16] Compiling SwiftyUserDefaults BuiltIns.swift
[12/16] Compiling SwiftyUserDefaults Defaults+Observing.swift
[13/16] Emitting module SwiftyUserDefaults
/host/spi-builder-workspace/Sources/Defaults.swift:35:12: warning: var 'Defaults' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
33 | /// ~~~
34 |
35 | public var Defaults = DefaultsAdapter<DefaultsKeys>(defaults: .standard, keyStore: .init())
| |- warning: var 'Defaults' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'Defaults' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'Defaults' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | public extension UserDefaults {
/host/spi-builder-workspace/Sources/PropertyWrappers.swift:28:23: warning: static property 'cached' is not concurrency-safe because non-'Sendable' type 'SwiftyUserDefaultOptions' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | #if swift(>=5.1)
26 | public struct SwiftyUserDefaultOptions: OptionSet {
| `- note: consider making struct 'SwiftyUserDefaultOptions' conform to the 'Sendable' protocol
27 |
28 | public static let cached = SwiftyUserDefaultOptions(rawValue: 1 << 0)
| |- warning: static property 'cached' is not concurrency-safe because non-'Sendable' type 'SwiftyUserDefaultOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'cached' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | public static let observed = SwiftyUserDefaultOptions(rawValue: 1 << 2)
30 |
/host/spi-builder-workspace/Sources/PropertyWrappers.swift:29:23: warning: static property 'observed' is not concurrency-safe because non-'Sendable' type 'SwiftyUserDefaultOptions' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | #if swift(>=5.1)
26 | public struct SwiftyUserDefaultOptions: OptionSet {
| `- note: consider making struct 'SwiftyUserDefaultOptions' conform to the 'Sendable' protocol
27 |
28 | public static let cached = SwiftyUserDefaultOptions(rawValue: 1 << 0)
29 | public static let observed = SwiftyUserDefaultOptions(rawValue: 1 << 2)
| |- warning: static property 'observed' is not concurrency-safe because non-'Sendable' type 'SwiftyUserDefaultOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'observed' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | public let rawValue: Int
[14/16] Compiling SwiftyUserDefaults Defaults+StringToBool.swift
[15/16] Compiling SwiftyUserDefaults Defaults+Subscripts.swift
[16/16] Compiling SwiftyUserDefaults PropertyWrappers.swift
/host/spi-builder-workspace/Sources/PropertyWrappers.swift:28:23: warning: static property 'cached' is not concurrency-safe because non-'Sendable' type 'SwiftyUserDefaultOptions' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | #if swift(>=5.1)
26 | public struct SwiftyUserDefaultOptions: OptionSet {
| `- note: consider making struct 'SwiftyUserDefaultOptions' conform to the 'Sendable' protocol
27 |
28 | public static let cached = SwiftyUserDefaultOptions(rawValue: 1 << 0)
| |- warning: static property 'cached' is not concurrency-safe because non-'Sendable' type 'SwiftyUserDefaultOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'cached' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | public static let observed = SwiftyUserDefaultOptions(rawValue: 1 << 2)
30 |
/host/spi-builder-workspace/Sources/PropertyWrappers.swift:29:23: warning: static property 'observed' is not concurrency-safe because non-'Sendable' type 'SwiftyUserDefaultOptions' may have shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | #if swift(>=5.1)
26 | public struct SwiftyUserDefaultOptions: OptionSet {
| `- note: consider making struct 'SwiftyUserDefaultOptions' conform to the 'Sendable' protocol
27 |
28 | public static let cached = SwiftyUserDefaultOptions(rawValue: 1 << 0)
29 | public static let observed = SwiftyUserDefaultOptions(rawValue: 1 << 2)
| |- warning: static property 'observed' is not concurrency-safe because non-'Sendable' type 'SwiftyUserDefaultOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'observed' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | public let rawValue: Int
/host/spi-builder-workspace/Sources/Defaults.swift:35:12: warning: var 'Defaults' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
33 | /// ~~~
34 |
35 | public var Defaults = DefaultsAdapter<DefaultsKeys>(defaults: .standard, keyStore: .init())
| |- warning: var 'Defaults' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'Defaults' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'Defaults' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | public extension UserDefaults {
/host/spi-builder-workspace/Sources/PropertyWrappers.swift:66:35: error: generic parameter 'T' could not be inferred
64 |
65 | if options.contains(.observed) {
66 | observation = adapter.observe(key) { [weak self] update in
| `- error: generic parameter 'T' could not be inferred
67 | self?._value = update.newValue
68 | }
/host/spi-builder-workspace/Sources/Defaults+Subscripts.swift:77:12: note: in call to 'subscript(dynamicMember:)'
75 | // Weird flex, but needed these two for the dynamicMemberLookup :shrug:
76 |
77 | public subscript<T: DefaultsSerializable>(dynamicMember keyPath: KeyPath<KeyStore, DefaultsKey<T>>) -> T.T where T: OptionalType, T.T == T {
| `- note: in call to 'subscript(dynamicMember:)'
78 | get {
79 | return self[keyPath]
/host/spi-builder-workspace/Sources/PropertyWrappers.swift:66:35: error: value of type 'DefaultsAdapter<KeyStore>' has no dynamic member 'observe' using key path from root type 'KeyStore'
64 |
65 | if options.contains(.observed) {
66 | observation = adapter.observe(key) { [weak self] update in
| `- error: value of type 'DefaultsAdapter<KeyStore>' has no dynamic member 'observe' using key path from root type 'KeyStore'
67 | self?._value = update.newValue
68 | }
/host/spi-builder-workspace/Sources/PropertyWrappers.swift:66:62: error: cannot infer type of closure parameter 'update' without a type annotation
64 |
65 | if options.contains(.observed) {
66 | observation = adapter.observe(key) { [weak self] update in
| `- error: cannot infer type of closure parameter 'update' without a type annotation
67 | self?._value = update.newValue
68 | }
/host/spi-builder-workspace/Sources/PropertyWrappers.swift:77:36: error: generic parameter 'T' could not be inferred
75 |
76 | if options.contains(.observed) {
77 | observation = Defaults.observe(key) { [weak self] update in
| `- error: generic parameter 'T' could not be inferred
78 | self?._value = update.newValue
79 | }
/host/spi-builder-workspace/Sources/Defaults+Subscripts.swift:77:12: note: in call to 'subscript(dynamicMember:)'
75 | // Weird flex, but needed these two for the dynamicMemberLookup :shrug:
76 |
77 | public subscript<T: DefaultsSerializable>(dynamicMember keyPath: KeyPath<KeyStore, DefaultsKey<T>>) -> T.T where T: OptionalType, T.T == T {
| `- note: in call to 'subscript(dynamicMember:)'
78 | get {
79 | return self[keyPath]
/host/spi-builder-workspace/Sources/PropertyWrappers.swift:77:36: error: value of type 'DefaultsAdapter<DefaultsKeys>' has no dynamic member 'observe' using key path from root type 'DefaultsKeys'
75 |
76 | if options.contains(.observed) {
77 | observation = Defaults.observe(key) { [weak self] update in
| `- error: value of type 'DefaultsAdapter<DefaultsKeys>' has no dynamic member 'observe' using key path from root type 'DefaultsKeys'
78 | self?._value = update.newValue
79 | }
/host/spi-builder-workspace/Sources/PropertyWrappers.swift:77:63: error: cannot infer type of closure parameter 'update' without a type annotation
75 |
76 | if options.contains(.observed) {
77 | observation = Defaults.observe(key) { [weak self] update in
| `- error: cannot infer type of closure parameter 'update' without a type annotation
78 | self?._value = update.newValue
79 | }
BUILD FAILURE 6.0 linux