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 Mapper, reference 10.0.1 (c8f848), with Swift 6.1 for Linux on 25 Apr 2025 20:54:13 UTC.

Swift 6 data race errors: 3

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -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 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/lyft/mapper.git
Reference: 10.0.1
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/lyft/mapper
 * tag               10.0.1     -> FETCH_HEAD
HEAD is now at c8f848c Bump version to 10.0.1
Cloned https://github.com/lyft/mapper.git
Revision (git rev-parse @):
c8f848c8a496e8dbfafa4fba5bb44723bacbe853
SUCCESS checkout https://github.com/lyft/mapper.git at 10.0.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/lyft/mapper.git
https://github.com/lyft/mapper.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Mapper",
  "name" : "Mapper",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Mapper",
      "targets" : [
        "Mapper"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MapperTests",
      "module_type" : "SwiftTarget",
      "name" : "MapperTests",
      "path" : "Tests/MapperTests",
      "sources" : [
        "ConvertibleValueTests.swift",
        "CustomTransformationTests.swift",
        "ErrorTests.swift",
        "InitializerTests.swift",
        "JSONSerializationIntegrationTests.swift",
        "MappableValueTests.swift",
        "NormalValueTests.swift",
        "OptionalValueTests.swift",
        "RawRepresentibleValueTests.swift",
        "TransformTests.swift"
      ],
      "target_dependencies" : [
        "Mapper"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Mapper",
      "module_type" : "SwiftTarget",
      "name" : "Mapper",
      "path" : "Sources",
      "product_memberships" : [
        "Mapper"
      ],
      "sources" : [
        "Convertible.swift",
        "DefaultConvertible.swift",
        "Defaults+Convertible.swift",
        "Float+Convertible.swift",
        "Mappable.swift",
        "Mapper.swift",
        "MapperError.swift",
        "NSDictionary+Safety.swift",
        "Transform+Dictionary.swift",
        "Transform.swift",
        "URL+Convertible.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -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 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/13] Compiling Mapper Transform.swift
[4/14] Emitting module Mapper
/host/spi-builder-workspace/Sources/MapperError.swift:12:10: warning: associated value 'convertibleError(value:type:)' of 'Sendable'-conforming enum 'MapperError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
10 | /// - TypeMismatchError:    Thrown when the key exists in the JSON, but does not match the expected type
11 | public enum MapperError: Error {
12 |     case convertibleError(value: Any?, type: Any.Type)
   |          `- warning: associated value 'convertibleError(value:type:)' of 'Sendable'-conforming enum 'MapperError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
13 |     case customError(field: String?, message: String)
14 |     case invalidRawValueError(field: String, value: Any, type: Any.Type)
/host/spi-builder-workspace/Sources/MapperError.swift:14:10: warning: associated value 'invalidRawValueError(field:value:type:)' of 'Sendable'-conforming enum 'MapperError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
12 |     case convertibleError(value: Any?, type: Any.Type)
13 |     case customError(field: String?, message: String)
14 |     case invalidRawValueError(field: String, value: Any, type: Any.Type)
   |          `- warning: associated value 'invalidRawValueError(field:value:type:)' of 'Sendable'-conforming enum 'MapperError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
15 |     case missingFieldError(field: String)
16 |     case typeMismatchError(field: String, value: Any, type: Any.Type)
/host/spi-builder-workspace/Sources/MapperError.swift:16:10: warning: associated value 'typeMismatchError(field:value:type:)' of 'Sendable'-conforming enum 'MapperError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
14 |     case invalidRawValueError(field: String, value: Any, type: Any.Type)
15 |     case missingFieldError(field: String)
16 |     case typeMismatchError(field: String, value: Any, type: Any.Type)
   |          `- warning: associated value 'typeMismatchError(field:value:type:)' of 'Sendable'-conforming enum 'MapperError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
17 | }
18 |
[5/14] Compiling Mapper Transform+Dictionary.swift
[6/14] Compiling Mapper NSDictionary+Safety.swift
[7/14] Compiling Mapper MapperError.swift
/host/spi-builder-workspace/Sources/MapperError.swift:12:10: warning: associated value 'convertibleError(value:type:)' of 'Sendable'-conforming enum 'MapperError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
10 | /// - TypeMismatchError:    Thrown when the key exists in the JSON, but does not match the expected type
11 | public enum MapperError: Error {
12 |     case convertibleError(value: Any?, type: Any.Type)
   |          `- warning: associated value 'convertibleError(value:type:)' of 'Sendable'-conforming enum 'MapperError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
13 |     case customError(field: String?, message: String)
14 |     case invalidRawValueError(field: String, value: Any, type: Any.Type)
/host/spi-builder-workspace/Sources/MapperError.swift:14:10: warning: associated value 'invalidRawValueError(field:value:type:)' of 'Sendable'-conforming enum 'MapperError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
12 |     case convertibleError(value: Any?, type: Any.Type)
13 |     case customError(field: String?, message: String)
14 |     case invalidRawValueError(field: String, value: Any, type: Any.Type)
   |          `- warning: associated value 'invalidRawValueError(field:value:type:)' of 'Sendable'-conforming enum 'MapperError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
15 |     case missingFieldError(field: String)
16 |     case typeMismatchError(field: String, value: Any, type: Any.Type)
/host/spi-builder-workspace/Sources/MapperError.swift:16:10: warning: associated value 'typeMismatchError(field:value:type:)' of 'Sendable'-conforming enum 'MapperError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
14 |     case invalidRawValueError(field: String, value: Any, type: Any.Type)
15 |     case missingFieldError(field: String)
16 |     case typeMismatchError(field: String, value: Any, type: Any.Type)
   |          `- warning: associated value 'typeMismatchError(field:value:type:)' of 'Sendable'-conforming enum 'MapperError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
17 | }
18 |
[8/14] Compiling Mapper Mappable.swift
[9/14] Compiling Mapper Mapper.swift
[10/14] Compiling Mapper Convertible.swift
[11/14] Compiling Mapper DefaultConvertible.swift
[12/14] Compiling Mapper Defaults+Convertible.swift
[13/14] Compiling Mapper Float+Convertible.swift
[14/14] Compiling Mapper URL+Convertible.swift
Build complete! (9.91s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Mapper",
  "name" : "Mapper",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Mapper",
      "targets" : [
        "Mapper"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MapperTests",
      "module_type" : "SwiftTarget",
      "name" : "MapperTests",
      "path" : "Tests/MapperTests",
      "sources" : [
        "ConvertibleValueTests.swift",
        "CustomTransformationTests.swift",
        "ErrorTests.swift",
        "InitializerTests.swift",
        "JSONSerializationIntegrationTests.swift",
        "MappableValueTests.swift",
        "NormalValueTests.swift",
        "OptionalValueTests.swift",
        "RawRepresentibleValueTests.swift",
        "TransformTests.swift"
      ],
      "target_dependencies" : [
        "Mapper"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Mapper",
      "module_type" : "SwiftTarget",
      "name" : "Mapper",
      "path" : "Sources",
      "product_memberships" : [
        "Mapper"
      ],
      "sources" : [
        "Convertible.swift",
        "DefaultConvertible.swift",
        "Defaults+Convertible.swift",
        "Float+Convertible.swift",
        "Mappable.swift",
        "Mapper.swift",
        "MapperError.swift",
        "NSDictionary+Safety.swift",
        "Transform+Dictionary.swift",
        "Transform.swift",
        "URL+Convertible.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Done.