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 swift-version-compare, reference 2.0.3 (8d36d2), with Swift 6.0 for Linux on 5 Nov 2024 06:05:47 UTC.

Swift 6 data race errors: 1

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mflknr/swift-version-compare.git
Reference: 2.0.3
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/mflknr/swift-version-compare
 * tag               2.0.3      -> FETCH_HEAD
HEAD is now at 8d36d25 update: lint tools and format correctly
Cloned https://github.com/mflknr/swift-version-compare.git
Revision (git rev-parse @):
8d36d25a6c3299f5df81665e18a7025cadec9f80
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/mflknr/swift-version-compare.git at 2.0.3
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/mflknr/swift-version-compare.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/3] Copying PrivacyInfo.xcprivacy
[1/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/20] Emitting module VersionCompare
/host/spi-builder-workspace/Sources/Version.swift:219:16: warning: static property 'initial' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
217 | public extension Version {
218 |     /// An initial ``Version`` representing the string `0.0.0`.
219 |     static var initial: Version = .init(major: 0, minor: 0, patch: 0)
    |                |- warning: static property 'initial' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'initial' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'initial' 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
220 | }
221 |
[5/22] Compiling VersionCompare PrereleaseIdentifier+Equatable.swift
[6/22] Compiling VersionCompare PrereleaseIdentifier+ExpressibleByLiteral.swift
[7/22] Compiling VersionCompare SemanticVersionComparable+Equatable.swift
[8/22] Compiling VersionCompare SemanticVersionComparable+Hashable.swift
[9/22] Compiling VersionCompare Character+Extensions.swift
[10/22] Compiling VersionCompare String+Regex.swift
[11/22] Compiling VersionCompare VersionCompareResult.swift
[12/22] Compiling VersionCompare PrereleaseIdentifier.swift
[13/22] Compiling VersionCompare SemanticVersionComparable+Comparable.swift
[14/22] Compiling VersionCompare Version+OS.swift
[15/22] Compiling VersionCompare Version+StringInitializer.swift
[16/22] Compiling VersionCompare SemanticVersionComparable.swift
[17/22] Compiling VersionCompare Version+Bundle.swift
[18/22] Compiling VersionCompare VersionValidationError.swift
[19/22] Compiling VersionCompare BuildMetaData+ExpressibleByLiteral.swift
[20/22] Compiling VersionCompare BuildMetaData.swift
[21/22] Compiling VersionCompare Version.swift
/host/spi-builder-workspace/Sources/Version.swift:219:16: warning: static property 'initial' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
217 | public extension Version {
218 |     /// An initial ``Version`` representing the string `0.0.0`.
219 |     static var initial: Version = .init(major: 0, minor: 0, patch: 0)
    |                |- warning: static property 'initial' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'initial' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'initial' 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
220 | }
221 |
[22/22] Compiling VersionCompare resource_bundle_accessor.swift
/host/spi-builder-workspace/Sources/Version.swift:219:16: warning: static property 'initial' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
217 | public extension Version {
218 |     /// An initial ``Version`` representing the string `0.0.0`.
219 |     static var initial: Version = .init(major: 0, minor: 0, patch: 0)
    |                |- warning: static property 'initial' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'initial' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'initial' 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
220 | }
221 |
Build complete! (10.74s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "swift-version-compare",
  "name" : "swift-version-compare",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "watchos",
      "version" : "7.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "VersionCompare",
      "targets" : [
        "VersionCompare"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "VersionCompareTests",
      "module_type" : "SwiftTarget",
      "name" : "VersionCompareTests",
      "path" : "Tests/VersionCompareTests",
      "sources" : [
        "SemanticVersionComparableTests.swift",
        "VersionTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "VersionCompare"
      ],
      "type" : "test"
    },
    {
      "c99name" : "VersionCompare",
      "module_type" : "SwiftTarget",
      "name" : "VersionCompare",
      "path" : "Sources",
      "product_memberships" : [
        "VersionCompare"
      ],
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Sources/Resources/PrivacyInfo.xcprivacy",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "Helper/Character+Extensions.swift",
        "Helper/String+Regex.swift",
        "Helper/VersionCompareResult.swift",
        "Helper/VersionValidationError.swift",
        "SemanticVersionComparable/BuildMetaData/BuildMetaData+ExpressibleByLiteral.swift",
        "SemanticVersionComparable/BuildMetaData/BuildMetaData.swift",
        "SemanticVersionComparable/PrereleaseIdentifier/PrereleaseIdentifier+Equatable.swift",
        "SemanticVersionComparable/PrereleaseIdentifier/PrereleaseIdentifier+ExpressibleByLiteral.swift",
        "SemanticVersionComparable/PrereleaseIdentifier/PrereleaseIdentifier.swift",
        "SemanticVersionComparable/SemanticVersionComparable+Comparable.swift",
        "SemanticVersionComparable/SemanticVersionComparable+Equatable.swift",
        "SemanticVersionComparable/SemanticVersionComparable+Hashable.swift",
        "SemanticVersionComparable/SemanticVersionComparable.swift",
        "Version+Bundle.swift",
        "Version+OS.swift",
        "Version+StringInitializer.swift",
        "Version.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.