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 LocalizationToolkitObjectMapper, reference develop (782ede), with Swift 6.0 for Linux on 31 Oct 2024 17:45:53 UTC.

Swift 6 data race errors: 1

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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/Digipolitan/localization-toolkit-object-mapper.git
Reference: develop
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/Digipolitan/localization-toolkit-object-mapper
 * branch            develop    -> FETCH_HEAD
 * [new branch]      develop    -> origin/develop
HEAD is now at 782edee Merge branch 'release/1.0.1' into develop
Cloned https://github.com/Digipolitan/localization-toolkit-object-mapper.git
Revision (git rev-parse @):
782edee3a9c83be736a9c824fa67ebdd2df33b44
SUCCESS checkout https://github.com/Digipolitan/localization-toolkit-object-mapper.git at develop
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/Digipolitan/localization-toolkit-object-mapper.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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
Fetching https://github.com/Digipolitan/localization-toolkit.git
Fetching https://github.com/Hearst-DD/ObjectMapper.git
[1/467] Fetching localization-toolkit
[356/6800] Fetching localization-toolkit, objectmapper
Fetched https://github.com/Digipolitan/localization-toolkit.git from cache (0.30s)
Fetched https://github.com/Hearst-DD/ObjectMapper.git from cache (0.30s)
Computing version for https://github.com/Digipolitan/localization-toolkit.git
Computed https://github.com/Digipolitan/localization-toolkit.git at 1.3.0 (1.82s)
Computing version for https://github.com/Hearst-DD/ObjectMapper.git
Computed https://github.com/Hearst-DD/ObjectMapper.git at 3.5.3 (1.83s)
Creating working copy for https://github.com/Hearst-DD/ObjectMapper.git
Working copy of https://github.com/Hearst-DD/ObjectMapper.git resolved at 3.5.3
Creating working copy for https://github.com/Digipolitan/localization-toolkit.git
Working copy of https://github.com/Digipolitan/localization-toolkit.git resolved at 1.3.0
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/31] Emitting module ObjectMapper
[6/34] Emitting module LocalizationToolkit
[7/34] Compiling ObjectMapper TransformOperators.swift
[8/34] Compiling ObjectMapper TransformType.swift
[9/34] Compiling ObjectMapper URLTransform.swift
[10/34] Compiling LocalizationToolkit String+Localization.swift
[11/34] Compiling ObjectMapper IntegerOperators.swift
[12/34] Compiling ObjectMapper Map.swift
[13/34] Compiling ObjectMapper MapError.swift
[14/34] Compiling ObjectMapper Operators.swift
[15/34] Compiling ObjectMapper ToJSON.swift
[16/34] Compiling ObjectMapper TransformOf.swift
[17/34] Compiling LocalizationToolkit Bundle+Localization.swift
[18/34] Compiling LocalizationToolkit Localization.swift
[19/34] Compiling LocalizationToolkit MultilingualString.swift
[20/34] Compiling ObjectMapper CodableTransform.swift
[21/34] Compiling ObjectMapper CustomDateFormatTransform.swift
[22/34] Compiling ObjectMapper DataTransform.swift
[23/34] Compiling ObjectMapper Mappable.swift
[24/34] Compiling ObjectMapper Mapper.swift
[25/34] Compiling ObjectMapper NSDecimalNumberTransform.swift
[26/34] Compiling ObjectMapper DateFormatterTransform.swift
[27/34] Compiling ObjectMapper DateTransform.swift
[28/34] Compiling ObjectMapper DictionaryTransform.swift
[29/34] Compiling ObjectMapper EnumOperators.swift
[30/34] Compiling ObjectMapper EnumTransform.swift
[31/34] Compiling ObjectMapper FromJSON.swift
[32/34] Compiling ObjectMapper HexColorTransform.swift
[33/34] Compiling ObjectMapper ISO8601DateTransform.swift
[34/34] Compiling ObjectMapper ImmutableMappable.swift
[37/38] Compiling LocalizationToolkitObjectMapper MultilingualStringTransform.swift
/host/spi-builder-workspace/Sources/LocalizationToolkitObjectMapper/MultilingualStringTransform.swift:9:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MultilingualStringTransform' may have shared mutable state; this is an error in the Swift 6 language mode
 2 | import ObjectMapper
 3 |
 4 | public class MultilingualStringTransform: TransformType {
   |              `- note: class 'MultilingualStringTransform' does not conform to the 'Sendable' protocol
 5 |
 6 |     public typealias Object = MultilingualString
 7 |     public typealias JSON = String
 8 |
 9 |     public static let shared = MultilingualStringTransform()
   |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MultilingualStringTransform' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |
11 |     private init() { }
[38/38] Emitting module LocalizationToolkitObjectMapper
/host/spi-builder-workspace/Sources/LocalizationToolkitObjectMapper/MultilingualStringTransform.swift:9:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MultilingualStringTransform' may have shared mutable state; this is an error in the Swift 6 language mode
 2 | import ObjectMapper
 3 |
 4 | public class MultilingualStringTransform: TransformType {
   |              `- note: class 'MultilingualStringTransform' does not conform to the 'Sendable' protocol
 5 |
 6 |     public typealias Object = MultilingualString
 7 |     public typealias JSON = String
 8 |
 9 |     public static let shared = MultilingualStringTransform()
   |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'MultilingualStringTransform' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |
11 |     private init() { }
Build complete! (28.01s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "localization-toolkit",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.1.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Digipolitan/localization-toolkit.git"
    },
    {
      "identity" : "objectmapper",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "3.0.0",
            "upper_bound" : "4.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Hearst-DD/ObjectMapper.git"
    }
  ],
  "manifest_display_name" : "LocalizationToolkitObjectMapper",
  "name" : "LocalizationToolkitObjectMapper",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "LocalizationToolkitObjectMapper",
      "targets" : [
        "LocalizationToolkitObjectMapper"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "LocalizationToolkitObjectMapperTests",
      "module_type" : "SwiftTarget",
      "name" : "LocalizationToolkitObjectMapperTests",
      "path" : "Tests/LocalizationToolkitObjectMapperTests",
      "sources" : [
        "LocalizationToolkitObjectMapperTests.swift",
        "Model.swift"
      ],
      "target_dependencies" : [
        "LocalizationToolkitObjectMapper"
      ],
      "type" : "test"
    },
    {
      "c99name" : "LocalizationToolkitObjectMapper",
      "module_type" : "SwiftTarget",
      "name" : "LocalizationToolkitObjectMapper",
      "path" : "Sources/LocalizationToolkitObjectMapper",
      "product_dependencies" : [
        "LocalizationToolkit",
        "ObjectMapper"
      ],
      "product_memberships" : [
        "LocalizationToolkitObjectMapper"
      ],
      "sources" : [
        "MultilingualStringTransform.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.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.