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 ObjectAssociation, reference 0.5.0 (93806c), with Swift 6.0 for Linux on 30 Nov 2024 14:00:21 UTC.

Swift 6 data race errors: 1

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/p-x9/swift-object-association.git
Reference: 0.5.0
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/p-x9/swift-object-association
 * tag               0.5.0      -> FETCH_HEAD
HEAD is now at 93806cf Merge pull request #10 from p-x9/version/0.5.0
Cloned https://github.com/p-x9/swift-object-association.git
Revision (git rev-parse @):
93806cfecae1f198c894ed5585b93aff0e2d1f5a
SUCCESS checkout https://github.com/p-x9/swift-object-association.git at 0.5.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/p-x9/swift-object-association.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 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/6] Write sources
[3/6] Write swift-version-24593BA9C3E375BF.txt
[5/8] Compiling SwiftRetain Retain.swift
[6/8] Emitting module SwiftRetain
[7/9] Compiling ObjectAssociationRuntimeC associated.cpp
[8/9] Compiling reference.cpp
[10/11] Compiling ObjectAssociationRuntime ObjectAssociationRuntime.swift
[11/11] Emitting module ObjectAssociationRuntime
[13/17] Compiling ObjectAssociation Util.swift
[14/17] Compiling ObjectAssociation Policy.swift
[15/17] Emitting module ObjectAssociation
/host/spi-builder-workspace/Sources/ObjectAssociation/ObjectAssociation.swift:59:13: warning: var '_initAssociations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
57 | }
58 |
59 | private var _initAssociations: Bool = {
   |             |- warning: var '_initAssociations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert '_initAssociations' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: annotate '_initAssociations' 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
60 |     swift_initAssociations()
61 |     return true
[16/17] Compiling ObjectAssociation Ref.swift
[17/17] Compiling ObjectAssociation ObjectAssociation.swift
/host/spi-builder-workspace/Sources/ObjectAssociation/ObjectAssociation.swift:59:13: warning: var '_initAssociations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
57 | }
58 |
59 | private var _initAssociations: Bool = {
   |             |- warning: var '_initAssociations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert '_initAssociations' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: annotate '_initAssociations' 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
60 |     swift_initAssociations()
61 |     return true
Build complete! (17.01s)
Build complete.
{
  "c_language_standard" : "c17",
  "cxx_language_standard" : "c++17",
  "dependencies" : [
  ],
  "manifest_display_name" : "ObjectAssociation",
  "name" : "ObjectAssociation",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "ObjectAssociation",
      "targets" : [
        "ObjectAssociation"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftRetain",
      "module_type" : "SwiftTarget",
      "name" : "SwiftRetain",
      "path" : "Sources/SwiftRetain",
      "product_memberships" : [
        "ObjectAssociation"
      ],
      "sources" : [
        "Retain.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "ObjectAssociationTests",
      "module_type" : "SwiftTarget",
      "name" : "ObjectAssociationTests",
      "path" : "Tests/ObjectAssociationTests",
      "sources" : [
        "Model/ClassItem.swift",
        "ObjectAssociationTests.swift"
      ],
      "target_dependencies" : [
        "ObjectAssociation",
        "ObjectAssociationRuntime"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ObjectAssociationRuntimeC",
      "module_type" : "ClangTarget",
      "name" : "ObjectAssociationRuntimeC",
      "path" : "Sources/ObjectAssociationRuntimeC",
      "product_memberships" : [
        "ObjectAssociation"
      ],
      "sources" : [
        "associated.cpp",
        "reference/reference.cpp"
      ],
      "target_dependencies" : [
        "SwiftRetain"
      ],
      "type" : "library"
    },
    {
      "c99name" : "ObjectAssociationRuntime",
      "module_type" : "SwiftTarget",
      "name" : "ObjectAssociationRuntime",
      "path" : "Sources/ObjectAssociationRuntime",
      "product_memberships" : [
        "ObjectAssociation"
      ],
      "sources" : [
        "ObjectAssociationRuntime.swift"
      ],
      "target_dependencies" : [
        "ObjectAssociationRuntimeC"
      ],
      "type" : "library"
    },
    {
      "c99name" : "ObjectAssociation",
      "module_type" : "SwiftTarget",
      "name" : "ObjectAssociation",
      "path" : "Sources/ObjectAssociation",
      "product_memberships" : [
        "ObjectAssociation"
      ],
      "sources" : [
        "Model/Policy.swift",
        "Model/Ref.swift",
        "ObjectAssociation.swift",
        "Util.swift"
      ],
      "target_dependencies" : [
        "ObjectAssociationRuntime"
      ],
      "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.