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 SemanticVersion, reference v1.1.2 (263730), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 23:04:12 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/elegantchaos/SemanticVersion.git
Reference: v1.1.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/elegantchaos/SemanticVersion
 * tag               v1.1.2     -> FETCH_HEAD
HEAD is now at 2637309 proper comparable support
Cloned https://github.com/elegantchaos/SemanticVersion.git
Revision (git rev-parse @):
2637309c72c1415cc3d1ea27ae6ddb2a2b66ecf0
SUCCESS checkout https://github.com/elegantchaos/SemanticVersion.git at v1.1.2
========================================
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": "semanticversion",
      "name": "SemanticVersion",
      "url": "https://github.com/elegantchaos/SemanticVersion.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SemanticVersion",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/elegantchaos/SemanticVersion.git
[1/152] Fetching semanticversion
Fetched https://github.com/elegantchaos/SemanticVersion.git from cache (0.67s)
Creating working copy for https://github.com/elegantchaos/SemanticVersion.git
Working copy of https://github.com/elegantchaos/SemanticVersion.git resolved at v1.1.2 (2637309)
warning: '.resolve-product-dependencies': dependency 'semanticversion' 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/elegantchaos/SemanticVersion.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/5] Emitting module SemanticVersion
/Users/admin/builder/spi-builder-workspace/Sources/SemanticVersion/SemanticVersion.swift:11:16: warning: static property 'unknown' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  9 |     public let patch: Int
 10 |
 11 |     static var unknown : SemanticVersion = SemanticVersion()
    |                |- warning: static property 'unknown' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'unknown' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'unknown' 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
 12 |
 13 |     public var isUnknown : Bool { return major == 0 && minor == 0 && patch == 0 }
[4/5] Compiling SemanticVersion SemanticVersion+Comparabl.swift
[5/5] Compiling SemanticVersion SemanticVersion.swift
/Users/admin/builder/spi-builder-workspace/Sources/SemanticVersion/SemanticVersion.swift:11:16: warning: static property 'unknown' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  9 |     public let patch: Int
 10 |
 11 |     static var unknown : SemanticVersion = SemanticVersion()
    |                |- warning: static property 'unknown' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'unknown' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'unknown' 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
 12 |
 13 |     public var isUnknown : Bool { return major == 0 && minor == 0 && patch == 0 }
Build complete! (5.80s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SemanticVersion",
  "name" : "SemanticVersion",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SemanticVersion",
      "targets" : [
        "SemanticVersion"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SemanticVersionTests",
      "module_type" : "SwiftTarget",
      "name" : "SemanticVersionTests",
      "path" : "Tests/SemanticVersionTests",
      "sources" : [
        "SemanticVersionTests.swift"
      ],
      "target_dependencies" : [
        "SemanticVersion"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SemanticVersion",
      "module_type" : "SwiftTarget",
      "name" : "SemanticVersion",
      "path" : "Sources/SemanticVersion",
      "product_memberships" : [
        "SemanticVersion"
      ],
      "sources" : [
        "SemanticVersion+Comparabl.swift",
        "SemanticVersion.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.