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 FriendlyId, reference main (4f7bba), with Swift 6.0 for macOS (SPM) on 15 Sep 2024 06:03:02 UTC.

Swift 6 data race errors: 3

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.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.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kdubb/SwiftFriendlyId.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/kdubb/SwiftFriendlyId
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 4f7bba4 Bump argument parser dependency
Cloned https://github.com/kdubb/SwiftFriendlyId.git
Revision (git rev-parse @):
4f7bba4b24558bafbb92fa5fc721e9c6d4c24a0b
SUCCESS checkout https://github.com/kdubb/SwiftFriendlyId.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/kdubb/SwiftFriendlyId.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/11] Write sources
[6/11] Write friendly-id-entitlement.plist
[7/11] Write swift-version-117DEE11B69C53C9.txt
[9/34] Emitting module ArgumentParserToolInfo
[10/34] Compiling ArgumentParserToolInfo ToolInfo.swift
[11/72] Compiling ArgumentParser CommandConfiguration.swift
[12/72] Compiling ArgumentParser EnumerableFlag.swift
[13/74] Compiling ArgumentParser AsyncParsableCommand.swift
[16/74] Compiling ArgumentParser ExpressibleByArgument.swift
[17/74] Compiling ArgumentParser ArgumentHelp.swift
[18/74] Compiling ArgumentParser ArgumentVisibility.swift
[19/74] Compiling ArgumentParser CompletionKind.swift
[20/74] Compiling ArgumentParser Errors.swift
[21/74] Compiling ArgumentParser InputOrigin.swift
[22/74] Compiling ArgumentParser Name.swift
[23/74] Compiling ArgumentParser Parsed.swift
[24/74] Compiling ArgumentParser ParsedValues.swift
[25/78] Compiling ArgumentParser OptionGroup.swift
[26/78] Compiling ArgumentParser HelpGenerator.swift
[27/78] Emitting module BigInt
[28/78] Compiling ArgumentParser Flag.swift
[29/78] Compiling ArgumentParser NameSpecification.swift
[30/78] Compiling ArgumentParser Option.swift
[35/78] Compiling BigInt Subtraction.swift
[36/78] Compiling BigInt Words and Bits.swift
[37/78] Compiling ArgumentParser BashCompletionsGenerator.swift
[38/78] Compiling ArgumentParser CompletionsGenerator.swift
[39/78] Compiling ArgumentParser FishCompletionsGenerator.swift
[40/78] Compiling ArgumentParser ZshCompletionsGenerator.swift
[41/78] Compiling ArgumentParser Argument.swift
[42/78] Emitting module ArgumentParser
[43/78] Compiling ArgumentParser Platform.swift
[44/78] Compiling ArgumentParser SequenceExtensions.swift
[45/78] Compiling ArgumentParser StringExtensions.swift
[46/78] Compiling ArgumentParser Tree.swift
[47/78] Compiling ArgumentParser ArgumentDefinition.swift
[48/78] Compiling ArgumentParser ArgumentSet.swift
[49/78] Compiling ArgumentParser CommandParser.swift
[58/78] Compiling ArgumentParser MessageInfo.swift
[59/78] Compiling ArgumentParser UsageGenerator.swift
[60/78] Compiling ArgumentParser CollectionExtensions.swift
[65/78] Compiling ArgumentParser ParsableArgumentsValidation.swift
[66/78] Compiling ArgumentParser ParsableCommand.swift
[67/78] Compiling ArgumentParser ArgumentDecoder.swift
[68/78] Compiling ArgumentParser ParserError.swift
[69/78] Compiling ArgumentParser SplitArguments.swift
[70/78] Compiling ArgumentParser DumpHelpGenerator.swift
[71/78] Compiling ArgumentParser HelpCommand.swift
[76/83] Compiling FriendlyId FriendlyId.swift
[77/83] Compiling FriendlyId Id.swift
/Users/admin/builder/spi-builder-workspace/Sources/FriendlyId/Id.swift:12:21: warning: static property 'null' is not concurrency-safe because non-'Sendable' type 'Id' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | import Foundation
 9 |
10 | public struct Id: Equatable, Hashable, CustomStringConvertible {
   |               `- note: consider making struct 'Id' conform to the 'Sendable' protocol
11 |
12 |   public static let null = Id(uuid: (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0))
   |                     |- warning: static property 'null' is not concurrency-safe because non-'Sendable' type 'Id' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: annotate 'null' 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
13 |
14 |   public var uuid: UUID
[78/83] Compiling FriendlyId Base62.swift
/Users/admin/builder/spi-builder-workspace/Sources/FriendlyId/Base62.swift:14:14: warning: static property 'base' is not concurrency-safe because non-'Sendable' type 'BigUInt' may have shared mutable state; this is an error in the Swift 6 language mode
12 | public enum Base62 {
13 |
14 |   static let base = BigUInt(62)
   |              `- warning: static property 'base' is not concurrency-safe because non-'Sendable' type 'BigUInt' may have shared mutable state; this is an error in the Swift 6 language mode
15 |   static let digits = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
16 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigUInt.swift:16:15: note: struct 'BigUInt' does not conform to the 'Sendable' protocol
 14 | /// This particular big integer type uses base-2^64 digits to represent integers; you can think of it as a wrapper
 15 | /// around `Array<UInt64>`. (In fact, `BigUInt` only uses an array if there are more than two digits.)
 16 | public struct BigUInt: UnsignedInteger {
    |               `- note: struct 'BigUInt' does not conform to the 'Sendable' protocol
 17 |     /// The type representing a digit in `BigUInt`'s underlying number system.
 18 |     public typealias Word = UInt
/Users/admin/builder/spi-builder-workspace/Sources/FriendlyId/Base62.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'BigInt'
 7 |
 8 | import Foundation
 9 | import BigInt
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'BigInt'
10 |
11 |
12 | public enum Base62 {
13 |
14 |   static let base = BigUInt(62)
   |              |- note: annotate 'base' 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
15 |   static let digits = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
16 |
[79/83] Compiling FriendlyId BigUints.swift
/Users/admin/builder/spi-builder-workspace/Sources/FriendlyId/BigUints.swift:12:13: warning: let 'half' is not concurrency-safe because non-'Sendable' type 'BigUInt' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 |
12 | private let half = BigUInt(1) << 64
   |             `- warning: let 'half' is not concurrency-safe because non-'Sendable' type 'BigUInt' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | extension BigUInt {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigUInt.swift:16:15: note: struct 'BigUInt' does not conform to the 'Sendable' protocol
 14 | /// This particular big integer type uses base-2^64 digits to represent integers; you can think of it as a wrapper
 15 | /// around `Array<UInt64>`. (In fact, `BigUInt` only uses an array if there are more than two digits.)
 16 | public struct BigUInt: UnsignedInteger {
    |               `- note: struct 'BigUInt' does not conform to the 'Sendable' protocol
 17 |     /// The type representing a digit in `BigUInt`'s underlying number system.
 18 |     public typealias Word = UInt
/Users/admin/builder/spi-builder-workspace/Sources/FriendlyId/BigUints.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'BigInt'
 7 |
 8 | import Foundation
 9 | import BigInt
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'BigInt'
10 |
11 |
12 | private let half = BigUInt(1) << 64
   |             |- note: annotate 'half' 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
13 |
14 | extension BigUInt {
[80/83] Emitting module FriendlyId
/Users/admin/builder/spi-builder-workspace/Sources/FriendlyId/Base62.swift:14:14: warning: static property 'base' is not concurrency-safe because non-'Sendable' type 'BigUInt' may have shared mutable state; this is an error in the Swift 6 language mode
12 | public enum Base62 {
13 |
14 |   static let base = BigUInt(62)
   |              `- warning: static property 'base' is not concurrency-safe because non-'Sendable' type 'BigUInt' may have shared mutable state; this is an error in the Swift 6 language mode
15 |   static let digits = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
16 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigUInt.swift:16:15: note: struct 'BigUInt' does not conform to the 'Sendable' protocol
 14 | /// This particular big integer type uses base-2^64 digits to represent integers; you can think of it as a wrapper
 15 | /// around `Array<UInt64>`. (In fact, `BigUInt` only uses an array if there are more than two digits.)
 16 | public struct BigUInt: UnsignedInteger {
    |               `- note: struct 'BigUInt' does not conform to the 'Sendable' protocol
 17 |     /// The type representing a digit in `BigUInt`'s underlying number system.
 18 |     public typealias Word = UInt
/Users/admin/builder/spi-builder-workspace/Sources/FriendlyId/Base62.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'BigInt'
 7 |
 8 | import Foundation
 9 | import BigInt
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'BigInt'
10 |
11 |
12 | public enum Base62 {
13 |
14 |   static let base = BigUInt(62)
   |              |- note: annotate 'base' 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
15 |   static let digits = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
16 |
/Users/admin/builder/spi-builder-workspace/Sources/FriendlyId/BigUints.swift:12:13: warning: let 'half' is not concurrency-safe because non-'Sendable' type 'BigUInt' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 |
12 | private let half = BigUInt(1) << 64
   |             `- warning: let 'half' is not concurrency-safe because non-'Sendable' type 'BigUInt' may have shared mutable state; this is an error in the Swift 6 language mode
13 |
14 | extension BigUInt {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigUInt.swift:16:15: note: struct 'BigUInt' does not conform to the 'Sendable' protocol
 14 | /// This particular big integer type uses base-2^64 digits to represent integers; you can think of it as a wrapper
 15 | /// around `Array<UInt64>`. (In fact, `BigUInt` only uses an array if there are more than two digits.)
 16 | public struct BigUInt: UnsignedInteger {
    |               `- note: struct 'BigUInt' does not conform to the 'Sendable' protocol
 17 |     /// The type representing a digit in `BigUInt`'s underlying number system.
 18 |     public typealias Word = UInt
/Users/admin/builder/spi-builder-workspace/Sources/FriendlyId/BigUints.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'BigInt'
 7 |
 8 | import Foundation
 9 | import BigInt
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'BigInt'
10 |
11 |
12 | private let half = BigUInt(1) << 64
   |             |- note: annotate 'half' 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
13 |
14 | extension BigUInt {
/Users/admin/builder/spi-builder-workspace/Sources/FriendlyId/Id.swift:12:21: warning: static property 'null' is not concurrency-safe because non-'Sendable' type 'Id' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | import Foundation
 9 |
10 | public struct Id: Equatable, Hashable, CustomStringConvertible {
   |               `- note: consider making struct 'Id' conform to the 'Sendable' protocol
11 |
12 |   public static let null = Id(uuid: (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0))
   |                     |- warning: static property 'null' is not concurrency-safe because non-'Sendable' type 'Id' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: annotate 'null' 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
13 |
14 |   public var uuid: UUID
[81/85] Compiling FriendlyIdCLI main.swift
[82/85] Emitting module FriendlyIdCLI
[82/85] Write Objects.LinkFileList
[83/85] Linking friendly-id
[84/85] Applying friendly-id
Build complete! (16.14s)
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/attaswift/BigInt.git
[1/4706] Fetching bigint
[331/16875] Fetching bigint, swift-argument-parser
Fetched https://github.com/attaswift/BigInt.git from cache (1.59s)
Fetched https://github.com/apple/swift-argument-parser from cache (1.59s)
Computing version for https://github.com/attaswift/BigInt.git
Computed https://github.com/attaswift/BigInt.git at 5.2.0 (0.64s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.3.0 (0.50s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.3.0
Creating working copy for https://github.com/attaswift/BigInt.git
Working copy of https://github.com/attaswift/BigInt.git resolved at 5.2.0
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.3.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser"
    },
    {
      "identity" : "bigint",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "5.1.0",
            "upper_bound" : "6.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/attaswift/BigInt.git"
    }
  ],
  "manifest_display_name" : "FriendlyId",
  "name" : "FriendlyId",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "FriendlyId",
      "targets" : [
        "FriendlyId"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "friendly-id",
      "targets" : [
        "FriendlyIdCLI"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FriendlyIdTests",
      "module_type" : "SwiftTarget",
      "name" : "FriendlyIdTests",
      "path" : "Tests/FriendlyIdTests",
      "sources" : [
        "Base62Tests.swift",
        "FriendlyIdTests.swift",
        "Generator.swift",
        "IdTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "FriendlyId"
      ],
      "type" : "test"
    },
    {
      "c99name" : "FriendlyIdCLI",
      "module_type" : "SwiftTarget",
      "name" : "FriendlyIdCLI",
      "path" : "Sources/FriendlyIdCLI",
      "product_memberships" : [
        "friendly-id"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "FriendlyId"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "FriendlyId",
      "module_type" : "SwiftTarget",
      "name" : "FriendlyId",
      "path" : "Sources/FriendlyId",
      "product_dependencies" : [
        "ArgumentParser",
        "BigInt"
      ],
      "product_memberships" : [
        "FriendlyId",
        "friendly-id"
      ],
      "sources" : [
        "Base62.swift",
        "BigUints.swift",
        "FriendlyId.swift",
        "Id.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.