This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 5

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Kitura/HeliumLogger.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
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:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/Kitura/HeliumLogger.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-6F35C1178C84523A.txt
[5/9] Compiling Logging LogHandler.swift
[6/9] Compiling Logging Logging.swift
[7/9] Emitting module Logging
[8/9] Compiling Logging Locks.swift
[9/9] Compiling Logging MetadataProvider.swift
[10/11] Emitting module LoggerAPI
[11/11] Compiling LoggerAPI Logger.swift
[12/15] Compiling HeliumLogger HeliumStreamLogger.swift
[13/15] Emitting module HeliumLogger
/Users/admin/builder/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.
/Users/admin/builder/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.
/Users/admin/builder/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
/Users/admin/builder/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.
/Users/admin/builder/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 |     ]
/Users/admin/builder/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 |     ]
/Users/admin/builder/spi-builder-workspace/Sources/HeliumLogger/HeliumLogger.swift:151:24: warning: static property 'tokenRegex' is not concurrency-safe because it is non-isolated 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 non-isolated 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: [])
[14/15] Compiling HeliumLogger HeliumLogHandler.swift
/Users/admin/builder/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.
/Users/admin/builder/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.
/Users/admin/builder/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
/Users/admin/builder/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.
[15/15] Compiling HeliumLogger HeliumLogger.swift
/Users/admin/builder/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 |     ]
/Users/admin/builder/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 |     ]
/Users/admin/builder/spi-builder-workspace/Sources/HeliumLogger/HeliumLogger.swift:151:24: warning: static property 'tokenRegex' is not concurrency-safe because it is non-isolated 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 non-isolated 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! (22.07s)
Fetching https://github.com/Kitura/LoggerAPI.git
Fetching https://github.com/apple/swift-log.git
[8/771] Fetching loggerapi
[179/4124] Fetching loggerapi, swift-log
Fetched https://github.com/Kitura/LoggerAPI.git from cache (1.24s)
Fetched https://github.com/apple/swift-log.git from cache (1.24s)
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.5.4 (0.67s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.5.4
Creating working copy for https://github.com/Kitura/LoggerAPI.git
Working copy of https://github.com/Kitura/LoggerAPI.git resolved at 2.0.0
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" : "/Users/admin/builder/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"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.