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 Unarchiver, reference 0.0.5 (7a925b), with Swift 6.0 for Linux on 1 Nov 2024 04:58:06 UTC.

Swift 6 data race errors: 5

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-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.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Octadero/Unarchiver.git
Reference: 0.0.5
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/Octadero/Unarchiver
 * tag               0.0.5      -> FETCH_HEAD
HEAD is now at 7a925bc Updated License, move on Apache.
Cloned https://github.com/Octadero/Unarchiver.git
Revision (git rev-parse @):
7a925bc0854c5544ad8cb59f24c301682e0f2f7a
SUCCESS checkout https://github.com/Octadero/Unarchiver.git at 0.0.5
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/Octadero/Unarchiver.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/Octadero/CZlib.git
[1/15] Fetching czlib
Fetched https://github.com/Octadero/CZlib.git from cache (0.18s)
Computing version for https://github.com/Octadero/CZlib.git
Computed https://github.com/Octadero/CZlib.git at 0.0.5 (0.48s)
Creating working copy for https://github.com/Octadero/CZlib.git
Working copy of https://github.com/Octadero/CZlib.git resolved at 0.0.5
warning: 'czlib': ignoring declared target(s) 'CZlib' in the system package
warning: 'spi-builder-workspace': dependency 'czlib' is not used by any target
warning: you may be able to install libz using your system-packager:
    apt-get install libz-dev
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/5] Emitting module Unarchiver
/host/spi-builder-workspace/Sources/Unarchiver/Data.swift:29:23: warning: static property 'noCompression' is not concurrency-safe because non-'Sendable' type 'CompressionLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 23 | /// Compression level whose rawValue is based on the zlib's constants.
 24 | /// Compression level in the range of `0` (no compression) to `9` (maximum compression).
 25 | public struct CompressionLevel: RawRepresentable {
    |               `- note: consider making struct 'CompressionLevel' conform to the 'Sendable' protocol
 26 |
 27 |     public let rawValue: Int32
 28 |
 29 |     public static let noCompression = CompressionLevel(Z_NO_COMPRESSION)
    |                       |- warning: static property 'noCompression' is not concurrency-safe because non-'Sendable' type 'CompressionLevel' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'noCompression' 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
 30 |     public static let bestSpeed = CompressionLevel(Z_BEST_SPEED)
 31 |     public static let bestCompression = CompressionLevel(Z_BEST_COMPRESSION)
/host/spi-builder-workspace/Sources/Unarchiver/Data.swift:30:23: warning: static property 'bestSpeed' is not concurrency-safe because non-'Sendable' type 'CompressionLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 23 | /// Compression level whose rawValue is based on the zlib's constants.
 24 | /// Compression level in the range of `0` (no compression) to `9` (maximum compression).
 25 | public struct CompressionLevel: RawRepresentable {
    |               `- note: consider making struct 'CompressionLevel' conform to the 'Sendable' protocol
 26 |
 27 |     public let rawValue: Int32
 28 |
 29 |     public static let noCompression = CompressionLevel(Z_NO_COMPRESSION)
 30 |     public static let bestSpeed = CompressionLevel(Z_BEST_SPEED)
    |                       |- warning: static property 'bestSpeed' is not concurrency-safe because non-'Sendable' type 'CompressionLevel' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'bestSpeed' 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 |     public static let bestCompression = CompressionLevel(Z_BEST_COMPRESSION)
 32 |     public static let defaultCompression = CompressionLevel(Z_DEFAULT_COMPRESSION)
/host/spi-builder-workspace/Sources/Unarchiver/Data.swift:31:23: warning: static property 'bestCompression' is not concurrency-safe because non-'Sendable' type 'CompressionLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 23 | /// Compression level whose rawValue is based on the zlib's constants.
 24 | /// Compression level in the range of `0` (no compression) to `9` (maximum compression).
 25 | public struct CompressionLevel: RawRepresentable {
    |               `- note: consider making struct 'CompressionLevel' conform to the 'Sendable' protocol
 26 |
 27 |     public let rawValue: Int32
    :
 29 |     public static let noCompression = CompressionLevel(Z_NO_COMPRESSION)
 30 |     public static let bestSpeed = CompressionLevel(Z_BEST_SPEED)
 31 |     public static let bestCompression = CompressionLevel(Z_BEST_COMPRESSION)
    |                       |- warning: static property 'bestCompression' is not concurrency-safe because non-'Sendable' type 'CompressionLevel' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'bestCompression' 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
 32 |     public static let defaultCompression = CompressionLevel(Z_DEFAULT_COMPRESSION)
 33 |
/host/spi-builder-workspace/Sources/Unarchiver/Data.swift:32:23: warning: static property 'defaultCompression' is not concurrency-safe because non-'Sendable' type 'CompressionLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 23 | /// Compression level whose rawValue is based on the zlib's constants.
 24 | /// Compression level in the range of `0` (no compression) to `9` (maximum compression).
 25 | public struct CompressionLevel: RawRepresentable {
    |               `- note: consider making struct 'CompressionLevel' conform to the 'Sendable' protocol
 26 |
 27 |     public let rawValue: Int32
    :
 30 |     public static let bestSpeed = CompressionLevel(Z_BEST_SPEED)
 31 |     public static let bestCompression = CompressionLevel(Z_BEST_COMPRESSION)
 32 |     public static let defaultCompression = CompressionLevel(Z_DEFAULT_COMPRESSION)
    |                       |- warning: static property 'defaultCompression' is not concurrency-safe because non-'Sendable' type 'CompressionLevel' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'defaultCompression' 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
 33 |
 34 |     public init(rawValue: Int32) {
/host/spi-builder-workspace/Sources/Unarchiver/Data.swift:76:16: warning: stored property 'kind' of 'Sendable'-conforming struct 'ZLibError' has non-sendable type 'ZLibError.Kind'; this is an error in the Swift 6 language mode
 46 | /// See public manual http://www.zlib.net/manual.html
 47 | public struct ZLibError: Swift.Error {
 48 |     public enum Kind {
    |                 `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
 49 |
 50 |         /// The stream structure was inconsistent.
    :
 74 |
 75 |     /// Error kind.
 76 |     public let kind: Kind
    |                `- warning: stored property 'kind' of 'Sendable'-conforming struct 'ZLibError' has non-sendable type 'ZLibError.Kind'; this is an error in the Swift 6 language mode
 77 |
 78 |     /// Returned message by zlib.
/host/spi-builder-workspace/Sources/Unarchiver/Data.swift:123:5: warning: 'public' modifier is redundant for property declared in a public extension
121 |
122 |     /// Whether the data is compressed in gzip format.
123 |     public var isGzipped: Bool {
    |     `- warning: 'public' modifier is redundant for property declared in a public extension
124 |         /// check magic number, see documentation.
125 |         return self.starts(with: [0x1f, 0x8b])
/host/spi-builder-workspace/Sources/Unarchiver/Data.swift:133:5: warning: 'public' modifier is redundant for instance method declared in a public extension
131 |     /// - throws: `ZLibError`
132 |     /// - Returns: Gzip-compressed `Data` object.
133 |     public func gzipped(level: CompressionLevel = .defaultCompression) throws -> Data {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
134 |
135 |         guard !self.isEmpty else {
/host/spi-builder-workspace/Sources/Unarchiver/Data.swift:177:5: warning: 'public' modifier is redundant for instance method declared in a public extension
175 |     /// - throws: `ZLibError`
176 |     /// - Returns: Gzip-decompressed `Data` object.
177 |     public func gunzipped() throws -> Data {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
178 |         guard self.isGzipped else {
179 |             return self
[4/5] Compiling Unarchiver Unarchiver.swift
[5/5] Compiling Unarchiver Data.swift
/host/spi-builder-workspace/Sources/Unarchiver/Data.swift:29:23: warning: static property 'noCompression' is not concurrency-safe because non-'Sendable' type 'CompressionLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 23 | /// Compression level whose rawValue is based on the zlib's constants.
 24 | /// Compression level in the range of `0` (no compression) to `9` (maximum compression).
 25 | public struct CompressionLevel: RawRepresentable {
    |               `- note: consider making struct 'CompressionLevel' conform to the 'Sendable' protocol
 26 |
 27 |     public let rawValue: Int32
 28 |
 29 |     public static let noCompression = CompressionLevel(Z_NO_COMPRESSION)
    |                       |- warning: static property 'noCompression' is not concurrency-safe because non-'Sendable' type 'CompressionLevel' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'noCompression' 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
 30 |     public static let bestSpeed = CompressionLevel(Z_BEST_SPEED)
 31 |     public static let bestCompression = CompressionLevel(Z_BEST_COMPRESSION)
/host/spi-builder-workspace/Sources/Unarchiver/Data.swift:30:23: warning: static property 'bestSpeed' is not concurrency-safe because non-'Sendable' type 'CompressionLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 23 | /// Compression level whose rawValue is based on the zlib's constants.
 24 | /// Compression level in the range of `0` (no compression) to `9` (maximum compression).
 25 | public struct CompressionLevel: RawRepresentable {
    |               `- note: consider making struct 'CompressionLevel' conform to the 'Sendable' protocol
 26 |
 27 |     public let rawValue: Int32
 28 |
 29 |     public static let noCompression = CompressionLevel(Z_NO_COMPRESSION)
 30 |     public static let bestSpeed = CompressionLevel(Z_BEST_SPEED)
    |                       |- warning: static property 'bestSpeed' is not concurrency-safe because non-'Sendable' type 'CompressionLevel' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'bestSpeed' 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 |     public static let bestCompression = CompressionLevel(Z_BEST_COMPRESSION)
 32 |     public static let defaultCompression = CompressionLevel(Z_DEFAULT_COMPRESSION)
/host/spi-builder-workspace/Sources/Unarchiver/Data.swift:31:23: warning: static property 'bestCompression' is not concurrency-safe because non-'Sendable' type 'CompressionLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 23 | /// Compression level whose rawValue is based on the zlib's constants.
 24 | /// Compression level in the range of `0` (no compression) to `9` (maximum compression).
 25 | public struct CompressionLevel: RawRepresentable {
    |               `- note: consider making struct 'CompressionLevel' conform to the 'Sendable' protocol
 26 |
 27 |     public let rawValue: Int32
    :
 29 |     public static let noCompression = CompressionLevel(Z_NO_COMPRESSION)
 30 |     public static let bestSpeed = CompressionLevel(Z_BEST_SPEED)
 31 |     public static let bestCompression = CompressionLevel(Z_BEST_COMPRESSION)
    |                       |- warning: static property 'bestCompression' is not concurrency-safe because non-'Sendable' type 'CompressionLevel' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'bestCompression' 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
 32 |     public static let defaultCompression = CompressionLevel(Z_DEFAULT_COMPRESSION)
 33 |
/host/spi-builder-workspace/Sources/Unarchiver/Data.swift:32:23: warning: static property 'defaultCompression' is not concurrency-safe because non-'Sendable' type 'CompressionLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 23 | /// Compression level whose rawValue is based on the zlib's constants.
 24 | /// Compression level in the range of `0` (no compression) to `9` (maximum compression).
 25 | public struct CompressionLevel: RawRepresentable {
    |               `- note: consider making struct 'CompressionLevel' conform to the 'Sendable' protocol
 26 |
 27 |     public let rawValue: Int32
    :
 30 |     public static let bestSpeed = CompressionLevel(Z_BEST_SPEED)
 31 |     public static let bestCompression = CompressionLevel(Z_BEST_COMPRESSION)
 32 |     public static let defaultCompression = CompressionLevel(Z_DEFAULT_COMPRESSION)
    |                       |- warning: static property 'defaultCompression' is not concurrency-safe because non-'Sendable' type 'CompressionLevel' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'defaultCompression' 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
 33 |
 34 |     public init(rawValue: Int32) {
/host/spi-builder-workspace/Sources/Unarchiver/Data.swift:76:16: warning: stored property 'kind' of 'Sendable'-conforming struct 'ZLibError' has non-sendable type 'ZLibError.Kind'; this is an error in the Swift 6 language mode
 46 | /// See public manual http://www.zlib.net/manual.html
 47 | public struct ZLibError: Swift.Error {
 48 |     public enum Kind {
    |                 `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
 49 |
 50 |         /// The stream structure was inconsistent.
    :
 74 |
 75 |     /// Error kind.
 76 |     public let kind: Kind
    |                `- warning: stored property 'kind' of 'Sendable'-conforming struct 'ZLibError' has non-sendable type 'ZLibError.Kind'; this is an error in the Swift 6 language mode
 77 |
 78 |     /// Returned message by zlib.
/host/spi-builder-workspace/Sources/Unarchiver/Data.swift:123:5: warning: 'public' modifier is redundant for property declared in a public extension
121 |
122 |     /// Whether the data is compressed in gzip format.
123 |     public var isGzipped: Bool {
    |     `- warning: 'public' modifier is redundant for property declared in a public extension
124 |         /// check magic number, see documentation.
125 |         return self.starts(with: [0x1f, 0x8b])
/host/spi-builder-workspace/Sources/Unarchiver/Data.swift:133:5: warning: 'public' modifier is redundant for instance method declared in a public extension
131 |     /// - throws: `ZLibError`
132 |     /// - Returns: Gzip-compressed `Data` object.
133 |     public func gzipped(level: CompressionLevel = .defaultCompression) throws -> Data {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
134 |
135 |         guard !self.isEmpty else {
/host/spi-builder-workspace/Sources/Unarchiver/Data.swift:177:5: warning: 'public' modifier is redundant for instance method declared in a public extension
175 |     /// - throws: `ZLibError`
176 |     /// - Returns: Gzip-decompressed `Data` object.
177 |     public func gunzipped() throws -> Data {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
178 |         guard self.isGzipped else {
179 |             return self
Build complete! (11.77s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "czlib",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.0.5",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Octadero/CZlib.git"
    }
  ],
  "manifest_display_name" : "Unarchiver",
  "name" : "Unarchiver",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Unarchiver",
      "targets" : [
        "Unarchiver"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "UnarchiverTests",
      "module_type" : "SwiftTarget",
      "name" : "UnarchiverTests",
      "path" : "Tests/UnarchiverTests",
      "sources" : [
        "UnarchiverTests.swift"
      ],
      "target_dependencies" : [
        "Unarchiver"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Unarchiver",
      "module_type" : "SwiftTarget",
      "name" : "Unarchiver",
      "path" : "Sources/Unarchiver",
      "product_memberships" : [
        "Unarchiver"
      ],
      "sources" : [
        "Data.swift",
        "Unarchiver.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
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.