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 swift-cutelog, reference master (484604), with Swift 6.0 for Linux on 2 Nov 2024 18:01:55 UTC.

Swift 6 data race errors: 2

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/natinusala/swift-cutelog.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/natinusala/swift-cutelog
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 484604f Enable SPI documentation generation
Cloned https://github.com/natinusala/swift-cutelog.git
Revision (git rev-parse @):
484604facc518115665b1b9b61eb00548a0700cc
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/natinusala/swift-cutelog.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/natinusala/swift-cutelog.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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 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/apple/swift-log.git
Fetching https://github.com/Kitura/BlueSocket.git
Fetching https://github.com/malcommac/SwiftMsgPack.git
[1/439] Fetching swiftmsgpack
[383/3381] Fetching swiftmsgpack, bluesocket
[1941/7041] Fetching swiftmsgpack, bluesocket, swift-log
Fetched https://github.com/malcommac/SwiftMsgPack.git from cache (0.34s)
Fetched https://github.com/Kitura/BlueSocket.git from cache (0.34s)
Fetched https://github.com/apple/swift-log.git from cache (0.34s)
Computing version for https://github.com/malcommac/SwiftMsgPack.git
Computed https://github.com/malcommac/SwiftMsgPack.git at 1.2.0 (0.42s)
Computing version for https://github.com/Kitura/BlueSocket.git
Computed https://github.com/Kitura/BlueSocket.git at 2.0.4 (0.42s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.1 (0.37s)
Creating working copy for https://github.com/malcommac/SwiftMsgPack.git
Working copy of https://github.com/malcommac/SwiftMsgPack.git resolved at 1.2.0
Creating working copy for https://github.com/Kitura/BlueSocket.git
Working copy of https://github.com/Kitura/BlueSocket.git resolved at 2.0.4
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.1
Building for debugging...
[0/13] Write sources
[5/13] Write swift-version-24593BA9C3E375BF.txt
[7/28] Emitting module SwiftMsgPack
[8/28] Compiling Logging MetadataProvider.swift
[9/28] Compiling Logging LogHandler.swift
[10/28] Compiling Logging Logging.swift
[11/28] Emitting module Logging
[12/28] Compiling Logging Locks.swift
[13/29] Wrapping AST for Logging for debugging
[15/29] Compiling Socket SocketProtocols.swift
[16/29] Compiling SwiftMsgPack Commons.swift
[17/29] Compiling SwiftMsgPack Encoder.swift
[18/29] Compiling SwiftMsgPack Decoder.swift
[19/29] Compiling Socket Socket+Equatable.swift
[20/30] Wrapping AST for SwiftMsgPack for debugging
[22/30] Compiling Socket Socket+Hashable.swift
[23/30] Compiling Socket Socket.swift
[24/30] Emitting module Socket
[25/30] Compiling Socket SocketUtils.swift
[26/31] Wrapping AST for Socket for debugging
[28/36] Compiling Cutelog Config.swift
[29/36] Compiling Cutelog CutelogConstants.swift
[30/36] Compiling Cutelog LogRecord.swift
[31/36] Emitting module Cutelog
/host/spi-builder-workspace/Sources/Cutelog/CutelogLogger.swift:28:9: warning: stored property 'logger' of 'Sendable'-conforming struct 'CutelogHandler' has non-sendable type 'CutelogLogger'; this is an error in the Swift 6 language mode
 26 | public struct CutelogHandler: LogHandler {
 27 |     let label: String
 28 |     let logger: CutelogLogger
    |         `- warning: stored property 'logger' of 'Sendable'-conforming struct 'CutelogHandler' has non-sendable type 'CutelogLogger'; this is an error in the Swift 6 language mode
 29 |
 30 |     public var metadata = Logging.Logger.Metadata()
    :
 70 | /// Holds connection to a cutelog instance at a given address and port.
 71 | /// Use ``makeHandler(label:logLevel:)`` to make a swift-log handler.
 72 | public class CutelogLogger {
    |              `- note: class 'CutelogLogger' does not conform to the 'Sendable' protocol
 73 |     enum State {
 74 |         case closed
/host/spi-builder-workspace/Sources/Cutelog/CutelogLogger.swift:26: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
 24 |
 25 | /// swift-log handler bound to a ``CutelogLogger``.
 26 | public struct CutelogHandler: 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
 27 |     let label: String
 28 |     let logger: CutelogLogger
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/LogHandler.swift:191: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(level: Logger.Level,
    |          `- note: requirement 'log(level:message:metadata:source:file:function:line:)' declared here
136 |              message: Logger.Message,
137 |              metadata: Logger.Metadata?,
    :
189 | extension LogHandler {
190 |     @available(*, deprecated, message: "You should implement this method instead of using the default implementation")
191 |     public func log(level: Logger.Level,
    |                 `- note: 'log(level:message:metadata:source:file:function:line:)' declared here
192 |                     message: Logger.Message,
193 |                     metadata: Logger.Metadata?,
[32/36] Compiling Cutelog CutelogLogger.swift
/host/spi-builder-workspace/Sources/Cutelog/CutelogLogger.swift:28:9: warning: stored property 'logger' of 'Sendable'-conforming struct 'CutelogHandler' has non-sendable type 'CutelogLogger'; this is an error in the Swift 6 language mode
 26 | public struct CutelogHandler: LogHandler {
 27 |     let label: String
 28 |     let logger: CutelogLogger
    |         `- warning: stored property 'logger' of 'Sendable'-conforming struct 'CutelogHandler' has non-sendable type 'CutelogLogger'; this is an error in the Swift 6 language mode
 29 |
 30 |     public var metadata = Logging.Logger.Metadata()
    :
 70 | /// Holds connection to a cutelog instance at a given address and port.
 71 | /// Use ``makeHandler(label:logLevel:)`` to make a swift-log handler.
 72 | public class CutelogLogger {
    |              `- note: class 'CutelogLogger' does not conform to the 'Sendable' protocol
 73 |     enum State {
 74 |         case closed
/host/spi-builder-workspace/Sources/Cutelog/CutelogLogger.swift:26: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
 24 |
 25 | /// swift-log handler bound to a ``CutelogLogger``.
 26 | public struct CutelogHandler: 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
 27 |     let label: String
 28 |     let logger: CutelogLogger
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/LogHandler.swift:191: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(level: Logger.Level,
    |          `- note: requirement 'log(level:message:metadata:source:file:function:line:)' declared here
136 |              message: Logger.Message,
137 |              metadata: Logger.Metadata?,
    :
189 | extension LogHandler {
190 |     @available(*, deprecated, message: "You should implement this method instead of using the default implementation")
191 |     public func log(level: Logger.Level,
    |                 `- note: 'log(level:message:metadata:source:file:function:line:)' declared here
192 |                     message: Logger.Message,
193 |                     metadata: Logger.Metadata?,
/host/spi-builder-workspace/Sources/Cutelog/CutelogLogger.swift:287:13: warning: capture of 'self' with non-sendable type 'CutelogLogger' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 70 | /// Holds connection to a cutelog instance at a given address and port.
 71 | /// Use ``makeHandler(label:logLevel:)`` to make a swift-log handler.
 72 | public class CutelogLogger {
    |              `- note: class 'CutelogLogger' does not conform to the 'Sendable' protocol
 73 |     enum State {
 74 |         case closed
    :
285 |
286 |         self.queue.async {
287 |             self.buffer.append(record)
    |             `- warning: capture of 'self' with non-sendable type 'CutelogLogger' in a `@Sendable` closure; this is an error in the Swift 6 language mode
288 |         }
289 |     }
[33/37] Wrapping AST for Cutelog for debugging
[35/39] Emitting module Demo
/host/spi-builder-workspace/Sources/Demo/main.swift:30:12: warning: main actor-isolated let 'cutelogLogger' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
20 |
21 | // Create the logger, this will initiate the remote connection
22 | let cutelogLogger = CutelogLogger(
   |     `- note: let declared here
23 |     address: "127.0.0.1",
24 |     port: Cutelog.defaultPort,
   :
28 | // Will be called when a new `Logger` is created
29 | LoggingSystem.bootstrap { label in
30 |     return cutelogLogger.makeHandler(label: label, logLevel: .info)
   |            `- warning: main actor-isolated let 'cutelogLogger' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
31 | }
32 |
[36/39] Compiling Demo main.swift
/host/spi-builder-workspace/Sources/Demo/main.swift:30:12: warning: main actor-isolated let 'cutelogLogger' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
20 |
21 | // Create the logger, this will initiate the remote connection
22 | let cutelogLogger = CutelogLogger(
   |     `- note: let declared here
23 |     address: "127.0.0.1",
24 |     port: Cutelog.defaultPort,
   :
28 | // Will be called when a new `Logger` is created
29 | LoggingSystem.bootstrap { label in
30 |     return cutelogLogger.makeHandler(label: label, logLevel: .info)
   |            `- warning: main actor-isolated let 'cutelogLogger' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
31 | }
32 |
[37/40] Wrapping AST for Demo for debugging
[38/40] Write Objects.LinkFileList
[39/40] Linking Demo
Build complete! (12.17s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.4.4",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log.git"
    },
    {
      "identity" : "bluesocket",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.0.2",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Kitura/BlueSocket.git"
    },
    {
      "identity" : "swiftmsgpack",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.2.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/malcommac/SwiftMsgPack.git"
    }
  ],
  "manifest_display_name" : "swift-cutelog",
  "name" : "swift-cutelog",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Cutelog",
      "targets" : [
        "Cutelog"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "Demo",
      "targets" : [
        "Demo"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "Demo",
      "module_type" : "SwiftTarget",
      "name" : "Demo",
      "path" : "Sources/Demo",
      "product_memberships" : [
        "Demo"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "Cutelog"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "Cutelog",
      "module_type" : "SwiftTarget",
      "name" : "Cutelog",
      "path" : "Sources/Cutelog",
      "product_dependencies" : [
        "SwiftMsgPack",
        "Socket",
        "Logging"
      ],
      "product_memberships" : [
        "Cutelog",
        "Demo"
      ],
      "sources" : [
        "Config.swift",
        "CutelogConstants.swift",
        "CutelogLogger.swift",
        "LogRecord.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.4"
}
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.