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 PureMVC, reference master (d31c89), with Swift 6.0 for Linux on 27 Nov 2024 12:27:26 UTC.

Swift 6 data race errors: 4

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 -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.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/puremvc/puremvc-swift-multicore-framework.git
Reference: master
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/puremvc/puremvc-swift-multicore-framework
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at d31c895 update
Cloned https://github.com/puremvc/puremvc-swift-multicore-framework.git
Revision (git rev-parse @):
d31c895d1dd6aef64069783f92429e146790b769
SUCCESS checkout https://github.com/puremvc/puremvc-swift-multicore-framework.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/puremvc/puremvc-swift-multicore-framework.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 -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/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/22] Emitting module PureMVC
/host/spi-builder-workspace/Sources/PureMVC/core/Controller.swift:56:24: warning: static property 'instanceMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 54 |
 55 |     // The Multiton Controller instanceMap.
 56 |     private static var instanceMap = [String: IController]()
    |                        |- warning: static property 'instanceMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'instanceMap' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'instanceMap' 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
 57 |
 58 |     // instance Queue for thread safety
/host/spi-builder-workspace/Sources/PureMVC/core/Model.swift:45:24: warning: static property 'instanceMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 43 |
 44 |     // The Multiton Model instanceMap.
 45 |     private static var instanceMap = [String: IModel]()
    |                        |- warning: static property 'instanceMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'instanceMap' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'instanceMap' 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
 46 |
 47 |     // instance Queue for thread safety
/host/spi-builder-workspace/Sources/PureMVC/core/View.swift:50:24: warning: static property 'instanceMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 48 |
 49 |     // The Multiton View instanceMap.
 50 |     private static var instanceMap = [String: IView]()
    |                        |- warning: static property 'instanceMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'instanceMap' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'instanceMap' 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
 51 |
 52 |     // instance Queue for thread safety
/host/spi-builder-workspace/Sources/PureMVC/patterns/facade/Facade.swift:35:24: warning: static property 'instanceMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 33 |
 34 |     // The Multiton Facade instanceMap.
 35 |     private static var instanceMap = [String: IFacade]()
    |                        |- warning: static property 'instanceMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'instanceMap' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'instanceMap' 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
 36 |
 37 |     // Concurrent queue for instanceMap
[4/24] Compiling PureMVC INotifier.swift
[5/24] Compiling PureMVC IObserver.swift
[6/24] Compiling PureMVC IProxy.swift
[7/24] Compiling PureMVC IView.swift
[8/24] Compiling PureMVC MacroCommand.swift
[9/24] Compiling PureMVC SimpleCommand.swift
[10/24] Compiling PureMVC IMediator.swift
[11/24] Compiling PureMVC IModel.swift
[12/24] Compiling PureMVC INotification.swift
[13/24] Compiling PureMVC Observer.swift
[14/24] Compiling PureMVC Proxy.swift
[15/24] Compiling PureMVC ICommand.swift
[16/24] Compiling PureMVC IController.swift
[17/24] Compiling PureMVC IFacade.swift
[18/24] Compiling PureMVC Facade.swift
/host/spi-builder-workspace/Sources/PureMVC/patterns/facade/Facade.swift:35:24: warning: static property 'instanceMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 33 |
 34 |     // The Multiton Facade instanceMap.
 35 |     private static var instanceMap = [String: IFacade]()
    |                        |- warning: static property 'instanceMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'instanceMap' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'instanceMap' 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
 36 |
 37 |     // Concurrent queue for instanceMap
[19/24] Compiling PureMVC Mediator.swift
/host/spi-builder-workspace/Sources/PureMVC/patterns/facade/Facade.swift:35:24: warning: static property 'instanceMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 33 |
 34 |     // The Multiton Facade instanceMap.
 35 |     private static var instanceMap = [String: IFacade]()
    |                        |- warning: static property 'instanceMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'instanceMap' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'instanceMap' 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
 36 |
 37 |     // Concurrent queue for instanceMap
[20/24] Compiling PureMVC Notification.swift
[21/24] Compiling PureMVC Notifier.swift
[22/24] Compiling PureMVC Controller.swift
/host/spi-builder-workspace/Sources/PureMVC/core/Controller.swift:56:24: warning: static property 'instanceMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 54 |
 55 |     // The Multiton Controller instanceMap.
 56 |     private static var instanceMap = [String: IController]()
    |                        |- warning: static property 'instanceMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'instanceMap' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'instanceMap' 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
 57 |
 58 |     // instance Queue for thread safety
/host/spi-builder-workspace/Sources/PureMVC/core/Model.swift:45:24: warning: static property 'instanceMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 43 |
 44 |     // The Multiton Model instanceMap.
 45 |     private static var instanceMap = [String: IModel]()
    |                        |- warning: static property 'instanceMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'instanceMap' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'instanceMap' 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
 46 |
 47 |     // instance Queue for thread safety
/host/spi-builder-workspace/Sources/PureMVC/core/View.swift:50:24: warning: static property 'instanceMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 48 |
 49 |     // The Multiton View instanceMap.
 50 |     private static var instanceMap = [String: IView]()
    |                        |- warning: static property 'instanceMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'instanceMap' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'instanceMap' 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
 51 |
 52 |     // instance Queue for thread safety
[23/24] Compiling PureMVC Model.swift
/host/spi-builder-workspace/Sources/PureMVC/core/Controller.swift:56:24: warning: static property 'instanceMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 54 |
 55 |     // The Multiton Controller instanceMap.
 56 |     private static var instanceMap = [String: IController]()
    |                        |- warning: static property 'instanceMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'instanceMap' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'instanceMap' 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
 57 |
 58 |     // instance Queue for thread safety
/host/spi-builder-workspace/Sources/PureMVC/core/Model.swift:45:24: warning: static property 'instanceMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 43 |
 44 |     // The Multiton Model instanceMap.
 45 |     private static var instanceMap = [String: IModel]()
    |                        |- warning: static property 'instanceMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'instanceMap' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'instanceMap' 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
 46 |
 47 |     // instance Queue for thread safety
/host/spi-builder-workspace/Sources/PureMVC/core/View.swift:50:24: warning: static property 'instanceMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 48 |
 49 |     // The Multiton View instanceMap.
 50 |     private static var instanceMap = [String: IView]()
    |                        |- warning: static property 'instanceMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'instanceMap' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'instanceMap' 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
 51 |
 52 |     // instance Queue for thread safety
[24/24] Compiling PureMVC View.swift
/host/spi-builder-workspace/Sources/PureMVC/core/Controller.swift:56:24: warning: static property 'instanceMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 54 |
 55 |     // The Multiton Controller instanceMap.
 56 |     private static var instanceMap = [String: IController]()
    |                        |- warning: static property 'instanceMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'instanceMap' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'instanceMap' 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
 57 |
 58 |     // instance Queue for thread safety
/host/spi-builder-workspace/Sources/PureMVC/core/Model.swift:45:24: warning: static property 'instanceMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 43 |
 44 |     // The Multiton Model instanceMap.
 45 |     private static var instanceMap = [String: IModel]()
    |                        |- warning: static property 'instanceMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'instanceMap' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'instanceMap' 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
 46 |
 47 |     // instance Queue for thread safety
/host/spi-builder-workspace/Sources/PureMVC/core/View.swift:50:24: warning: static property 'instanceMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 48 |
 49 |     // The Multiton View instanceMap.
 50 |     private static var instanceMap = [String: IView]()
    |                        |- warning: static property 'instanceMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'instanceMap' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'instanceMap' 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
 51 |
 52 |     // instance Queue for thread safety
Build complete! (10.32s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "PureMVC",
  "name" : "PureMVC",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "PureMVC",
      "targets" : [
        "PureMVC"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PureMVCTests",
      "module_type" : "SwiftTarget",
      "name" : "PureMVCTests",
      "path" : "Tests/PureMVCTests",
      "sources" : [
        "core/ControllerExtend.swift",
        "core/ControllerExtendTest.swift",
        "core/ControllerTest.swift",
        "core/ControllerTestCommand.swift",
        "core/ControllerTestCommand2.swift",
        "core/ControllerTestVO.swift",
        "core/ModelExtend.swift",
        "core/ModelExtendTest.swift",
        "core/ModelTest.swift",
        "core/ModelTestProxy.swift",
        "core/Resource.swift",
        "core/ViewExtend.swift",
        "core/ViewExtendTest.swift",
        "core/ViewTest.swift",
        "core/ViewTestMediator.swift",
        "core/ViewTestMediator2.swift",
        "core/ViewTestMediator3.swift",
        "core/ViewTestMediator4.swift",
        "core/ViewTestMediator5.swift",
        "core/ViewTestMediator6.swift",
        "core/ViewTestNote.swift",
        "core/ViewTestVO.swift",
        "patterns/command/MacroCommandTest.swift",
        "patterns/command/MacroCommandTestCommand.swift",
        "patterns/command/MacroCommandTestSub1Command.swift",
        "patterns/command/MacroCommandTestSub2Command.swift",
        "patterns/command/MacroCommandTestVO.swift",
        "patterns/command/SimpleCommandTest.swift",
        "patterns/command/SimpleCommandTestCommand.swift",
        "patterns/command/SimpleCommandTestVO.swift",
        "patterns/facade/ApplicationMediator.swift",
        "patterns/facade/DataProxy.swift",
        "patterns/facade/FacadeExtend.swift",
        "patterns/facade/FacadeExtendTest.swift",
        "patterns/facade/FacadeTest.swift",
        "patterns/facade/FacadeTestCommand.swift",
        "patterns/facade/FacadeTestCommand2.swift",
        "patterns/facade/FacadeTestVO.swift",
        "patterns/facade/ResourceCommand.swift",
        "patterns/facade/ShellFacade.swift",
        "patterns/facade/ShellFacadeTest.swift",
        "patterns/mediator/MediatorTest.swift",
        "patterns/mediator/ResourceMediator.swift",
        "patterns/observer/NotificationTest.swift",
        "patterns/observer/NotifierTest.swift",
        "patterns/observer/ObserverTest.swift",
        "patterns/proxy/ProxyTest.swift",
        "patterns/proxy/ResourceProxy.swift"
      ],
      "target_dependencies" : [
        "PureMVC"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PureMVC",
      "module_type" : "SwiftTarget",
      "name" : "PureMVC",
      "path" : "Sources/PureMVC",
      "product_memberships" : [
        "PureMVC"
      ],
      "sources" : [
        "core/Controller.swift",
        "core/Model.swift",
        "core/View.swift",
        "interfaces/ICommand.swift",
        "interfaces/IController.swift",
        "interfaces/IFacade.swift",
        "interfaces/IMediator.swift",
        "interfaces/IModel.swift",
        "interfaces/INotification.swift",
        "interfaces/INotifier.swift",
        "interfaces/IObserver.swift",
        "interfaces/IProxy.swift",
        "interfaces/IView.swift",
        "patterns/command/MacroCommand.swift",
        "patterns/command/SimpleCommand.swift",
        "patterns/facade/Facade.swift",
        "patterns/mediator/Mediator.swift",
        "patterns/observer/Notification.swift",
        "patterns/observer/Notifier.swift",
        "patterns/observer/Observer.swift",
        "patterns/proxy/Proxy.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.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
Done.