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

Failed to build FriendlyId, reference main (4f7bba), with Swift 6.0 for Linux on 15 Sep 2024 05:56:11 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

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 /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/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:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/kdubb/SwiftFriendlyId.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:9d7dab235f2b0b46edadd73b1fb0c3b5323df02053420324a4a2f8ca89cb54a5
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/attaswift/BigInt.git
Fetching https://github.com/apple/swift-argument-parser
[1/4706] Fetching bigint
[4707/16875] Fetching bigint, swift-argument-parser
Fetched https://github.com/attaswift/BigInt.git from cache (1.24s)
Fetched https://github.com/apple/swift-argument-parser from cache (1.40s)
Computing version for https://github.com/attaswift/BigInt.git
Computed https://github.com/attaswift/BigInt.git at 5.2.0 (1.43s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.3.0 (12.86s)
Creating working copy for https://github.com/attaswift/BigInt.git
Working copy of https://github.com/attaswift/BigInt.git resolved at 5.2.0
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
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/14] Write sources
[6/14] Write swift-version-24593BA9C3E375BF.txt
[8/37] Emitting module BigInt
[9/39] Emitting module ArgumentParserToolInfo
[10/39] Compiling ArgumentParserToolInfo ToolInfo.swift
[11/40] Compiling BigInt Subtraction.swift
[12/40] Compiling BigInt Words and Bits.swift
[14/40] Compiling BigInt Floating Point Conversion.swift
[15/40] Compiling BigInt GCD.swift
[16/40] Compiling BigInt Hashable.swift
[17/40] Compiling BigInt Integer Conversion.swift
[18/40] Compiling BigInt Multiplication.swift
[19/40] Compiling BigInt Prime Test.swift
[19/40] Wrapping AST for ArgumentParserToolInfo for debugging
[21/77] Compiling ArgumentParser Option.swift
[22/77] Compiling ArgumentParser OptionGroup.swift
[23/77] Compiling ArgumentParser AsyncParsableCommand.swift
[24/77] Compiling ArgumentParser CommandConfiguration.swift
[25/77] Compiling ArgumentParser EnumerableFlag.swift
[26/82] Compiling ArgumentParser BashCompletionsGenerator.swift
[27/82] Compiling ArgumentParser CompletionsGenerator.swift
[28/82] Compiling ArgumentParser FishCompletionsGenerator.swift
[29/82] Compiling ArgumentParser ZshCompletionsGenerator.swift
[30/82] Compiling ArgumentParser Argument.swift
[31/82] Compiling ArgumentParser ArgumentHelp.swift
[32/82] Emitting module ArgumentParser
[33/82] Compiling ArgumentParser CollectionExtensions.swift
[34/82] Compiling ArgumentParser Platform.swift
[35/82] Compiling ArgumentParser SequenceExtensions.swift
[36/82] Compiling ArgumentParser StringExtensions.swift
[37/82] Compiling ArgumentParser Tree.swift
[41/82] Compiling ArgumentParser ExpressibleByArgument.swift
[42/82] Compiling ArgumentParser ParsableArguments.swift
[43/82] Compiling ArgumentParser ParsableArgumentsValidation.swift
[44/82] Compiling ArgumentParser Parsed.swift
[45/82] Compiling ArgumentParser ParsedValues.swift
[46/82] Compiling ArgumentParser ParserError.swift
[52/83] Wrapping AST for BigInt for debugging
[57/83] Compiling ArgumentParser ParsableCommand.swift
[58/83] Compiling ArgumentParser ArgumentDecoder.swift
[59/83] Compiling ArgumentParser Name.swift
[63/83] Compiling ArgumentParser SplitArguments.swift
[64/83] Compiling ArgumentParser ArgumentVisibility.swift
[65/83] Compiling ArgumentParser CompletionKind.swift
[66/83] Compiling ArgumentParser Errors.swift
[67/83] Compiling ArgumentParser Flag.swift
[68/83] Compiling ArgumentParser NameSpecification.swift
[69/83] Compiling ArgumentParser DumpHelpGenerator.swift
[70/83] Compiling ArgumentParser HelpCommand.swift
[71/83] Compiling ArgumentParser HelpGenerator.swift
[72/83] Compiling ArgumentParser MessageInfo.swift
[73/83] Compiling ArgumentParser UsageGenerator.swift
[74/83] Compiling ArgumentParser ArgumentDefinition.swift
[75/83] Compiling ArgumentParser ArgumentSet.swift
[76/83] Compiling ArgumentParser CommandParser.swift
[77/83] Compiling ArgumentParser InputKey.swift
[78/83] Compiling ArgumentParser InputOrigin.swift
[79/84] Wrapping AST for ArgumentParser for debugging
[81/89] Compiling FriendlyId Id.swift
/host/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
/host/spi-builder-workspace/Sources/FriendlyId/Id.swift:28:9: error: cannot find 'uuid_generate_random' in scope
26 |     case .random:
27 |       withUnsafeMutableBytes(of: &uuid) {
28 |         uuid_generate_random($0.baseAddress?.assumingMemoryBound(to: UInt8.self))
   |         `- error: cannot find 'uuid_generate_random' in scope
29 |       }
30 |     case .time:
/host/spi-builder-workspace/Sources/FriendlyId/Id.swift:32:9: error: cannot find 'uuid_generate_time' in scope
30 |     case .time:
31 |       withUnsafeMutableBytes(of: &uuid) {
32 |         uuid_generate_time($0.baseAddress?.assumingMemoryBound(to: UInt8.self))
   |         `- error: cannot find 'uuid_generate_time' in scope
33 |       }
34 |     }
[82/89] Compiling FriendlyId FriendlyId.swift
/host/spi-builder-workspace/Sources/FriendlyId/FriendlyId.swift:21:7: error: cannot find 'uuid_generate_random' in scope
19 |   case .random:
20 |     withUnsafeMutableBytes(of: &uuid) {
21 |       uuid_generate_random($0.baseAddress?.assumingMemoryBound(to: UInt8.self))
   |       `- error: cannot find 'uuid_generate_random' in scope
22 |     }
23 |   case .time:
/host/spi-builder-workspace/Sources/FriendlyId/FriendlyId.swift:25:7: error: cannot find 'uuid_generate_time' in scope
23 |   case .time:
24 |     withUnsafeMutableBytes(of: &uuid) {
25 |       uuid_generate_time($0.baseAddress?.assumingMemoryBound(to: UInt8.self))
   |       `- error: cannot find 'uuid_generate_time' in scope
26 |     }
27 |   }
[83/89] Compiling FriendlyId BigUints.swift
/host/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 {
/host/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
/host/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 {
[84/89] Emitting module FriendlyId
/host/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 |
/host/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
/host/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 |
/host/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 {
/host/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
/host/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 {
/host/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
[85/89] Compiling FriendlyId Base62.swift
/host/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 |
/host/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
/host/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 |
BUILD FAILURE 6.0 linux