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 swift-log-matrix with Swift 6.0 for Linux.

Swift 6 data race errors: 3

Build Command

bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" 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.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kiliankoe/swift-log-matrix.git
Reference: main
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/kiliankoe/swift-log-matrix
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 660695f update readme screenshot
Cloned https://github.com/kiliankoe/swift-log-matrix.git
Revision (git rev-parse @):
660695f3632217986ca037457c8f22b1bc9c3c0a
SUCCESS checkout https://github.com/kiliankoe/swift-log-matrix.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $workDir
https://github.com/kiliankoe/swift-log-matrix.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" 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
Fetching https://github.com/apple/swift-log.git
[1/3361] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.33s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.5.2 (0.43s)
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.2
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/8] Compiling Logging Logging.swift
[5/8] Compiling Logging MetadataProvider.swift
[6/8] Compiling Logging LogHandler.swift
[7/8] Emitting module Logging
[8/8] Compiling Logging Locks.swift
[10/15] Compiling LoggingMatrix Message.swift
[11/15] Compiling LoggingMatrix URLSession+async.swift
[12/15] Compiling LoggingMatrix Metadata+merged.swift
[13/15] Compiling LoggingMatrix LoggingMatrixError.swift
[14/15] Compiling LoggingMatrix MatrixLogHandler.swift
/host/spi-builder-workspace/Sources/LoggingMatrix/MatrixLogHandler.swift:18:23: warning: static property 'defaultDateFormatter' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 16 |     private var dateFormatter: DateFormatter
 17 |
 18 |     public static var defaultDateFormatter: DateFormatter = {
    |                       |- warning: static property 'defaultDateFormatter' 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 'defaultDateFormatter' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'defaultDateFormatter' 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
 19 |         let dateFormatter = DateFormatter()
 20 |         dateFormatter.dateFormat = "E, d MMM yyyy HH:mm:ss Z"
/host/spi-builder-workspace/Sources/LoggingMatrix/MatrixLogHandler.swift:8:14: warning: non-final class 'MatrixLogHandler' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
  6 | #endif
  7 |
  8 | public class MatrixLogHandler: LogHandler {
    |              `- warning: non-final class 'MatrixLogHandler' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
  9 |     private var homeserver: URL
 10 |     private var roomID: String
/host/spi-builder-workspace/Sources/LoggingMatrix/MatrixLogHandler.swift:9:17: warning: stored property 'homeserver' of 'Sendable'-conforming class 'MatrixLogHandler' is mutable; this is an error in the Swift 6 language mode
  7 |
  8 | public class MatrixLogHandler: LogHandler {
  9 |     private var homeserver: URL
    |                 `- warning: stored property 'homeserver' of 'Sendable'-conforming class 'MatrixLogHandler' is mutable; this is an error in the Swift 6 language mode
 10 |     private var roomID: String
 11 |     private var accessToken: String
[15/15] Emitting module LoggingMatrix
/host/spi-builder-workspace/Sources/LoggingMatrix/MatrixLogHandler.swift:18:23: warning: static property 'defaultDateFormatter' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 16 |     private var dateFormatter: DateFormatter
 17 |
 18 |     public static var defaultDateFormatter: DateFormatter = {
    |                       |- warning: static property 'defaultDateFormatter' 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 'defaultDateFormatter' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'defaultDateFormatter' 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
 19 |         let dateFormatter = DateFormatter()
 20 |         dateFormatter.dateFormat = "E, d MMM yyyy HH:mm:ss Z"
/host/spi-builder-workspace/Sources/LoggingMatrix/MatrixLogHandler.swift:8:14: warning: non-final class 'MatrixLogHandler' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
  6 | #endif
  7 |
  8 | public class MatrixLogHandler: LogHandler {
    |              `- warning: non-final class 'MatrixLogHandler' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
  9 |     private var homeserver: URL
 10 |     private var roomID: String
/host/spi-builder-workspace/Sources/LoggingMatrix/MatrixLogHandler.swift:9:17: warning: stored property 'homeserver' of 'Sendable'-conforming class 'MatrixLogHandler' is mutable; this is an error in the Swift 6 language mode
  7 |
  8 | public class MatrixLogHandler: LogHandler {
  9 |     private var homeserver: URL
    |                 `- warning: stored property 'homeserver' of 'Sendable'-conforming class 'MatrixLogHandler' is mutable; this is an error in the Swift 6 language mode
 10 |     private var roomID: String
 11 |     private var accessToken: String
Build complete! (10.25s)
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"
    }
  ],
  "manifest_display_name" : "swift-log-matrix",
  "name" : "swift-log-matrix",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "LoggingMatrix",
      "targets" : [
        "LoggingMatrix"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "LoggingMatrixTests",
      "module_type" : "SwiftTarget",
      "name" : "LoggingMatrixTests",
      "path" : "Tests/LoggingMatrixTests",
      "sources" : [
        "LoggingMatrixTests.swift"
      ],
      "target_dependencies" : [
        "LoggingMatrix"
      ],
      "type" : "test"
    },
    {
      "c99name" : "LoggingMatrix",
      "module_type" : "SwiftTarget",
      "name" : "LoggingMatrix",
      "path" : "Sources/LoggingMatrix",
      "product_dependencies" : [
        "Logging"
      ],
      "product_memberships" : [
        "LoggingMatrix"
      ],
      "sources" : [
        "LoggingMatrixError.swift",
        "MatrixLogHandler.swift",
        "Message.swift",
        "Metadata+merged.swift",
        "URLSession+async.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.