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 Yarn, reference main (2e17aa), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 23:11:18 UTC.

Swift 6 data race errors: 2

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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/0xLeif/Yarn.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/0xLeif/Yarn
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 2e17aaa Updated tests
Cloned https://github.com/0xLeif/Yarn.git
Revision (git rev-parse @):
2e17aaa2c0e1f3f9c248aaefb0cc933015543b0e
SUCCESS checkout https://github.com/0xLeif/Yarn.git at main
Fetching https://github.com/0xLet/SwiftFu
Fetching https://github.com/0xLeif/Chronicle
[1/149] Fetching swiftfu
[5/279] Fetching swiftfu, chronicle
[3/149] Fetching swiftfu
[4/279] Fetching swiftfu, chronicle
Fetched https://github.com/0xLeif/Chronicle from cache (0.65s)
Fetched https://github.com/0xLet/SwiftFu from cache (0.65s)
Computing version for https://github.com/0xLet/SwiftFu
Computed https://github.com/0xLet/SwiftFu at 1.0.0 (0.65s)
Computing version for https://github.com/0xLeif/Chronicle
Computed https://github.com/0xLeif/Chronicle at 0.2.3 (0.65s)
Creating working copy for https://github.com/0xLeif/Chronicle
Working copy of https://github.com/0xLeif/Chronicle resolved at 0.2.3
Creating working copy for https://github.com/0xLet/SwiftFu
Working copy of https://github.com/0xLet/SwiftFu resolved at 1.0.0
========================================
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": "yarn",
      "name": "Yarn",
      "url": "https://github.com/0xLeif/Yarn.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Yarn",
      "dependencies": [
        {
          "identity": "chronicle",
          "name": "Chronicle",
          "url": "https://github.com/0xLeif/Chronicle",
          "version": "0.2.3",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Chronicle",
          "dependencies": [
          ]
        },
        {
          "identity": "swiftfu",
          "name": "SwiftFu",
          "url": "https://github.com/0xLet/SwiftFu",
          "version": "1.0.1",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftFu",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/0xLeif/Yarn.git
[1/33] Fetching yarn
Fetched https://github.com/0xLeif/Yarn.git from cache (0.58s)
Fetching https://github.com/0xLeif/Chronicle from cache
Fetching https://github.com/0xLet/SwiftFu from cache
Fetched https://github.com/0xLet/SwiftFu from cache (0.47s)
Fetched https://github.com/0xLeif/Chronicle from cache (0.47s)
Computing version for https://github.com/0xLeif/Chronicle
Computed https://github.com/0xLeif/Chronicle at 0.2.3 (0.02s)
Computing version for https://github.com/0xLet/SwiftFu
Computed https://github.com/0xLet/SwiftFu at 1.0.1 (0.02s)
Creating working copy for https://github.com/0xLeif/Yarn.git
Working copy of https://github.com/0xLeif/Yarn.git resolved at main (2e17aaa)
Creating working copy for https://github.com/0xLet/SwiftFu
Working copy of https://github.com/0xLet/SwiftFu resolved at 1.0.1
Creating working copy for https://github.com/0xLeif/Chronicle
Working copy of https://github.com/0xLeif/Chronicle resolved at 0.2.3
warning: '.resolve-product-dependencies': dependency 'yarn' is not used by any target
Found 2 product dependencies
  - Chronicle
  - SwiftFu
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/0xLeif/Yarn.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
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version--7754E27361AE5C74.txt
[5/21] Compiling SwiftFu Boolable.swift
[6/21] Compiling SwiftFu Configurable.swift
[7/22] Compiling SwiftFu SwiftFu+.swift
[8/22] Compiling SwiftFu Printable.swift
[9/22] Compiling SwiftFu Functionable.swift
[10/22] Compiling SwiftFu Modifiable.swift
[11/22] Compiling SwiftFu Fuable.swift
[12/22] Compiling SwiftFu Tuplable.swift
[13/22] Compiling SwiftFu Switch+.swift
[14/22] Compiling SwiftFu BinaryInteger+.swift
[15/22] Compiling SwiftFu Assertable.swift
[16/22] Emitting module SwiftFu
[17/22] Compiling SwiftFu Foundation+SwiftFu.swift
[18/22] Compiling SwiftFu BinaryFloatingPoint+.swift
[19/22] Compiling Chronicle Chronicle+DefaultHandlers.swift
[20/22] Emitting module Chronicle
[21/22] Compiling Chronicle Chronicle+DefaultFormatters.swift
[22/22] Compiling Chronicle Chronicle.swift
[23/24] Emitting module Yarn
/Users/admin/builder/spi-builder-workspace/Sources/Yarn/Yarn.swift:4:1: warning: extension declares a conformance of imported type 'Chronicle' to imported protocols 'Fuable', 'Assertable', 'Tuplable', 'Functionable', 'Boolable', 'Modifiable', 'Printable'; this will not behave correctly if the owners of 'Chronicle' introduce this conformance in the future
 2 | import SwiftFu
 3 |
 4 | extension Chronicle: Fuable { }
   | |- warning: extension declares a conformance of imported type 'Chronicle' to imported protocols 'Fuable', 'Assertable', 'Tuplable', 'Functionable', 'Boolable', 'Modifiable', 'Printable'; this will not behave correctly if the owners of 'Chronicle' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
 5 | extension Chronicle.DefaultFormatters.DefaultFormatter: Fuable { }
 6 |
/Users/admin/builder/spi-builder-workspace/Sources/Yarn/Yarn.swift:5:1: warning: extension declares a conformance of imported type 'DefaultFormatter' to imported protocols 'Fuable', 'Assertable', 'Tuplable', 'Functionable', 'Boolable', 'Modifiable', 'Printable'; this will not behave correctly if the owners of 'Chronicle' introduce this conformance in the future
 3 |
 4 | extension Chronicle: Fuable { }
 5 | extension Chronicle.DefaultFormatters.DefaultFormatter: Fuable { }
   | |- warning: extension declares a conformance of imported type 'DefaultFormatter' to imported protocols 'Fuable', 'Assertable', 'Tuplable', 'Functionable', 'Boolable', 'Modifiable', 'Printable'; this will not behave correctly if the owners of 'Chronicle' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
 6 |
 7 | @dynamicMemberLookup
/Users/admin/builder/spi-builder-workspace/Sources/Yarn/Yarn.swift:22:23: warning: static property 'console' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
20 |     }
21 |
22 |     public static var console: Chronicle = Chronicle(
   |                       |- warning: static property 'console' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'console' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'console' 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
23 |         label: "yarn.console.log.expectation",
24 |         formatter: Chronicle.DefaultFormatters.DefaultFormatter()
/Users/admin/builder/spi-builder-workspace/Sources/Yarn/Yarn.swift:31:28: warning: reference to static property 'errorEmoji' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
29 |     )
30 |     .func { console in
31 |         Chronicle.LogLevel.errorEmoji = "❌"
   |                            `- warning: reference to static property 'errorEmoji' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
32 |         return console
33 |     }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Chronicle/Sources/Chronicle/Chronicle.swift:24:27: note: static property declared here
22 |         public static var infoEmoji: String = "ℹ️"
23 |         public static var warningEmoji: String = "⚠️"
24 |         public static var errorEmoji: String = "❗️"
   |                           `- note: static property declared here
25 |         public static var fatalEmoji: String = "🚨"
26 |
[24/24] Compiling Yarn Yarn.swift
/Users/admin/builder/spi-builder-workspace/Sources/Yarn/Yarn.swift:4:1: warning: extension declares a conformance of imported type 'Chronicle' to imported protocols 'Fuable', 'Assertable', 'Tuplable', 'Functionable', 'Boolable', 'Modifiable', 'Printable'; this will not behave correctly if the owners of 'Chronicle' introduce this conformance in the future
 2 | import SwiftFu
 3 |
 4 | extension Chronicle: Fuable { }
   | |- warning: extension declares a conformance of imported type 'Chronicle' to imported protocols 'Fuable', 'Assertable', 'Tuplable', 'Functionable', 'Boolable', 'Modifiable', 'Printable'; this will not behave correctly if the owners of 'Chronicle' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
 5 | extension Chronicle.DefaultFormatters.DefaultFormatter: Fuable { }
 6 |
/Users/admin/builder/spi-builder-workspace/Sources/Yarn/Yarn.swift:5:1: warning: extension declares a conformance of imported type 'DefaultFormatter' to imported protocols 'Fuable', 'Assertable', 'Tuplable', 'Functionable', 'Boolable', 'Modifiable', 'Printable'; this will not behave correctly if the owners of 'Chronicle' introduce this conformance in the future
 3 |
 4 | extension Chronicle: Fuable { }
 5 | extension Chronicle.DefaultFormatters.DefaultFormatter: Fuable { }
   | |- warning: extension declares a conformance of imported type 'DefaultFormatter' to imported protocols 'Fuable', 'Assertable', 'Tuplable', 'Functionable', 'Boolable', 'Modifiable', 'Printable'; this will not behave correctly if the owners of 'Chronicle' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
 6 |
 7 | @dynamicMemberLookup
/Users/admin/builder/spi-builder-workspace/Sources/Yarn/Yarn.swift:22:23: warning: static property 'console' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
20 |     }
21 |
22 |     public static var console: Chronicle = Chronicle(
   |                       |- warning: static property 'console' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'console' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'console' 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
23 |         label: "yarn.console.log.expectation",
24 |         formatter: Chronicle.DefaultFormatters.DefaultFormatter()
/Users/admin/builder/spi-builder-workspace/Sources/Yarn/Yarn.swift:31:28: warning: reference to static property 'errorEmoji' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
29 |     )
30 |     .func { console in
31 |         Chronicle.LogLevel.errorEmoji = "❌"
   |                            `- warning: reference to static property 'errorEmoji' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
32 |         return console
33 |     }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Chronicle/Sources/Chronicle/Chronicle.swift:24:27: note: static property declared here
22 |         public static var infoEmoji: String = "ℹ️"
23 |         public static var warningEmoji: String = "⚠️"
24 |         public static var errorEmoji: String = "❗️"
   |                           `- note: static property declared here
25 |         public static var fatalEmoji: String = "🚨"
26 |
Build complete! (16.78s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "chronicle",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.2.3",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/0xLeif/Chronicle"
    },
    {
      "identity" : "swiftfu",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/0xLet/SwiftFu"
    }
  ],
  "manifest_display_name" : "Yarn",
  "name" : "Yarn",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Yarn",
      "targets" : [
        "Yarn"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "YarnTests",
      "module_type" : "SwiftTarget",
      "name" : "YarnTests",
      "path" : "Tests/YarnTests",
      "sources" : [
        "YarnTests.swift"
      ],
      "target_dependencies" : [
        "Yarn"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Yarn",
      "module_type" : "SwiftTarget",
      "name" : "Yarn",
      "path" : "Sources/Yarn",
      "product_dependencies" : [
        "Chronicle",
        "SwiftFu"
      ],
      "product_memberships" : [
        "Yarn"
      ],
      "sources" : [
        "Yarn.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.