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 master (bec3e7), with Swift 6.1 for Linux on 28 Apr 2025 06:26:33 UTC.

Swift 6 data race errors: 0

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-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.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/vapor-community/random.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/vapor-community/random
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at bec3e75 Merge pull request #14 from vapor/cci2
Cloned https://github.com/vapor-community/random.git
Revision (git rev-parse @):
bec3e7506c0702940a63761cc673b8dd87f112fe
SUCCESS checkout https://github.com/vapor-community/random.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/vapor-community/random.git
https://github.com/vapor-community/random.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "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" : "/host/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 ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-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.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/vapor/core.git
[1/20143] Fetching core
Fetched https://github.com/vapor/core.git from cache (0.66s)
Computing version for https://github.com/vapor/core.git
Computed https://github.com/vapor/core.git at 2.2.1 (1.11s)
Fetching https://github.com/vapor/bits.git
Fetching https://github.com/vapor/debugging.git
[1/260] Fetching debugging
[261/618] Fetching debugging, bits
Fetched https://github.com/vapor/debugging.git from cache (0.24s)
Fetched https://github.com/vapor/bits.git from cache (0.24s)
Computing version for https://github.com/vapor/debugging.git
Computed https://github.com/vapor/debugging.git at 1.1.1 (0.69s)
Computing version for https://github.com/vapor/bits.git
Computed https://github.com/vapor/bits.git at 1.1.1 (0.45s)
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/bits.git
Working copy of https://github.com/vapor/bits.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
Building for debugging...
[0/6] Write sources
[5/6] Write swift-version-24593BA9C3E375BF.txt
[7/28] Emitting module Bits
[8/30] Emitting module Debugging
[9/30] Compiling Debugging Debuggable.swift
[10/31] Compiling Bits UnsignedInteger+BytesConvertible.swift
[11/31] Compiling Bits UnsignedInteger+Shifting.swift
[13/31] Emitting module libc
[14/31] Compiling libc libc.swift
[16/32] Compiling Bits Aliases.swift
[17/32] Compiling Bits Base64Encoder.swift
[18/32] Compiling Bits Byte+Alphabet.swift
[19/32] Compiling Bits Data+BytesConvertible.swift
[20/32] Compiling Bits HexEncoder.swift
[21/32] Compiling Bits Bytes+Percent.swift
[22/32] Compiling Bits BytesConvertible.swift
[23/32] Compiling Bits Byte+Random.swift
[24/32] Compiling Bits Byte+UTF8Numbers.swift
[25/32] Compiling Bits ByteSequence+Conversions.swift
[26/32] Compiling Bits Operators.swift
[27/32] Compiling Bits String+BytesConvertible.swift
[28/32] Compiling Bits Bytes+Base64.swift
[29/32] Compiling Bits Bytes+Hex.swift
[30/32] Compiling Bits Byte+ControlCharacters.swift
[31/32] Compiling Bits Byte+Convenience.swift
[32/32] Compiling Bits Byte+PatternMatching.swift
[34/55] Compiling Core Extendable.swift
[35/55] Compiling Core FileProtocol.swift
[36/55] Compiling Core Int+Hex.swift
[37/55] Compiling Core Result.swift
[38/55] Compiling Core Semaphore.swift
[39/55] Compiling Core Sequence.swift
[40/57] Emitting module Core
[41/57] Compiling Core Collection+Safe.swift
[42/57] Compiling Core DataFile.swift
[43/57] Compiling Core Dispatch.swift
[44/57] Compiling Core Lock.swift
[45/57] Compiling Core Portal.swift
[46/57] Compiling Core RFC1123.swift
[47/57] Compiling Core DispatchTime+Utilities.swift
[48/57] Compiling Core EmptyInitializable.swift
[49/57] Compiling Core Exports.swift
[50/57] Compiling Core StaticDataBuffer.swift
[51/57] Compiling Core String+CaseInsensitiveCompare.swift
[52/57] Compiling Core String+Polymorphic.swift
[53/57] Compiling Core Array.swift
[54/57] Compiling Core Bits.swift
[55/57] Compiling Core Cache.swift
[56/57] Compiling Core String.swift
[57/57] Compiling Core WorkingDirectory.swift
[59/65] Compiling Random URandom.swift
[60/65] Compiling Random RandomProtocol.swift
/host/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
/host/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
/host/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
/host/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
[61/65] Compiling Random EmptyInitializable.swift
[62/65] Compiling Random Array+Random.swift
/host/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
[63/65] Compiling Random Exports.swift
[64/65] Compiling Random OSRandom.swift
[65/65] Emitting module Random
Build complete! (8.32s)
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" : "/host/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"
}
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Done.