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 Jar, reference main (c3cea5), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 08:01:52 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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/SwiftPackageRepository/Jar.swift.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/SwiftPackageRepository/Jar.swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at c3cea5e Update README.md
Cloned https://github.com/SwiftPackageRepository/Jar.swift.git
Revision (git rev-parse @):
c3cea5e943d56e35a92eab31f53a25abbe49fa0f
SUCCESS checkout https://github.com/SwiftPackageRepository/Jar.swift.git at main
========================================
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": "jar.swift",
      "name": "Jar",
      "url": "https://github.com/SwiftPackageRepository/Jar.swift.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Jar.swift",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/SwiftPackageRepository/Jar.swift.git
[1/120] Fetching jar.swift
Fetched https://github.com/SwiftPackageRepository/Jar.swift.git from cache (0.76s)
Creating working copy for https://github.com/SwiftPackageRepository/Jar.swift.git
Working copy of https://github.com/SwiftPackageRepository/Jar.swift.git resolved at main (c3cea5e)
warning: '.resolve-product-dependencies': dependency 'jar.swift' 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/SwiftPackageRepository/Jar.swift.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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/11] Compiling Jar JavaVirtualMachineParser.swift
[4/11] Compiling Jar Java.swift
[5/11] Compiling Jar JavaVirtualMachine.swift
[6/11] Compiling Jar Jar.swift
/Users/admin/builder/spi-builder-workspace/Sources/Jar/Jar.swift:73:17: warning: capture of 'failed' with non-sendable type '(any Error) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
71 |             } catch {
72 |                 os_log("Failed writing JAR %{public}@ logged in", log: .jar, type: .error, error.localizedDescription)
73 |                 failed(error)
   |                 |- warning: capture of 'failed' with non-sendable type '(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'
74 |                 return
75 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Jar/Jar.swift:76:13: warning: capture of 'completion' with non-sendable type '(URL) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
74 |                 return
75 |             }
76 |             completion(pathToJar)
   |             |- warning: capture of 'completion' with non-sendable type '(URL) -> 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'
77 |         }
78 |         dataTask.resume()
[7/11] Compiling Jar NSRegularExpression+Extensions.swift
[8/11] Compiling Jar Executable.swift
[9/11] Compiling Jar NSTextCheckingResult+Extensions.swift
[10/11] Emitting module Jar
/Users/admin/builder/spi-builder-workspace/Sources/Jar/Extensions/OSLog+Extensions.swift:30:24: warning: static property 'subsystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | extension OSLog {
30 |     private static var subsystem = Bundle.main.bundleIdentifier!
   |                        |- warning: static property 'subsystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'subsystem' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: annotate 'subsystem' 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
31 |
32 |     static let java = OSLog(subsystem: subsystem, category: "java")
[11/11] Compiling Jar OSLog+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/Jar/Extensions/OSLog+Extensions.swift:30:24: warning: static property 'subsystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | extension OSLog {
30 |     private static var subsystem = Bundle.main.bundleIdentifier!
   |                        |- warning: static property 'subsystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'subsystem' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: annotate 'subsystem' 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
31 |
32 |     static let java = OSLog(subsystem: subsystem, category: "java")
Build complete! (10.91s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Jar",
  "name" : "Jar",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "Jar",
      "targets" : [
        "Jar"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "JarTests",
      "module_type" : "SwiftTarget",
      "name" : "JarTests",
      "path" : "Tests/JarTests",
      "sources" : [
        "JarTests.swift"
      ],
      "target_dependencies" : [
        "Jar"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Jar",
      "module_type" : "SwiftTarget",
      "name" : "Jar",
      "path" : "Sources/Jar",
      "product_memberships" : [
        "Jar"
      ],
      "sources" : [
        "Executable.swift",
        "Extensions/NSRegularExpression+Extensions.swift",
        "Extensions/NSTextCheckingResult+Extensions.swift",
        "Extensions/OSLog+Extensions.swift",
        "Jar.swift",
        "Java.swift",
        "JavaVirtualMachine.swift",
        "JavaVirtualMachineParser.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.