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 LRUCache, reference main (542f04), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 06:33:08 UTC.

Swift 6 data race errors: 0

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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/nicklockwood/LRUCache.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/nicklockwood/LRUCache
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 542f044 Update for 1.0.7 release
Cloned https://github.com/nicklockwood/LRUCache.git
Revision (git rev-parse @):
542f0449556327415409ededc9c43a4bd0a397dc
SUCCESS checkout https://github.com/nicklockwood/LRUCache.git at main
========================================
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": "lrucache",
      "name": "LRUCache",
      "url": "https://github.com/nicklockwood/LRUCache.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/LRUCache",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/nicklockwood/LRUCache.git
[1/196] Fetching lrucache
Fetched https://github.com/nicklockwood/LRUCache.git from cache (0.68s)
Creating working copy for https://github.com/nicklockwood/LRUCache.git
Working copy of https://github.com/nicklockwood/LRUCache.git resolved at main (542f044)
warning: '.resolve-product-dependencies': dependency 'lrucache' 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/nicklockwood/LRUCache.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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/4] Compiling LRUCache LRUCache.swift
/Users/admin/builder/spi-builder-workspace/Sources/LRUCache.swift:88:13: warning: capture of 'self' with non-sendable type 'LRUCache<Key, Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 49 | #endif
 50 |
 51 | public final class LRUCache<Key: Hashable, Value> {
    |                    `- note: generic class 'LRUCache' does not conform to the 'Sendable' protocol
 52 |     private var values: [Key: Container] = [:]
 53 |     private unowned(unsafe) var head: Container?
    :
 86 |             queue: nil
 87 |         ) { [weak self] _ in
 88 |             self?.removeAllValues()
    |             `- warning: capture of 'self' with non-sendable type 'LRUCache<Key, Value>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 89 |         }
 90 |     }
[4/4] Emitting module LRUCache
Build complete! (5.65s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "LRUCache",
  "name" : "LRUCache",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "LRUCache",
      "targets" : [
        "LRUCache"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "LRUCacheTests",
      "module_type" : "SwiftTarget",
      "name" : "LRUCacheTests",
      "path" : "Tests",
      "sources" : [
        "LRUCacheTests.swift",
        "LRUPerformanceTests.swift",
        "MetadataTests.swift"
      ],
      "target_dependencies" : [
        "LRUCache"
      ],
      "type" : "test"
    },
    {
      "c99name" : "LRUCache",
      "module_type" : "SwiftTarget",
      "name" : "LRUCache",
      "path" : "Sources",
      "product_memberships" : [
        "LRUCache"
      ],
      "sources" : [
        "LRUCache.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Done.