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 Random, reference 1.2.0 (d7c439), with Swift 6.0 for macOS (SPM) on 30 Nov 2024 12:13:10 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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/vapor-community/random.git
Reference: 1.2.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/vapor-community/random
 * tag               1.2.0      -> FETCH_HEAD
HEAD is now at d7c4397 Merge pull request #13 from vapor/swift4
Cloned https://github.com/vapor-community/random.git
Revision (git rev-parse @):
d7c4397d125caba795d14d956efacfe2a27a63d0
SUCCESS checkout https://github.com/vapor-community/random.git at 1.2.0
Fetching https://github.com/vapor/core.git
Fetching https://github.com/vapor/bits.git
Fetching https://github.com/vapor/debugging.git
[1/260] Fetching debugging
[40/618] Fetching debugging, bits
[295/20761] Fetching debugging, bits, core
Fetched https://github.com/vapor/bits.git from cache (1.62s)
Fetched https://github.com/vapor/core.git from cache (1.62s)
Fetched https://github.com/vapor/debugging.git from cache (1.62s)
Computing version for https://github.com/vapor/core.git
Computed https://github.com/vapor/core.git at 2.1.1 (0.60s)
Computing version for https://github.com/vapor/debugging.git
Computed https://github.com/vapor/debugging.git at 1.1.0 (0.58s)
Computing version for https://github.com/vapor/bits.git
Computed https://github.com/vapor/bits.git at 1.1.0 (0.56s)
Creating working copy for https://github.com/vapor/bits.git
Working copy of https://github.com/vapor/bits.git resolved at 1.1.0
Creating working copy for https://github.com/vapor/debugging.git
Working copy of https://github.com/vapor/debugging.git resolved at 1.1.0
Creating working copy for https://github.com/vapor/core.git
Working copy of https://github.com/vapor/core.git resolved at 2.1.1
========================================
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": "random",
      "name": "Random",
      "url": "https://github.com/vapor-community/random.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/random",
      "dependencies": [
        {
          "identity": "core",
          "name": "Core",
          "url": "https://github.com/vapor/core.git",
          "version": "2.2.1",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/core",
          "dependencies": [
            {
              "identity": "bits",
              "name": "Bits",
              "url": "https://github.com/vapor/bits.git",
              "version": "1.1.1",
              "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/bits",
              "dependencies": [
              ]
            },
            {
              "identity": "debugging",
              "name": "Debugging",
              "url": "https://github.com/vapor/debugging.git",
              "version": "1.1.1",
              "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/debugging",
              "dependencies": [
              ]
            }
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/vapor-community/random.git
[3/148] Fetching random
Fetched https://github.com/vapor-community/random.git from cache (0.69s)
Fetching https://github.com/vapor/core.git from cache
Fetched https://github.com/vapor/core.git from cache (0.51s)
Computing version for https://github.com/vapor/core.git
Computed https://github.com/vapor/core.git at 2.2.1 (0.57s)
Fetching https://github.com/vapor/bits.git from cache
Fetching https://github.com/vapor/debugging.git from cache
Fetched https://github.com/vapor/bits.git from cache (0.47s)
Fetched https://github.com/vapor/debugging.git from cache (0.47s)
Computing version for https://github.com/vapor/debugging.git
Computed https://github.com/vapor/debugging.git at 1.1.1 (0.03s)
Computing version for https://github.com/vapor/bits.git
Computed https://github.com/vapor/bits.git at 1.1.1 (0.03s)
Creating working copy for https://github.com/vapor-community/random.git
Working copy of https://github.com/vapor-community/random.git resolved at 1.2.0 (d7c4397)
Creating working copy for https://github.com/vapor/debugging.git
Working copy of https://github.com/vapor/debugging.git resolved at 1.1.1
Creating working copy for https://github.com/vapor/core.git
Working copy of https://github.com/vapor/core.git resolved at 2.2.1
Creating working copy for https://github.com/vapor/bits.git
Working copy of https://github.com/vapor/bits.git resolved at 1.1.1
warning: '.resolve-product-dependencies': dependency 'random' is not used by any target
Found 1 product dependencies
  - Core
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/vapor-community/random.git
{
  "dependencies" : [
    {
      "identity" : "core",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.1.1",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/vapor/core.git"
    }
  ],
  "manifest_display_name" : "Random",
  "name" : "Random",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Random",
      "targets" : [
        "Random"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "RandomTests",
      "module_type" : "SwiftTarget",
      "name" : "RandomTests",
      "path" : "Tests/RandomTests",
      "sources" : [
        "RandomTests.swift"
      ],
      "target_dependencies" : [
        "Random"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Random",
      "module_type" : "SwiftTarget",
      "name" : "Random",
      "path" : "Sources/Random",
      "product_dependencies" : [
        "Core"
      ],
      "product_memberships" : [
        "Random"
      ],
      "sources" : [
        "Array+Random.swift",
        "EmptyInitializable.swift",
        "Exports.swift",
        "OSRandom.swift",
        "RandomProtocol.swift",
        "URandom.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/6] Write sources
[5/6] Write swift-version--7754E27361AE5C74.txt
[7/29] Compiling Debugging Debuggable.swift
[8/29] Emitting module Debugging
[9/29] Emitting module libc
[10/29] Compiling libc libc.swift
[11/29] Compiling Bits Byte+Random.swift
[12/29] Compiling Bits Byte+UTF8Numbers.swift
[13/29] Compiling Bits HexEncoder.swift
[14/29] Compiling Bits Operators.swift
[15/29] Compiling Bits String+BytesConvertible.swift
[16/29] Compiling Bits UnsignedInteger+BytesConvertible.swift
[17/29] Compiling Bits BytesConvertible.swift
[18/29] Compiling Bits Data+BytesConvertible.swift
[19/29] Compiling Bits Byte+Alphabet.swift
[20/29] Compiling Bits Byte+ControlCharacters.swift
[21/29] Compiling Bits ByteSequence+Conversions.swift
[22/29] Compiling Bits Bytes+Base64.swift
[23/29] Compiling Bits Byte+Convenience.swift
[24/29] Compiling Bits Byte+PatternMatching.swift
[25/29] Compiling Bits Aliases.swift
[26/29] Compiling Bits Base64Encoder.swift
[27/29] Emitting module Bits
[28/29] Compiling Bits Bytes+Hex.swift
[29/29] Compiling Bits Bytes+Percent.swift
[30/30] Compiling Bits UnsignedInteger+Shifting.swift
[31/52] Emitting module Core
[32/54] Compiling Core Extendable.swift
[33/54] Compiling Core FileProtocol.swift
[34/54] Compiling Core String.swift
[35/54] Compiling Core WorkingDirectory.swift
[36/54] Compiling Core DispatchTime+Utilities.swift
[37/54] Compiling Core EmptyInitializable.swift
[38/54] Compiling Core Exports.swift
[39/54] Compiling Core Portal.swift
[40/54] Compiling Core RFC1123.swift
[41/54] Compiling Core Sequence.swift
[42/54] Compiling Core StaticDataBuffer.swift
[43/54] Compiling Core Result.swift
[44/54] Compiling Core Semaphore.swift
[45/54] Compiling Core Int+Hex.swift
[46/54] Compiling Core Lock.swift
[47/54] Compiling Core Array.swift
[48/54] Compiling Core Bits.swift
[49/54] Compiling Core Cache.swift
[50/54] Compiling Core String+CaseInsensitiveCompare.swift
[51/54] Compiling Core String+Polymorphic.swift
[52/54] Compiling Core Collection+Safe.swift
[53/54] Compiling Core DataFile.swift
[54/54] Compiling Core Dispatch.swift
[55/61] Compiling Random RandomProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/Random/RandomProtocol.swift:28:16: warning: initialization of 'UnsafeRawPointer' results in a dangling pointer
26 |     public func makeUInt16() throws -> UInt16 {
27 |         let random = try bytes(count: 2)
28 |         return UnsafeRawPointer(random)
   |                |                |- note: implicit argument conversion from 'Bytes' (aka 'Array<UInt8>') to 'UnsafeRawPointer' produces a pointer valid only for the duration of the call to 'init(_:)'
   |                |                `- note: use the 'withUnsafeBytes' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
   |                `- warning: initialization of 'UnsafeRawPointer' results in a dangling pointer
29 |             .assumingMemoryBound(to: UInt16.self)
30 |             .pointee
/Users/admin/builder/spi-builder-workspace/Sources/Random/RandomProtocol.swift:41:16: warning: initialization of 'UnsafeRawPointer' results in a dangling pointer
39 |     public func makeUInt32() throws -> UInt32 {
40 |         let random = try bytes(count: 4)
41 |         return UnsafeRawPointer(random)
   |                |                |- note: implicit argument conversion from 'Bytes' (aka 'Array<UInt8>') to 'UnsafeRawPointer' produces a pointer valid only for the duration of the call to 'init(_:)'
   |                |                `- note: use the 'withUnsafeBytes' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
   |                `- warning: initialization of 'UnsafeRawPointer' results in a dangling pointer
42 |             .assumingMemoryBound(to: UInt32.self)
43 |             .pointee
/Users/admin/builder/spi-builder-workspace/Sources/Random/RandomProtocol.swift:54:16: warning: initialization of 'UnsafeRawPointer' results in a dangling pointer
52 |     public func makeUInt64() throws -> UInt64 {
53 |         let random = try bytes(count: 8)
54 |         return UnsafeRawPointer(random)
   |                |                |- note: implicit argument conversion from 'Bytes' (aka 'Array<UInt8>') to 'UnsafeRawPointer' produces a pointer valid only for the duration of the call to 'init(_:)'
   |                |                `- note: use the 'withUnsafeBytes' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
   |                `- warning: initialization of 'UnsafeRawPointer' results in a dangling pointer
55 |             .assumingMemoryBound(to: UInt64.self)
56 |             .pointee
/Users/admin/builder/spi-builder-workspace/Sources/Random/RandomProtocol.swift:67:16: warning: initialization of 'UnsafeRawPointer' results in a dangling pointer
65 |     public func makeUInt() throws -> UInt {
66 |         let random = try bytes(count: MemoryLayout<UInt>.size)
67 |         return UnsafeRawPointer(random)
   |                |                |- note: implicit argument conversion from 'Bytes' (aka 'Array<UInt8>') to 'UnsafeRawPointer' produces a pointer valid only for the duration of the call to 'init(_:)'
   |                |                `- note: use the 'withUnsafeBytes' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
   |                `- warning: initialization of 'UnsafeRawPointer' results in a dangling pointer
68 |             .assumingMemoryBound(to: UInt.self)
69 |             .pointee
[56/61] Compiling Random OSRandom.swift
[57/61] Compiling Random Exports.swift
[58/61] Compiling Random EmptyInitializable.swift
[59/61] Compiling Random Array+Random.swift
/Users/admin/builder/spi-builder-workspace/Sources/Random/Array+Random.swift:8:22: warning: initialization of 'UnsafeRawPointer' results in a dangling pointer
 6 |
 7 |         let bytes = OSRandom().bytes(count: 8)
 8 |         let random = UnsafeRawPointer(bytes)
   |                      |                |- note: implicit argument conversion from 'Bytes' (aka 'Array<UInt8>') to 'UnsafeRawPointer' produces a pointer valid only for the duration of the call to 'init(_:)'
   |                      |                `- note: use the 'withUnsafeBytes' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
   |                      `- warning: initialization of 'UnsafeRawPointer' results in a dangling pointer
 9 |             .assumingMemoryBound(to: UInt.self)
10 |             .pointee
[60/61] Compiling Random URandom.swift
[61/61] Emitting module Random
Build complete! (8.38s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "core",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.1.1",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/vapor/core.git"
    }
  ],
  "manifest_display_name" : "Random",
  "name" : "Random",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Random",
      "targets" : [
        "Random"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "RandomTests",
      "module_type" : "SwiftTarget",
      "name" : "RandomTests",
      "path" : "Tests/RandomTests",
      "sources" : [
        "RandomTests.swift"
      ],
      "target_dependencies" : [
        "Random"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Random",
      "module_type" : "SwiftTarget",
      "name" : "Random",
      "path" : "Sources/Random",
      "product_dependencies" : [
        "Core"
      ],
      "product_memberships" : [
        "Random"
      ],
      "sources" : [
        "Array+Random.swift",
        "EmptyInitializable.swift",
        "Exports.swift",
        "OSRandom.swift",
        "RandomProtocol.swift",
        "URandom.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Done.