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

Successful build of RaLog, reference master (06787f), with Swift 6.1 for Linux on 1 May 2025 04:34:55 UTC.

Swift 6 data race errors: 6

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-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

Build Log

========================================
RunAll
========================================
Builder version: 4.61.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/RakuyoKit/RaLog.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/RakuyoKit/RaLog
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 06787f6 Merge branch release/1.8.1
Cloned https://github.com/RakuyoKit/RaLog.git
Revision (git rev-parse @):
06787f66caa8e80b953573edf146130b85e87bd4
SUCCESS checkout https://github.com/RakuyoKit/RaLog.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/RakuyoKit/RaLog.git
https://github.com/RakuyoKit/RaLog.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift",
      "requirement" : {
        "branch" : [
          "release/1.4.0"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/RakuyoKit/swift.git"
    }
  ],
  "manifest_display_name" : "RaLog",
  "name" : "RaLog",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "tvos",
      "version" : "12.0"
    },
    {
      "name" : "watchos",
      "version" : "5.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "RaLog",
      "targets" : [
        "RaLog"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "RaLogTests",
      "module_type" : "SwiftTarget",
      "name" : "RaLogTests",
      "path" : "Tests",
      "sources" : [
        "RaLogTests/RaLogTests.swift"
      ],
      "target_dependencies" : [
        "RaLog"
      ],
      "type" : "test"
    },
    {
      "c99name" : "RaLog",
      "module_type" : "SwiftTarget",
      "name" : "RaLog",
      "path" : "Sources/Core",
      "product_memberships" : [
        "RaLog"
      ],
      "sources" : [
        "Built-in.swift",
        "Filterable.swift",
        "Log.swift",
        "LogModelProtocol.swift",
        "Printable.swift",
        "RaLogCompatible.swift",
        "Storable.swift",
        "WebView+RaLog.swift",
        "Wrapper.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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
Fetching https://github.com/RakuyoKit/swift.git
[1/2377] Fetching swift
Fetched https://github.com/RakuyoKit/swift.git from cache (0.32s)
Fetching https://github.com/apple/swift-argument-parser
[1/14950] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (1.21s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.0 (1.93s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.5.0
Creating working copy for https://github.com/RakuyoKit/swift.git
Working copy of https://github.com/RakuyoKit/swift.git resolved at release/1.4.0 (9cb218a)
Downloading binary artifact https://github.com/nicklockwood/SwiftFormat/releases/download/0.55.0/SwiftFormat.artifactbundle.zip
Downloading binary artifact https://github.com/realm/SwiftLint/releases/download/0.55.1/SwiftLintBinary-macos.artifactbundle.zip
[16375/28197168] Downloading https://github.com/nicklockwood/SwiftFormat/releases/download/0.55.0/SwiftFormat.artifactbundle.zip
[1081753/39231213] Downloading https://github.com/nicklockwood/SwiftFormat/releases/download/0.55.0/SwiftFormat.artifactbundle.zip, https://github.com/realm/SwiftLint/releases/download/0.55.1/SwiftLintBinary-macos.artifactbundle.zip
Downloaded https://github.com/realm/SwiftLint/releases/download/0.55.1/SwiftLintBinary-macos.artifactbundle.zip (1.91s)
Downloaded https://github.com/nicklockwood/SwiftFormat/releases/download/0.55.0/SwiftFormat.artifactbundle.zip (3.36s)
/host/spi-builder-workspace/.build/checkouts/swift/Plugins/FormatSwift/Plugin.swift:53:13: warning: 'launchPath' is deprecated: renamed to 'executableURL'
 51 |
 52 |     let process = Process()
 53 |     process.launchPath = launchPath
    |             |- warning: 'launchPath' is deprecated: renamed to 'executableURL'
    |             `- note: use 'executableURL' instead
 54 |     process.arguments = arguments
 55 |     try process.run()
[1/1] Compiling plugin FormatSwift
[2/2] Compiling plugin GenerateManual
Building for debugging...
[2/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/13] Compiling RaLog WebView+RaLog.swift
[6/14] Compiling RaLog RaLogCompatible.swift
[7/14] Compiling RaLog Storable.swift
/host/spi-builder-workspace/Sources/Core/Storable.swift:16:23: warning: static property 'disk' is not concurrency-safe because non-'Sendable' type 'StorageMode' may have shared mutable state; this is an error in the Swift 6 language mode
 12 |
 13 | /// Used to specify the location of cache storage.
 14 | public struct StorageMode: OptionSet {
    |               `- note: consider making struct 'StorageMode' conform to the 'Sendable' protocol
 15 |     /// Storage on disk.
 16 |     public static let disk = Self(rawValue: 1 << 0)
    |                       |- warning: static property 'disk' is not concurrency-safe because non-'Sendable' type 'StorageMode' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'disk' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 17 |
 18 |     /// Cached on memory.
/host/spi-builder-workspace/Sources/Core/Storable.swift:19:23: warning: static property 'memory' is not concurrency-safe because non-'Sendable' type 'StorageMode' may have shared mutable state; this is an error in the Swift 6 language mode
 12 |
 13 | /// Used to specify the location of cache storage.
 14 | public struct StorageMode: OptionSet {
    |               `- note: consider making struct 'StorageMode' conform to the 'Sendable' protocol
 15 |     /// Storage on disk.
 16 |     public static let disk = Self(rawValue: 1 << 0)
 17 |
 18 |     /// Cached on memory.
 19 |     public static let memory = Self(rawValue: 1 << 1)
    |                       |- warning: static property 'memory' is not concurrency-safe because non-'Sendable' type 'StorageMode' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'memory' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 20 |
 21 |     /// `.disk` & `.memory`.
/host/spi-builder-workspace/Sources/Core/Storable.swift:22:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'StorageMode' may have shared mutable state; this is an error in the Swift 6 language mode
 12 |
 13 | /// Used to specify the location of cache storage.
 14 | public struct StorageMode: OptionSet {
    |               `- note: consider making struct 'StorageMode' conform to the 'Sendable' protocol
 15 |     /// Storage on disk.
 16 |     public static let disk = Self(rawValue: 1 << 0)
    :
 20 |
 21 |     /// `.disk` & `.memory`.
 22 |     public static let all: StorageMode = [.disk, .memory]
    |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'StorageMode' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 23 |
 24 |     public let rawValue: Int
/host/spi-builder-workspace/Sources/Core/Storable.swift:303:33: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
301 |         // File Exists
302 |         if !FileManager.default.fileExists(atPath: filePath, isDirectory: &isDirectory) {
303 |             FileManager.default.createFile(atPath: filePath, contents: nil)
    |                                 `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
304 |
305 |             // Store as an array
[8/14] Compiling RaLog Wrapper.swift
/host/spi-builder-workspace/Sources/Core/Wrapper.swift:14:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Wrapper' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | /// A wrapper container to provide default global storage support for other types.
12 | final class Wrapper {
   |             `- note: class 'Wrapper' does not conform to the 'Sendable' protocol
13 |     /// Singleton object
14 |     static let shared = Wrapper()
   |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Wrapper' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 |     var logs: [LogModelProtocol] = []
[9/14] Emitting module RaLog
/host/spi-builder-workspace/Sources/Core/Log.swift:22:23: warning: static property 'globalFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 20 |
 21 |     /// A global log formatter that can be set to customize log output.
 22 |     public static var globalFormatter: ((_ log: LogModelProtocol) -> String)? = nil
    |                       |- warning: static property 'globalFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'globalFormatter' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'globalFormatter' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 23 |
 24 |     /// Determines whether it is enabled.
/host/spi-builder-workspace/Sources/Core/Log.swift:28:23: warning: static property 'isEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 26 |     /// This switch controls all processes including printing, filtering, and saving.
 27 |     /// See the default implementation of the `Printable.print(_:)` method for details.
 28 |     public static var isEnabled: Bool = {
    |                       |- warning: static property 'isEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'isEnabled' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'isEnabled' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 29 |         #if DEBUG
 30 |         true
/host/spi-builder-workspace/Sources/Core/Storable.swift:16:23: warning: static property 'disk' is not concurrency-safe because non-'Sendable' type 'StorageMode' may have shared mutable state; this is an error in the Swift 6 language mode
 12 |
 13 | /// Used to specify the location of cache storage.
 14 | public struct StorageMode: OptionSet {
    |               `- note: consider making struct 'StorageMode' conform to the 'Sendable' protocol
 15 |     /// Storage on disk.
 16 |     public static let disk = Self(rawValue: 1 << 0)
    |                       |- warning: static property 'disk' is not concurrency-safe because non-'Sendable' type 'StorageMode' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'disk' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 17 |
 18 |     /// Cached on memory.
/host/spi-builder-workspace/Sources/Core/Storable.swift:19:23: warning: static property 'memory' is not concurrency-safe because non-'Sendable' type 'StorageMode' may have shared mutable state; this is an error in the Swift 6 language mode
 12 |
 13 | /// Used to specify the location of cache storage.
 14 | public struct StorageMode: OptionSet {
    |               `- note: consider making struct 'StorageMode' conform to the 'Sendable' protocol
 15 |     /// Storage on disk.
 16 |     public static let disk = Self(rawValue: 1 << 0)
 17 |
 18 |     /// Cached on memory.
 19 |     public static let memory = Self(rawValue: 1 << 1)
    |                       |- warning: static property 'memory' is not concurrency-safe because non-'Sendable' type 'StorageMode' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'memory' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 20 |
 21 |     /// `.disk` & `.memory`.
/host/spi-builder-workspace/Sources/Core/Storable.swift:22:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'StorageMode' may have shared mutable state; this is an error in the Swift 6 language mode
 12 |
 13 | /// Used to specify the location of cache storage.
 14 | public struct StorageMode: OptionSet {
    |               `- note: consider making struct 'StorageMode' conform to the 'Sendable' protocol
 15 |     /// Storage on disk.
 16 |     public static let disk = Self(rawValue: 1 << 0)
    :
 20 |
 21 |     /// `.disk` & `.memory`.
 22 |     public static let all: StorageMode = [.disk, .memory]
    |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'StorageMode' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 23 |
 24 |     public let rawValue: Int
/host/spi-builder-workspace/Sources/Core/Wrapper.swift:14:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Wrapper' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | /// A wrapper container to provide default global storage support for other types.
12 | final class Wrapper {
   |             `- note: class 'Wrapper' does not conform to the 'Sendable' protocol
13 |     /// Singleton object
14 |     static let shared = Wrapper()
   |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Wrapper' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 |     var logs: [LogModelProtocol] = []
[10/14] Compiling RaLog LogModelProtocol.swift
[11/14] Compiling RaLog Built-in.swift
[12/14] Compiling RaLog Filterable.swift
[13/14] Compiling RaLog Printable.swift
[14/14] Compiling RaLog Log.swift
/host/spi-builder-workspace/Sources/Core/Log.swift:22:23: warning: static property 'globalFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 20 |
 21 |     /// A global log formatter that can be set to customize log output.
 22 |     public static var globalFormatter: ((_ log: LogModelProtocol) -> String)? = nil
    |                       |- warning: static property 'globalFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'globalFormatter' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'globalFormatter' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 23 |
 24 |     /// Determines whether it is enabled.
/host/spi-builder-workspace/Sources/Core/Log.swift:28:23: warning: static property 'isEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 26 |     /// This switch controls all processes including printing, filtering, and saving.
 27 |     /// See the default implementation of the `Printable.print(_:)` method for details.
 28 |     public static var isEnabled: Bool = {
    |                       |- warning: static property 'isEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'isEnabled' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'isEnabled' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 29 |         #if DEBUG
 30 |         true
Build complete! (24.89s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift",
      "requirement" : {
        "branch" : [
          "release/1.4.0"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/RakuyoKit/swift.git"
    }
  ],
  "manifest_display_name" : "RaLog",
  "name" : "RaLog",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "tvos",
      "version" : "12.0"
    },
    {
      "name" : "watchos",
      "version" : "5.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "RaLog",
      "targets" : [
        "RaLog"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "RaLogTests",
      "module_type" : "SwiftTarget",
      "name" : "RaLogTests",
      "path" : "Tests",
      "sources" : [
        "RaLogTests/RaLogTests.swift"
      ],
      "target_dependencies" : [
        "RaLog"
      ],
      "type" : "test"
    },
    {
      "c99name" : "RaLog",
      "module_type" : "SwiftTarget",
      "name" : "RaLog",
      "path" : "Sources/Core",
      "product_memberships" : [
        "RaLog"
      ],
      "sources" : [
        "Built-in.swift",
        "Filterable.swift",
        "Log.swift",
        "LogModelProtocol.swift",
        "Printable.swift",
        "RaLogCompatible.swift",
        "Storable.swift",
        "WebView+RaLog.swift",
        "Wrapper.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
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
Done.