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-scru128, reference main (d82c68), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 15:45:23 UTC.

Swift 6 data race errors: 1

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/scru128/swift-scru128.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/scru128/swift-scru128
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at d82c68f v3.0.2 Released
Cloned https://github.com/scru128/swift-scru128.git
Revision (git rev-parse @):
d82c68fadb6cdd678682ae963299605ae48590a4
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/scru128/swift-scru128.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": "swift-scru128",
      "name": "swift-scru128",
      "url": "https://github.com/scru128/swift-scru128.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-scru128",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/scru128/swift-scru128.git
[1/534] Fetching swift-scru128
Fetched https://github.com/scru128/swift-scru128.git from cache (0.81s)
Creating working copy for https://github.com/scru128/swift-scru128.git
Working copy of https://github.com/scru128/swift-scru128.git resolved at main (d82c68f)
warning: '.resolve-product-dependencies': dependency 'swift-scru128' 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/scru128/swift-scru128.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/6] Emitting module Scru128
/Users/admin/builder/spi-builder-workspace/Sources/Scru128/Scru128.swift:10:13: warning: let 'globalGenerator' is not concurrency-safe because non-'Sendable' type 'Scru128Generator<SystemRandomNumberGenerator>' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | let maxCounterLo: UInt32 = 0xff_ffff
 9 |
10 | private let globalGenerator = Scru128Generator()
   |             |- warning: let 'globalGenerator' is not concurrency-safe because non-'Sendable' type 'Scru128Generator<SystemRandomNumberGenerator>' may have shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: annotate 'globalGenerator' 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
11 |
12 | /// Generates a new SCRU128 ID object using the global generator.
/Users/admin/builder/spi-builder-workspace/Sources/Scru128/Scru128Generator.swift:27:14: note: generic class 'Scru128Generator' does not conform to the 'Sendable' protocol
 25 | ///
 26 | /// The `Core` functions offer low-level thread-unsafe primitives to customize the behavior.
 27 | public class Scru128Generator<R: RandomNumberGenerator> {
    |              `- note: generic class 'Scru128Generator' does not conform to the 'Sendable' protocol
 28 |   private var timestamp: UInt64 = 0
 29 |   private var counterHi: UInt32 = 0
[4/6] Compiling Scru128 Scru128Id.swift
[5/6] Compiling Scru128 Scru128Generator.swift
[6/6] Compiling Scru128 Scru128.swift
/Users/admin/builder/spi-builder-workspace/Sources/Scru128/Scru128.swift:10:13: warning: let 'globalGenerator' is not concurrency-safe because non-'Sendable' type 'Scru128Generator<SystemRandomNumberGenerator>' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | let maxCounterLo: UInt32 = 0xff_ffff
 9 |
10 | private let globalGenerator = Scru128Generator()
   |             |- warning: let 'globalGenerator' is not concurrency-safe because non-'Sendable' type 'Scru128Generator<SystemRandomNumberGenerator>' may have shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: annotate 'globalGenerator' 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
11 |
12 | /// Generates a new SCRU128 ID object using the global generator.
/Users/admin/builder/spi-builder-workspace/Sources/Scru128/Scru128Generator.swift:27:14: note: generic class 'Scru128Generator' does not conform to the 'Sendable' protocol
 25 | ///
 26 | /// The `Core` functions offer low-level thread-unsafe primitives to customize the behavior.
 27 | public class Scru128Generator<R: RandomNumberGenerator> {
    |              `- note: generic class 'Scru128Generator' does not conform to the 'Sendable' protocol
 28 |   private var timestamp: UInt64 = 0
 29 |   private var counterHi: UInt32 = 0
Build complete! (6.20s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "swift-scru128",
  "name" : "swift-scru128",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Scru128",
      "targets" : [
        "Scru128"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "Scru128Tests",
      "module_type" : "SwiftTarget",
      "name" : "Scru128Tests",
      "path" : "Tests/Scru128Tests",
      "sources" : [
        "Scru128GeneratorTests.swift",
        "Scru128IdTests.swift",
        "Scru128Tests.swift"
      ],
      "target_dependencies" : [
        "Scru128"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Scru128",
      "module_type" : "SwiftTarget",
      "name" : "Scru128",
      "path" : "Sources/Scru128",
      "product_memberships" : [
        "Scru128"
      ],
      "sources" : [
        "Scru128.swift",
        "Scru128Generator.swift",
        "Scru128Id.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.6"
}
✅  Doc result (pending) reported
========================================
GenerateDocs
========================================
Generating docs at path:  $PWD/.docs/scru128/swift-scru128/main
Repository:               scru128/swift-scru128
Swift version used:       6.0
Target:                   Scru128
Extracting symbol information for 'Scru128'...
Finished extracting symbol information for 'Scru128'. (2.85s)
Building documentation for 'Scru128'...
Finished building documentation for 'Scru128' (0.18s)
Generated documentation archive at:
  /Users/admin/builder/spi-builder-workspace/.docs/scru128/swift-scru128/main
Fetching https://github.com/swiftlang/swift-docc-plugin
[1/2038] Fetching swift-docc-plugin
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (1.29s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.3 (0.67s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3153] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (1.26s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.72s)
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.4.3
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Building for debugging...
[0/8] Write sources
[3/8] Write snippet-extract-tool-entitlement.plist
[4/8] Write swift-version--7754E27361AE5C74.txt
[6/53] Compiling SymbolKit DeclarationFragments.swift
[7/53] Compiling SymbolKit Fragment.swift
[8/53] Compiling SymbolKit FragmentKind.swift
[9/53] Compiling SymbolKit FunctionParameter.swift
[10/53] Compiling SymbolKit FunctionSignature.swift
[11/57] Emitting module SymbolKit
[12/57] Compiling SymbolKit SemanticVersion.swift
[13/57] Compiling SymbolKit AccessControl.swift
[14/57] Compiling SymbolKit Availability.swift
[15/57] Compiling SymbolKit AvailabilityItem.swift
[16/57] Compiling SymbolKit Domain.swift
[17/57] Compiling SymbolKit GenericConstraint.swift
[18/57] Compiling SymbolKit GenericParameter.swift
[19/57] Compiling SymbolKit Generics.swift
[20/57] Compiling SymbolKit Namespace.swift
[21/57] Compiling SymbolKit Names.swift
[22/57] Compiling SymbolKit SPI.swift
[23/57] Compiling SymbolKit Snippet.swift
[24/57] Compiling SymbolKit Extension.swift
[25/57] Compiling SymbolKit Identifier.swift
[26/57] Compiling SymbolKit KindIdentifier.swift
[27/57] Compiling SymbolKit Location.swift
[28/57] Compiling SymbolKit Mutability.swift
[29/57] Compiling SymbolKit SourceRange.swift
[30/57] Compiling SymbolKit Metadata.swift
[31/57] Compiling SymbolKit Module.swift
[32/57] Compiling SymbolKit OperatingSystem.swift
[33/57] Compiling SymbolKit Platform.swift
[34/57] Compiling SymbolKit Mixin+Equals.swift
[35/57] Compiling SymbolKit Mixin+Hash.swift
[36/57] Compiling SymbolKit Mixin.swift
[37/57] Compiling SymbolKit LineList.swift
[38/57] Compiling SymbolKit Position.swift
[39/57] Compiling SymbolKit Relationship.swift
[40/57] Compiling SymbolKit RelationshipKind.swift
[41/57] Compiling SymbolKit SourceOrigin.swift
[42/57] Compiling SymbolKit GenericConstraints.swift
[43/57] Compiling SymbolKit Swift.swift
[44/57] Compiling SymbolKit Symbol.swift
[45/57] Compiling SymbolKit SymbolKind.swift
[46/57] Compiling SymbolKit SymbolGraph.swift
[47/57] Compiling SymbolKit GraphCollector.swift
[48/57] Compiling SymbolKit UnifiedSymbol+Encodable.swift
[49/57] Compiling SymbolKit UnifiedSymbol.swift
[50/57] Compiling SymbolKit UnifiedSymbolGraph+Encodable.swift
[51/57] Compiling SymbolKit UnifiedSymbolGraph.swift
[52/57] Emitting module Snippets
[53/57] Compiling Snippets SnippetParser.swift
[54/57] Compiling Snippets Snippet.swift
[55/61] Compiling snippet_extract URL+Status.swift
[56/61] Compiling snippet_extract SymbolGraph+Snippet.swift
[57/61] Emitting module snippet_extract
[58/61] Compiling snippet_extract SnippetBuildCommand.swift
[58/61] Write Objects.LinkFileList
[59/61] Linking snippet-extract-tool
[60/61] Applying snippet-extract-tool
Build of product 'snippet-extract' complete! (4.78s)
Building for debugging...
[0/1] Write swift-version--7754E27361AE5C74.txt
[2/5] Emitting module Scru128
[3/5] Compiling Scru128 Scru128Generator.swift
[4/5] Compiling Scru128 Scru128.swift
[5/5] Compiling Scru128 Scru128Id.swift
Build of target: 'Scru128' complete! (0.71s)
     234
3	/Users/admin/builder/spi-builder-workspace/.docs/scru128/swift-scru128/main
✅  Doc result (uploading) reported
========================================
SyncDocs
========================================
Doc archive source directory: $PWD/.docs/scru128/swift-scru128/main
File count: 234
Doc size:   3.0MB
Preparing doc bundle ...
Uploading prod-scru128-swift-scru128-main-84c6992d.zip to s3://spi-docs-inbox/prod-scru128-swift-scru128-main-84c6992d.zip
Copying... [12%]
Copying... [25%]
Copying... [37%]
Copying... [49%]
Copying... [61%]
Copying... [74%]
Copying... [86%]
Copying... [98%]
Copying... [100%]
Done.