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 LocaleSupport, reference main (c2dc01), with Swift 6.0 for Linux on 4 Nov 2024 09:55:34 UTC.

Swift 6 data race errors: 3

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-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/richardpiazza/LocaleSupport.git
Reference: main
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/richardpiazza/LocaleSupport
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at c2dc014 LocalizedStringConvertible (#10)
Cloned https://github.com/richardpiazza/LocaleSupport.git
Revision (git rev-parse @):
c2dc014d8ae8befc54a79f34dce7d23f3d6bef91
SUCCESS checkout https://github.com/richardpiazza/LocaleSupport.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/richardpiazza/LocaleSupport.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/9] Compiling LocaleSupport ScriptCode.swift
[4/9] Compiling LocaleSupport RegionCode.swift
/host/spi-builder-workspace/Sources/LocaleSupport/RegionCode.swift:262:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
260 |     case ZW
261 |
262 |     public static var `default`: Self = .US
    |                       |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'default' 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
263 | }
264 |
[5/9] Compiling LocaleSupport LocaleSupportConfiguration.swift
/host/spi-builder-workspace/Sources/LocaleSupport/LocaleSupportConfiguration.swift:7:23: warning: static property 'defaultIndicators' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
5 |
6 |     /// Characters that will be prepended/appended to any default `LocalizedStringConvertible` implementation.
7 |     public static var defaultIndicators: (prefix: Character, suffix: Character)?
  |                       |- warning: static property 'defaultIndicators' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  |                       |- note: convert 'defaultIndicators' to a 'let' constant to make 'Sendable' shared state immutable
  |                       |- note: annotate 'defaultIndicators' 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
8 | }
9 |
[6/9] Compiling LocaleSupport LocalizedStringConvertible.swift
/host/spi-builder-workspace/Sources/LocaleSupport/LocaleSupportConfiguration.swift:7:23: warning: static property 'defaultIndicators' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
5 |
6 |     /// Characters that will be prepended/appended to any default `LocalizedStringConvertible` implementation.
7 |     public static var defaultIndicators: (prefix: Character, suffix: Character)?
  |                       |- warning: static property 'defaultIndicators' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  |                       |- note: convert 'defaultIndicators' to a 'let' constant to make 'Sendable' shared state immutable
  |                       |- note: annotate 'defaultIndicators' 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
8 | }
9 |
[7/9] Compiling LocaleSupport LanguageCode.swift
/host/spi-builder-workspace/Sources/LocaleSupport/LanguageCode.swift:602:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
600 |     case zza
601 |
602 |     public static var `default`: Self = .en
    |                       |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'default' 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
603 | }
604 |
[8/9] Compiling LocaleSupport Locale+LocaleSupport.swift
/host/spi-builder-workspace/Sources/LocaleSupport/Locale+LocaleSupport.swift:100:1: warning: extension declares a conformance of imported type 'Locale' to imported protocol 'Identifiable'; this will not behave correctly if the owners of 'FoundationEssentials' introduce this conformance in the future
 98 | }
 99 |
100 | extension Locale: Identifiable {
    | |- warning: extension declares a conformance of imported type 'Locale' to imported protocol 'Identifiable'; this will not behave correctly if the owners of 'FoundationEssentials' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
101 |     public var id: String { identifier }
102 | }
[9/9] Emitting module LocaleSupport
/host/spi-builder-workspace/Sources/LocaleSupport/LanguageCode.swift:602:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
600 |     case zza
601 |
602 |     public static var `default`: Self = .en
    |                       |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'default' 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
603 | }
604 |
/host/spi-builder-workspace/Sources/LocaleSupport/Locale+LocaleSupport.swift:100:1: warning: extension declares a conformance of imported type 'Locale' to imported protocol 'Identifiable'; this will not behave correctly if the owners of 'FoundationEssentials' introduce this conformance in the future
 98 | }
 99 |
100 | extension Locale: Identifiable {
    | |- warning: extension declares a conformance of imported type 'Locale' to imported protocol 'Identifiable'; this will not behave correctly if the owners of 'FoundationEssentials' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
101 |     public var id: String { identifier }
102 | }
/host/spi-builder-workspace/Sources/LocaleSupport/LocaleSupportConfiguration.swift:7:23: warning: static property 'defaultIndicators' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
5 |
6 |     /// Characters that will be prepended/appended to any default `LocalizedStringConvertible` implementation.
7 |     public static var defaultIndicators: (prefix: Character, suffix: Character)?
  |                       |- warning: static property 'defaultIndicators' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  |                       |- note: convert 'defaultIndicators' to a 'let' constant to make 'Sendable' shared state immutable
  |                       |- note: annotate 'defaultIndicators' 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
8 | }
9 |
/host/spi-builder-workspace/Sources/LocaleSupport/RegionCode.swift:262:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
260 |     case ZW
261 |
262 |     public static var `default`: Self = .US
    |                       |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'default' 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
263 | }
264 |
Build complete! (9.84s)
Build complete.
{
  "default_localization" : "en",
  "dependencies" : [
  ],
  "manifest_display_name" : "LocaleSupport",
  "name" : "LocaleSupport",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "tvos",
      "version" : "12.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "LocaleSupport",
      "targets" : [
        "LocaleSupport"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "LocaleSupportTests",
      "module_type" : "SwiftTarget",
      "name" : "LocaleSupportTests",
      "path" : "Tests/LocaleSupportTests",
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Tests/LocaleSupportTests/Resources/en.lproj/Localizable.strings",
          "rule" : {
            "process" : {
              "localization" : "en"
            }
          }
        }
      ],
      "sources" : [
        "LocalizedStringConvertibleTests.swift",
        "LocalizedStrings.swift"
      ],
      "target_dependencies" : [
        "LocaleSupport"
      ],
      "type" : "test"
    },
    {
      "c99name" : "LocaleSupport",
      "module_type" : "SwiftTarget",
      "name" : "LocaleSupport",
      "path" : "Sources/LocaleSupport",
      "product_memberships" : [
        "LocaleSupport"
      ],
      "sources" : [
        "LanguageCode.swift",
        "Locale+LocaleSupport.swift",
        "LocaleSupportConfiguration.swift",
        "LocalizedStringConvertible.swift",
        "RegionCode.swift",
        "ScriptCode.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
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.