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 1.0.0 (a7e408), with Swift 6.0 for Linux on 31 Oct 2024 13:45:58 UTC.

Swift 6 data race errors: 2

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/danielr/Mokka.git
Reference: 1.0.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/danielr/Mokka
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at a7e4085 Set version to 1.0.0
Cloned https://github.com/danielr/Mokka.git
Revision (git rev-parse @):
a7e408507d8700f0524c1479d49fb15659a44db1
SUCCESS checkout https://github.com/danielr/Mokka.git at 1.0.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/danielr/Mokka.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/6] Compiling Mokka PropertyMock.swift
[4/6] Emitting module Mokka
/host/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 {
/host/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] Compiling Mokka ReturningFunctionMock.swift
/host/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 {
/host/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! (8.43s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Mokka",
  "name" : "Mokka",
  "path" : "/host/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"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.