The Swift Package Index logo.Swift Package Index

Build Information

Successful build of CreditCardFormatter, reference develop (918bad), with Swift 6.1 for Wasm on 9 Feb 2026 20:30:42 UTC.

Swift 6 data race errors: 2

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/barbarity/CreditCardFormatter.git
Reference: develop
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/barbarity/CreditCardFormatter
 * branch            develop    -> FETCH_HEAD
 * [new branch]      develop    -> origin/develop
HEAD is now at 918bada Fix podspec
Cloned https://github.com/barbarity/CreditCardFormatter.git
Revision (git rev-parse @):
918bada935459b3543891495b4d3fbd78ba77bc7
SUCCESS checkout https://github.com/barbarity/CreditCardFormatter.git at develop
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/barbarity/CreditCardFormatter.git
https://github.com/barbarity/CreditCardFormatter.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "CreditCardFormatter",
  "name" : "CreditCardFormatter",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "CreditCardFormatter",
      "targets" : [
        "CreditCardFormatter"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CreditCardFormatterTests",
      "module_type" : "SwiftTarget",
      "name" : "CreditCardFormatterTests",
      "path" : "Tests/CreditCardFormatterTests",
      "sources" : [
        "CreditCardFormatterTests.swift",
        "Formats/AmericanExpressCreditCardFormatTests.swift",
        "Formats/ChinaUnionPayCreditCardFormatTests.swift",
        "Formats/DinersClubInternationalCreditCardFormatTests.swift",
        "Formats/DiscoverCreditCardFormatTests.swift",
        "Formats/JCBCreditCardFormatTests.swift",
        "Formats/MasterCardCreditCardFormatTests.swift",
        "Formats/UnknownCreditCardFormatTests.swift",
        "Formats/VISACreditCardFormatTests.swift",
        "ValidationAlgorithmsTests.swift"
      ],
      "target_dependencies" : [
        "CreditCardFormatter"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CreditCardFormatter",
      "module_type" : "SwiftTarget",
      "name" : "CreditCardFormatter",
      "path" : "Sources/CreditCardFormatter",
      "product_memberships" : [
        "CreditCardFormatter"
      ],
      "sources" : [
        "CreditCardFormat.swift",
        "CreditCardFormatter.swift",
        "Extensions/String+startsBetween.swift",
        "Formats/AmericanExpressCreditCardFormat.swift",
        "Formats/ChinaUnionPayCreditCardFormat.swift",
        "Formats/DinersClubInternationalCreditCardFormat.swift",
        "Formats/DiscoverCreditCardFormat.swift",
        "Formats/JCBCreditCardFormat.swift",
        "Formats/MasterCardCreditCardFormat.swift",
        "Formats/UnknownCreditCardFormat.swift",
        "Formats/VISACreditCardFormat.swift",
        "ValidationAlgorithms.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:58b971189c4d3c564696bb40c86e07506670ed096ab7351a005c7c449525017a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/14] Compiling CreditCardFormatter VISACreditCardFormat.swift
[4/15] Compiling CreditCardFormatter UnknownCreditCardFormat.swift
[5/15] Compiling CreditCardFormatter DiscoverCreditCardFormat.swift
[6/15] Compiling CreditCardFormatter JCBCreditCardFormat.swift
[7/15] Compiling CreditCardFormatter MasterCardCreditCardFormat.swift
[8/15] Compiling CreditCardFormatter String+startsBetween.swift
[9/15] Compiling CreditCardFormatter AmericanExpressCreditCardFormat.swift
[10/15] Compiling CreditCardFormatter ChinaUnionPayCreditCardFormat.swift
[11/15] Compiling CreditCardFormatter DinersClubInternationalCreditCardFormat.swift
[12/15] Emitting module CreditCardFormatter
/host/spi-builder-workspace/Sources/CreditCardFormatter/CreditCardFormatter.swift:30:23: warning: static property 'general' is not concurrency-safe because non-'Sendable' type '[any CreditCardFormat]' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | public enum CreditCardFormatters {
30 |     public static let general: [CreditCardFormat] = [VISACreditCardFormat(),
   |                       |- warning: static property 'general' is not concurrency-safe because non-'Sendable' type '[any CreditCardFormat]' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'general' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |                                                      MasterCardCreditCardFormat(),
32 |                                                      AmericanExpressCreditCardFormat(),
/host/spi-builder-workspace/Sources/CreditCardFormatter/CreditCardFormat.swift:29:17: note: protocol 'CreditCardFormat' does not conform to the 'Sendable' protocol
27 | import Foundation
28 |
29 | public protocol CreditCardFormat {
   |                 `- note: protocol 'CreditCardFormat' does not conform to the 'Sendable' protocol
30 |     var blocks: [Int] { get }
31 |     var brand: String { get }
/host/spi-builder-workspace/Sources/CreditCardFormatter/CreditCardFormatter.swift:36:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[any CreditCardFormat]' may have shared mutable state; this is an error in the Swift 6 language mode
34 |                                                      DiscoverCreditCardFormat(),
35 |                                                      JCBCreditCardFormat()]
36 |     public static let all: [CreditCardFormat] = general + [ChinaUnionPayCreditCardFormat()]
   |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[any CreditCardFormat]' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | }
38 |
/host/spi-builder-workspace/Sources/CreditCardFormatter/CreditCardFormat.swift:29:17: note: protocol 'CreditCardFormat' does not conform to the 'Sendable' protocol
27 | import Foundation
28 |
29 | public protocol CreditCardFormat {
   |                 `- note: protocol 'CreditCardFormat' does not conform to the 'Sendable' protocol
30 |     var blocks: [Int] { get }
31 |     var brand: String { get }
[13/15] Compiling CreditCardFormatter CreditCardFormat.swift
/host/spi-builder-workspace/Sources/CreditCardFormatter/CreditCardFormatter.swift:30:23: warning: static property 'general' is not concurrency-safe because non-'Sendable' type '[any CreditCardFormat]' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | public enum CreditCardFormatters {
30 |     public static let general: [CreditCardFormat] = [VISACreditCardFormat(),
   |                       |- warning: static property 'general' is not concurrency-safe because non-'Sendable' type '[any CreditCardFormat]' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'general' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |                                                      MasterCardCreditCardFormat(),
32 |                                                      AmericanExpressCreditCardFormat(),
/host/spi-builder-workspace/Sources/CreditCardFormatter/CreditCardFormat.swift:29:17: note: protocol 'CreditCardFormat' does not conform to the 'Sendable' protocol
27 | import Foundation
28 |
29 | public protocol CreditCardFormat {
   |                 `- note: protocol 'CreditCardFormat' does not conform to the 'Sendable' protocol
30 |     var blocks: [Int] { get }
31 |     var brand: String { get }
/host/spi-builder-workspace/Sources/CreditCardFormatter/CreditCardFormatter.swift:36:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[any CreditCardFormat]' may have shared mutable state; this is an error in the Swift 6 language mode
34 |                                                      DiscoverCreditCardFormat(),
35 |                                                      JCBCreditCardFormat()]
36 |     public static let all: [CreditCardFormat] = general + [ChinaUnionPayCreditCardFormat()]
   |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[any CreditCardFormat]' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | }
38 |
/host/spi-builder-workspace/Sources/CreditCardFormatter/CreditCardFormat.swift:29:17: note: protocol 'CreditCardFormat' does not conform to the 'Sendable' protocol
27 | import Foundation
28 |
29 | public protocol CreditCardFormat {
   |                 `- note: protocol 'CreditCardFormat' does not conform to the 'Sendable' protocol
30 |     var blocks: [Int] { get }
31 |     var brand: String { get }
[14/15] Compiling CreditCardFormatter CreditCardFormatter.swift
/host/spi-builder-workspace/Sources/CreditCardFormatter/CreditCardFormatter.swift:30:23: warning: static property 'general' is not concurrency-safe because non-'Sendable' type '[any CreditCardFormat]' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | public enum CreditCardFormatters {
30 |     public static let general: [CreditCardFormat] = [VISACreditCardFormat(),
   |                       |- warning: static property 'general' is not concurrency-safe because non-'Sendable' type '[any CreditCardFormat]' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'general' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |                                                      MasterCardCreditCardFormat(),
32 |                                                      AmericanExpressCreditCardFormat(),
/host/spi-builder-workspace/Sources/CreditCardFormatter/CreditCardFormat.swift:29:17: note: protocol 'CreditCardFormat' does not conform to the 'Sendable' protocol
27 | import Foundation
28 |
29 | public protocol CreditCardFormat {
   |                 `- note: protocol 'CreditCardFormat' does not conform to the 'Sendable' protocol
30 |     var blocks: [Int] { get }
31 |     var brand: String { get }
/host/spi-builder-workspace/Sources/CreditCardFormatter/CreditCardFormatter.swift:36:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[any CreditCardFormat]' may have shared mutable state; this is an error in the Swift 6 language mode
34 |                                                      DiscoverCreditCardFormat(),
35 |                                                      JCBCreditCardFormat()]
36 |     public static let all: [CreditCardFormat] = general + [ChinaUnionPayCreditCardFormat()]
   |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[any CreditCardFormat]' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | }
38 |
/host/spi-builder-workspace/Sources/CreditCardFormatter/CreditCardFormat.swift:29:17: note: protocol 'CreditCardFormat' does not conform to the 'Sendable' protocol
27 | import Foundation
28 |
29 | public protocol CreditCardFormat {
   |                 `- note: protocol 'CreditCardFormat' does not conform to the 'Sendable' protocol
30 |     var blocks: [Int] { get }
31 |     var brand: String { get }
[15/15] Compiling CreditCardFormatter ValidationAlgorithms.swift
Build complete! (20.61s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "CreditCardFormatter",
  "name" : "CreditCardFormatter",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "CreditCardFormatter",
      "targets" : [
        "CreditCardFormatter"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CreditCardFormatterTests",
      "module_type" : "SwiftTarget",
      "name" : "CreditCardFormatterTests",
      "path" : "Tests/CreditCardFormatterTests",
      "sources" : [
        "CreditCardFormatterTests.swift",
        "Formats/AmericanExpressCreditCardFormatTests.swift",
        "Formats/ChinaUnionPayCreditCardFormatTests.swift",
        "Formats/DinersClubInternationalCreditCardFormatTests.swift",
        "Formats/DiscoverCreditCardFormatTests.swift",
        "Formats/JCBCreditCardFormatTests.swift",
        "Formats/MasterCardCreditCardFormatTests.swift",
        "Formats/UnknownCreditCardFormatTests.swift",
        "Formats/VISACreditCardFormatTests.swift",
        "ValidationAlgorithmsTests.swift"
      ],
      "target_dependencies" : [
        "CreditCardFormatter"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CreditCardFormatter",
      "module_type" : "SwiftTarget",
      "name" : "CreditCardFormatter",
      "path" : "Sources/CreditCardFormatter",
      "product_memberships" : [
        "CreditCardFormatter"
      ],
      "sources" : [
        "CreditCardFormat.swift",
        "CreditCardFormatter.swift",
        "Extensions/String+startsBetween.swift",
        "Formats/AmericanExpressCreditCardFormat.swift",
        "Formats/ChinaUnionPayCreditCardFormat.swift",
        "Formats/DinersClubInternationalCreditCardFormat.swift",
        "Formats/DiscoverCreditCardFormat.swift",
        "Formats/JCBCreditCardFormat.swift",
        "Formats/MasterCardCreditCardFormat.swift",
        "Formats/UnknownCreditCardFormat.swift",
        "Formats/VISACreditCardFormat.swift",
        "ValidationAlgorithms.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:58b971189c4d3c564696bb40c86e07506670ed096ab7351a005c7c449525017a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Done.