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 Health, reference master (e175d8), with Swift 6.0 for macOS (SPM) on 27 Nov 2024 18:05:18 UTC.

Swift 6 data race errors: 1

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.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Kitura/Health.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Kitura/Health
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at e175d8a Update package reference to community versions (#18)
Cloned https://github.com/Kitura/Health.git
Revision (git rev-parse @):
e175d8a5c599d1d76ac8c5d5ec8a3a55f557c8b1
SUCCESS checkout https://github.com/Kitura/Health.git at master
Fetching https://github.com/Kitura/LoggerAPI.git
[1/771] Fetching loggerapi
Fetched https://github.com/Kitura/LoggerAPI.git from cache (0.94s)
Computing version for https://github.com/Kitura/LoggerAPI.git
Computed https://github.com/Kitura/LoggerAPI.git at 1.9.200 (0.58s)
Fetching https://github.com/apple/swift-log.git
[1/3698] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (1.19s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.2 (0.42s)
Creating working copy for https://github.com/Kitura/LoggerAPI.git
Working copy of https://github.com/Kitura/LoggerAPI.git resolved at 1.9.200
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
========================================
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": "health",
      "name": "Health",
      "url": "https://github.com/Kitura/Health.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Health",
      "dependencies": [
        {
          "identity": "loggerapi",
          "name": "LoggerAPI",
          "url": "https://github.com/Kitura/LoggerAPI.git",
          "version": "1.9.200",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/LoggerAPI",
          "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/Kitura/Health.git
[1/482] Fetching health
Fetched https://github.com/Kitura/Health.git from cache (0.95s)
Fetching https://github.com/Kitura/LoggerAPI.git from cache
Fetched https://github.com/Kitura/LoggerAPI.git from cache (0.49s)
Computing version for https://github.com/Kitura/LoggerAPI.git
Computed https://github.com/Kitura/LoggerAPI.git at 1.9.200 (0.03s)
Fetching https://github.com/apple/swift-log.git from cache
Fetched https://github.com/apple/swift-log.git from cache (0.52s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.2 (0.02s)
Creating working copy for https://github.com/Kitura/Health.git
Working copy of https://github.com/Kitura/Health.git resolved at master (e175d8a)
Creating working copy for https://github.com/Kitura/LoggerAPI.git
Working copy of https://github.com/Kitura/LoggerAPI.git resolved at 1.9.200
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
warning: '.resolve-product-dependencies': dependency 'health' is not used by any target
Found 1 product dependencies
  - LoggerAPI
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/Kitura/Health.git
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/4] Write sources
[3/4] Write swift-version--7754E27361AE5C74.txt
[5/9] Compiling Logging MetadataProvider.swift
[6/9] Compiling Logging Locks.swift
[7/9] Compiling Logging Logging.swift
[8/9] Emitting module Logging
[9/9] Compiling Logging LogHandler.swift
[10/11] Compiling LoggerAPI Logger.swift
[11/11] Emitting module LoggerAPI
[12/15] Compiling Health Health.swift
/Users/admin/builder/spi-builder-workspace/Sources/Health/Protocols.swift:83:21: warning: static property 'dateFormatter' is not concurrency-safe because non-'Sendable' type 'StatusDateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
 42 |
 43 | /// Struct that encapsulates a `DateFormatter` implementation, specifically used by the Status struct.
 44 | public class StatusDateFormatter {
    |              `- note: class 'StatusDateFormatter' does not conform to the 'Sendable' protocol
 45 |   private let dateFormatter: DateFormatter
 46 |
    :
 81 | public struct Status: Equatable {
 82 |   /// The date formatter used by the `Status` struct.
 83 |   public static let dateFormatter = StatusDateFormatter()
    |                     |- warning: static property 'dateFormatter' is not concurrency-safe because non-'Sendable' type 'StatusDateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'dateFormatter' 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
 84 |
 85 |   /// The date format used by the timestamp value in the dictionary.
[13/15] Compiling Health Utils.swift
[14/15] Compiling Health Protocols.swift
/Users/admin/builder/spi-builder-workspace/Sources/Health/Protocols.swift:83:21: warning: static property 'dateFormatter' is not concurrency-safe because non-'Sendable' type 'StatusDateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
 42 |
 43 | /// Struct that encapsulates a `DateFormatter` implementation, specifically used by the Status struct.
 44 | public class StatusDateFormatter {
    |              `- note: class 'StatusDateFormatter' does not conform to the 'Sendable' protocol
 45 |   private let dateFormatter: DateFormatter
 46 |
    :
 81 | public struct Status: Equatable {
 82 |   /// The date formatter used by the `Status` struct.
 83 |   public static let dateFormatter = StatusDateFormatter()
    |                     |- warning: static property 'dateFormatter' is not concurrency-safe because non-'Sendable' type 'StatusDateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'dateFormatter' 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
 84 |
 85 |   /// The date format used by the timestamp value in the dictionary.
[15/15] Emitting module Health
/Users/admin/builder/spi-builder-workspace/Sources/Health/Protocols.swift:83:21: warning: static property 'dateFormatter' is not concurrency-safe because non-'Sendable' type 'StatusDateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
 42 |
 43 | /// Struct that encapsulates a `DateFormatter` implementation, specifically used by the Status struct.
 44 | public class StatusDateFormatter {
    |              `- note: class 'StatusDateFormatter' does not conform to the 'Sendable' protocol
 45 |   private let dateFormatter: DateFormatter
 46 |
    :
 81 | public struct Status: Equatable {
 82 |   /// The date formatter used by the `Status` struct.
 83 |   public static let dateFormatter = StatusDateFormatter()
    |                     |- warning: static property 'dateFormatter' is not concurrency-safe because non-'Sendable' type 'StatusDateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'dateFormatter' 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
 84 |
 85 |   /// The date format used by the timestamp value in the dictionary.
Build complete! (8.31s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "loggerapi",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.9.200",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Kitura/LoggerAPI.git"
    }
  ],
  "manifest_display_name" : "Health",
  "name" : "Health",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Health",
      "targets" : [
        "Health"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "HealthTests",
      "module_type" : "SwiftTarget",
      "name" : "HealthTests",
      "path" : "Tests/HealthTests",
      "sources" : [
        "HealthTests.swift"
      ],
      "target_dependencies" : [
        "Health"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Health",
      "module_type" : "SwiftTarget",
      "name" : "Health",
      "path" : "Sources/Health",
      "product_dependencies" : [
        "LoggerAPI"
      ],
      "product_memberships" : [
        "Health"
      ],
      "sources" : [
        "Health.swift",
        "Protocols.swift",
        "Utils.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.