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 Fakery, reference master (8d0eaf), with Swift 6.0 for Linux on 12 Oct 2024 14:28:07 UTC.

Swift 6 data race errors: 3

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.55.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Appsaurus/Fakery.git
Reference: master
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/Appsaurus/Fakery
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 8d0eafc bump 3.4.4
Cloned https://github.com/Appsaurus/Fakery.git
Revision (git rev-parse @):
8d0eafcda7dfd3152a2d86c6c458534428ed3987
SUCCESS checkout https://github.com/Appsaurus/Fakery.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/Appsaurus/Fakery.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:b1f5b321a5d74ef5eaf6f5f3afbfebaaa54c7954de6f859009c18a90e0e1c3b4
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/Appsaurus/SwiftTestUtils
[1/150] Fetching swifttestutils
Fetched https://github.com/Appsaurus/SwiftTestUtils from cache (0.20s)
Computing version for https://github.com/Appsaurus/SwiftTestUtils
Computed https://github.com/Appsaurus/SwiftTestUtils at 1.0.1 (0.43s)
Creating working copy for https://github.com/Appsaurus/SwiftTestUtils
Working copy of https://github.com/Appsaurus/SwiftTestUtils resolved at 1.0.1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/22] Emitting module Fakery
/host/spi-builder-workspace/Sources/Fakery/Config.swift:6:21: warning: static property 'dirPath' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 |   public static let defaultLocale: String = "en"
5 |   public static let pathExtension: String = "json"
6 |   public static var dirPath: String = "Resources/Locales"
  |                     |- warning: static property 'dirPath' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  |                     |- note: convert 'dirPath' to a 'let' constant to make 'Sendable' shared state immutable
  |                     |- note: annotate 'dirPath' 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
7 |   public static var dirFrameworkPath: String = ""
8 | }
/host/spi-builder-workspace/Sources/Fakery/Config.swift:7:21: warning: static property 'dirFrameworkPath' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
5 |   public static let pathExtension: String = "json"
6 |   public static var dirPath: String = "Resources/Locales"
7 |   public static var dirFrameworkPath: String = ""
  |                     |- warning: static property 'dirFrameworkPath' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  |                     |- note: convert 'dirFrameworkPath' to a 'let' constant to make 'Sendable' shared state immutable
  |                     |- note: annotate 'dirFrameworkPath' 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/Fakery/LinuxRandom.swift:13:13: warning: static property 'initialized' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | 	#if os(Linux)
13 | 	static var initialized = false
   |             |- warning: static property 'initialized' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'initialized' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: annotate 'initialized' 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
14 | 	#endif
15 |
[4/24] Compiling Fakery ArrayExtension.swift
[5/24] Compiling Fakery Faker.swift
[6/24] Compiling Fakery Address.swift
[7/24] Compiling Fakery Generator.swift
/host/spi-builder-workspace/Sources/Fakery/Generators/Internet.swift:12:9: warning: variable 'components' was never mutated; consider changing to 'let' constant
 10 |
 11 |   public func username(separator: String? = nil) -> String {
 12 |     var components: [String] = [
    |         `- warning: variable 'components' was never mutated; consider changing to 'let' constant
 13 |       generate("name.first_name"),
 14 |       generate("name.last_name"),
[8/24] Compiling Fakery Internet.swift
/host/spi-builder-workspace/Sources/Fakery/Generators/Internet.swift:12:9: warning: variable 'components' was never mutated; consider changing to 'let' constant
 10 |
 11 |   public func username(separator: String? = nil) -> String {
 12 |     var components: [String] = [
    |         `- warning: variable 'components' was never mutated; consider changing to 'let' constant
 13 |       generate("name.first_name"),
 14 |       generate("name.last_name"),
[9/24] Compiling Fakery Lorem.swift
/host/spi-builder-workspace/Sources/Fakery/Generators/Internet.swift:12:9: warning: variable 'components' was never mutated; consider changing to 'let' constant
 10 |
 11 |   public func username(separator: String? = nil) -> String {
 12 |     var components: [String] = [
    |         `- warning: variable 'components' was never mutated; consider changing to 'let' constant
 13 |       generate("name.first_name"),
 14 |       generate("name.last_name"),
[10/24] Compiling Fakery Name.swift
[11/24] Compiling Fakery Number.swift
[12/24] Compiling Fakery Commerce.swift
[13/24] Compiling Fakery Company.swift
[14/24] Compiling Fakery Date.swift
[15/24] Compiling Fakery Config.swift
/host/spi-builder-workspace/Sources/Fakery/Config.swift:6:21: warning: static property 'dirPath' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 |   public static let defaultLocale: String = "en"
5 |   public static let pathExtension: String = "json"
6 |   public static var dirPath: String = "Resources/Locales"
  |                     |- warning: static property 'dirPath' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  |                     |- note: convert 'dirPath' to a 'let' constant to make 'Sendable' shared state immutable
  |                     |- note: annotate 'dirPath' 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
7 |   public static var dirFrameworkPath: String = ""
8 | }
/host/spi-builder-workspace/Sources/Fakery/Config.swift:7:21: warning: static property 'dirFrameworkPath' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
5 |   public static let pathExtension: String = "json"
6 |   public static var dirPath: String = "Resources/Locales"
7 |   public static var dirFrameworkPath: String = ""
  |                     |- warning: static property 'dirFrameworkPath' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  |                     |- note: convert 'dirFrameworkPath' to a 'let' constant to make 'Sendable' shared state immutable
  |                     |- note: annotate 'dirFrameworkPath' 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/Fakery/Data/Parser.swift:136:9: warning: variable 'parts' was never mutated; consider changing to 'let' constant
134 |   private func getSubject(_ key: String) -> String {
135 |     var subject: String = ""
136 |     var parts = key.components(separatedBy: ".")
    |         `- warning: variable 'parts' was never mutated; consider changing to 'let' constant
137 |
138 |     if !parts.isEmpty {
[16/24] Compiling Fakery Parser.swift
/host/spi-builder-workspace/Sources/Fakery/Config.swift:6:21: warning: static property 'dirPath' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 |   public static let defaultLocale: String = "en"
5 |   public static let pathExtension: String = "json"
6 |   public static var dirPath: String = "Resources/Locales"
  |                     |- warning: static property 'dirPath' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  |                     |- note: convert 'dirPath' to a 'let' constant to make 'Sendable' shared state immutable
  |                     |- note: annotate 'dirPath' 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
7 |   public static var dirFrameworkPath: String = ""
8 | }
/host/spi-builder-workspace/Sources/Fakery/Config.swift:7:21: warning: static property 'dirFrameworkPath' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
5 |   public static let pathExtension: String = "json"
6 |   public static var dirPath: String = "Resources/Locales"
7 |   public static var dirFrameworkPath: String = ""
  |                     |- warning: static property 'dirFrameworkPath' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  |                     |- note: convert 'dirFrameworkPath' to a 'let' constant to make 'Sendable' shared state immutable
  |                     |- note: annotate 'dirFrameworkPath' 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/Fakery/Data/Parser.swift:136:9: warning: variable 'parts' was never mutated; consider changing to 'let' constant
134 |   private func getSubject(_ key: String) -> String {
135 |     var subject: String = ""
136 |     var parts = key.components(separatedBy: ".")
    |         `- warning: variable 'parts' was never mutated; consider changing to 'let' constant
137 |
138 |     if !parts.isEmpty {
[17/24] Compiling Fakery Provider.swift
/host/spi-builder-workspace/Sources/Fakery/Config.swift:6:21: warning: static property 'dirPath' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 |   public static let defaultLocale: String = "en"
5 |   public static let pathExtension: String = "json"
6 |   public static var dirPath: String = "Resources/Locales"
  |                     |- warning: static property 'dirPath' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  |                     |- note: convert 'dirPath' to a 'let' constant to make 'Sendable' shared state immutable
  |                     |- note: annotate 'dirPath' 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
7 |   public static var dirFrameworkPath: String = ""
8 | }
/host/spi-builder-workspace/Sources/Fakery/Config.swift:7:21: warning: static property 'dirFrameworkPath' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
5 |   public static let pathExtension: String = "json"
6 |   public static var dirPath: String = "Resources/Locales"
7 |   public static var dirFrameworkPath: String = ""
  |                     |- warning: static property 'dirFrameworkPath' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  |                     |- note: convert 'dirFrameworkPath' to a 'let' constant to make 'Sendable' shared state immutable
  |                     |- note: annotate 'dirFrameworkPath' 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/Fakery/Data/Parser.swift:136:9: warning: variable 'parts' was never mutated; consider changing to 'let' constant
134 |   private func getSubject(_ key: String) -> String {
135 |     var subject: String = ""
136 |     var parts = key.components(separatedBy: ".")
    |         `- warning: variable 'parts' was never mutated; consider changing to 'let' constant
137 |
138 |     if !parts.isEmpty {
[18/24] Compiling Fakery LinuxRandom.swift
/host/spi-builder-workspace/Sources/Fakery/LinuxRandom.swift:13:13: warning: static property 'initialized' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | 	#if os(Linux)
13 | 	static var initialized = false
   |             |- warning: static property 'initialized' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'initialized' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: annotate 'initialized' 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
14 | 	#endif
15 |
[19/24] Compiling Fakery en.swift
/host/spi-builder-workspace/Sources/Fakery/LinuxRandom.swift:13:13: warning: static property 'initialized' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | 	#if os(Linux)
13 | 	static var initialized = false
   |             |- warning: static property 'initialized' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'initialized' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: annotate 'initialized' 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
14 | 	#endif
15 |
[20/24] Compiling Fakery PhoneNumber.swift
[21/24] Compiling Fakery Team.swift
[22/24] Compiling Fakery App.swift
[23/24] Compiling Fakery Bank.swift
[24/24] Compiling Fakery Business.swift
Build complete! (12.57s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swifttestutils",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Appsaurus/SwiftTestUtils"
    }
  ],
  "manifest_display_name" : "Fakery",
  "name" : "Fakery",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Fakery",
      "targets" : [
        "Fakery"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FakeryTests",
      "module_type" : "SwiftTarget",
      "name" : "FakeryTests",
      "path" : "Tests/FakeryTests",
      "product_dependencies" : [
        "SwiftTestUtils"
      ],
      "sources" : [
        "LinuxRandomTests.swift"
      ],
      "target_dependencies" : [
        "Fakery"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Fakery",
      "module_type" : "SwiftTarget",
      "name" : "Fakery",
      "path" : "Sources/Fakery",
      "product_memberships" : [
        "Fakery"
      ],
      "sources" : [
        "Config.swift",
        "Data/Parser.swift",
        "Data/Provider.swift",
        "Extensions/ArrayExtension.swift",
        "Faker.swift",
        "Generators/Address.swift",
        "Generators/App.swift",
        "Generators/Bank.swift",
        "Generators/Business.swift",
        "Generators/Commerce.swift",
        "Generators/Company.swift",
        "Generators/Date.swift",
        "Generators/Generator.swift",
        "Generators/Internet.swift",
        "Generators/Lorem.swift",
        "Generators/Name.swift",
        "Generators/Number.swift",
        "Generators/PhoneNumber.swift",
        "Generators/Team.swift",
        "LinuxRandom.swift",
        "Locales/en.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:b1f5b321a5d74ef5eaf6f5f3afbfebaaa54c7954de6f859009c18a90e0e1c3b4
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.