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 HeliumLogger, reference master (fc2a71), with Swift 6.0 for Linux on 28 Nov 2024 06:18:57 UTC.

Swift 6 data race errors: 5

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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/Kitura/HeliumLogger.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/Kitura/HeliumLogger
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at fc2a715 CI update and remove swift 4.x support (#82)
Cloned https://github.com/Kitura/HeliumLogger.git
Revision (git rev-parse @):
fc2a71597ae974da5282d751bcc11965964bccce
SUCCESS checkout https://github.com/Kitura/HeliumLogger.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/Kitura/HeliumLogger.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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
Fetching https://github.com/Kitura/LoggerAPI.git
Fetching https://github.com/apple/swift-log.git
[1/771] Fetching loggerapi
[772/4473] Fetching loggerapi, swift-log
Fetched https://github.com/Kitura/LoggerAPI.git from cache (0.39s)
Fetched https://github.com/apple/swift-log.git from cache (0.39s)
Computing version for https://github.com/Kitura/LoggerAPI.git
Computed https://github.com/Kitura/LoggerAPI.git at 2.0.0 (0.65s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.2 (0.54s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.2
Creating working copy for https://github.com/Kitura/LoggerAPI.git
Working copy of https://github.com/Kitura/LoggerAPI.git resolved at 2.0.0
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/9] Compiling Logging MetadataProvider.swift
[6/9] Compiling Logging LogHandler.swift
[7/9] Emitting module Logging
[8/9] Compiling Logging Locks.swift
[9/9] Compiling Logging Logging.swift
[11/12] Emitting module LoggerAPI
[12/12] Compiling LoggerAPI Logger.swift
[14/17] Compiling HeliumLogger HeliumStreamLogger.swift
[15/17] Compiling HeliumLogger HeliumLogger.swift
/host/spi-builder-workspace/Sources/HeliumLogger/HeliumLogger.swift:50:16: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[HeliumLoggerFormatValues]' may have shared mutable state; this is an error in the Swift 6 language mode
 34 | /// The set of substitution "variables" that can be used when formatting the
 35 | /// messages to be logged.
 36 | public enum HeliumLoggerFormatValues: String {
    |             `- note: consider making enum 'HeliumLoggerFormatValues' conform to the 'Sendable' protocol
 37 |     /// The message being logged.
 38 |     case message = "(%msg)"
    :
 48 |     case date = "(%date)"
 49 |
 50 |     static let all: [HeliumLoggerFormatValues] = [
    |                |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[HeliumLoggerFormatValues]' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'all' 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
 51 |         .message, .function, .line, .file, .logType, .date
 52 |     ]
/host/spi-builder-workspace/Sources/HeliumLogger/HeliumLogger.swift:63:16: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[HeliumLoggerSwiftLogFormatValues]' may have shared mutable state; this is an error in the Swift 6 language mode
 55 | /// The additional set of substitution "variables" that can be used when formatting the
 56 | /// messages to be logged with SwiftLog.
 57 | public enum HeliumLoggerSwiftLogFormatValues: String {
    |             `- note: consider making enum 'HeliumLoggerSwiftLogFormatValues' conform to the 'Sendable' protocol
 58 |     /// The logging metadata used by SwiftLog.
 59 |     case metadata = "(%metadata)"
    :
 61 |     case label = "(%label)"
 62 |
 63 |     static let all: [HeliumLoggerSwiftLogFormatValues] = [
    |                |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[HeliumLoggerSwiftLogFormatValues]' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'all' 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
 64 |         .metadata, .label
 65 |     ]
/host/spi-builder-workspace/Sources/HeliumLogger/HeliumLogger.swift:151:24: warning: static property 'tokenRegex' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
149 |     #endif
150 |
151 |     private static var tokenRegex: NSRegularExpression? = {
    |                        |- warning: static property 'tokenRegex' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'tokenRegex' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'tokenRegex' 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
152 |         do {
153 |             return try NSRegularExpression(pattern: "\\(%\\w+\\)", options: [])
/host/spi-builder-workspace/Sources/HeliumLogger/HeliumLogger.swift:245:16: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
243 |     public class func use(_ type: LoggerMessageType = .verbose) {
244 |         Log.logger = HeliumLogger(type)
245 |         setbuf(stdout, nil)
    |                `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
246 |     }
247 |
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
  |            `- note: var declared here
[16/17] Compiling HeliumLogger HeliumLogHandler.swift
/host/spi-builder-workspace/Sources/HeliumLogger/HeliumLogHandler.swift:60:24: warning: static property 'defaultLogger' is not concurrency-safe because non-'Sendable' type 'HeliumLogger' may have shared mutable state; this is an error in the Swift 6 language mode
 58 |     }
 59 |
 60 |     private static let defaultLogger = HeliumLogger()
    |                        |- warning: static property 'defaultLogger' is not concurrency-safe because non-'Sendable' type 'HeliumLogger' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate 'defaultLogger' 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
 61 |
 62 |     /// Creates a `HeliumLogHandler` instance for use with the SwiftLog logging system.
/host/spi-builder-workspace/Sources/HeliumLogger/HeliumLogger.swift:69:14: note: class 'HeliumLogger' does not conform to the 'Sendable' protocol
 67 |
 68 | /// A lightweight implementation of the `LoggerAPI` protocol.
 69 | public class HeliumLogger {
    |              `- note: class 'HeliumLogger' does not conform to the 'Sendable' protocol
 70 |
 71 |     /// A Boolean value that indicates whether the logger output should be colorized.
/host/spi-builder-workspace/Sources/HeliumLogger/HeliumLogHandler.swift:79:17: warning: stored property 'logger' of 'Sendable'-conforming struct 'HeliumLogHandler' has non-sendable type 'HeliumLogger'; this is an error in the Swift 6 language mode
 77 | /// A lightweight implementation of SwiftLog's `LogHandler` protocol.
 78 | public struct HeliumLogHandler: LogHandler {
 79 |     private let logger: HeliumLogger
    |                 `- warning: stored property 'logger' of 'Sendable'-conforming struct 'HeliumLogHandler' has non-sendable type 'HeliumLogger'; this is an error in the Swift 6 language mode
 80 |
 81 |     private let label: String
/host/spi-builder-workspace/Sources/HeliumLogger/HeliumLogger.swift:69:14: note: class 'HeliumLogger' does not conform to the 'Sendable' protocol
 67 |
 68 | /// A lightweight implementation of the `LoggerAPI` protocol.
 69 | public class HeliumLogger {
    |              `- note: class 'HeliumLogger' does not conform to the 'Sendable' protocol
 70 |
 71 |     /// A Boolean value that indicates whether the logger output should be colorized.
/host/spi-builder-workspace/Sources/HeliumLogger/HeliumLogHandler.swift:78:15: warning: deprecated default implementation is used to satisfy instance method 'log(level:message:metadata:source:file:function:line:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation
 76 |
 77 | /// A lightweight implementation of SwiftLog's `LogHandler` protocol.
 78 | public struct HeliumLogHandler: LogHandler {
    |               `- warning: deprecated default implementation is used to satisfy instance method 'log(level:message:metadata:source:file:function:line:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation
 79 |     private let logger: HeliumLogger
 80 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/LogHandler.swift:209:17: note: 'log(level:message:metadata:source:file:function:line:)' declared here
133 |     ///     - function: The function the log line was emitted from.
134 |     ///     - line: The line the log message was emitted from.
135 |     func log(
    |          `- note: requirement 'log(level:message:metadata:source:file:function:line:)' declared here
136 |         level: Logger.Level,
137 |         message: Logger.Message,
    :
207 | extension LogHandler {
208 |     @available(*, deprecated, message: "You should implement this method instead of using the default implementation")
209 |     public func log(
    |                 `- note: 'log(level:message:metadata:source:file:function:line:)' declared here
210 |         level: Logger.Level,
211 |         message: Logger.Message,
[17/17] Emitting module HeliumLogger
/host/spi-builder-workspace/Sources/HeliumLogger/HeliumLogHandler.swift:60:24: warning: static property 'defaultLogger' is not concurrency-safe because non-'Sendable' type 'HeliumLogger' may have shared mutable state; this is an error in the Swift 6 language mode
 58 |     }
 59 |
 60 |     private static let defaultLogger = HeliumLogger()
    |                        |- warning: static property 'defaultLogger' is not concurrency-safe because non-'Sendable' type 'HeliumLogger' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate 'defaultLogger' 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
 61 |
 62 |     /// Creates a `HeliumLogHandler` instance for use with the SwiftLog logging system.
/host/spi-builder-workspace/Sources/HeliumLogger/HeliumLogger.swift:69:14: note: class 'HeliumLogger' does not conform to the 'Sendable' protocol
 67 |
 68 | /// A lightweight implementation of the `LoggerAPI` protocol.
 69 | public class HeliumLogger {
    |              `- note: class 'HeliumLogger' does not conform to the 'Sendable' protocol
 70 |
 71 |     /// A Boolean value that indicates whether the logger output should be colorized.
/host/spi-builder-workspace/Sources/HeliumLogger/HeliumLogHandler.swift:79:17: warning: stored property 'logger' of 'Sendable'-conforming struct 'HeliumLogHandler' has non-sendable type 'HeliumLogger'; this is an error in the Swift 6 language mode
 77 | /// A lightweight implementation of SwiftLog's `LogHandler` protocol.
 78 | public struct HeliumLogHandler: LogHandler {
 79 |     private let logger: HeliumLogger
    |                 `- warning: stored property 'logger' of 'Sendable'-conforming struct 'HeliumLogHandler' has non-sendable type 'HeliumLogger'; this is an error in the Swift 6 language mode
 80 |
 81 |     private let label: String
/host/spi-builder-workspace/Sources/HeliumLogger/HeliumLogger.swift:69:14: note: class 'HeliumLogger' does not conform to the 'Sendable' protocol
 67 |
 68 | /// A lightweight implementation of the `LoggerAPI` protocol.
 69 | public class HeliumLogger {
    |              `- note: class 'HeliumLogger' does not conform to the 'Sendable' protocol
 70 |
 71 |     /// A Boolean value that indicates whether the logger output should be colorized.
/host/spi-builder-workspace/Sources/HeliumLogger/HeliumLogHandler.swift:78:15: warning: deprecated default implementation is used to satisfy instance method 'log(level:message:metadata:source:file:function:line:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation
 76 |
 77 | /// A lightweight implementation of SwiftLog's `LogHandler` protocol.
 78 | public struct HeliumLogHandler: LogHandler {
    |               `- warning: deprecated default implementation is used to satisfy instance method 'log(level:message:metadata:source:file:function:line:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation
 79 |     private let logger: HeliumLogger
 80 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/LogHandler.swift:209:17: note: 'log(level:message:metadata:source:file:function:line:)' declared here
133 |     ///     - function: The function the log line was emitted from.
134 |     ///     - line: The line the log message was emitted from.
135 |     func log(
    |          `- note: requirement 'log(level:message:metadata:source:file:function:line:)' declared here
136 |         level: Logger.Level,
137 |         message: Logger.Message,
    :
207 | extension LogHandler {
208 |     @available(*, deprecated, message: "You should implement this method instead of using the default implementation")
209 |     public func log(
    |                 `- note: 'log(level:message:metadata:source:file:function:line:)' declared here
210 |         level: Logger.Level,
211 |         message: Logger.Message,
/host/spi-builder-workspace/Sources/HeliumLogger/HeliumLogger.swift:50:16: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[HeliumLoggerFormatValues]' may have shared mutable state; this is an error in the Swift 6 language mode
 34 | /// The set of substitution "variables" that can be used when formatting the
 35 | /// messages to be logged.
 36 | public enum HeliumLoggerFormatValues: String {
    |             `- note: consider making enum 'HeliumLoggerFormatValues' conform to the 'Sendable' protocol
 37 |     /// The message being logged.
 38 |     case message = "(%msg)"
    :
 48 |     case date = "(%date)"
 49 |
 50 |     static let all: [HeliumLoggerFormatValues] = [
    |                |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[HeliumLoggerFormatValues]' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'all' 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
 51 |         .message, .function, .line, .file, .logType, .date
 52 |     ]
/host/spi-builder-workspace/Sources/HeliumLogger/HeliumLogger.swift:63:16: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[HeliumLoggerSwiftLogFormatValues]' may have shared mutable state; this is an error in the Swift 6 language mode
 55 | /// The additional set of substitution "variables" that can be used when formatting the
 56 | /// messages to be logged with SwiftLog.
 57 | public enum HeliumLoggerSwiftLogFormatValues: String {
    |             `- note: consider making enum 'HeliumLoggerSwiftLogFormatValues' conform to the 'Sendable' protocol
 58 |     /// The logging metadata used by SwiftLog.
 59 |     case metadata = "(%metadata)"
    :
 61 |     case label = "(%label)"
 62 |
 63 |     static let all: [HeliumLoggerSwiftLogFormatValues] = [
    |                |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[HeliumLoggerSwiftLogFormatValues]' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'all' 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
 64 |         .metadata, .label
 65 |     ]
/host/spi-builder-workspace/Sources/HeliumLogger/HeliumLogger.swift:151:24: warning: static property 'tokenRegex' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
149 |     #endif
150 |
151 |     private static var tokenRegex: NSRegularExpression? = {
    |                        |- warning: static property 'tokenRegex' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'tokenRegex' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'tokenRegex' 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
152 |         do {
153 |             return try NSRegularExpression(pattern: "\\(%\\w+\\)", options: [])
Build complete! (12.72s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log.git"
    },
    {
      "identity" : "loggerapi",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.0.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Kitura/LoggerAPI.git"
    }
  ],
  "manifest_display_name" : "HeliumLogger",
  "name" : "HeliumLogger",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "HeliumLogger",
      "targets" : [
        "HeliumLogger"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "HeliumLoggerTests",
      "module_type" : "SwiftTarget",
      "name" : "HeliumLoggerTests",
      "path" : "Tests/HeliumLoggerTests",
      "sources" : [
        "TestLogger.swift",
        "TestStreamLogger.swift",
        "TestSwiftLog.swift",
        "VerifyLinuxTestCount.swift"
      ],
      "target_dependencies" : [
        "HeliumLogger"
      ],
      "type" : "test"
    },
    {
      "c99name" : "HeliumLogger",
      "module_type" : "SwiftTarget",
      "name" : "HeliumLogger",
      "path" : "Sources/HeliumLogger",
      "product_dependencies" : [
        "Logging",
        "LoggerAPI"
      ],
      "product_memberships" : [
        "HeliumLogger"
      ],
      "sources" : [
        "HeliumLogHandler.swift",
        "HeliumLogger.swift",
        "HeliumStreamLogger.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
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
Done.