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 Light, reference 0.3.0 (6c3557), with Swift 6.0 for macOS (SPM) on 29 Nov 2024 07:16:26 UTC.

Swift 6 data race errors: 0

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.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/dreymonde/light.git
Reference: 0.3.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/dreymonde/light
 * tag               0.3.0      -> FETCH_HEAD
HEAD is now at 6c3557b rename to HTTPProxy
Cloned https://github.com/dreymonde/light.git
Revision (git rev-parse @):
6c3557b2618ac629160aa21bac85e6f44857c208
SUCCESS checkout https://github.com/dreymonde/light.git at 0.3.0
Fetching https://github.com/dreymonde/Shallows.git
[1/1076] Fetching shallows
Fetched https://github.com/dreymonde/Shallows.git from cache (0.87s)
Computing version for https://github.com/dreymonde/Shallows.git
Computed https://github.com/dreymonde/Shallows.git at 0.13.4 (2.51s)
Creating working copy for https://github.com/dreymonde/Shallows.git
Working copy of https://github.com/dreymonde/Shallows.git resolved at 0.13.4
========================================
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": "light",
      "name": "Light",
      "url": "https://github.com/dreymonde/light.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/light",
      "dependencies": [
        {
          "identity": "shallows",
          "name": "Shallows",
          "url": "https://github.com/dreymonde/Shallows.git",
          "version": "0.13.4",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Shallows",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/dreymonde/light.git
[1/75] Fetching light
Fetched https://github.com/dreymonde/light.git from cache (0.57s)
Fetching https://github.com/dreymonde/Shallows.git from cache
Fetched https://github.com/dreymonde/Shallows.git from cache (0.44s)
Computing version for https://github.com/dreymonde/Shallows.git
Computed https://github.com/dreymonde/Shallows.git at 0.13.4 (0.02s)
Creating working copy for https://github.com/dreymonde/light.git
Working copy of https://github.com/dreymonde/light.git resolved at 0.3.0 (6c3557b)
Creating working copy for https://github.com/dreymonde/Shallows.git
Working copy of https://github.com/dreymonde/Shallows.git resolved at 0.13.4
warning: '.resolve-product-dependencies': dependency 'light' is not used by any target
Found 1 product dependencies
  - Shallows
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/dreymonde/light.git
{
  "dependencies" : [
    {
      "identity" : "shallows",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.11.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/dreymonde/Shallows.git"
    }
  ],
  "manifest_display_name" : "Light",
  "name" : "Light",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Light",
      "targets" : [
        "Light"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "LightTests",
      "module_type" : "SwiftTarget",
      "name" : "LightTests",
      "path" : "Tests/LightTests",
      "sources" : [
        "LightTests.swift"
      ],
      "target_dependencies" : [
        "Light"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Light",
      "module_type" : "SwiftTarget",
      "name" : "Light",
      "path" : "Sources/Light",
      "product_dependencies" : [
        "Shallows"
      ],
      "product_memberships" : [
        "Light"
      ],
      "sources" : [
        "Light.swift",
        "URLSession+WebAPI.swift",
        "WebAPI.swift",
        "WebAPIProtocol.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
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/3] Write sources
[2/3] Write swift-version--7754E27361AE5C74.txt
[4/17] Compiling Shallows SyncStorage.swift
[5/17] Compiling Shallows WriteOnlyStorage.swift
[6/18] Compiling Shallows Zip.swift
[7/18] Compiling Shallows Storage.swift
[8/18] Compiling Shallows ShallowsResult.swift
[9/18] Compiling Shallows Shallows.swift
[10/18] Compiling Shallows Filename.swift
[11/18] Compiling Shallows MemoryStorage.swift
[12/18] Compiling Shallows NSCacheStorage.swift
[13/18] Compiling Shallows ReadOnlyStorage.swift
[14/18] Compiling Shallows Async.swift
[15/18] Compiling Shallows Composition.swift
[16/18] Emitting module Shallows
[17/18] Compiling Shallows DiskExtensions.swift
[18/18] Compiling Shallows DiskStorage.swift
[19/23] Compiling Light WebAPI.swift
[20/23] Compiling Light WebAPIProtocol.swift
[21/23] Compiling Light URLSession+WebAPI.swift
/Users/admin/builder/spi-builder-workspace/Sources/Light/URLSession+WebAPI.swift:11:1: warning: extension declares a conformance of imported type 'URLSession' to imported protocols 'ReadOnlyStorageProtocol', 'ReadableStorageProtocol', 'StorageDesign'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
  9 | import Shallows
 10 |
 11 | extension URLSession : ReadOnlyStorageProtocol {
    | |- warning: extension declares a conformance of imported type 'URLSession' to imported protocols 'ReadOnlyStorageProtocol', 'ReadableStorageProtocol', 'StorageDesign'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 12 |
 13 |     public typealias Request = WebAPI.Request
/Users/admin/builder/spi-builder-workspace/Sources/Light/URLSession+WebAPI.swift:41:64: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 39 |         switch request {
 40 |         case .url(let url):
 41 |             task = self.dataTask(with: url, completionHandler: completionHandler)
    |                                                                `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 42 |         case .urlRequest(let request):
 43 |             task = self.dataTask(with: request, completionHandler: completionHandler)
/Users/admin/builder/spi-builder-workspace/Sources/Light/URLSession+WebAPI.swift:43:68: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 41 |             task = self.dataTask(with: url, completionHandler: completionHandler)
 42 |         case .urlRequest(let request):
 43 |             task = self.dataTask(with: request, completionHandler: completionHandler)
    |                                                                    `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
 44 |         }
 45 |         task.resume()
[22/23] Emitting module Light
/Users/admin/builder/spi-builder-workspace/Sources/Light/URLSession+WebAPI.swift:11:1: warning: extension declares a conformance of imported type 'URLSession' to imported protocols 'ReadOnlyStorageProtocol', 'ReadableStorageProtocol', 'StorageDesign'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
  9 | import Shallows
 10 |
 11 | extension URLSession : ReadOnlyStorageProtocol {
    | |- warning: extension declares a conformance of imported type 'URLSession' to imported protocols 'ReadOnlyStorageProtocol', 'ReadableStorageProtocol', 'StorageDesign'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 12 |
 13 |     public typealias Request = WebAPI.Request
[23/23] Compiling Light Light.swift
Build complete! (14.85s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "shallows",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.11.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/dreymonde/Shallows.git"
    }
  ],
  "manifest_display_name" : "Light",
  "name" : "Light",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Light",
      "targets" : [
        "Light"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "LightTests",
      "module_type" : "SwiftTarget",
      "name" : "LightTests",
      "path" : "Tests/LightTests",
      "sources" : [
        "LightTests.swift"
      ],
      "target_dependencies" : [
        "Light"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Light",
      "module_type" : "SwiftTarget",
      "name" : "Light",
      "path" : "Sources/Light",
      "product_dependencies" : [
        "Shallows"
      ],
      "product_memberships" : [
        "Light"
      ],
      "sources" : [
        "Light.swift",
        "URLSession+WebAPI.swift",
        "WebAPI.swift",
        "WebAPIProtocol.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Done.