This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 Hash with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 9

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/davidskrundz/hash.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/davidskrundz/hash
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 6406fcb Update travis build
Cloned https://github.com/davidskrundz/hash.git
Revision (git rev-parse @):
6406fcb52d631ac9146fd0cde5adb336dc58d52e
SUCCESS checkout https://github.com/davidskrundz/hash.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/davidskrundz/hash.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-6F35C1178C84523A.txt
[4/15] Compiling Math FixedWidthInteger+ModularArithmetic.swift
[5/15] Compiling Math FixedWidthInteger+Bytes.swift
[6/15] Compiling Math BinaryInteger+Modulo.swift
[7/15] Compiling Math Array+ByteArray.swift
[8/15] Compiling Math BinaryInteger+BitRotate.swift
[9/15] Compiling Math Array+BitPacking.swift
[10/15] Emitting module Math
[11/15] Compiling Math BitRotate.swift
[12/30] Compiling Hash sha224.swift
/Users/admin/builder/spi-builder-workspace/Sources/Hash/SHA/sha224.swift:38:20: warning: static property 'sha2_initialDigest' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
36 | 	]
37 |
38 | 	public static var sha2_initialDigest: [Data] = [
   |                    |- warning: static property 'sha2_initialDigest' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'sha2_initialDigest' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'sha2_initialDigest' 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
39 | 		0xc1059ed8, 0x367cd507, 0x3070dd17, 0xf70e5939,
40 | 		0xffc00b31, 0x68581511, 0x64f98fa7, 0xbefa4fa4
/Users/admin/builder/spi-builder-workspace/Sources/Hash/SHA/sha224.swift:47:20: warning: static property 'sha3_initialDigest' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
45 | 	public static let sha3_blockSize = 144
46 | 	public static let sha3_hashByteCount = 224 / 8
47 | 	public static var sha3_initialDigest = [UInt64](repeating: 0, count: 25)
   |                    |- warning: static property 'sha3_initialDigest' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'sha3_initialDigest' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'sha3_initialDigest' 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
48 | }
49 |
[13/31] Compiling Hash sha384.swift
/Users/admin/builder/spi-builder-workspace/Sources/Hash/SHA/sha384.swift:49:20: warning: static property 'sha2_initialDigest' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
47 | 	]
48 |
49 | 	public static var sha2_initialDigest: [Data] = [
   |                    |- warning: static property 'sha2_initialDigest' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'sha2_initialDigest' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'sha2_initialDigest' 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
50 | 		0xcbbb9d5dc1059ed8, 0x629a292a367cd507, 0x9159015a3070dd17,
51 | 		0x152fecd8f70e5939, 0x67332667ffc00b31, 0x8eb44a8768581511,
/Users/admin/builder/spi-builder-workspace/Sources/Hash/SHA/sha384.swift:59:20: warning: static property 'sha3_initialDigest' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
57 | 	public static let sha3_blockSize = 104
58 | 	public static let sha3_hashByteCount = 384 / 8
59 | 	public static var sha3_initialDigest = [UInt64](repeating: 0, count: 25)
   |                    |- warning: static property 'sha3_initialDigest' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'sha3_initialDigest' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'sha3_initialDigest' 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
60 | }
61 |
[14/31] Compiling Hash sha256.swift
/Users/admin/builder/spi-builder-workspace/Sources/Hash/SHA/sha256.swift:25:20: warning: static property 'sha2_initialDigest' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
23 | 	}
24 |
25 | 	public static var sha2_initialDigest: [Data] = [
   |                    |- warning: static property 'sha2_initialDigest' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'sha2_initialDigest' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'sha2_initialDigest' 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
26 | 		0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a,
27 | 		0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19
/Users/admin/builder/spi-builder-workspace/Sources/Hash/SHA/sha256.swift:34:20: warning: static property 'sha3_initialDigest' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
32 | 	public static let sha3_blockSize = 136
33 | 	public static let sha3_hashByteCount = 256 / 8
34 | 	public static var sha3_initialDigest = [UInt64](repeating: 0, count: 25)
   |                    |- warning: static property 'sha3_initialDigest' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'sha3_initialDigest' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'sha3_initialDigest' 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
35 | }
36 |
[15/31] Compiling Hash sha512.swift
/Users/admin/builder/spi-builder-workspace/Sources/Hash/SHA/sha512.swift:21:20: warning: static property 'sha2_initialDigest' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
19 | 	public static let sha2_constant = sha384.sha2_constant
20 |
21 | 	public static var sha2_initialDigest: [Data] = [
   |                    |- warning: static property 'sha2_initialDigest' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'sha2_initialDigest' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'sha2_initialDigest' 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
22 | 		0x6a09e667f3bcc908, 0xbb67ae8584caa73b, 0x3c6ef372fe94f82b,
23 | 		0xa54ff53a5f1d36f1, 0x510e527fade682d1, 0x9b05688c2b3e6c1f,
/Users/admin/builder/spi-builder-workspace/Sources/Hash/SHA/sha512.swift:31:20: warning: static property 'sha3_initialDigest' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
29 | 	public static let sha3_blockSize = 72
30 | 	public static let sha3_hashByteCount = 512 / 8
31 | 	public static var sha3_initialDigest = [UInt64](repeating: 0, count: 25)
   |                    |- warning: static property 'sha3_initialDigest' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'sha3_initialDigest' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'sha3_initialDigest' 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
32 | }
33 |
[16/31] Compiling Hash MD2.swift
/Users/admin/builder/spi-builder-workspace/Sources/Hash/MD/MD4.swift:9:22: warning: static property 'digestLoopCount' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 7 |
 8 | public struct MD4: MD {
 9 | 	internal static var digestLoopCount = 3
   |                      |- warning: static property 'digestLoopCount' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                      |- note: convert 'digestLoopCount' to a 'let' constant to make 'Sendable' shared state immutable
   |                      |- note: annotate 'digestLoopCount' 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
10 |
11 | 	private static let _BlockIndex = [
[17/31] Compiling Hash MD4.swift
/Users/admin/builder/spi-builder-workspace/Sources/Hash/MD/MD4.swift:9:22: warning: static property 'digestLoopCount' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 7 |
 8 | public struct MD4: MD {
 9 | 	internal static var digestLoopCount = 3
   |                      |- warning: static property 'digestLoopCount' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                      |- note: convert 'digestLoopCount' to a 'let' constant to make 'Sendable' shared state immutable
   |                      |- note: annotate 'digestLoopCount' 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
10 |
11 | 	private static let _BlockIndex = [
[18/31] Compiling Hash SHA3.swift
[19/31] Compiling Hash MD5.swift
[20/31] Compiling Hash SHA0.swift
[21/31] Emitting module Hash
/Users/admin/builder/spi-builder-workspace/Sources/Hash/MD/MD4.swift:9:22: warning: static property 'digestLoopCount' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 7 |
 8 | public struct MD4: MD {
 9 | 	internal static var digestLoopCount = 3
   |                      |- warning: static property 'digestLoopCount' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                      |- note: convert 'digestLoopCount' to a 'let' constant to make 'Sendable' shared state immutable
   |                      |- note: annotate 'digestLoopCount' 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
10 |
11 | 	private static let _BlockIndex = [
/Users/admin/builder/spi-builder-workspace/Sources/Hash/SHA/sha224.swift:38:20: warning: static property 'sha2_initialDigest' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
36 | 	]
37 |
38 | 	public static var sha2_initialDigest: [Data] = [
   |                    |- warning: static property 'sha2_initialDigest' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'sha2_initialDigest' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'sha2_initialDigest' 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
39 | 		0xc1059ed8, 0x367cd507, 0x3070dd17, 0xf70e5939,
40 | 		0xffc00b31, 0x68581511, 0x64f98fa7, 0xbefa4fa4
/Users/admin/builder/spi-builder-workspace/Sources/Hash/SHA/sha224.swift:47:20: warning: static property 'sha3_initialDigest' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
45 | 	public static let sha3_blockSize = 144
46 | 	public static let sha3_hashByteCount = 224 / 8
47 | 	public static var sha3_initialDigest = [UInt64](repeating: 0, count: 25)
   |                    |- warning: static property 'sha3_initialDigest' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'sha3_initialDigest' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'sha3_initialDigest' 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
48 | }
49 |
/Users/admin/builder/spi-builder-workspace/Sources/Hash/SHA/sha256.swift:25:20: warning: static property 'sha2_initialDigest' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
23 | 	}
24 |
25 | 	public static var sha2_initialDigest: [Data] = [
   |                    |- warning: static property 'sha2_initialDigest' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'sha2_initialDigest' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'sha2_initialDigest' 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
26 | 		0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a,
27 | 		0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19
/Users/admin/builder/spi-builder-workspace/Sources/Hash/SHA/sha256.swift:34:20: warning: static property 'sha3_initialDigest' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
32 | 	public static let sha3_blockSize = 136
33 | 	public static let sha3_hashByteCount = 256 / 8
34 | 	public static var sha3_initialDigest = [UInt64](repeating: 0, count: 25)
   |                    |- warning: static property 'sha3_initialDigest' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'sha3_initialDigest' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'sha3_initialDigest' 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
35 | }
36 |
/Users/admin/builder/spi-builder-workspace/Sources/Hash/SHA/sha384.swift:49:20: warning: static property 'sha2_initialDigest' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
47 | 	]
48 |
49 | 	public static var sha2_initialDigest: [Data] = [
   |                    |- warning: static property 'sha2_initialDigest' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'sha2_initialDigest' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'sha2_initialDigest' 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
50 | 		0xcbbb9d5dc1059ed8, 0x629a292a367cd507, 0x9159015a3070dd17,
51 | 		0x152fecd8f70e5939, 0x67332667ffc00b31, 0x8eb44a8768581511,
/Users/admin/builder/spi-builder-workspace/Sources/Hash/SHA/sha384.swift:59:20: warning: static property 'sha3_initialDigest' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
57 | 	public static let sha3_blockSize = 104
58 | 	public static let sha3_hashByteCount = 384 / 8
59 | 	public static var sha3_initialDigest = [UInt64](repeating: 0, count: 25)
   |                    |- warning: static property 'sha3_initialDigest' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'sha3_initialDigest' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'sha3_initialDigest' 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
60 | }
61 |
/Users/admin/builder/spi-builder-workspace/Sources/Hash/SHA/sha512.swift:21:20: warning: static property 'sha2_initialDigest' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
19 | 	public static let sha2_constant = sha384.sha2_constant
20 |
21 | 	public static var sha2_initialDigest: [Data] = [
   |                    |- warning: static property 'sha2_initialDigest' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'sha2_initialDigest' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'sha2_initialDigest' 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
22 | 		0x6a09e667f3bcc908, 0xbb67ae8584caa73b, 0x3c6ef372fe94f82b,
23 | 		0xa54ff53a5f1d36f1, 0x510e527fade682d1, 0x9b05688c2b3e6c1f,
/Users/admin/builder/spi-builder-workspace/Sources/Hash/SHA/sha512.swift:31:20: warning: static property 'sha3_initialDigest' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
29 | 	public static let sha3_blockSize = 72
30 | 	public static let sha3_hashByteCount = 512 / 8
31 | 	public static var sha3_initialDigest = [UInt64](repeating: 0, count: 25)
   |                    |- warning: static property 'sha3_initialDigest' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'sha3_initialDigest' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: annotate 'sha3_initialDigest' 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
32 | }
33 |
[22/31] Compiling Hash ByteBuffer.swift
[23/31] Compiling Hash Hash.swift
[24/31] Compiling Hash Hashing.swift
[25/31] Compiling Hash MD.swift
[26/31] Compiling Hash SHA1.swift
[27/31] Compiling Hash SHA2.swift
[27/31] Write Objects.LinkFileList
[29/31] Archiving libsHash.a
[30/31] Linking libdHash.dylib
Build complete! (10.32s)
Fetching https://github.com/DavidSkrundz/Math.git
[1/281] Fetching math
Fetched https://github.com/DavidSkrundz/Math.git from cache (0.79s)
Computing version for https://github.com/DavidSkrundz/Math.git
Computed https://github.com/DavidSkrundz/Math.git at 1.3.0 (0.65s)
Creating working copy for https://github.com/DavidSkrundz/Math.git
Working copy of https://github.com/DavidSkrundz/Math.git resolved at 1.3.0
Build complete.
{
  "dependencies" : [
    {
      "identity" : "math",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.3.0",
            "upper_bound" : "1.4.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/DavidSkrundz/Math.git"
    }
  ],
  "manifest_display_name" : "Hash",
  "name" : "Hash",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Hash",
      "targets" : [
        "Hash"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "sHash",
      "targets" : [
        "Hash"
      ],
      "type" : {
        "library" : [
          "static"
        ]
      }
    },
    {
      "name" : "dHash",
      "targets" : [
        "Hash"
      ],
      "type" : {
        "library" : [
          "dynamic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "HashTests",
      "module_type" : "SwiftTarget",
      "name" : "HashTests",
      "path" : "Tests/HashTests",
      "sources" : [
        "MD2Tests.swift",
        "MD4Tests.swift",
        "MD5Tests.swift",
        "SHA0Tests.swift",
        "SHA1Tests.swift",
        "SHA2_224Tests.swift",
        "SHA2_256Tests.swift",
        "SHA2_384Tests.swift",
        "SHA2_512Tests.swift",
        "SHA3_224Tests.swift",
        "SHA3_256Tests.swift",
        "SHA3_384Tests.swift",
        "SHA3_512Tests.swift",
        "TestCount.swift"
      ],
      "target_dependencies" : [
        "Hash"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Hash",
      "module_type" : "SwiftTarget",
      "name" : "Hash",
      "path" : "Sources/Hash",
      "product_dependencies" : [
        "Math"
      ],
      "product_memberships" : [
        "Hash",
        "sHash",
        "dHash"
      ],
      "sources" : [
        "ByteBuffer.swift",
        "Hash.swift",
        "Hashing.swift",
        "MD/MD.swift",
        "MD/MD2.swift",
        "MD/MD4.swift",
        "MD/MD5.swift",
        "SHA/SHA0.swift",
        "SHA/SHA1.swift",
        "SHA/SHA2.swift",
        "SHA/SHA3.swift",
        "SHA/sha224.swift",
        "SHA/sha256.swift",
        "SHA/sha384.swift",
        "SHA/sha512.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.2"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.