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 macOS (SPM) on 5 Nov 2024 00:44:20 UTC.

Swift 6 data race errors: 6

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.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.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 /Users/admin/builder/spi-builder-workspace/.git/
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
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "swift-extras-base64",
      "name": "swift-extras-base64",
      "url": "https://github.com/swift-extras/swift-extras-base64.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-extras-base64",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/swift-extras/swift-extras-base64.git
[9/833] Fetching swift-extras-base64
Fetched https://github.com/swift-extras/swift-extras-base64.git from cache (0.91s)
Creating working copy for https://github.com/swift-extras/swift-extras-base64.git
Working copy of https://github.com/swift-extras/swift-extras-base64.git resolved at main (dc8121f)
warning: '.resolve-product-dependencies': dependency 'swift-extras-base64' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/swift-extras/swift-extras-base64.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/5] Compiling ExtrasBase64 Base32.swift
/Users/admin/builder/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 |
/Users/admin/builder/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 |
[4/5] Compiling ExtrasBase64 Base64.swift
/Users/admin/builder/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 |     }
/Users/admin/builder/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 |
/Users/admin/builder/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 |     }
/Users/admin/builder/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 |
[5/5] Emitting module ExtrasBase64
/Users/admin/builder/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 |
/Users/admin/builder/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 |
/Users/admin/builder/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 |     }
/Users/admin/builder/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 |
/Users/admin/builder/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 |     }
/Users/admin/builder/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! (3.22s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "swift-extras-base64",
  "name" : "swift-extras-base64",
  "path" : "/Users/admin/builder/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"
}
Done.