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 Zip, reference 2.2.3 (567d51), with Swift 6.0 (beta) for Linux on 17 Sep 2024 03:09:56 UTC.

Swift 6 data race errors: 1

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.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/vapor-community/Zip.git
Reference: 2.2.3
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/vapor-community/Zip
 * tag               2.2.3      -> FETCH_HEAD
HEAD is now at 567d515 Fix inconsistent behaviour between macOS and Linux (#8)
Cloned https://github.com/vapor-community/Zip.git
Revision (git rev-parse @):
567d51516b3bdbc823669a943d8b4f6bc6c6dafc
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/vapor-community/Zip.git at 2.2.3
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/vapor-community/Zip.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:9d7dab235f2b0b46edadd73b1fb0c3b5323df02053420324a4a2f8ca89cb54a5
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/6] Write sources
[1/6] Compiling Minizip crypt.c
[2/6] Compiling Minizip ioapi.c
[3/6] Compiling Minizip zip.c
[4/6] Write swift-version-24593BA9C3E375BF.txt
[4/6] Compiling Minizip unzip.c
[7/14] Compiling Zip ZipCompression.swift
[8/14] Compiling Zip QuickZip.swift
[9/14] Compiling Zip Date+dosDate.swift
[10/14] Emitting module Zip
/host/spi-builder-workspace/Sources/Zip/Zip.swift:15:25: warning: static property 'customFileExtensions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 13 | public class Zip {
 14 |     // Set of vaild file extensions
 15 |     internal static var customFileExtensions: Set<String> = []
    |                         |- warning: static property 'customFileExtensions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                         |- note: convert 'customFileExtensions' to a 'let' constant to make 'Sendable' shared state immutable
    |                         |- note: annotate 'customFileExtensions' 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
 16 |
 17 |     @available(*, deprecated, message: "Do not use this initializer. Zip is a utility class and should not be instantiated.")
[11/14] Compiling Zip ArchiveFile.swift
[12/14] Compiling Zip Zip.swift
/host/spi-builder-workspace/Sources/Zip/Zip.swift:15:25: warning: static property 'customFileExtensions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 13 | public class Zip {
 14 |     // Set of vaild file extensions
 15 |     internal static var customFileExtensions: Set<String> = []
    |                         |- warning: static property 'customFileExtensions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                         |- note: convert 'customFileExtensions' to a 'let' constant to make 'Sendable' shared state immutable
    |                         |- note: annotate 'customFileExtensions' 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
 16 |
 17 |     @available(*, deprecated, message: "Do not use this initializer. Zip is a utility class and should not be instantiated.")
/host/spi-builder-workspace/Sources/Zip/Zip.swift:121:17: warning: initialization of immutable value 'creationDate' was never used; consider replacing with assignment to '_' or removing it
119 |             }
120 |
121 |             let creationDate = Date()
    |                 `- warning: initialization of immutable value 'creationDate' was never used; consider replacing with assignment to '_' or removing it
122 |             let directoryAttributes: [FileAttributeKey: Any]?
123 |             #if os(Linux) && swift(<6.0)
[13/14] Compiling Zip ZipUtilities.swift
[14/14] Compiling Zip ZipError.swift
Build complete! (10.35s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Zip",
  "name" : "Zip",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Zip",
      "targets" : [
        "Zip"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ZipTests",
      "module_type" : "SwiftTarget",
      "name" : "ZipTests",
      "path" : "Tests/ZipTests",
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Tests/ZipTests/Resources",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "ZipTests.swift"
      ],
      "target_dependencies" : [
        "Zip"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Zip",
      "module_type" : "SwiftTarget",
      "name" : "Zip",
      "path" : "Sources/Zip",
      "product_memberships" : [
        "Zip"
      ],
      "sources" : [
        "ArchiveFile.swift",
        "Date+dosDate.swift",
        "QuickZip.swift",
        "Zip.swift",
        "ZipCompression.swift",
        "ZipError.swift",
        "ZipUtilities.swift"
      ],
      "target_dependencies" : [
        "Minizip"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Minizip",
      "module_type" : "ClangTarget",
      "name" : "Minizip",
      "path" : "Sources/Minizip",
      "product_memberships" : [
        "Zip"
      ],
      "sources" : [
        "crypt.c",
        "ioapi.c",
        "unzip.c",
        "zip.c"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:9d7dab235f2b0b46edadd73b1fb0c3b5323df02053420324a4a2f8ca89cb54a5
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.