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 macOS (SPM) on 12 Oct 2024 14:35:22 UTC.

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

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 /Users/admin/builder/spi-builder-workspace/.git/
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
Fetching https://github.com/Appsaurus/SwiftTestUtils
[1/150] Fetching swifttestutils
Fetched https://github.com/Appsaurus/SwiftTestUtils from cache (0.69s)
Computing version for https://github.com/Appsaurus/SwiftTestUtils
Computed https://github.com/Appsaurus/SwiftTestUtils at 1.0.1 (0.65s)
Creating working copy for https://github.com/Appsaurus/SwiftTestUtils
Working copy of https://github.com/Appsaurus/SwiftTestUtils resolved at 1.0.1
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "fakery",
      "name": "Fakery",
      "url": "https://github.com/Appsaurus/Fakery.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Fakery",
      "dependencies": [
        {
          "identity": "swifttestutils",
          "name": "SwiftTestUtils",
          "url": "https://github.com/Appsaurus/SwiftTestUtils",
          "version": "1.0.1",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftTestUtils",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/Appsaurus/Fakery.git
[1/2336] Fetching fakery
Fetched https://github.com/Appsaurus/Fakery.git from cache (1.09s)
Fetching https://github.com/Appsaurus/SwiftTestUtils from cache
Fetched https://github.com/Appsaurus/SwiftTestUtils from cache (0.51s)
Computing version for https://github.com/Appsaurus/SwiftTestUtils
Computed https://github.com/Appsaurus/SwiftTestUtils at 1.0.1 (0.02s)
Creating working copy for https://github.com/Appsaurus/SwiftTestUtils
Working copy of https://github.com/Appsaurus/SwiftTestUtils resolved at 1.0.1
Creating working copy for https://github.com/Appsaurus/Fakery.git
Working copy of https://github.com/Appsaurus/Fakery.git resolved at master (8d0eafc)
warning: '.resolve-product-dependencies': dependency 'fakery' is not used by any target
Found 1 product dependencies
  - SwiftTestUtils
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/Appsaurus/Fakery.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--4A847ED0836F2485.txt
[3/22] Emitting module Fakery
/Users/admin/builder/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 | }
/Users/admin/builder/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 |
[4/24] Compiling Fakery Config.swift
/Users/admin/builder/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 | }
/Users/admin/builder/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 |
/Users/admin/builder/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 {
[5/24] Compiling Fakery Parser.swift
/Users/admin/builder/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 | }
/Users/admin/builder/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 |
/Users/admin/builder/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 {
[6/24] Compiling Fakery Provider.swift
/Users/admin/builder/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 | }
/Users/admin/builder/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 |
/Users/admin/builder/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 {
[7/24] Compiling Fakery Bank.swift
[8/24] Compiling Fakery Business.swift
[9/24] Compiling Fakery Internet.swift
/Users/admin/builder/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 Lorem.swift
/Users/admin/builder/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"),
[11/24] Compiling Fakery LinuxRandom.swift
[12/24] Compiling Fakery en.swift
[13/24] Compiling Fakery Commerce.swift
[14/24] Compiling Fakery Company.swift
[15/24] Compiling Fakery PhoneNumber.swift
[16/24] Compiling Fakery Team.swift
[17/24] Compiling Fakery ArrayExtension.swift
[18/24] Compiling Fakery Faker.swift
[19/24] Compiling Fakery Date.swift
[20/24] Compiling Fakery Generator.swift
[21/24] Compiling Fakery Name.swift
[22/24] Compiling Fakery Number.swift
[23/24] Compiling Fakery Address.swift
[24/24] Compiling Fakery App.swift
Build complete! (18.06s)
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" : "/Users/admin/builder/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"
}
Done.