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 FilRepSwift, reference main (c1d7ca), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 12:08:53 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.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/chrisvander/FilRepSwift.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/chrisvander/FilRepSwift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at c1d7ca0 Create swift.yml
Cloned https://github.com/chrisvander/FilRepSwift.git
Revision (git rev-parse @):
c1d7ca04924b51693d50555c40192dd52c98464c
SUCCESS checkout https://github.com/chrisvander/FilRepSwift.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": "filrepswift",
      "name": "FilRepSwift",
      "url": "https://github.com/chrisvander/FilRepSwift.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/FilRepSwift",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/chrisvander/FilRepSwift.git
[1/49] Fetching filrepswift
Fetched https://github.com/chrisvander/FilRepSwift.git from cache (0.72s)
Creating working copy for https://github.com/chrisvander/FilRepSwift.git
Working copy of https://github.com/chrisvander/FilRepSwift.git resolved at main (c1d7ca0)
warning: '.resolve-product-dependencies': dependency 'filrepswift' 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/chrisvander/FilRepSwift.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 -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--7754E27361AE5C74.txt
[3/5] Compiling FilRepSwift Miner.swift
[4/5] Compiling FilRepSwift FilRepSwift.swift
/Users/admin/builder/spi-builder-workspace/Sources/FilRepSwift/FilRepSwift.swift:59:17: warning: capture of 'completion' with non-sendable type '(Result<[Miner], any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 57 |         let task = URLSession.shared.dataTask(with: url) { data, response, error in
 58 |             if (error != nil) {
 59 |                 completion(Result.failure(error!))
    |                 |- warning: capture of 'completion' with non-sendable type '(Result<[Miner], any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 60 |             }
 61 |             do {
/Users/admin/builder/spi-builder-workspace/Sources/FilRepSwift/FilRepSwift.swift:62:42: warning: capture of 'self' with non-sendable type 'FilRepSwift' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  2 |
  3 | @available(macOS 10.15, *)
  4 | public struct FilRepSwift {
    |               `- note: consider making struct 'FilRepSwift' conform to the 'Sendable' protocol
  5 |     let apiUrl: String = "https://api.filrep.io/api/v1/miners"
  6 |
    :
 60 |             }
 61 |             do {
 62 |                 let filRepResponse = try self.getJSONDecoder().decode(FilRepResponse.self, from: data!)
    |                                          `- warning: capture of 'self' with non-sendable type 'FilRepSwift' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 63 |                 completion(Result.success(filRepResponse.miners))
 64 |             } catch {
[5/5] Emitting module FilRepSwift
Build complete! (6.10s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "FilRepSwift",
  "name" : "FilRepSwift",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "7.0"
    }
  ],
  "products" : [
    {
      "name" : "FilRepSwift",
      "targets" : [
        "FilRepSwift"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FilRepSwiftTests",
      "module_type" : "SwiftTarget",
      "name" : "FilRepSwiftTests",
      "path" : "Tests/FilRepSwiftTests",
      "sources" : [
        "FilRepSwiftTests.swift"
      ],
      "target_dependencies" : [
        "FilRepSwift"
      ],
      "type" : "test"
    },
    {
      "c99name" : "FilRepSwift",
      "module_type" : "SwiftTarget",
      "name" : "FilRepSwift",
      "path" : "Sources/FilRepSwift",
      "product_memberships" : [
        "FilRepSwift"
      ],
      "sources" : [
        "FilRepSwift.swift",
        "Miner.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.