This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 SemiSingleton with Swift 6.0 for Linux.

Swift 6 data race errors: 1

Build Command

bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" 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.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/happn-app/SemiSingleton.git
Reference: main
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/happn-app/SemiSingleton
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at a2bbad0 Dummy comment formatting fixes
Cloned https://github.com/happn-app/SemiSingleton.git
Revision (git rev-parse @):
a2bbad008641318f3f7faf2ec53e3bb8f0e080ff
SUCCESS checkout https://github.com/happn-app/SemiSingleton.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $workDir
https://github.com/happn-app/SemiSingleton.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" 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
Fetching https://github.com/happn-app/RecursiveSyncDispatch.git
Fetching https://github.com/apple/swift-log.git
[1/178] Fetching recursivesyncdispatch
Fetched https://github.com/happn-app/RecursiveSyncDispatch.git from cache (0.24s)
[1/3353] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.39s)
Computing version for https://github.com/happn-app/RecursiveSyncDispatch.git
Computed https://github.com/happn-app/RecursiveSyncDispatch.git at 1.0.1 (0.52s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.4.0 (0.52s)
Creating working copy for https://github.com/happn-app/RecursiveSyncDispatch.git
Working copy of https://github.com/happn-app/RecursiveSyncDispatch.git resolved at 1.0.1
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.4.0
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/10] Compiling Logging Logging.swift
[6/10] Compiling Logging LogHandler.swift
[7/10] Compiling Logging Locks.swift
[8/10] Emitting module Logging
[10/11] Emitting module RecursiveSyncDispatch
[11/11] Compiling RecursiveSyncDispatch RecursiveSyncDispatch.swift
[13/16] Compiling SemiSingleton LinuxStrongToWeakMapTable.swift
[14/16] Emitting module SemiSingleton
/host/spi-builder-workspace/Sources/SemiSingleton/SemiSingletonConfig.swift:47:20: warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
45 | 	public static var oslog: OSLog? = .default
46 | #endif
47 | 	public static var logger: Logging.Logger? = {
   |                    |- warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'logger' 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
48 | #if canImport(os)
49 | 		if #available(macOS 10.12, tvOS 10.0, iOS 10.0, watchOS 3.0, *) {
[15/16] Compiling SemiSingleton SemiSingletonConfig.swift
/host/spi-builder-workspace/Sources/SemiSingleton/SemiSingletonConfig.swift:47:20: warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
45 | 	public static var oslog: OSLog? = .default
46 | #endif
47 | 	public static var logger: Logging.Logger? = {
   |                    |- warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'logger' 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
48 | #if canImport(os)
49 | 		if #available(macOS 10.12, tvOS 10.0, iOS 10.0, watchOS 3.0, *) {
[16/16] Compiling SemiSingleton SemiSingletonStore.swift
/host/spi-builder-workspace/Sources/SemiSingleton/SemiSingletonConfig.swift:47:20: warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
45 | 	public static var oslog: OSLog? = .default
46 | #endif
47 | 	public static var logger: Logging.Logger? = {
   |                    |- warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'logger' 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
48 | #if canImport(os)
49 | 		if #available(macOS 10.12, tvOS 10.0, iOS 10.0, watchOS 3.0, *) {
Build complete! (13.08s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.2.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log.git"
    },
    {
      "identity" : "recursivesyncdispatch",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/happn-app/RecursiveSyncDispatch.git"
    }
  ],
  "manifest_display_name" : "SemiSingleton",
  "name" : "SemiSingleton",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SemiSingleton",
      "targets" : [
        "SemiSingleton"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SemiSingletonTests",
      "module_type" : "SwiftTarget",
      "name" : "SemiSingletonTests",
      "path" : "Tests/SemiSingletonTests",
      "sources" : [
        "Helpers/ActorSemiSingleton.swift",
        "Helpers/ReentrantSemiSingletonInit.swift",
        "Helpers/SimpleSemiSingleton.swift",
        "SemiSingletonTests.swift"
      ],
      "target_dependencies" : [
        "SemiSingleton"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SemiSingleton",
      "module_type" : "SwiftTarget",
      "name" : "SemiSingleton",
      "path" : "Sources/SemiSingleton",
      "product_dependencies" : [
        "Logging",
        "RecursiveSyncDispatch"
      ],
      "product_memberships" : [
        "SemiSingleton"
      ],
      "sources" : [
        "LinuxStrongToWeakMapTable.swift",
        "SemiSingletonConfig.swift",
        "SemiSingletonStore.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.