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 ZIPFoundation, reference development (e9b191), with Swift 6.1 for Linux on 30 Apr 2025 12:07:43 UTC.

Swift 6 data race errors: 2

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-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.61.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tuist/ZIPFoundation.git
Reference: development
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/tuist/ZIPFoundation
 * branch            development -> FETCH_HEAD
 * [new branch]      development -> origin/development
HEAD is now at e9b1917 Update README.md
Cloned https://github.com/tuist/ZIPFoundation.git
Revision (git rev-parse @):
e9b1917bd4d7d050e0ff4ec157b5d6e253c84385
SUCCESS checkout https://github.com/tuist/ZIPFoundation.git at development
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/tuist/ZIPFoundation.git
https://github.com/tuist/ZIPFoundation.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "ZIPFoundation",
  "name" : "ZIPFoundation",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "tvos",
      "version" : "12.0"
    },
    {
      "name" : "watchos",
      "version" : "4.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "ZIPFoundation",
      "targets" : [
        "ZIPFoundation"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "4",
    "4.2",
    "5"
  ],
  "targets" : [
    {
      "c99name" : "ZIPFoundationTests",
      "module_type" : "SwiftTarget",
      "name" : "ZIPFoundationTests",
      "path" : "Tests/ZIPFoundationTests",
      "sources" : [
        "ZIPFoundationArchiveTests+ZIP64.swift",
        "ZIPFoundationArchiveTests.swift",
        "ZIPFoundationDataSerializationTests.swift",
        "ZIPFoundationEntryTests+ZIP64.swift",
        "ZIPFoundationEntryTests.swift",
        "ZIPFoundationErrorConditionTests+ZIP64.swift",
        "ZIPFoundationErrorConditionTests.swift",
        "ZIPFoundationFileAttributeTests.swift",
        "ZIPFoundationFileManagerTests+ZIP64.swift",
        "ZIPFoundationFileManagerTests.swift",
        "ZIPFoundationMemoryTests.swift",
        "ZIPFoundationPerformanceTests.swift",
        "ZIPFoundationProgressTests.swift",
        "ZIPFoundationReadingTests+ZIP64.swift",
        "ZIPFoundationReadingTests.swift",
        "ZIPFoundationTests.swift",
        "ZIPFoundationWritingTests+ZIP64.swift",
        "ZIPFoundationWritingTests.swift"
      ],
      "target_dependencies" : [
        "ZIPFoundation"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ZIPFoundation",
      "module_type" : "SwiftTarget",
      "name" : "ZIPFoundation",
      "path" : "Sources/ZIPFoundation",
      "product_memberships" : [
        "ZIPFoundation"
      ],
      "sources" : [
        "Archive+BackingConfiguration.swift",
        "Archive+Deprecated.swift",
        "Archive+Helpers.swift",
        "Archive+MemoryFile.swift",
        "Archive+Progress.swift",
        "Archive+Reading.swift",
        "Archive+ReadingDeprecated.swift",
        "Archive+Writing.swift",
        "Archive+WritingDeprecated.swift",
        "Archive+ZIP64.swift",
        "Archive.swift",
        "Data+Compression.swift",
        "Data+CompressionDeprecated.swift",
        "Data+Serialization.swift",
        "Date+ZIP.swift",
        "Entry+Serialization.swift",
        "Entry+ZIP64.swift",
        "Entry.swift",
        "FileManager+ZIP.swift",
        "FileManager+ZIPDeprecated.swift",
        "URL+ZIP.swift"
      ],
      "target_dependencies" : [
        "CZLib"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CZLib",
      "module_type" : "SystemLibraryTarget",
      "name" : "CZLib",
      "path" : "Sources/CZLib",
      "product_memberships" : [
        "ZIPFoundation"
      ],
      "sources" : [
      ],
      "type" : "system-target"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-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.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-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/Sources/ZIPFoundation/Resources/PrivacyInfo.xcprivacy
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/22] Emitting module ZIPFoundation
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+ZIP64.swift:146:5: warning: var 'maxUInt32' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
144 |
145 | /// Properties that represent the maximum value of each field
146 | var maxUInt32 = UInt32.max
    |     |- warning: var 'maxUInt32' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'maxUInt32' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: add '@MainActor' to make var 'maxUInt32' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
147 | var maxUInt16 = UInt16.max
148 |
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+ZIP64.swift:147:5: warning: var 'maxUInt16' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
145 | /// Properties that represent the maximum value of each field
146 | var maxUInt32 = UInt32.max
147 | var maxUInt16 = UInt16.max
    |     |- warning: var 'maxUInt16' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'maxUInt16' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: add '@MainActor' to make var 'maxUInt16' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
148 |
149 | var maxCompressedSize: UInt32 { maxUInt32 }
[4/24] Compiling ZIPFoundation FileManager+ZIPDeprecated.swift
[5/24] Compiling ZIPFoundation URL+ZIP.swift
[6/24] Compiling ZIPFoundation Data+CompressionDeprecated.swift
[7/24] Compiling ZIPFoundation Data+Serialization.swift
[8/24] Compiling ZIPFoundation Date+ZIP.swift
[9/24] Compiling ZIPFoundation Archive+ZIP64.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+ZIP64.swift:146:5: warning: var 'maxUInt32' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
144 |
145 | /// Properties that represent the maximum value of each field
146 | var maxUInt32 = UInt32.max
    |     |- warning: var 'maxUInt32' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'maxUInt32' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: add '@MainActor' to make var 'maxUInt32' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
147 | var maxUInt16 = UInt16.max
148 |
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+ZIP64.swift:147:5: warning: var 'maxUInt16' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
145 | /// Properties that represent the maximum value of each field
146 | var maxUInt32 = UInt32.max
147 | var maxUInt16 = UInt16.max
    |     |- warning: var 'maxUInt16' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'maxUInt16' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: add '@MainActor' to make var 'maxUInt16' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
148 |
149 | var maxCompressedSize: UInt32 { maxUInt32 }
[10/24] Compiling ZIPFoundation Archive.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+ZIP64.swift:146:5: warning: var 'maxUInt32' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
144 |
145 | /// Properties that represent the maximum value of each field
146 | var maxUInt32 = UInt32.max
    |     |- warning: var 'maxUInt32' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'maxUInt32' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: add '@MainActor' to make var 'maxUInt32' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
147 | var maxUInt16 = UInt16.max
148 |
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+ZIP64.swift:147:5: warning: var 'maxUInt16' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
145 | /// Properties that represent the maximum value of each field
146 | var maxUInt32 = UInt32.max
147 | var maxUInt16 = UInt16.max
    |     |- warning: var 'maxUInt16' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'maxUInt16' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: add '@MainActor' to make var 'maxUInt16' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
148 |
149 | var maxCompressedSize: UInt32 { maxUInt32 }
[11/24] Compiling ZIPFoundation Data+Compression.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+ZIP64.swift:146:5: warning: var 'maxUInt32' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
144 |
145 | /// Properties that represent the maximum value of each field
146 | var maxUInt32 = UInt32.max
    |     |- warning: var 'maxUInt32' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'maxUInt32' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: add '@MainActor' to make var 'maxUInt32' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
147 | var maxUInt16 = UInt16.max
148 |
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+ZIP64.swift:147:5: warning: var 'maxUInt16' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
145 | /// Properties that represent the maximum value of each field
146 | var maxUInt32 = UInt32.max
147 | var maxUInt16 = UInt16.max
    |     |- warning: var 'maxUInt16' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'maxUInt16' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: add '@MainActor' to make var 'maxUInt16' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
148 |
149 | var maxCompressedSize: UInt32 { maxUInt32 }
[12/24] Compiling ZIPFoundation Archive+BackingConfiguration.swift
[13/24] Compiling ZIPFoundation Archive+Deprecated.swift
[14/24] Compiling ZIPFoundation Archive+Helpers.swift
[15/24] Compiling ZIPFoundation Archive+ReadingDeprecated.swift
[16/24] Compiling ZIPFoundation Archive+Writing.swift
[17/24] Compiling ZIPFoundation Archive+WritingDeprecated.swift
[18/24] Compiling ZIPFoundation Entry+Serialization.swift
[19/24] Compiling ZIPFoundation Entry+ZIP64.swift
[20/24] Compiling ZIPFoundation Archive+MemoryFile.swift
[21/24] Compiling ZIPFoundation Archive+Progress.swift
[22/24] Compiling ZIPFoundation Archive+Reading.swift
[23/24] Compiling ZIPFoundation Entry.swift
[24/24] Compiling ZIPFoundation FileManager+ZIP.swift
Build complete! (8.10s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "ZIPFoundation",
  "name" : "ZIPFoundation",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "tvos",
      "version" : "12.0"
    },
    {
      "name" : "watchos",
      "version" : "4.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "ZIPFoundation",
      "targets" : [
        "ZIPFoundation"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "4",
    "4.2",
    "5"
  ],
  "targets" : [
    {
      "c99name" : "ZIPFoundationTests",
      "module_type" : "SwiftTarget",
      "name" : "ZIPFoundationTests",
      "path" : "Tests/ZIPFoundationTests",
      "sources" : [
        "ZIPFoundationArchiveTests+ZIP64.swift",
        "ZIPFoundationArchiveTests.swift",
        "ZIPFoundationDataSerializationTests.swift",
        "ZIPFoundationEntryTests+ZIP64.swift",
        "ZIPFoundationEntryTests.swift",
        "ZIPFoundationErrorConditionTests+ZIP64.swift",
        "ZIPFoundationErrorConditionTests.swift",
        "ZIPFoundationFileAttributeTests.swift",
        "ZIPFoundationFileManagerTests+ZIP64.swift",
        "ZIPFoundationFileManagerTests.swift",
        "ZIPFoundationMemoryTests.swift",
        "ZIPFoundationPerformanceTests.swift",
        "ZIPFoundationProgressTests.swift",
        "ZIPFoundationReadingTests+ZIP64.swift",
        "ZIPFoundationReadingTests.swift",
        "ZIPFoundationTests.swift",
        "ZIPFoundationWritingTests+ZIP64.swift",
        "ZIPFoundationWritingTests.swift"
      ],
      "target_dependencies" : [
        "ZIPFoundation"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ZIPFoundation",
      "module_type" : "SwiftTarget",
      "name" : "ZIPFoundation",
      "path" : "Sources/ZIPFoundation",
      "product_memberships" : [
        "ZIPFoundation"
      ],
      "sources" : [
        "Archive+BackingConfiguration.swift",
        "Archive+Deprecated.swift",
        "Archive+Helpers.swift",
        "Archive+MemoryFile.swift",
        "Archive+Progress.swift",
        "Archive+Reading.swift",
        "Archive+ReadingDeprecated.swift",
        "Archive+Writing.swift",
        "Archive+WritingDeprecated.swift",
        "Archive+ZIP64.swift",
        "Archive.swift",
        "Data+Compression.swift",
        "Data+CompressionDeprecated.swift",
        "Data+Serialization.swift",
        "Date+ZIP.swift",
        "Entry+Serialization.swift",
        "Entry+ZIP64.swift",
        "Entry.swift",
        "FileManager+ZIP.swift",
        "FileManager+ZIPDeprecated.swift",
        "URL+ZIP.swift"
      ],
      "target_dependencies" : [
        "CZLib"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CZLib",
      "module_type" : "SystemLibraryTarget",
      "name" : "CZLib",
      "path" : "Sources/CZLib",
      "product_memberships" : [
        "ZIPFoundation"
      ],
      "sources" : [
      ],
      "type" : "system-target"
    }
  ],
  "tools_version" : "5.9"
}
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Done.