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 SwiftGoogleTranslate, reference master (7812b4), with Swift 6.0 for macOS (SPM) on 31 Oct 2024 18:28:39 UTC.

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.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.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/maximbilan/SwiftGoogleTranslate.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/maximbilan/SwiftGoogleTranslate
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 7812b4d Update README.md
Cloned https://github.com/maximbilan/SwiftGoogleTranslate.git
Revision (git rev-parse @):
7812b4dcb57e095224ae5e9dbf4f178f9296b147
SUCCESS checkout https://github.com/maximbilan/SwiftGoogleTranslate.git at master
========================================
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": "swiftgoogletranslate",
      "name": "SwiftGoogleTranslate",
      "url": "https://github.com/maximbilan/SwiftGoogleTranslate.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftGoogleTranslate",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/maximbilan/SwiftGoogleTranslate.git
[1/182] Fetching swiftgoogletranslate
Fetched https://github.com/maximbilan/SwiftGoogleTranslate.git from cache (0.68s)
Creating working copy for https://github.com/maximbilan/SwiftGoogleTranslate.git
Working copy of https://github.com/maximbilan/SwiftGoogleTranslate.git resolved at master (7812b4d)
warning: '.resolve-product-dependencies': dependency 'swiftgoogletranslate' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/maximbilan/SwiftGoogleTranslate.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.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--7754E27361AE5C74.txt
[3/4] Compiling SwiftGoogleTranslate SwiftGoogleTranslate.swift
/Users/admin/builder/spi-builder-workspace/SwiftGoogleTranslate/Sources/SwiftGoogleTranslate.swift:15:20: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SwiftGoogleTranslate' may have shared mutable state; this is an error in the Swift 6 language mode
 10 |
 11 | /// A helper class for using Google Translate API.
 12 | public class SwiftGoogleTranslate {
    |              `- note: class 'SwiftGoogleTranslate' does not conform to the 'Sendable' protocol
 13 |
 14 | 	/// Shared instance.
 15 | 	public static let shared = SwiftGoogleTranslate()
    |                    |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SwiftGoogleTranslate' may have shared mutable state; this is an error in the Swift 6 language mode
    |                    |- 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 | 	/// Language response structure.
/Users/admin/builder/spi-builder-workspace/SwiftGoogleTranslate/Sources/SwiftGoogleTranslate.swift:107:6: warning: capture of 'completion' with non-sendable type '(String?, (any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
105 | 				(200 ..< 300) ~= response.statusCode,			// is statusCode 2XX
106 | 				error == nil else {								// was there no error, otherwise ...
107 | 					completion(nil, error)
    |      |- warning: capture of 'completion' with non-sendable type '(String?, (any Error)?) -> Void' 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'
108 | 					return
109 | 			}
/Users/admin/builder/spi-builder-workspace/SwiftGoogleTranslate/Sources/SwiftGoogleTranslate.swift:151:6: warning: capture of 'completion' with non-sendable type '([SwiftGoogleTranslate.Detection]?, (any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
149 | 				(200 ..< 300) ~= response.statusCode,			// is statusCode 2XX
150 | 				error == nil else {								// was there no error, otherwise ...
151 | 					completion(nil, error)
    |      |- warning: capture of 'completion' with non-sendable type '([SwiftGoogleTranslate.Detection]?, (any Error)?) -> Void' 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'
152 | 					return
153 | 			}
/Users/admin/builder/spi-builder-workspace/SwiftGoogleTranslate/Sources/SwiftGoogleTranslate.swift:206:5: warning: capture of 'completion' with non-sendable type '([SwiftGoogleTranslate.Language]?, (any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
204 | 				(200 ..< 300) ~= response.statusCode,			// is statusCode 2XX
205 | 				error == nil else {								// was there no error, otherwise ...
206 | 				completion(nil, error)
    |     |- warning: capture of 'completion' with non-sendable type '([SwiftGoogleTranslate.Language]?, (any Error)?) -> Void' 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'
207 | 				return
208 | 			}
[4/4] Emitting module SwiftGoogleTranslate
/Users/admin/builder/spi-builder-workspace/SwiftGoogleTranslate/Sources/SwiftGoogleTranslate.swift:15:20: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SwiftGoogleTranslate' may have shared mutable state; this is an error in the Swift 6 language mode
 10 |
 11 | /// A helper class for using Google Translate API.
 12 | public class SwiftGoogleTranslate {
    |              `- note: class 'SwiftGoogleTranslate' does not conform to the 'Sendable' protocol
 13 |
 14 | 	/// Shared instance.
 15 | 	public static let shared = SwiftGoogleTranslate()
    |                    |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SwiftGoogleTranslate' may have shared mutable state; this is an error in the Swift 6 language mode
    |                    |- 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 | 	/// Language response structure.
Build complete! (6.15s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftGoogleTranslate",
  "name" : "SwiftGoogleTranslate",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftGoogleTranslate",
      "targets" : [
        "SwiftGoogleTranslate"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftGoogleTranslate",
      "module_type" : "SwiftTarget",
      "name" : "SwiftGoogleTranslate",
      "path" : "SwiftGoogleTranslate/Sources",
      "product_memberships" : [
        "SwiftGoogleTranslate"
      ],
      "sources" : [
        "SwiftGoogleTranslate.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.2"
}
Done.