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 deep-codable, reference main (079afb), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 14:19:55 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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/MPLew-is/deep-codable.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/MPLew-is/deep-codable
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 079afbc Merge pull request #1 from MPLew-is/flattened-intermediate-keys
Cloned https://github.com/MPLew-is/deep-codable.git
Revision (git rev-parse @):
079afbc0f7667299d58eae076224abbc7f677a4f
SUCCESS checkout https://github.com/MPLew-is/deep-codable.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": "deep-codable",
      "name": "deep-codable",
      "url": "https://github.com/MPLew-is/deep-codable.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/deep-codable",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/MPLew-is/deep-codable.git
[1/83] Fetching deep-codable
Fetched https://github.com/MPLew-is/deep-codable.git from cache (0.77s)
Creating working copy for https://github.com/MPLew-is/deep-codable.git
Working copy of https://github.com/MPLew-is/deep-codable.git resolved at main (079afbc)
warning: '.resolve-product-dependencies': dependency 'deep-codable' 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/MPLew-is/deep-codable.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/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/9] Compiling DeepCodable Value.swift
/Users/admin/builder/spi-builder-workspace/Sources/DeepCodable/Value.swift:16:28: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
  5 | */
  6 | @propertyWrapper
  7 | public struct DeepCodingValue<Value> {
    |                               `- note: 'Value' previously declared here
  8 | 	/**
  9 | 	Simple reference-semantics storage container for the property wrapper, to sidestep `KeyPath` limitations
    :
 14 | 	By storing a reference to a class (and declaring the `set` implementation on `wrappedValue` as `nonmutating`), we can successfully write values to the underlying storage without mutating the actual wrapper struct, thus giving our users a simpler interface for declaring values to decode.
 15 | 	*/
 16 | 	fileprivate class Storage<Value> {
    |                            `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 17 | 		/// Simple enum indicating the storage's initialization state
 18 | 		fileprivate enum Wrapped<Value> {
/Users/admin/builder/spi-builder-workspace/Sources/DeepCodable/Value.swift:18:28: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
  5 | */
  6 | @propertyWrapper
  7 | public struct DeepCodingValue<Value> {
    |                               `- note: 'Value' previously declared here
  8 | 	/**
  9 | 	Simple reference-semantics storage container for the property wrapper, to sidestep `KeyPath` limitations
    :
 16 | 	fileprivate class Storage<Value> {
 17 | 		/// Simple enum indicating the storage's initialization state
 18 | 		fileprivate enum Wrapped<Value> {
    |                            `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 19 | 			case empty
 20 | 			case value(Value)
[4/9] Emitting module DeepCodable
/Users/admin/builder/spi-builder-workspace/Sources/DeepCodable/Tree.swift:20:28: warning: generic parameter 'Root' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 15 | ```
 16 | */
 17 | public struct DeepCodingTree<Root> {
    |                              `- note: 'Root' previously declared here
 18 | 	/// Helper object to enable result builder syntax for defining a coding tree
 19 | 	@resultBuilder
 20 | 	public struct TreeBuilder<Root> {
    |                            `- warning: generic parameter 'Root' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 21 | 		/// Shortcut alias for the type of a node in the tree
 22 | 		public typealias Node = DeepCodingNode<Root>
/Users/admin/builder/spi-builder-workspace/Sources/DeepCodable/Value.swift:16:28: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
  5 | */
  6 | @propertyWrapper
  7 | public struct DeepCodingValue<Value> {
    |                               `- note: 'Value' previously declared here
  8 | 	/**
  9 | 	Simple reference-semantics storage container for the property wrapper, to sidestep `KeyPath` limitations
    :
 14 | 	By storing a reference to a class (and declaring the `set` implementation on `wrappedValue` as `nonmutating`), we can successfully write values to the underlying storage without mutating the actual wrapper struct, thus giving our users a simpler interface for declaring values to decode.
 15 | 	*/
 16 | 	fileprivate class Storage<Value> {
    |                            `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 17 | 		/// Simple enum indicating the storage's initialization state
 18 | 		fileprivate enum Wrapped<Value> {
/Users/admin/builder/spi-builder-workspace/Sources/DeepCodable/Value.swift:18:28: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
  5 | */
  6 | @propertyWrapper
  7 | public struct DeepCodingValue<Value> {
    |                               `- note: 'Value' previously declared here
  8 | 	/**
  9 | 	Simple reference-semantics storage container for the property wrapper, to sidestep `KeyPath` limitations
    :
 16 | 	fileprivate class Storage<Value> {
 17 | 		/// Simple enum indicating the storage's initialization state
 18 | 		fileprivate enum Wrapped<Value> {
    |                            `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 19 | 			case empty
 20 | 			case value(Value)
[5/9] Compiling DeepCodable Decodable.swift
[6/9] Compiling DeepCodable Codable.swift
[7/9] Compiling DeepCodable Tree.swift
/Users/admin/builder/spi-builder-workspace/Sources/DeepCodable/Tree.swift:20:28: warning: generic parameter 'Root' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 15 | ```
 16 | */
 17 | public struct DeepCodingTree<Root> {
    |                              `- note: 'Root' previously declared here
 18 | 	/// Helper object to enable result builder syntax for defining a coding tree
 19 | 	@resultBuilder
 20 | 	public struct TreeBuilder<Root> {
    |                            `- warning: generic parameter 'Root' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 21 | 		/// Shortcut alias for the type of a node in the tree
 22 | 		public typealias Node = DeepCodingNode<Root>
[8/9] Compiling DeepCodable Encodable.swift
[9/9] Compiling DeepCodable Node.swift
Build complete! (3.04s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "deep-codable",
  "name" : "deep-codable",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "DeepCodable",
      "targets" : [
        "DeepCodable"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "DeepCodableTests",
      "module_type" : "SwiftTarget",
      "name" : "DeepCodableTests",
      "path" : "Tests/DeepCodableTests",
      "sources" : [
        "BareEncodingTests.swift",
        "DecodingTests.swift",
        "RealWorldDecodingTests.swift",
        "WrappedEncodingTests.swift"
      ],
      "target_dependencies" : [
        "DeepCodable"
      ],
      "type" : "test"
    },
    {
      "c99name" : "DeepCodable",
      "module_type" : "SwiftTarget",
      "name" : "DeepCodable",
      "path" : "Sources/DeepCodable",
      "product_memberships" : [
        "DeepCodable"
      ],
      "sources" : [
        "Codable.swift",
        "Decodable.swift",
        "Encodable.swift",
        "Node.swift",
        "Tree.swift",
        "Value.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.4"
}
Done.