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 4.0.0 (6de300), with Swift 6.0 for Linux on 12 Oct 2024 14:28:15 UTC.

Swift 6 data race errors: 3

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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: 4.0.0
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
 * tag               4.0.0      -> FETCH_HEAD
HEAD is now at 6de3007 Update Fakery.podspec
Cloned https://github.com/Appsaurus/Fakery.git
Revision (git rev-parse @):
6de3007b9a3638bc0fc4c780693de1559a44ea96
SUCCESS checkout https://github.com/Appsaurus/Fakery.git at 4.0.0
========================================
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-1":/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/Quick/Quick.git
Fetching https://github.com/Quick/Nimble.git
[1/14711] Fetching quick
[14712/33745] Fetching quick, nimble
Fetched https://github.com/Quick/Quick.git from cache (2.25s)
Fetched https://github.com/Quick/Nimble.git from cache (2.28s)
Computing version for https://github.com/Quick/Quick.git
Computed https://github.com/Quick/Quick.git at 2.2.1 (2.45s)
Computing version for https://github.com/Quick/Nimble.git
Computed https://github.com/Quick/Nimble.git at 8.1.2 (0.44s)
Creating working copy for https://github.com/Quick/Quick.git
Working copy of https://github.com/Quick/Quick.git resolved at 2.2.1
Creating working copy for https://github.com/Quick/Nimble.git
Working copy of https://github.com/Quick/Nimble.git resolved at 8.1.2
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/20] Compiling Fakery Internet.swift
/host/spi-builder-workspace/Sources/Fakery/Generators/Internet.swift:17:9: warning: variable 'components' was never mutated; consider changing to 'let' constant
 15 |     let lastRandomComponent = arc4random_uniform(10000)
 16 |     #endif
 17 |     var components: [String] = [
    |         `- warning: variable 'components' was never mutated; consider changing to 'let' constant
 18 |       generate("name.first_name"),
 19 |       generate("name.last_name"),
[4/20] Compiling Fakery Lorem.swift
/host/spi-builder-workspace/Sources/Fakery/Generators/Internet.swift:17:9: warning: variable 'components' was never mutated; consider changing to 'let' constant
 15 |     let lastRandomComponent = arc4random_uniform(10000)
 16 |     #endif
 17 |     var components: [String] = [
    |         `- warning: variable 'components' was never mutated; consider changing to 'let' constant
 18 |       generate("name.first_name"),
 19 |       generate("name.last_name"),
[5/20] Compiling Fakery Date.swift
[6/20] Compiling Fakery Generator.swift
[7/20] Compiling Fakery Name.swift
[8/20] Compiling Fakery Number.swift
[9/22] Compiling Fakery App.swift
[10/22] Compiling Fakery Bank.swift
[11/22] Compiling Fakery Business.swift
[12/22] Compiling Fakery Commerce.swift
[13/22] Compiling Fakery Company.swift
[14/22] Compiling Fakery PhoneNumber.swift
[15/22] Compiling Fakery Team.swift
[16/22] Compiling Fakery ArrayExtension.swift
[17/22] Compiling Fakery Faker.swift
[18/22] Compiling Fakery Address.swift
[19/22] Emitting module Fakery
/host/spi-builder-workspace/Sources/Fakery/Config.swift:4: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
2 |   public static let defaultLocale: String = "en"
3 |   public static let pathExtension: String = "json"
4 |   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
5 |   public static var dirFrameworkPath: String = ""
6 |   public static var dirResourcePath: String = ""
/host/spi-builder-workspace/Sources/Fakery/Config.swift:5: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
3 |   public static let pathExtension: String = "json"
4 |   public static var dirPath: String = "Resources/Locales"
5 |   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
6 |   public static var dirResourcePath: String = ""
7 | }
/host/spi-builder-workspace/Sources/Fakery/Config.swift:6:21: warning: static property 'dirResourcePath' 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 var dirPath: String = "Resources/Locales"
5 |   public static var dirFrameworkPath: String = ""
6 |   public static var dirResourcePath: String = ""
  |                     |- warning: static property 'dirResourcePath' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  |                     |- note: convert 'dirResourcePath' to a 'let' constant to make 'Sendable' shared state immutable
  |                     |- note: annotate 'dirResourcePath' 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 | }
8 |
[20/22] Compiling Fakery Config.swift
/host/spi-builder-workspace/Sources/Fakery/Config.swift:4: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
2 |   public static let defaultLocale: String = "en"
3 |   public static let pathExtension: String = "json"
4 |   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
5 |   public static var dirFrameworkPath: String = ""
6 |   public static var dirResourcePath: String = ""
/host/spi-builder-workspace/Sources/Fakery/Config.swift:5: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
3 |   public static let pathExtension: String = "json"
4 |   public static var dirPath: String = "Resources/Locales"
5 |   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
6 |   public static var dirResourcePath: String = ""
7 | }
/host/spi-builder-workspace/Sources/Fakery/Config.swift:6:21: warning: static property 'dirResourcePath' 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 var dirPath: String = "Resources/Locales"
5 |   public static var dirFrameworkPath: String = ""
6 |   public static var dirResourcePath: String = ""
  |                     |- warning: static property 'dirResourcePath' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  |                     |- note: convert 'dirResourcePath' to a 'let' constant to make 'Sendable' shared state immutable
  |                     |- note: annotate 'dirResourcePath' 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 | }
8 |
/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 {
[21/22] Compiling Fakery Parser.swift
/host/spi-builder-workspace/Sources/Fakery/Config.swift:4: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
2 |   public static let defaultLocale: String = "en"
3 |   public static let pathExtension: String = "json"
4 |   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
5 |   public static var dirFrameworkPath: String = ""
6 |   public static var dirResourcePath: String = ""
/host/spi-builder-workspace/Sources/Fakery/Config.swift:5: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
3 |   public static let pathExtension: String = "json"
4 |   public static var dirPath: String = "Resources/Locales"
5 |   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
6 |   public static var dirResourcePath: String = ""
7 | }
/host/spi-builder-workspace/Sources/Fakery/Config.swift:6:21: warning: static property 'dirResourcePath' 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 var dirPath: String = "Resources/Locales"
5 |   public static var dirFrameworkPath: String = ""
6 |   public static var dirResourcePath: String = ""
  |                     |- warning: static property 'dirResourcePath' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  |                     |- note: convert 'dirResourcePath' to a 'let' constant to make 'Sendable' shared state immutable
  |                     |- note: annotate 'dirResourcePath' 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 | }
8 |
/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 {
[22/22] Compiling Fakery Provider.swift
/host/spi-builder-workspace/Sources/Fakery/Config.swift:4: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
2 |   public static let defaultLocale: String = "en"
3 |   public static let pathExtension: String = "json"
4 |   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
5 |   public static var dirFrameworkPath: String = ""
6 |   public static var dirResourcePath: String = ""
/host/spi-builder-workspace/Sources/Fakery/Config.swift:5: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
3 |   public static let pathExtension: String = "json"
4 |   public static var dirPath: String = "Resources/Locales"
5 |   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
6 |   public static var dirResourcePath: String = ""
7 | }
/host/spi-builder-workspace/Sources/Fakery/Config.swift:6:21: warning: static property 'dirResourcePath' 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 var dirPath: String = "Resources/Locales"
5 |   public static var dirFrameworkPath: String = ""
6 |   public static var dirResourcePath: String = ""
  |                     |- warning: static property 'dirResourcePath' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  |                     |- note: convert 'dirResourcePath' to a 'let' constant to make 'Sendable' shared state immutable
  |                     |- note: annotate 'dirResourcePath' 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 | }
8 |
/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 {
Build complete! (18.87s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "quick",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.0.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Quick/Quick.git"
    },
    {
      "identity" : "nimble",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "8.0.0",
            "upper_bound" : "9.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Quick/Nimble.git"
    }
  ],
  "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/Fakery",
      "product_dependencies" : [
        "Quick",
        "Nimble"
      ],
      "sources" : [
        "ConfigSpec.swift",
        "Data/ParserSpec.swift",
        "Data/ProviderSpec.swift",
        "FakerSpec.swift",
        "Generators/AddressSpec.swift",
        "Generators/AppSpec.swift",
        "Generators/BankSpec.swift",
        "Generators/BusinessSpec.swift",
        "Generators/CommerceSpec.swift",
        "Generators/CompanySpec.swift",
        "Generators/DateSpec.swift",
        "Generators/GeneratorSpec.swift",
        "Generators/InternetSpec.swift",
        "Generators/LoremSpec.swift",
        "Generators/NameSpec.swift",
        "Generators/NumberSpec.swift",
        "Generators/PhoneNumberSpec.swift",
        "Generators/TeamSpec.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"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.2"
}
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.