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 BCrypt, reference 1.1.1 (a36b6f), with Swift 6.1 for macOS (SPM) on 28 Apr 2025 06:26:18 UTC.

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.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.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/vapor-community/bcrypt.git
Reference: 1.1.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/vapor-community/bcrypt
 * tag               1.1.1      -> FETCH_HEAD
HEAD is now at a36b6f0 Merge pull request #7 from rpinz/warnings
Cloned https://github.com/vapor-community/bcrypt.git
Revision (git rev-parse @):
a36b6f0381f2edb9fb32b8882ebc801ba8db10ef
SUCCESS checkout https://github.com/vapor-community/bcrypt.git at 1.1.1
Fetching https://github.com/vapor/debugging.git
Fetching https://github.com/vapor/bits.git
Fetching https://github.com/vapor/random.git
Fetching https://github.com/vapor/core.git
[1/260] Fetching debugging
[69/408] Fetching debugging, random
[217/20551] Fetching debugging, random, core
[410/20909] Fetching debugging, random, core, bits
Fetched https://github.com/vapor/bits.git from cache (1.35s)
Fetched https://github.com/vapor/debugging.git from cache (1.35s)
Fetched https://github.com/vapor/core.git from cache (1.35s)
Fetched https://github.com/vapor/random.git from cache (1.35s)
Computing version for https://github.com/vapor/random.git
Computed https://github.com/vapor/random.git at 1.2.0 (1.95s)
Computing version for https://github.com/vapor/core.git
Computed https://github.com/vapor/core.git at 2.1.1 (0.59s)
Computing version for https://github.com/vapor/debugging.git
Computed https://github.com/vapor/debugging.git at 1.1.0 (0.60s)
Computing version for https://github.com/vapor/bits.git
Computed https://github.com/vapor/bits.git at 1.1.0 (0.57s)
Creating working copy for https://github.com/vapor/core.git
Working copy of https://github.com/vapor/core.git resolved at 2.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.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/random.git
Working copy of https://github.com/vapor/random.git resolved at 1.2.0
========================================
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": "bcrypt",
      "name": "BCrypt",
      "url": "https://github.com/vapor-community/bcrypt.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/bcrypt",
      "dependencies": [
        {
          "identity": "random",
          "name": "Random",
          "url": "https://github.com/vapor/random.git",
          "version": "1.2.0",
          "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/bcrypt.git
[1/99] Fetching bcrypt
Fetched https://github.com/vapor-community/bcrypt.git from cache (0.58s)
Fetching https://github.com/vapor/random.git from cache
Fetched https://github.com/vapor/random.git from cache (0.45s)
Computing version for https://github.com/vapor/random.git
Computed https://github.com/vapor/random.git at 1.2.0 (0.52s)
Fetching https://github.com/vapor/core.git from cache
Fetched https://github.com/vapor/core.git from cache (0.48s)
Computing version for https://github.com/vapor/core.git
Computed https://github.com/vapor/core.git at 2.2.1 (1.05s)
Fetching https://github.com/vapor/debugging.git from cache
Fetching https://github.com/vapor/bits.git from cache
Fetched https://github.com/vapor/bits.git from cache (0.49s)
Fetched https://github.com/vapor/debugging.git from cache (0.49s)
Computing version for https://github.com/vapor/debugging.git
Computed https://github.com/vapor/debugging.git at 1.1.1 (0.55s)
Computing version for https://github.com/vapor/bits.git
Computed https://github.com/vapor/bits.git at 1.1.1 (0.04s)
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-community/bcrypt.git
Working copy of https://github.com/vapor-community/bcrypt.git resolved at 1.1.1 (a36b6f0)
Creating working copy for https://github.com/vapor/random.git
Working copy of https://github.com/vapor/random.git resolved at 1.2.0
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
warning: '.resolve-product-dependencies': dependency 'bcrypt' is not used by any target
Found 1 product dependencies
  - Random
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/vapor-community/bcrypt.git
https://github.com/vapor-community/bcrypt.git
{
  "dependencies" : [
    {
      "identity" : "random",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.2.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/vapor/random.git"
    }
  ],
  "manifest_display_name" : "BCrypt",
  "name" : "BCrypt",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "BCrypt",
      "targets" : [
        "BCrypt"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "BCryptTests",
      "module_type" : "SwiftTarget",
      "name" : "BCryptTests",
      "path" : "Tests/BCryptTests",
      "sources" : [
        "BCryptTests.swift"
      ],
      "target_dependencies" : [
        "BCrypt"
      ],
      "type" : "test"
    },
    {
      "c99name" : "BCrypt",
      "module_type" : "SwiftTarget",
      "name" : "BCrypt",
      "path" : "Sources/BCrypt",
      "product_dependencies" : [
        "Random"
      ],
      "product_memberships" : [
        "BCrypt"
      ],
      "sources" : [
        "BCryptError.swift",
        "Base64.swift",
        "Convenience.swift",
        "Export.swift",
        "Hash.swift",
        "Keys.swift",
        "Parser.swift",
        "Salt.swift",
        "Serializer.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.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/7] Write sources
[6/7] Write swift-version-2F0A5646E1D333AE.txt
[8/30] Compiling Debugging Debuggable.swift
[9/30] Emitting module Debugging
[10/30] Emitting module libc
[11/30] Compiling libc libc.swift
[12/30] Emitting module Bits
[13/30] Compiling Bits Aliases.swift
[14/30] Compiling Bits Base64Encoder.swift
[15/31] Compiling Bits HexEncoder.swift
[16/31] Compiling Bits Operators.swift
[17/31] Compiling Bits UnsignedInteger+Shifting.swift
[18/31] Compiling Bits String+BytesConvertible.swift
[19/31] Compiling Bits UnsignedInteger+BytesConvertible.swift
[20/31] Compiling Bits Bytes+Hex.swift
[21/31] Compiling Bits Bytes+Percent.swift
[22/31] Compiling Bits ByteSequence+Conversions.swift
[23/31] Compiling Bits Bytes+Base64.swift
[24/31] Compiling Bits Byte+Convenience.swift
[25/31] Compiling Bits Byte+PatternMatching.swift
[26/31] Compiling Bits Byte+Alphabet.swift
[27/31] Compiling Bits Byte+ControlCharacters.swift
[28/31] Compiling Bits BytesConvertible.swift
[29/31] Compiling Bits Data+BytesConvertible.swift
[30/31] Compiling Bits Byte+Random.swift
[31/31] Compiling Bits Byte+UTF8Numbers.swift
[32/53] Emitting module Core
[33/55] Compiling Core Result.swift
[34/55] Compiling Core Semaphore.swift
[35/55] Compiling Core Int+Hex.swift
[36/55] Compiling Core Lock.swift
[37/55] Compiling Core String+CaseInsensitiveCompare.swift
[38/55] Compiling Core String+Polymorphic.swift
[39/55] Compiling Core Portal.swift
[40/55] Compiling Core RFC1123.swift
[41/55] Compiling Core DispatchTime+Utilities.swift
[42/55] Compiling Core EmptyInitializable.swift
[43/55] Compiling Core Exports.swift
[44/55] Compiling Core Sequence.swift
[45/55] Compiling Core StaticDataBuffer.swift
[46/55] Compiling Core Extendable.swift
[47/55] Compiling Core FileProtocol.swift
[48/55] Compiling Core Collection+Safe.swift
[49/55] Compiling Core DataFile.swift
[50/55] Compiling Core Dispatch.swift
[51/55] Compiling Core Array.swift
[52/55] Compiling Core Bits.swift
[53/55] Compiling Core Cache.swift
[54/55] Compiling Core String.swift
[55/55] Compiling Core WorkingDirectory.swift
[56/62] Compiling Random RandomProtocol.swift
[57/62] Compiling Random URandom.swift
[58/62] Compiling Random EmptyInitializable.swift
[59/62] Compiling Random Array+Random.swift
[60/62] Compiling Random OSRandom.swift
[61/62] Compiling Random Exports.swift
[62/62] Emitting module Random
[63/72] Compiling BCrypt Base64.swift
[64/72] Compiling BCrypt Salt.swift
/Users/admin/builder/spi-builder-workspace/Sources/BCrypt/Salt.swift:4:23: warning: static property 'defaultRandom' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | public struct Salt {
 4 |     public static var defaultRandom: RandomProtocol = OSRandom()
   |                       |- warning: static property 'defaultRandom' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'defaultRandom' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'defaultRandom' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 5 |     public static var defaultCost: UInt = 6
 6 |
/Users/admin/builder/spi-builder-workspace/Sources/BCrypt/Salt.swift:5:23: warning: static property 'defaultCost' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 3 | public struct Salt {
 4 |     public static var defaultRandom: RandomProtocol = OSRandom()
 5 |     public static var defaultCost: UInt = 6
   |                       |- warning: static property 'defaultCost' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'defaultCost' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'defaultCost' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 6 |
 7 |     public enum Version {
[65/72] Compiling BCrypt Serializer.swift
[66/72] Compiling BCrypt Parser.swift
[67/72] Compiling BCrypt Keys.swift
[68/72] Compiling BCrypt Convenience.swift
[69/72] Compiling BCrypt Export.swift
[70/72] Compiling BCrypt Hash.swift
/Users/admin/builder/spi-builder-workspace/Sources/BCrypt/Hash.swift:18:19: warning: initialization of 'UnsafeMutableRawPointer' results in a dangling pointer
 16 |             .allocate(capacity: Key.p.count)
 17 |         p.initialize(
 18 |             from: UnsafeMutableRawPointer(mutating: Key.p)
    |                   |                                     |- note: implicit argument conversion from '[UInt32]' to 'UnsafeRawPointer' produces a pointer valid only for the duration of the call to 'init(mutating:)'
    |                   |                                     `- note: use the 'withUnsafeBytes' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
    |                   `- warning: initialization of 'UnsafeMutableRawPointer' results in a dangling pointer
 19 |                 .assumingMemoryBound(to: UInt32.self),
 20 |             count: Key.p.count
/Users/admin/builder/spi-builder-workspace/Sources/BCrypt/Hash.swift:26:19: warning: initialization of 'UnsafeMutableRawPointer' results in a dangling pointer
 24 |             .allocate(capacity: Key.s.count)
 25 |         s.initialize(
 26 |             from: UnsafeMutableRawPointer(mutating: Key.s)
    |                   |                                     |- note: implicit argument conversion from '[UInt32]' to 'UnsafeRawPointer' produces a pointer valid only for the duration of the call to 'init(mutating:)'
    |                   |                                     `- note: use the 'withUnsafeBytes' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
    |                   `- warning: initialization of 'UnsafeMutableRawPointer' results in a dangling pointer
 27 |                 .assumingMemoryBound(to: UInt32.self),
 28 |             count: Key.s.count
/Users/admin/builder/spi-builder-workspace/Sources/BCrypt/Hash.swift:180:56: warning: initialization of 'UnsafeMutablePointer<UInt8>' results in a dangling pointer
178 |         let slen: Int = 1024
179 |
180 |         let keyPointer : UnsafeMutablePointer<UInt8> = UnsafeMutablePointer<UInt8>(mutating: key)
    |                                                        |                                     |- note: implicit argument conversion from 'Bytes' (aka 'Array<UInt8>') to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(mutating:)'
    |                                                        |                                     `- note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
    |                                                        `- warning: initialization of 'UnsafeMutablePointer<UInt8>' results in a dangling pointer
181 |         let keyLength : Int = key.count
182 |
/Users/admin/builder/spi-builder-workspace/Sources/BCrypt/Hash.swift:212:55: warning: initialization of 'UnsafeMutablePointer<UInt8>' results in a dangling pointer
210 |         var lr: [UInt32] = [0, 0]
211 |
212 |         let keyPointer: UnsafeMutablePointer<UInt8> = UnsafeMutablePointer<UInt8>(mutating: key)
    |                                                       |                                     |- note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(mutating:)'
    |                                                       |                                     `- note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
    |                                                       `- warning: initialization of 'UnsafeMutablePointer<UInt8>' results in a dangling pointer
213 |         let keyLength: Int = key.count
214 |         let dataPointer: UnsafeMutablePointer<UInt8> = UnsafeMutablePointer<UInt8>(mutating: data)
/Users/admin/builder/spi-builder-workspace/Sources/BCrypt/Hash.swift:214:56: warning: initialization of 'UnsafeMutablePointer<UInt8>' results in a dangling pointer
212 |         let keyPointer: UnsafeMutablePointer<UInt8> = UnsafeMutablePointer<UInt8>(mutating: key)
213 |         let keyLength: Int = key.count
214 |         let dataPointer: UnsafeMutablePointer<UInt8> = UnsafeMutablePointer<UInt8>(mutating: data)
    |                                                        |                                     |- note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(mutating:)'
    |                                                        |                                     `- note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
    |                                                        `- warning: initialization of 'UnsafeMutablePointer<UInt8>' results in a dangling pointer
215 |         let dataLength: Int = data.count
216 |
[71/72] Emitting module BCrypt
/Users/admin/builder/spi-builder-workspace/Sources/BCrypt/Salt.swift:4:23: warning: static property 'defaultRandom' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | public struct Salt {
 4 |     public static var defaultRandom: RandomProtocol = OSRandom()
   |                       |- warning: static property 'defaultRandom' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'defaultRandom' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'defaultRandom' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 5 |     public static var defaultCost: UInt = 6
 6 |
/Users/admin/builder/spi-builder-workspace/Sources/BCrypt/Salt.swift:5:23: warning: static property 'defaultCost' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 3 | public struct Salt {
 4 |     public static var defaultRandom: RandomProtocol = OSRandom()
 5 |     public static var defaultCost: UInt = 6
   |                       |- warning: static property 'defaultCost' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'defaultCost' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'defaultCost' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 6 |
 7 |     public enum Version {
[72/72] Compiling BCrypt BCryptError.swift
Build complete! (8.88s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "random",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.2.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/vapor/random.git"
    }
  ],
  "manifest_display_name" : "BCrypt",
  "name" : "BCrypt",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "BCrypt",
      "targets" : [
        "BCrypt"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "BCryptTests",
      "module_type" : "SwiftTarget",
      "name" : "BCryptTests",
      "path" : "Tests/BCryptTests",
      "sources" : [
        "BCryptTests.swift"
      ],
      "target_dependencies" : [
        "BCrypt"
      ],
      "type" : "test"
    },
    {
      "c99name" : "BCrypt",
      "module_type" : "SwiftTarget",
      "name" : "BCrypt",
      "path" : "Sources/BCrypt",
      "product_dependencies" : [
        "Random"
      ],
      "product_memberships" : [
        "BCrypt"
      ],
      "sources" : [
        "BCryptError.swift",
        "Base64.swift",
        "Convenience.swift",
        "Export.swift",
        "Hash.swift",
        "Keys.swift",
        "Parser.swift",
        "Salt.swift",
        "Serializer.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Done.