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 UUIDShortener, reference v1.0.0 (ef43dc), with Swift 6.0 for Linux on 28 Nov 2024 11:11:40 UTC.

Swift 6 data race errors: 6

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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 -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.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Dean151/uuid-shortener.git
Reference: v1.0.0
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/Dean151/uuid-shortener
 * tag               v1.0.0     -> FETCH_HEAD
HEAD is now at ef43dc9 Initial commit
Cloned https://github.com/Dean151/uuid-shortener.git
Revision (git rev-parse @):
ef43dc9e72b6b1f39166175b7bd6a86c34e4bd14
SUCCESS checkout https://github.com/Dean151/uuid-shortener.git at v1.0.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/Dean151/uuid-shortener.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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 -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.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/4] Emitting module UUIDShortener
/host/spi-builder-workspace/Sources/UUIDShortener/UUIDShortener.swift:7:23: warning: static property 'base36' is not concurrency-safe because non-'Sendable' type 'Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
  3 | // MARK: - Public
  4 |
  5 | public struct Alphabet: Equatable, ExpressibleByStringLiteral {
    |               `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
  6 |     /// Base 36 is using all lowercases alphanumeric characters
  7 |     public static let base36: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyz"
    |                       |- warning: static property 'base36' is not concurrency-safe because non-'Sendable' type 'Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'base36' 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
  8 |     /// Base 58 is flicker like convertion, excluding alike characters
  9 |     public static let base58: Alphabet = "123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"
/host/spi-builder-workspace/Sources/UUIDShortener/UUIDShortener.swift:9:23: warning: static property 'base58' is not concurrency-safe because non-'Sendable' type 'Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
  3 | // MARK: - Public
  4 |
  5 | public struct Alphabet: Equatable, ExpressibleByStringLiteral {
    |               `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
  6 |     /// Base 36 is using all lowercases alphanumeric characters
  7 |     public static let base36: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyz"
  8 |     /// Base 58 is flicker like convertion, excluding alike characters
  9 |     public static let base58: Alphabet = "123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"
    |                       |- warning: static property 'base58' is not concurrency-safe because non-'Sendable' type 'Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'base58' 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 |     /// Base 62 is using all alphanumeric characters
 11 |     public static let base62: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
/host/spi-builder-workspace/Sources/UUIDShortener/UUIDShortener.swift:11:23: warning: static property 'base62' is not concurrency-safe because non-'Sendable' type 'Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
  3 | // MARK: - Public
  4 |
  5 | public struct Alphabet: Equatable, ExpressibleByStringLiteral {
    |               `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
  6 |     /// Base 36 is using all lowercases alphanumeric characters
  7 |     public static let base36: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyz"
    :
  9 |     public static let base58: Alphabet = "123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"
 10 |     /// Base 62 is using all alphanumeric characters
 11 |     public static let base62: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
    |                       |- warning: static property 'base62' is not concurrency-safe because non-'Sendable' type 'Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'base62' 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
 12 |     /// Base 64 is using all alphanumeric characters ; plus dash `-` and underscore `_`
 13 |     public static let base64: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_"
/host/spi-builder-workspace/Sources/UUIDShortener/UUIDShortener.swift:13:23: warning: static property 'base64' is not concurrency-safe because non-'Sendable' type 'Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
  3 | // MARK: - Public
  4 |
  5 | public struct Alphabet: Equatable, ExpressibleByStringLiteral {
    |               `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
  6 |     /// Base 36 is using all lowercases alphanumeric characters
  7 |     public static let base36: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyz"
    :
 11 |     public static let base62: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
 12 |     /// Base 64 is using all alphanumeric characters ; plus dash `-` and underscore `_`
 13 |     public static let base64: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_"
    |                       |- warning: static property 'base64' is not concurrency-safe because non-'Sendable' type 'Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'base64' 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
 14 |     /// Base 90 is using all characters that are safe of use inside a cookie value.
 15 |     public static let base90: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~"
/host/spi-builder-workspace/Sources/UUIDShortener/UUIDShortener.swift:15:23: warning: static property 'base90' is not concurrency-safe because non-'Sendable' type 'Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
  3 | // MARK: - Public
  4 |
  5 | public struct Alphabet: Equatable, ExpressibleByStringLiteral {
    |               `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
  6 |     /// Base 36 is using all lowercases alphanumeric characters
  7 |     public static let base36: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyz"
    :
 13 |     public static let base64: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_"
 14 |     /// Base 90 is using all characters that are safe of use inside a cookie value.
 15 |     public static let base90: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~"
    |                       |- warning: static property 'base90' is not concurrency-safe because non-'Sendable' type 'Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'base90' 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
 16 |
 17 |     let characters: [Character]
/host/spi-builder-workspace/Sources/UUIDShortener/UUIDShortener.swift:43:16: warning: static property 'base16' is not concurrency-safe because non-'Sendable' type 'Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
  3 | // MARK: - Public
  4 |
  5 | public struct Alphabet: Equatable, ExpressibleByStringLiteral {
    |               `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
  6 |     /// Base 36 is using all lowercases alphanumeric characters
  7 |     public static let base36: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyz"
    :
 41 |
 42 | extension Alphabet {
 43 |     static let base16: Alphabet = "0123456789abcdef"
    |                |- warning: static property 'base16' is not concurrency-safe because non-'Sendable' type 'Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'base16' 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
 44 | }
 45 |
[4/4] Compiling UUIDShortener UUIDShortener.swift
/host/spi-builder-workspace/Sources/UUIDShortener/UUIDShortener.swift:7:23: warning: static property 'base36' is not concurrency-safe because non-'Sendable' type 'Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
  3 | // MARK: - Public
  4 |
  5 | public struct Alphabet: Equatable, ExpressibleByStringLiteral {
    |               `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
  6 |     /// Base 36 is using all lowercases alphanumeric characters
  7 |     public static let base36: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyz"
    |                       |- warning: static property 'base36' is not concurrency-safe because non-'Sendable' type 'Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'base36' 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
  8 |     /// Base 58 is flicker like convertion, excluding alike characters
  9 |     public static let base58: Alphabet = "123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"
/host/spi-builder-workspace/Sources/UUIDShortener/UUIDShortener.swift:9:23: warning: static property 'base58' is not concurrency-safe because non-'Sendable' type 'Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
  3 | // MARK: - Public
  4 |
  5 | public struct Alphabet: Equatable, ExpressibleByStringLiteral {
    |               `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
  6 |     /// Base 36 is using all lowercases alphanumeric characters
  7 |     public static let base36: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyz"
  8 |     /// Base 58 is flicker like convertion, excluding alike characters
  9 |     public static let base58: Alphabet = "123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"
    |                       |- warning: static property 'base58' is not concurrency-safe because non-'Sendable' type 'Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'base58' 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 |     /// Base 62 is using all alphanumeric characters
 11 |     public static let base62: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
/host/spi-builder-workspace/Sources/UUIDShortener/UUIDShortener.swift:11:23: warning: static property 'base62' is not concurrency-safe because non-'Sendable' type 'Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
  3 | // MARK: - Public
  4 |
  5 | public struct Alphabet: Equatable, ExpressibleByStringLiteral {
    |               `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
  6 |     /// Base 36 is using all lowercases alphanumeric characters
  7 |     public static let base36: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyz"
    :
  9 |     public static let base58: Alphabet = "123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"
 10 |     /// Base 62 is using all alphanumeric characters
 11 |     public static let base62: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
    |                       |- warning: static property 'base62' is not concurrency-safe because non-'Sendable' type 'Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'base62' 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
 12 |     /// Base 64 is using all alphanumeric characters ; plus dash `-` and underscore `_`
 13 |     public static let base64: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_"
/host/spi-builder-workspace/Sources/UUIDShortener/UUIDShortener.swift:13:23: warning: static property 'base64' is not concurrency-safe because non-'Sendable' type 'Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
  3 | // MARK: - Public
  4 |
  5 | public struct Alphabet: Equatable, ExpressibleByStringLiteral {
    |               `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
  6 |     /// Base 36 is using all lowercases alphanumeric characters
  7 |     public static let base36: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyz"
    :
 11 |     public static let base62: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
 12 |     /// Base 64 is using all alphanumeric characters ; plus dash `-` and underscore `_`
 13 |     public static let base64: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_"
    |                       |- warning: static property 'base64' is not concurrency-safe because non-'Sendable' type 'Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'base64' 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
 14 |     /// Base 90 is using all characters that are safe of use inside a cookie value.
 15 |     public static let base90: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~"
/host/spi-builder-workspace/Sources/UUIDShortener/UUIDShortener.swift:15:23: warning: static property 'base90' is not concurrency-safe because non-'Sendable' type 'Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
  3 | // MARK: - Public
  4 |
  5 | public struct Alphabet: Equatable, ExpressibleByStringLiteral {
    |               `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
  6 |     /// Base 36 is using all lowercases alphanumeric characters
  7 |     public static let base36: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyz"
    :
 13 |     public static let base64: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_"
 14 |     /// Base 90 is using all characters that are safe of use inside a cookie value.
 15 |     public static let base90: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~"
    |                       |- warning: static property 'base90' is not concurrency-safe because non-'Sendable' type 'Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'base90' 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
 16 |
 17 |     let characters: [Character]
/host/spi-builder-workspace/Sources/UUIDShortener/UUIDShortener.swift:43:16: warning: static property 'base16' is not concurrency-safe because non-'Sendable' type 'Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
  3 | // MARK: - Public
  4 |
  5 | public struct Alphabet: Equatable, ExpressibleByStringLiteral {
    |               `- note: consider making struct 'Alphabet' conform to the 'Sendable' protocol
  6 |     /// Base 36 is using all lowercases alphanumeric characters
  7 |     public static let base36: Alphabet = "0123456789abcdefghijklmnopqrstuvwxyz"
    :
 41 |
 42 | extension Alphabet {
 43 |     static let base16: Alphabet = "0123456789abcdef"
    |                |- warning: static property 'base16' is not concurrency-safe because non-'Sendable' type 'Alphabet' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'base16' 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
 44 | }
 45 |
Build complete! (9.80s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "UUIDShortener",
  "name" : "UUIDShortener",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "UUIDShortener",
      "targets" : [
        "UUIDShortener"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "UUIDShortenerTests",
      "module_type" : "SwiftTarget",
      "name" : "UUIDShortenerTests",
      "path" : "Tests/UUIDShortenerTests",
      "sources" : [
        "UUIDShortenerTests.swift"
      ],
      "target_dependencies" : [
        "UUIDShortener"
      ],
      "type" : "test"
    },
    {
      "c99name" : "UUIDShortener",
      "module_type" : "SwiftTarget",
      "name" : "UUIDShortener",
      "path" : "Sources/UUIDShortener",
      "product_memberships" : [
        "UUIDShortener"
      ],
      "sources" : [
        "UUIDShortener.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.