The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build SwiftyUserDefaults, reference master (558c01), with Swift 6.1 for Linux on 26 Apr 2025 09:05:49 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.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.61.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.1
Building package at path:  $PWD
https://github.com/sunshinejr/SwiftyUserDefaults.git
https://github.com/sunshinejr/SwiftyUserDefaults.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftyUserDefaults",
  "name" : "SwiftyUserDefaults",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.11"
    },
    {
      "name" : "ios",
      "version" : "9.0"
    },
    {
      "name" : "tvos",
      "version" : "9.0"
    },
    {
      "name" : "watchos",
      "version" : "2.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftyUserDefaults",
      "targets" : [
        "SwiftyUserDefaults"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftyUserDefaults",
      "module_type" : "SwiftTarget",
      "name" : "SwiftyUserDefaults",
      "path" : "Sources",
      "product_memberships" : [
        "SwiftyUserDefaults"
      ],
      "sources" : [
        "BuiltIns.swift",
        "Defaults+Observing.swift",
        "Defaults+StringToBool.swift",
        "Defaults+Subscripts.swift",
        "Defaults.swift",
        "DefaultsAdapter.swift",
        "DefaultsBridges.swift",
        "DefaultsKey.swift",
        "DefaultsKeys.swift",
        "DefaultsObserver.swift",
        "DefaultsSerializable.swift",
        "OptionalType.swift",
        "PropertyWrappers.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-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.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
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 DefaultsBridges.swift
[6/16] Compiling SwiftyUserDefaults DefaultsKey.swift
[7/16] Compiling SwiftyUserDefaults DefaultsKeys.swift
[8/16] Compiling SwiftyUserDefaults DefaultsObserver.swift
[9/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: add '@MainActor' to make static property 'cached' part of global actor 'MainActor'
   |                       `- 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: add '@MainActor' to make static property 'observed' part of global actor 'MainActor'
   |                       `- 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/PropertyWrappers.swift:66:35: error: cannot call value of non-function type 'Never'
64 |
65 |         if options.contains(.observed) {
66 |             observation = adapter.observe(key) { [weak self] update in
   |                                   `- error: cannot call value of non-function type 'Never'
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: cannot call value of non-function type 'Never'
75 |
76 |         if options.contains(.observed) {
77 |             observation = Defaults.observe(key) { [weak self] update in
   |                                    `- error: cannot call value of non-function type 'Never'
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 |             }
[10/16] Compiling SwiftyUserDefaults Defaults+StringToBool.swift
[11/16] Compiling SwiftyUserDefaults Defaults+Subscripts.swift
[12/16] Emitting module SwiftyUserDefaults
/host/spi-builder-workspace/Sources/Defaults.swift:35:12: warning: var 'Defaults' is not concurrency-safe because it is nonisolated 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 nonisolated 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: add '@MainActor' to make var 'Defaults' part of global actor 'MainActor'
   |            `- 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: add '@MainActor' to make static property 'cached' part of global actor 'MainActor'
   |                       `- 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: add '@MainActor' to make static property 'observed' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 |     public let rawValue: Int
[13/16] Compiling SwiftyUserDefaults BuiltIns.swift
[14/16] Compiling SwiftyUserDefaults Defaults+Observing.swift
[15/16] Compiling SwiftyUserDefaults Defaults.swift
/host/spi-builder-workspace/Sources/Defaults.swift:35:12: warning: var 'Defaults' is not concurrency-safe because it is nonisolated 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 nonisolated 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: add '@MainActor' to make var 'Defaults' part of global actor 'MainActor'
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | public extension UserDefaults {
[16/16] Compiling SwiftyUserDefaults DefaultsAdapter.swift
/host/spi-builder-workspace/Sources/Defaults.swift:35:12: warning: var 'Defaults' is not concurrency-safe because it is nonisolated 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 nonisolated 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: add '@MainActor' to make var 'Defaults' part of global actor 'MainActor'
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | public extension UserDefaults {
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/14] Compiling SwiftyUserDefaults DefaultsKeys.swift
[3/14] Compiling SwiftyUserDefaults DefaultsObserver.swift
[4/15] Compiling SwiftyUserDefaults DefaultsSerializable.swift
[5/15] Compiling SwiftyUserDefaults OptionalType.swift
[6/15] Compiling SwiftyUserDefaults BuiltIns.swift
[7/15] Compiling SwiftyUserDefaults Defaults+Observing.swift
[8/15] Compiling SwiftyUserDefaults Defaults+StringToBool.swift
[9/15] Compiling SwiftyUserDefaults Defaults+Subscripts.swift
[10/15] Emitting module SwiftyUserDefaults
[11/15] Compiling SwiftyUserDefaults PropertyWrappers.swift
/host/spi-builder-workspace/Sources/PropertyWrappers.swift:66:35: error: cannot call value of non-function type 'Never'
64 |
65 |         if options.contains(.observed) {
66 |             observation = adapter.observe(key) { [weak self] update in
   |                                   `- error: cannot call value of non-function type 'Never'
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: cannot call value of non-function type 'Never'
75 |
76 |         if options.contains(.observed) {
77 |             observation = Defaults.observe(key) { [weak self] update in
   |                                    `- error: cannot call value of non-function type 'Never'
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 |             }
[12/15] Compiling SwiftyUserDefaults Defaults.swift
[13/15] Compiling SwiftyUserDefaults DefaultsAdapter.swift
[14/15] Compiling SwiftyUserDefaults DefaultsBridges.swift
[15/15] Compiling SwiftyUserDefaults DefaultsKey.swift
BUILD FAILURE 6.1 linux