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, reference main (660695), with Swift 6.0 for macOS (SPM) on 29 Nov 2024 08:38:46 UTC.

Swift 6 data race errors: 3

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -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

Build Log

========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kiliankoe/swift-log-matrix.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
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
Fetching https://github.com/apple/swift-log.git
[1/3709] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (1.14s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.5.2 (0.57s)
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
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "swift-log-matrix",
      "name": "swift-log-matrix",
      "url": "https://github.com/kiliankoe/swift-log-matrix.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-log-matrix",
      "dependencies": [
        {
          "identity": "swift-log",
          "name": "swift-log",
          "url": "https://github.com/apple/swift-log.git",
          "version": "1.6.2",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-log",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/kiliankoe/swift-log-matrix.git
[1/73] Fetching swift-log-matrix
Fetched https://github.com/kiliankoe/swift-log-matrix.git from cache (0.68s)
Fetching https://github.com/apple/swift-log.git from cache
Fetched https://github.com/apple/swift-log.git from cache (0.57s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.2 (0.52s)
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/kiliankoe/swift-log-matrix.git
Working copy of https://github.com/kiliankoe/swift-log-matrix.git resolved at main (660695f)
warning: '.resolve-product-dependencies': dependency 'swift-log-matrix' is not used by any target
Found 1 product dependencies
  - swift-log
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/kiliankoe/swift-log-matrix.git
{
  "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" : "/Users/admin/builder/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"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -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
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version--7754E27361AE5C74.txt
[4/8] Compiling Logging MetadataProvider.swift
[5/8] Compiling Logging Locks.swift
[6/8] Compiling Logging LogHandler.swift
[7/8] Emitting module Logging
[8/8] Compiling Logging Logging.swift
[9/14] Compiling LoggingMatrix URLSession+async.swift
[10/14] Compiling LoggingMatrix Metadata+merged.swift
[11/14] Compiling LoggingMatrix LoggingMatrixError.swift
[12/14] Compiling LoggingMatrix Message.swift
[13/14] Emitting module LoggingMatrix
/Users/admin/builder/spi-builder-workspace/Sources/LoggingMatrix/MatrixLogHandler.swift:18:23: warning: static property 'defaultDateFormatter' is not concurrency-safe because it is nonisolated 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 nonisolated 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"
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/LoggingMatrix/MatrixLogHandler.swift:8:14: 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
  6 | #endif
  7 |
  8 | public class MatrixLogHandler: 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
  9 |     private var homeserver: URL
 10 |     private var roomID: String
/Users/admin/builder/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?,
[14/14] Compiling LoggingMatrix MatrixLogHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/LoggingMatrix/MatrixLogHandler.swift:18:23: warning: static property 'defaultDateFormatter' is not concurrency-safe because it is nonisolated 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 nonisolated 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"
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/LoggingMatrix/MatrixLogHandler.swift:8:14: 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
  6 | #endif
  7 |
  8 | public class MatrixLogHandler: 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
  9 |     private var homeserver: URL
 10 |     private var roomID: String
/Users/admin/builder/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?,
Build complete! (7.53s)
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" : "/Users/admin/builder/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.