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 SunKit, reference main (a18a6f), with Swift 6.0 for macOS (SPM) on 22 Jan 2025 11:01:14 UTC.

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.2.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.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/SunKit-Swift/SunKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/SunKit-Swift/SunKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at a18a6f7 Created SunKit.yml (#56)
Cloned https://github.com/SunKit-Swift/SunKit.git
Revision (git rev-parse @):
a18a6f780770680f4f2ffe3488a1f3b335ec5ff6
SUCCESS checkout https://github.com/SunKit-Swift/SunKit.git at main
========================================
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": "sunkit",
      "name": "SunKit",
      "url": "https://github.com/SunKit-Swift/SunKit.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SunKit",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/SunKit-Swift/SunKit.git
[1/889] Fetching sunkit
Fetched https://github.com/SunKit-Swift/SunKit.git from cache (0.98s)
Creating working copy for https://github.com/SunKit-Swift/SunKit.git
Working copy of https://github.com/SunKit-Swift/SunKit.git resolved at main (a18a6f7)
warning: '.resolve-product-dependencies': dependency 'sunkit' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/SunKit-Swift/SunKit.git
https://github.com/SunKit-Swift/SunKit.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SunKit",
  "name" : "SunKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "tvos",
      "version" : "12.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "SunKit",
      "targets" : [
        "SunKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SunKitTests",
      "module_type" : "SwiftTarget",
      "name" : "SunKitTests",
      "path" : "Tests/SunKitTests",
      "sources" : [
        "UT_DMS.swift",
        "UT_EclipticCoordinates.swift",
        "UT_EquatorialCoordinates.swift",
        "UT_HMS.swift",
        "UT_HorizonCoordinates.swift",
        "UT_Sun.swift",
        "UT_Utils.swift"
      ],
      "target_dependencies" : [
        "SunKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SunKit",
      "module_type" : "SwiftTarget",
      "name" : "SunKit",
      "path" : "Sources/SunKit",
      "product_memberships" : [
        "SunKit"
      ],
      "sources" : [
        "Angle.swift",
        "DMS.swift",
        "EclipticCoordinates.swift",
        "EquatorialCoordinates.swift",
        "Extensions.swift",
        "HMS.swift",
        "HorizonCoordinates.swift",
        "Sun.swift",
        "SunElevationEvents.swift",
        "Utils.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.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/2] Write sources
[1/2] Write swift-version-5BDAB9E9C0126B9D.txt
[3/12] Compiling SunKit DMS.swift
[4/12] Compiling SunKit SunElevationEvents.swift
[5/13] Compiling SunKit EquatorialCoordinates.swift
[6/13] Compiling SunKit HorizonCoordinates.swift
[7/13] Compiling SunKit HMS.swift
[8/13] Emitting module SunKit
/Users/admin/builder/spi-builder-workspace/Sources/SunKit/Angle.swift:24:23: warning: static property 'zero' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
22 | public struct Angle: Equatable, Hashable, Codable, Sendable {
23 |
24 |     public static var zero: Angle = .init()
   |                       |- warning: static property 'zero' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'zero' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'zero' 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
25 |
26 |     public init() {
[9/13] Compiling SunKit Extensions.swift
[10/13] Compiling SunKit Sun.swift
/Users/admin/builder/spi-builder-workspace/Sources/SunKit/Angle.swift:24:23: warning: static property 'zero' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
22 | public struct Angle: Equatable, Hashable, Codable, Sendable {
23 |
24 |     public static var zero: Angle = .init()
   |                       |- warning: static property 'zero' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'zero' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'zero' 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
25 |
26 |     public init() {
[11/13] Compiling SunKit EclipticCoordinates.swift
[12/13] Compiling SunKit Angle.swift
/Users/admin/builder/spi-builder-workspace/Sources/SunKit/Angle.swift:24:23: warning: static property 'zero' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
22 | public struct Angle: Equatable, Hashable, Codable, Sendable {
23 |
24 |     public static var zero: Angle = .init()
   |                       |- warning: static property 'zero' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'zero' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'zero' 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
25 |
26 |     public init() {
[13/13] Compiling SunKit Utils.swift
Build complete! (15.15s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SunKit",
  "name" : "SunKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "tvos",
      "version" : "12.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "SunKit",
      "targets" : [
        "SunKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SunKitTests",
      "module_type" : "SwiftTarget",
      "name" : "SunKitTests",
      "path" : "Tests/SunKitTests",
      "sources" : [
        "UT_DMS.swift",
        "UT_EclipticCoordinates.swift",
        "UT_EquatorialCoordinates.swift",
        "UT_HMS.swift",
        "UT_HorizonCoordinates.swift",
        "UT_Sun.swift",
        "UT_Utils.swift"
      ],
      "target_dependencies" : [
        "SunKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SunKit",
      "module_type" : "SwiftTarget",
      "name" : "SunKit",
      "path" : "Sources/SunKit",
      "product_memberships" : [
        "SunKit"
      ],
      "sources" : [
        "Angle.swift",
        "DMS.swift",
        "EclipticCoordinates.swift",
        "EquatorialCoordinates.swift",
        "Extensions.swift",
        "HMS.swift",
        "HorizonCoordinates.swift",
        "Sun.swift",
        "SunElevationEvents.swift",
        "Utils.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.