This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 with Swift 6.0 for Linux.

Swift 6 data race errors: 4

Build Command

bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" 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.40.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:  $workDir
https://github.com/richardpiazza/LocaleSupport.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" 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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/9] Compiling LocaleSupport ScriptCode.swift
[4/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 non-isolated 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 non-isolated 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:71:25: warning: static property 'english' is not concurrency-safe because non-'Sendable' type 'Locale' may have shared mutable state; this is an error in the Swift 6 language mode
 69 |
 70 | public extension Locale {
 71 |     internal static let english: Locale = Locale(identifier: "en")
    |                         `- warning: static property 'english' is not concurrency-safe because non-'Sendable' type 'Locale' may have shared mutable state; this is an error in the Swift 6 language mode
 72 |
 73 |     /// The US English language name
Foundation.Locale:1:15: note: struct 'Locale' does not conform to the 'Sendable' protocol
 1 | public struct Locale : CustomStringConvertible, CustomDebugStringConvertible, Hashable, Equatable, ReferenceConvertible {
   |               `- note: struct 'Locale' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSLocale
 3 |     public typealias LanguageDirection = NSLocale.LanguageDirection
/host/spi-builder-workspace/Sources/LocaleSupport/Locale+LocaleSupport.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
  1 | import Foundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
  2 |
  3 | public extension Locale {
    :
 69 |
 70 | public extension Locale {
 71 |     internal static let english: Locale = Locale(identifier: "en")
    |                         |- note: annotate 'english' 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
 72 |
 73 |     /// The US English language name
/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 'Foundation' 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 'Foundation' 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 LanguageCode.swift
/host/spi-builder-workspace/Sources/LocaleSupport/LanguageCode.swift:602:23: warning: static property 'default' is not concurrency-safe because it is non-isolated 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 non-isolated 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 |
[6/9] Compiling LocaleSupport Locale+LocaleSupport.swift
/host/spi-builder-workspace/Sources/LocaleSupport/Locale+LocaleSupport.swift:71:25: warning: static property 'english' is not concurrency-safe because non-'Sendable' type 'Locale' may have shared mutable state; this is an error in the Swift 6 language mode
 69 |
 70 | public extension Locale {
 71 |     internal static let english: Locale = Locale(identifier: "en")
    |                         `- warning: static property 'english' is not concurrency-safe because non-'Sendable' type 'Locale' may have shared mutable state; this is an error in the Swift 6 language mode
 72 |
 73 |     /// The US English language name
Foundation.Locale:1:15: note: struct 'Locale' does not conform to the 'Sendable' protocol
 1 | public struct Locale : CustomStringConvertible, CustomDebugStringConvertible, Hashable, Equatable, ReferenceConvertible {
   |               `- note: struct 'Locale' does not conform to the 'Sendable' protocol
 2 |     public typealias ReferenceType = NSLocale
 3 |     public typealias LanguageDirection = NSLocale.LanguageDirection
/host/spi-builder-workspace/Sources/LocaleSupport/Locale+LocaleSupport.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
  1 | import Foundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
  2 |
  3 | public extension Locale {
    :
 69 |
 70 | public extension Locale {
 71 |     internal static let english: Locale = Locale(identifier: "en")
    |                         |- note: annotate 'english' 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
 72 |
 73 |     /// The US English language name
/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 'Foundation' 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 'Foundation' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
101 |     public var id: String { identifier }
102 | }
[7/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 non-isolated 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 non-isolated 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 |
[8/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 non-isolated 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 non-isolated 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 |
[9/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 non-isolated 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 non-isolated 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! (12.34s)
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"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.