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 Mokka, reference master (601c0d), with Swift 6.0 for macOS (SPM) on 31 Oct 2024 13:52:30 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/danielr/Mokka.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/danielr/Mokka
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 601c0db Fix center alignment in readme
Cloned https://github.com/danielr/Mokka.git
Revision (git rev-parse @):
601c0dbb6f52f7d6f8dc70cc384732a780cba6d6
SUCCESS checkout https://github.com/danielr/Mokka.git at master
========================================
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": "mokka",
      "name": "Mokka",
      "url": "https://github.com/danielr/Mokka.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Mokka",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/danielr/Mokka.git
[1/307] Fetching mokka
Fetched https://github.com/danielr/Mokka.git from cache (0.76s)
Creating working copy for https://github.com/danielr/Mokka.git
Working copy of https://github.com/danielr/Mokka.git resolved at master (601c0db)
warning: '.resolve-product-dependencies': dependency 'mokka' 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/danielr/Mokka.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/6] Compiling Mokka PropertyMock.swift
[4/6] Compiling Mokka ReturningFunctionMock.swift
/Users/admin/builder/spi-builder-workspace/Mokka/Sources/FunctionMock/ReturningFunctionMock.swift:120:32: warning: generic parameter 'Args' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 38 | ///     let doSomethingFunc = ReturningFunctionMock<(String, [Int]), Int>(name: "doSomething(arg1:arg2:)")
 39 | ///
 40 | public class ReturningFunctionMock<Args, ReturnValue>: FunctionMock<Args> {
    |                                    `- note: 'Args' previously declared here
 41 |
 42 |     private var stubs: [FunctionStub<Args, ReturnValue>] = []
    :
118 |     /// Used internally to represent a static or dynamic stubbed return
119 |     /// value with an optional condition.
120 |     private class FunctionStub<Args, ReturnValue> {
    |                                `- warning: generic parameter 'Args' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
121 |
122 |         private enum Mode {
/Users/admin/builder/spi-builder-workspace/Mokka/Sources/FunctionMock/ReturningFunctionMock.swift:120:38: warning: generic parameter 'ReturnValue' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 38 | ///     let doSomethingFunc = ReturningFunctionMock<(String, [Int]), Int>(name: "doSomething(arg1:arg2:)")
 39 | ///
 40 | public class ReturningFunctionMock<Args, ReturnValue>: FunctionMock<Args> {
    |                                          `- note: 'ReturnValue' previously declared here
 41 |
 42 |     private var stubs: [FunctionStub<Args, ReturnValue>] = []
    :
118 |     /// Used internally to represent a static or dynamic stubbed return
119 |     /// value with an optional condition.
120 |     private class FunctionStub<Args, ReturnValue> {
    |                                      `- warning: generic parameter 'ReturnValue' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
121 |
122 |         private enum Mode {
[5/6] Compiling Mokka FunctionMock.swift
[6/6] Emitting module Mokka
/Users/admin/builder/spi-builder-workspace/Mokka/Sources/FunctionMock/ReturningFunctionMock.swift:120:32: warning: generic parameter 'Args' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 38 | ///     let doSomethingFunc = ReturningFunctionMock<(String, [Int]), Int>(name: "doSomething(arg1:arg2:)")
 39 | ///
 40 | public class ReturningFunctionMock<Args, ReturnValue>: FunctionMock<Args> {
    |                                    `- note: 'Args' previously declared here
 41 |
 42 |     private var stubs: [FunctionStub<Args, ReturnValue>] = []
    :
118 |     /// Used internally to represent a static or dynamic stubbed return
119 |     /// value with an optional condition.
120 |     private class FunctionStub<Args, ReturnValue> {
    |                                `- warning: generic parameter 'Args' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
121 |
122 |         private enum Mode {
/Users/admin/builder/spi-builder-workspace/Mokka/Sources/FunctionMock/ReturningFunctionMock.swift:120:38: warning: generic parameter 'ReturnValue' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 38 | ///     let doSomethingFunc = ReturningFunctionMock<(String, [Int]), Int>(name: "doSomething(arg1:arg2:)")
 39 | ///
 40 | public class ReturningFunctionMock<Args, ReturnValue>: FunctionMock<Args> {
    |                                          `- note: 'ReturnValue' previously declared here
 41 |
 42 |     private var stubs: [FunctionStub<Args, ReturnValue>] = []
    :
118 |     /// Used internally to represent a static or dynamic stubbed return
119 |     /// value with an optional condition.
120 |     private class FunctionStub<Args, ReturnValue> {
    |                                      `- warning: generic parameter 'ReturnValue' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
121 |
122 |         private enum Mode {
Build complete! (6.41s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Mokka",
  "name" : "Mokka",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Mokka",
      "targets" : [
        "Mokka"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MokkaTests",
      "module_type" : "SwiftTarget",
      "name" : "MokkaTests",
      "path" : "Mokka/Tests",
      "sources" : [
        "FunctionMock/FunctionMockTests.swift",
        "FunctionMock/ReturningFunctionMockTests.swift",
        "PropertyMock/PropertyMockTests.swift"
      ],
      "target_dependencies" : [
        "Mokka"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Mokka",
      "module_type" : "SwiftTarget",
      "name" : "Mokka",
      "path" : "Mokka/Sources",
      "product_memberships" : [
        "Mokka"
      ],
      "sources" : [
        "FunctionMock/FunctionMock.swift",
        "FunctionMock/ReturningFunctionMock.swift",
        "PropertyMock/PropertyMock.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.