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 swift-extras-base64, reference main (dc8121), with Swift 6.0 for Linux on 5 Nov 2024 00:38:49 UTC.

Swift 6 data race errors: 6

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/swift-extras/swift-extras-base64.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/swift-extras/swift-extras-base64
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at dc8121f Add Base32 decode fastpath (#36)
Cloned https://github.com/swift-extras/swift-extras-base64.git
Revision (git rev-parse @):
dc8121fdd2b444c97d6b0534e8ad4ddecbe0d5f4
SUCCESS checkout https://github.com/swift-extras/swift-extras-base64.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/swift-extras/swift-extras-base64.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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: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/5] Emitting module ExtrasBase64
/host/spi-builder-workspace/Sources/ExtrasBase64/Base32.swift:22:27: warning: static property 'omitPaddingCharacter' is not concurrency-safe because non-'Sendable' type 'Base32.EncodingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 16 | public enum Base32 {
 17 |     /// Encoding options
 18 |     public struct EncodingOptions: OptionSet {
    |                   `- note: consider making struct 'EncodingOptions' conform to the 'Sendable' protocol
 19 |         public let rawValue: UInt
 20 |         public init(rawValue: UInt) { self.rawValue = rawValue }
 21 |
 22 |         public static let omitPaddingCharacter = EncodingOptions(rawValue: UInt(1 << 0))
    |                           |- warning: static property 'omitPaddingCharacter' is not concurrency-safe because non-'Sendable' type 'Base32.EncodingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'omitPaddingCharacter' 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
 23 |     }
 24 |
/host/spi-builder-workspace/Sources/ExtrasBase64/Base32.swift:30:27: warning: static property 'allowNullCharacters' is not concurrency-safe because non-'Sendable' type 'Base32.DecodingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 |     /// Decoding options
 26 |     public struct DecodingOptions: OptionSet {
    |                   `- note: consider making struct 'DecodingOptions' conform to the 'Sendable' protocol
 27 |         public let rawValue: UInt
 28 |         public init(rawValue: UInt) { self.rawValue = rawValue }
 29 |
 30 |         public static let allowNullCharacters = DecodingOptions(rawValue: UInt(1 << 0))
    |                           |- warning: static property 'allowNullCharacters' is not concurrency-safe because non-'Sendable' type 'Base32.DecodingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'allowNullCharacters' 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
 31 |     }
 32 |
/host/spi-builder-workspace/Sources/ExtrasBase64/Base64.swift:82:27: warning: static property 'base64UrlAlphabet' is not concurrency-safe because non-'Sendable' type 'Base64.EncodingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 76 |
 77 | extension Base64 {
 78 |     public struct EncodingOptions: OptionSet {
    |                   `- note: consider making struct 'EncodingOptions' conform to the 'Sendable' protocol
 79 |         public let rawValue: UInt
 80 |         public init(rawValue: UInt) { self.rawValue = rawValue }
 81 |
 82 |         public static let base64UrlAlphabet = EncodingOptions(rawValue: UInt(1 << 0))
    |                           |- warning: static property 'base64UrlAlphabet' is not concurrency-safe because non-'Sendable' type 'Base64.EncodingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'base64UrlAlphabet' 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
 83 |         public static let omitPaddingCharacter = EncodingOptions(rawValue: UInt(1 << 1))
 84 |     }
/host/spi-builder-workspace/Sources/ExtrasBase64/Base64.swift:83:27: warning: static property 'omitPaddingCharacter' is not concurrency-safe because non-'Sendable' type 'Base64.EncodingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 76 |
 77 | extension Base64 {
 78 |     public struct EncodingOptions: OptionSet {
    |                   `- note: consider making struct 'EncodingOptions' conform to the 'Sendable' protocol
 79 |         public let rawValue: UInt
 80 |         public init(rawValue: UInt) { self.rawValue = rawValue }
 81 |
 82 |         public static let base64UrlAlphabet = EncodingOptions(rawValue: UInt(1 << 0))
 83 |         public static let omitPaddingCharacter = EncodingOptions(rawValue: UInt(1 << 1))
    |                           |- warning: static property 'omitPaddingCharacter' is not concurrency-safe because non-'Sendable' type 'Base64.EncodingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'omitPaddingCharacter' 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
 84 |     }
 85 |
/host/spi-builder-workspace/Sources/ExtrasBase64/Base64.swift:333:27: warning: static property 'base64UrlAlphabet' is not concurrency-safe because non-'Sendable' type 'Base64.DecodingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
327 |
328 | extension Base64 {
329 |     public struct DecodingOptions: OptionSet {
    |                   `- note: consider making struct 'DecodingOptions' conform to the 'Sendable' protocol
330 |         public let rawValue: UInt
331 |         public init(rawValue: UInt) { self.rawValue = rawValue }
332 |
333 |         public static let base64UrlAlphabet = DecodingOptions(rawValue: UInt(1 << 0))
    |                           |- warning: static property 'base64UrlAlphabet' is not concurrency-safe because non-'Sendable' type 'Base64.DecodingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'base64UrlAlphabet' 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
334 |         public static let omitPaddingCharacter = DecodingOptions(rawValue: UInt(1 << 1))
335 |     }
/host/spi-builder-workspace/Sources/ExtrasBase64/Base64.swift:334:27: warning: static property 'omitPaddingCharacter' is not concurrency-safe because non-'Sendable' type 'Base64.DecodingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
327 |
328 | extension Base64 {
329 |     public struct DecodingOptions: OptionSet {
    |                   `- note: consider making struct 'DecodingOptions' conform to the 'Sendable' protocol
330 |         public let rawValue: UInt
331 |         public init(rawValue: UInt) { self.rawValue = rawValue }
332 |
333 |         public static let base64UrlAlphabet = DecodingOptions(rawValue: UInt(1 << 0))
334 |         public static let omitPaddingCharacter = DecodingOptions(rawValue: UInt(1 << 1))
    |                           |- warning: static property 'omitPaddingCharacter' is not concurrency-safe because non-'Sendable' type 'Base64.DecodingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'omitPaddingCharacter' 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
335 |     }
336 |
[4/5] Compiling ExtrasBase64 Base32.swift
/host/spi-builder-workspace/Sources/ExtrasBase64/Base32.swift:22:27: warning: static property 'omitPaddingCharacter' is not concurrency-safe because non-'Sendable' type 'Base32.EncodingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 16 | public enum Base32 {
 17 |     /// Encoding options
 18 |     public struct EncodingOptions: OptionSet {
    |                   `- note: consider making struct 'EncodingOptions' conform to the 'Sendable' protocol
 19 |         public let rawValue: UInt
 20 |         public init(rawValue: UInt) { self.rawValue = rawValue }
 21 |
 22 |         public static let omitPaddingCharacter = EncodingOptions(rawValue: UInt(1 << 0))
    |                           |- warning: static property 'omitPaddingCharacter' is not concurrency-safe because non-'Sendable' type 'Base32.EncodingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'omitPaddingCharacter' 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
 23 |     }
 24 |
/host/spi-builder-workspace/Sources/ExtrasBase64/Base32.swift:30:27: warning: static property 'allowNullCharacters' is not concurrency-safe because non-'Sendable' type 'Base32.DecodingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 |     /// Decoding options
 26 |     public struct DecodingOptions: OptionSet {
    |                   `- note: consider making struct 'DecodingOptions' conform to the 'Sendable' protocol
 27 |         public let rawValue: UInt
 28 |         public init(rawValue: UInt) { self.rawValue = rawValue }
 29 |
 30 |         public static let allowNullCharacters = DecodingOptions(rawValue: UInt(1 << 0))
    |                           |- warning: static property 'allowNullCharacters' is not concurrency-safe because non-'Sendable' type 'Base32.DecodingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'allowNullCharacters' 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
 31 |     }
 32 |
[5/5] Compiling ExtrasBase64 Base64.swift
/host/spi-builder-workspace/Sources/ExtrasBase64/Base64.swift:82:27: warning: static property 'base64UrlAlphabet' is not concurrency-safe because non-'Sendable' type 'Base64.EncodingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 76 |
 77 | extension Base64 {
 78 |     public struct EncodingOptions: OptionSet {
    |                   `- note: consider making struct 'EncodingOptions' conform to the 'Sendable' protocol
 79 |         public let rawValue: UInt
 80 |         public init(rawValue: UInt) { self.rawValue = rawValue }
 81 |
 82 |         public static let base64UrlAlphabet = EncodingOptions(rawValue: UInt(1 << 0))
    |                           |- warning: static property 'base64UrlAlphabet' is not concurrency-safe because non-'Sendable' type 'Base64.EncodingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'base64UrlAlphabet' 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
 83 |         public static let omitPaddingCharacter = EncodingOptions(rawValue: UInt(1 << 1))
 84 |     }
/host/spi-builder-workspace/Sources/ExtrasBase64/Base64.swift:83:27: warning: static property 'omitPaddingCharacter' is not concurrency-safe because non-'Sendable' type 'Base64.EncodingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 76 |
 77 | extension Base64 {
 78 |     public struct EncodingOptions: OptionSet {
    |                   `- note: consider making struct 'EncodingOptions' conform to the 'Sendable' protocol
 79 |         public let rawValue: UInt
 80 |         public init(rawValue: UInt) { self.rawValue = rawValue }
 81 |
 82 |         public static let base64UrlAlphabet = EncodingOptions(rawValue: UInt(1 << 0))
 83 |         public static let omitPaddingCharacter = EncodingOptions(rawValue: UInt(1 << 1))
    |                           |- warning: static property 'omitPaddingCharacter' is not concurrency-safe because non-'Sendable' type 'Base64.EncodingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'omitPaddingCharacter' 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
 84 |     }
 85 |
/host/spi-builder-workspace/Sources/ExtrasBase64/Base64.swift:333:27: warning: static property 'base64UrlAlphabet' is not concurrency-safe because non-'Sendable' type 'Base64.DecodingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
327 |
328 | extension Base64 {
329 |     public struct DecodingOptions: OptionSet {
    |                   `- note: consider making struct 'DecodingOptions' conform to the 'Sendable' protocol
330 |         public let rawValue: UInt
331 |         public init(rawValue: UInt) { self.rawValue = rawValue }
332 |
333 |         public static let base64UrlAlphabet = DecodingOptions(rawValue: UInt(1 << 0))
    |                           |- warning: static property 'base64UrlAlphabet' is not concurrency-safe because non-'Sendable' type 'Base64.DecodingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'base64UrlAlphabet' 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
334 |         public static let omitPaddingCharacter = DecodingOptions(rawValue: UInt(1 << 1))
335 |     }
/host/spi-builder-workspace/Sources/ExtrasBase64/Base64.swift:334:27: warning: static property 'omitPaddingCharacter' is not concurrency-safe because non-'Sendable' type 'Base64.DecodingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
327 |
328 | extension Base64 {
329 |     public struct DecodingOptions: OptionSet {
    |                   `- note: consider making struct 'DecodingOptions' conform to the 'Sendable' protocol
330 |         public let rawValue: UInt
331 |         public init(rawValue: UInt) { self.rawValue = rawValue }
332 |
333 |         public static let base64UrlAlphabet = DecodingOptions(rawValue: UInt(1 << 0))
334 |         public static let omitPaddingCharacter = DecodingOptions(rawValue: UInt(1 << 1))
    |                           |- warning: static property 'omitPaddingCharacter' is not concurrency-safe because non-'Sendable' type 'Base64.DecodingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'omitPaddingCharacter' 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
335 |     }
336 |
Build complete! (6.92s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "swift-extras-base64",
  "name" : "swift-extras-base64",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "ExtrasBase64",
      "targets" : [
        "ExtrasBase64"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ExtrasBase64Tests",
      "module_type" : "SwiftTarget",
      "name" : "ExtrasBase64Tests",
      "path" : "Tests/ExtrasBase64Tests",
      "sources" : [
        "Base32Tests.swift",
        "ChromiumTests.swift",
        "IntegrationTests.swift"
      ],
      "target_dependencies" : [
        "ExtrasBase64"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ExtrasBase64",
      "module_type" : "SwiftTarget",
      "name" : "ExtrasBase64",
      "path" : "Sources/ExtrasBase64",
      "product_memberships" : [
        "ExtrasBase64"
      ],
      "sources" : [
        "Base32.swift",
        "Base64.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
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.