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 JulianDayNumber, reference 0.6.0 (17820a), with Swift 6.0 for Linux on 30 Nov 2024 12:59:42 UTC.

Swift 6 data race errors: 1

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sbooth/JulianDayNumber.git
Reference: 0.6.0
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/sbooth/JulianDayNumber
 * tag               0.6.0      -> FETCH_HEAD
HEAD is now at 17820a5 Fix for dates belonging to previous year (#34)
Cloned https://github.com/sbooth/JulianDayNumber.git
Revision (git rev-parse @):
17820a58c74891ab8801aef35d7188fbcd2931af
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/sbooth/JulianDayNumber.git at 0.6.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/sbooth/JulianDayNumber.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/24] Emitting module JulianDayNumber
/host/spi-builder-workspace/Sources/JulianDayNumber/Date+JD.swift:51:20: warning: static property 'j2000' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
49 | 	/// | TT | 2000-01-01 12:00:00 | 2451545.0 |
50 | 	/// | UTC | 2000-01-01 11:58:55.816 | 2451544.9992571296 |
51 | 	public static var j2000 = Date(julianDate: J2000JD_UTC)
   |                    |- warning: static property 'j2000' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'j2000' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'j2000' 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
52 | }
53 |
[4/26] Compiling JulianDayNumber MacedonianCalendar.swift
[5/26] Compiling JulianDayNumber MayaCalendar.swift
[6/26] Compiling JulianDayNumber PersianCalendar.swift
[7/26] Compiling JulianDayNumber HebrewCalendar.swift
[8/26] Compiling JulianDayNumber ISOCalendar.swift
[9/26] Compiling JulianDayNumber IslamicCalendar.swift
[10/26] Compiling JulianDayNumber SakaCalendar.swift
[11/26] Compiling JulianDayNumber SyrianCalendar.swift
[12/26] Compiling JulianDayNumber CopticCalendar.swift
/host/spi-builder-workspace/Sources/JulianDayNumber/Date+JD.swift:51:20: warning: static property 'j2000' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
49 | 	/// | TT | 2000-01-01 12:00:00 | 2451545.0 |
50 | 	/// | UTC | 2000-01-01 11:58:55.816 | 2451544.9992571296 |
51 | 	public static var j2000 = Date(julianDate: J2000JD_UTC)
   |                    |- warning: static property 'j2000' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'j2000' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'j2000' 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
52 | }
53 |
[13/26] Compiling JulianDayNumber Date+JD.swift
/host/spi-builder-workspace/Sources/JulianDayNumber/Date+JD.swift:51:20: warning: static property 'j2000' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
49 | 	/// | TT | 2000-01-01 12:00:00 | 2451545.0 |
50 | 	/// | UTC | 2000-01-01 11:58:55.816 | 2451544.9992571296 |
51 | 	public static var j2000 = Date(julianDate: J2000JD_UTC)
   |                    |- warning: static property 'j2000' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'j2000' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'j2000' 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
52 | }
53 |
[14/26] Compiling JulianDayNumber EgyptianCalendar.swift
/host/spi-builder-workspace/Sources/JulianDayNumber/Date+JD.swift:51:20: warning: static property 'j2000' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
49 | 	/// | TT | 2000-01-01 12:00:00 | 2451545.0 |
50 | 	/// | UTC | 2000-01-01 11:58:55.816 | 2451544.9992571296 |
51 | 	public static var j2000 = Date(julianDate: J2000JD_UTC)
   |                    |- warning: static property 'j2000' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'j2000' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'j2000' 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
52 | }
53 |
[15/26] Compiling JulianDayNumber ArmenianCalendar.swift
[16/26] Compiling JulianDayNumber AstronomicalCalendar.swift
[17/26] Compiling JulianDayNumber BahaiCalendar.swift
[18/26] Compiling JulianDayNumber EthiopianCalendar.swift
[19/26] Compiling JulianDayNumber FrenchRepublicanCalendar.swift
[20/26] Compiling JulianDayNumber GregorianCalendar.swift
[21/26] Compiling JulianDayNumber JulianCalendar.swift
[22/26] Compiling JulianDayNumber JulianDayNumberConverting.swift
[23/26] Compiling JulianDayNumber KhwarizmianCalendar.swift
[24/26] Compiling JulianDayNumber JDNConverter.swift
[25/26] Compiling JulianDayNumber JDNGregorianTypeConverter.swift
[26/26] Compiling JulianDayNumber JDNSakaConverter.swift
Build complete! (11.71s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "JulianDayNumber",
  "name" : "JulianDayNumber",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "JulianDayNumber",
      "targets" : [
        "JulianDayNumber"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "JulianDayNumberTests",
      "module_type" : "SwiftTarget",
      "name" : "JulianDayNumberTests",
      "path" : "Tests/JulianDayNumberTests",
      "sources" : [
        "ArmenianCalendarTests.swift",
        "AstronomicalCalendarTests.swift",
        "BahaiCalendarTests.swift",
        "CongruenceTests.swift",
        "CopticCalendarTests.swift",
        "Date+JDTests.swift",
        "EgyptianCalendarTests.swift",
        "EthiopianCalendarTests.swift",
        "FrenchRepublicanCalendarTests.swift",
        "GregorianCalendarTests.swift",
        "HebrewCalendarTests.swift",
        "ISOCalendarTests.swift",
        "IslamicCalendarTests.swift",
        "JDNRoundTripTests.swift",
        "JulianCalendarTests.swift",
        "KhwarizmianCalendarTests.swift",
        "MacedonianCalendarTests.swift",
        "MayaCalendarTests.swift",
        "PersianCalendarTests.swift",
        "SakaCalendarTests.swift",
        "SyrianCalendarTests.swift"
      ],
      "target_dependencies" : [
        "JulianDayNumber"
      ],
      "type" : "test"
    },
    {
      "c99name" : "JulianDayNumber",
      "module_type" : "SwiftTarget",
      "name" : "JulianDayNumber",
      "path" : "Sources/JulianDayNumber",
      "product_memberships" : [
        "JulianDayNumber"
      ],
      "sources" : [
        "ArmenianCalendar.swift",
        "AstronomicalCalendar.swift",
        "BahaiCalendar.swift",
        "CopticCalendar.swift",
        "Date+JD.swift",
        "EgyptianCalendar.swift",
        "EthiopianCalendar.swift",
        "FrenchRepublicanCalendar.swift",
        "GregorianCalendar.swift",
        "HebrewCalendar.swift",
        "ISOCalendar.swift",
        "IslamicCalendar.swift",
        "JDNConverter.swift",
        "JDNGregorianTypeConverter.swift",
        "JDNSakaConverter.swift",
        "JulianCalendar.swift",
        "JulianDayNumberConverting.swift",
        "KhwarizmianCalendar.swift",
        "MacedonianCalendar.swift",
        "MayaCalendar.swift",
        "PersianCalendar.swift",
        "SakaCalendar.swift",
        "SyrianCalendar.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
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.