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 InputMask, reference 7.3.2 (b492f1), with Swift 6.0 for Linux on 29 Nov 2024 15:38:45 UTC.

Swift 6 data race errors: 3

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-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.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/RedMadRobot/input-mask-ios.git
Reference: 7.3.2
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/RedMadRobot/input-mask-ios
 * tag               7.3.2      -> FETCH_HEAD
HEAD is now at b492f11 fix: version
Cloned https://github.com/RedMadRobot/input-mask-ios.git
Revision (git rev-parse @):
b492f115cc8b3aeb1b6395b4c4157d6bba1fceab
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/RedMadRobot/input-mask-ios.git at 7.3.2
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/RedMadRobot/input-mask-ios.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Source/InputMask/InputMask/Supporting Files/Info.plist
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/26] Emitting module InputMask
/host/spi-builder-workspace/Source/InputMask/InputMask/Classes/Mask.swift:78:24: warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 76 |
 77 |     private let initialState: State
 78 |     private static var cache: [String: Mask] = [:]
    |                        |- warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'cache' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'cache' 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
 79 |
 80 |     /**
/host/spi-builder-workspace/Source/InputMask/InputMask/Classes/Model/Country.swift:156:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Country]' may have shared mutable state; this is an error in the Swift 6 language mode
 13 |  Model object representing a **Country** record operated by the ``PhoneInputListener``.
 14 |  */
 15 | public struct Country {
    |               `- note: consider making struct 'Country' conform to the 'Sendable' protocol
 16 |     /**
 17 |      International country name.
    :
154 |      Feel free to append/correct & file PRs, see https://countrycode.org
155 |      */
156 |     public static let all: [Country] = [
    |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Country]' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'all' 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
157 |         Country(
158 |             name: "Canada",
/host/spi-builder-workspace/Source/InputMask/InputMask/Classes/RTLMask.swift:17:24: warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 |  */
16 | public class RTLMask: Mask {
17 |     private static var cache: [String: RTLMask] = [:]
   |                        |- warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'cache' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: annotate 'cache' 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
18 |
19 |     public required init(format: String, customNotations: [Notation] = []) throws {
[4/29] Compiling InputMask PhoneInputListener.swift
[5/29] Compiling InputMask TextViewListener.swift
[6/29] Compiling InputMask UITextInput.swift
[7/29] Compiling InputMask MaskedTextField.swift
[8/29] Compiling InputMask MaskedTextInputListener.swift
[9/29] Compiling InputMask NumberInputListener.swift
[10/29] Compiling InputMask FormatSanitizer.swift
/host/spi-builder-workspace/Source/InputMask/InputMask/Classes/Mask.swift:78:24: warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 76 |
 77 |     private let initialState: State
 78 |     private static var cache: [String: Mask] = [:]
    |                        |- warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'cache' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'cache' 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
 79 |
 80 |     /**
[11/29] Compiling InputMask RTLCaretStringIterator.swift
/host/spi-builder-workspace/Source/InputMask/InputMask/Classes/Mask.swift:78:24: warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 76 |
 77 |     private let initialState: State
 78 |     private static var cache: [String: Mask] = [:]
    |                        |- warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'cache' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'cache' 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
 79 |
 80 |     /**
[12/29] Compiling InputMask String.swift
/host/spi-builder-workspace/Source/InputMask/InputMask/Classes/Mask.swift:78:24: warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 76 |
 77 |     private let initialState: State
 78 |     private static var cache: [String: Mask] = [:]
    |                        |- warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'cache' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'cache' 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
 79 |
 80 |     /**
[13/29] Compiling InputMask Mask.swift
/host/spi-builder-workspace/Source/InputMask/InputMask/Classes/Mask.swift:78:24: warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 76 |
 77 |     private let initialState: State
 78 |     private static var cache: [String: Mask] = [:]
    |                        |- warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'cache' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'cache' 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
 79 |
 80 |     /**
[14/29] Compiling InputMask Notation.swift
[15/29] Compiling InputMask State.swift
[16/29] Compiling InputMask EOLState.swift
[17/29] Compiling InputMask FixedState.swift
[18/29] Compiling InputMask FreeState.swift
[19/29] Compiling InputMask OptionalValueState.swift
[20/29] Compiling InputMask CaretString.swift
/host/spi-builder-workspace/Source/InputMask/InputMask/Classes/Model/Country.swift:156:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Country]' may have shared mutable state; this is an error in the Swift 6 language mode
 13 |  Model object representing a **Country** record operated by the ``PhoneInputListener``.
 14 |  */
 15 | public struct Country {
    |               `- note: consider making struct 'Country' conform to the 'Sendable' protocol
 16 |     /**
 17 |      International country name.
    :
154 |      Feel free to append/correct & file PRs, see https://countrycode.org
155 |      */
156 |     public static let all: [Country] = [
    |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Country]' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'all' 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
157 |         Country(
158 |             name: "Canada",
[21/29] Compiling InputMask Country.swift
/host/spi-builder-workspace/Source/InputMask/InputMask/Classes/Model/Country.swift:156:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Country]' may have shared mutable state; this is an error in the Swift 6 language mode
 13 |  Model object representing a **Country** record operated by the ``PhoneInputListener``.
 14 |  */
 15 | public struct Country {
    |               `- note: consider making struct 'Country' conform to the 'Sendable' protocol
 16 |     /**
 17 |      International country name.
    :
154 |      Feel free to append/correct & file PRs, see https://countrycode.org
155 |      */
156 |     public static let all: [Country] = [
    |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Country]' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'all' 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
157 |         Country(
158 |             name: "Canada",
[22/29] Compiling InputMask Next.swift
/host/spi-builder-workspace/Source/InputMask/InputMask/Classes/Model/Country.swift:156:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Country]' may have shared mutable state; this is an error in the Swift 6 language mode
 13 |  Model object representing a **Country** record operated by the ``PhoneInputListener``.
 14 |  */
 15 | public struct Country {
    |               `- note: consider making struct 'Country' conform to the 'Sendable' protocol
 16 |     /**
 17 |      International country name.
    :
154 |      Feel free to append/correct & file PRs, see https://countrycode.org
155 |      */
156 |     public static let all: [Country] = [
    |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Country]' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'all' 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
157 |         Country(
158 |             name: "Canada",
[23/29] Compiling InputMask ValueState.swift
/host/spi-builder-workspace/Source/InputMask/InputMask/Classes/RTLMask.swift:17:24: warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 |  */
16 | public class RTLMask: Mask {
17 |     private static var cache: [String: RTLMask] = [:]
   |                        |- warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'cache' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: annotate 'cache' 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
18 |
19 |     public required init(format: String, customNotations: [Notation] = []) throws {
[24/29] Compiling InputMask RTLMask.swift
/host/spi-builder-workspace/Source/InputMask/InputMask/Classes/RTLMask.swift:17:24: warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 |  */
16 | public class RTLMask: Mask {
17 |     private static var cache: [String: RTLMask] = [:]
   |                        |- warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'cache' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: annotate 'cache' 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
18 |
19 |     public required init(format: String, customNotations: [Notation] = []) throws {
[25/29] Compiling InputMask MaskedTextField+Modifiers.swift
/host/spi-builder-workspace/Source/InputMask/InputMask/Classes/RTLMask.swift:17:24: warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 |  */
16 | public class RTLMask: Mask {
17 |     private static var cache: [String: RTLMask] = [:]
   |                        |- warning: static property 'cache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'cache' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: annotate 'cache' 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
18 |
19 |     public required init(format: String, customNotations: [Notation] = []) throws {
[26/29] Compiling InputMask AffinityCalculationStrategy.swift
[27/29] Compiling InputMask CaretStringIterator.swift
[28/29] Compiling InputMask CharacterSet.swift
[29/29] Compiling InputMask Compiler.swift
Build complete! (16.92s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "InputMask",
  "name" : "InputMask",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "InputMask",
      "targets" : [
        "InputMask"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "InputMaskTests",
      "module_type" : "SwiftTarget",
      "name" : "InputMaskTests",
      "path" : "Source/InputMask",
      "sources" : [
        "InputMaskTests/Classes/Helper/StringTests.swift",
        "InputMaskTests/Classes/Mask/CustomNotationEllipticalCase.swift",
        "InputMaskTests/Classes/Mask/DayMonthYearCase.swift",
        "InputMaskTests/Classes/Mask/DayMonthYearShortCase.swift",
        "InputMaskTests/Classes/Mask/DecimalNumberCase.swift",
        "InputMaskTests/Classes/Mask/EndlessIntegerCase.swift",
        "InputMaskTests/Classes/Mask/EscapedCase.swift",
        "InputMaskTests/Classes/Mask/MaskTestCase.swift",
        "InputMaskTests/Classes/Mask/MonthYearCase.swift",
        "InputMaskTests/Classes/Mask/MonthYearDoubleSlashCase.swift",
        "InputMaskTests/Classes/Mask/NameCase.swift",
        "InputMaskTests/Classes/Mask/PhoneCase.swift",
        "InputMaskTests/Classes/Mask/Reversed/LargeNumberTests.swift",
        "InputMaskTests/Classes/Mask/SillyEllipticalCase.swift",
        "InputMaskTests/Classes/Mask/SillyPiEllipticalCase.swift",
        "InputMaskTests/Classes/Mask/WildcardCase.swift",
        "InputMaskTests/Classes/Mask/YearACCase.swift",
        "InputMaskTests/Classes/Mask/YearCase.swift"
      ],
      "target_dependencies" : [
        "InputMask"
      ],
      "type" : "test"
    },
    {
      "c99name" : "InputMask",
      "module_type" : "SwiftTarget",
      "name" : "InputMask",
      "path" : "Source/InputMask/InputMask",
      "product_memberships" : [
        "InputMask"
      ],
      "sources" : [
        "Classes/Helper/AffinityCalculationStrategy.swift",
        "Classes/Helper/CaretStringIterator.swift",
        "Classes/Helper/CharacterSet.swift",
        "Classes/Helper/Compiler.swift",
        "Classes/Helper/FormatSanitizer.swift",
        "Classes/Helper/RTLCaretStringIterator.swift",
        "Classes/Helper/String.swift",
        "Classes/Mask.swift",
        "Classes/Model/CaretString.swift",
        "Classes/Model/Country.swift",
        "Classes/Model/Next.swift",
        "Classes/Model/Notation.swift",
        "Classes/Model/State.swift",
        "Classes/Model/State/EOLState.swift",
        "Classes/Model/State/FixedState.swift",
        "Classes/Model/State/FreeState.swift",
        "Classes/Model/State/OptionalValueState.swift",
        "Classes/Model/State/ValueState.swift",
        "Classes/RTLMask.swift",
        "Classes/View/MaskedTextField+Modifiers.swift",
        "Classes/View/MaskedTextField.swift",
        "Classes/View/MaskedTextInputListener.swift",
        "Classes/View/NumberInputListener.swift",
        "Classes/View/PhoneInputListener.swift",
        "Classes/View/TextViewListener.swift",
        "Classes/View/UITextInput.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7.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
Done.