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 SwiftQuests with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Ast3r10n/swiftquests.git
Reference: develop
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Ast3r10n/swiftquests
 * branch            develop    -> FETCH_HEAD
 * [new branch]      develop    -> origin/develop
HEAD is now at 18d8aa0 Merge pull request #35 from Ast3r10n/release/0.4.0
Cloned https://github.com/Ast3r10n/swiftquests.git
Revision (git rev-parse @):
18d8aa018ce6d3a91c55a78f116312018703c5ac
SUCCESS checkout https://github.com/Ast3r10n/swiftquests.git at develop
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/Ast3r10n/swiftquests.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a 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-6F35C1178C84523A.txt
[3/7] Compiling SwiftQuests RequestConfigurationHolder.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuests/RequestConfigurationHolder.swift:15:23: warning: static property 'shared' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
13 |     // MARK: - Public Properties
14 |     /// The holder singleton instance.
15 |     public static var shared = RequestConfigurationHolder()
   |                       |- warning: static property 'shared' 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 'shared' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'shared' 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
16 |
17 |     /// The configuration assigned to the holder.
[4/7] Compiling SwiftQuests NetworkError.swift
[5/7] Compiling SwiftQuests DefaultRequestConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuests/RequestConfigurationHolder.swift:15:23: warning: static property 'shared' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
13 |     // MARK: - Public Properties
14 |     /// The holder singleton instance.
15 |     public static var shared = RequestConfigurationHolder()
   |                       |- warning: static property 'shared' 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 'shared' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'shared' 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
16 |
17 |     /// The configuration assigned to the holder.
[6/7] Compiling SwiftQuests Request.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuests/RequestConfigurationHolder.swift:15:23: warning: static property 'shared' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
13 |     // MARK: - Public Properties
14 |     /// The holder singleton instance.
15 |     public static var shared = RequestConfigurationHolder()
   |                       |- warning: static property 'shared' 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 'shared' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'shared' 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
16 |
17 |     /// The configuration assigned to the holder.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuests/Request.swift:154:22: warning: capture of 'completionHandler' with non-sendable type '(Result<Response, any Error>) throws -> Void' (aka '(Result<(data: Optional<Data>, urlResponse: Optional<URLResponse>), any Error>) throws -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
152 |         let task = session.dataTask(with: urlRequest) { data, response, error in
153 |             if let error = error {
154 |                 try? completionHandler(.failure(error))
    |                      |- warning: capture of 'completionHandler' with non-sendable type '(Result<Response, any Error>) throws -> Void' (aka '(Result<(data: Optional<Data>, urlResponse: Optional<URLResponse>), any Error>) throws -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                      `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
155 |                 return
156 |             }
[7/7] Emitting module SwiftQuests
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuests/RequestConfigurationHolder.swift:15:23: warning: static property 'shared' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
13 |     // MARK: - Public Properties
14 |     /// The holder singleton instance.
15 |     public static var shared = RequestConfigurationHolder()
   |                       |- warning: static property 'shared' 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 'shared' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'shared' 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
16 |
17 |     /// The configuration assigned to the holder.
Build complete! (17.46s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftQuests",
  "name" : "SwiftQuests",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftQuests",
      "targets" : [
        "SwiftQuests"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftQuestsTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftQuestsTests",
      "path" : "Tests/SwiftQuestsTests",
      "sources" : [
        "Mocks/URLProtocolMock.swift",
        "Mocks/UserModel.swift",
        "NetworkErrorTests.swift",
        "RequestAsyncTests.swift",
        "RequestConfigurationTests.swift",
        "RequestTests.swift"
      ],
      "target_dependencies" : [
        "SwiftQuests"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftQuests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftQuests",
      "path" : "Sources/SwiftQuests",
      "product_memberships" : [
        "SwiftQuests"
      ],
      "sources" : [
        "DefaultRequestConfiguration.swift",
        "NetworkError.swift",
        "Request.swift",
        "RequestConfigurationHolder.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.