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 TimeZones, reference 1.0.1 (fbb80a), with Swift 6.0 for Linux on 31 Oct 2024 15:57:44 UTC.

Swift 6 data race errors: 2

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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/binarybirds/timezones.git
Reference: 1.0.1
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/binarybirds/timezones
 * tag               1.0.1      -> FETCH_HEAD
HEAD is now at fbb80a0 struct -> enum refactor
Cloned https://github.com/binarybirds/timezones.git
Revision (git rev-parse @):
fbb80a0b6ef1eeb5534260929cf6d0d79b0a3487
SUCCESS checkout https://github.com/binarybirds/timezones.git at 1.0.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/binarybirds/timezones.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/6] Compiling TimeZones TimeZone+Abbrevation.swift
/host/spi-builder-workspace/Sources/TimeZone+Abbrevation.swift:13:5: warning: 'public' modifier is redundant for enum declared in a public extension
11 |
12 |     //created from: TimeZone.abbreviationDictionary.keys
13 |     public enum Abbrevation: String {
   |     `- warning: 'public' modifier is redundant for enum declared in a public extension
14 |         case adt
15 |         case akdt
/host/spi-builder-workspace/Sources/TimeZone+Abbrevation.swift:67:5: warning: 'public' modifier is redundant for initializer declared in a public extension
65 |     }
66 |
67 |     public init(abbrevation: TimeZone.Abbrevation) {
   |     `- warning: 'public' modifier is redundant for initializer declared in a public extension
68 |         self.init(abbreviation: abbrevation.rawValue.uppercased())!
69 |     }
[4/6] Compiling TimeZones Coordinate.swift
[5/6] Compiling TimeZones TimeZone+Location.swift
/host/spi-builder-workspace/Sources/TimeZone+Location.swift:24:5: warning: 'public' modifier is redundant for static property declared in a public extension
 22 | public extension TimeZone {
 23 |
 24 |     public static var local: TimeZone {
    |     `- warning: 'public' modifier is redundant for static property declared in a public extension
 25 |         return TimeZone(identifier: NSTimeZone.local.identifier)!
 26 |     }
/host/spi-builder-workspace/Sources/TimeZone+Location.swift:28:5: warning: 'public' modifier is redundant for static property declared in a public extension
 26 |     }
 27 |
 28 |     public static var system: TimeZone {
    |     `- warning: 'public' modifier is redundant for static property declared in a public extension
 29 |         return TimeZone(identifier: NSTimeZone.system.identifier)!
 30 |     }
/host/spi-builder-workspace/Sources/TimeZone+Location.swift:33:23: warning: static property 'knownTimeZoneCoordinates' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 31 |
 32 |     //created from TimeZone.knownTimeZoneIdentifiers
 33 |     public static var knownTimeZoneCoordinates: [String: Coordinate] = [
    |                       |- warning: static property 'knownTimeZoneCoordinates' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'knownTimeZoneCoordinates' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'knownTimeZoneCoordinates' 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
 34 |         "GMT": Coordinate(latitude: -15.706_518_6, longitude: -47.905_952_3),
 35 |
/host/spi-builder-workspace/Sources/TimeZone+Location.swift:33:5: warning: 'public' modifier is redundant for static property declared in a public extension
 31 |
 32 |     //created from TimeZone.knownTimeZoneIdentifiers
 33 |     public static var knownTimeZoneCoordinates: [String: Coordinate] = [
    |     `- warning: 'public' modifier is redundant for static property declared in a public extension
 34 |         "GMT": Coordinate(latitude: -15.706_518_6, longitude: -47.905_952_3),
 35 |
/host/spi-builder-workspace/Sources/TimeZone+Location.swift:492:23: warning: static property 'GMT' is not concurrency-safe because non-'Sendable' type '(identifier: String, coordinate: Coordinate)' may have shared mutable state; this is an error in the Swift 6 language mode
490 |
491 |
492 |     public static let GMT: (identifier: String, coordinate: Coordinate) =
    |                       |- warning: static property 'GMT' is not concurrency-safe because non-'Sendable' type '(identifier: String, coordinate: Coordinate)' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'GMT' 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
493 |             (identifier: "GMT", coordinate: TimeZone.knownTimeZoneCoordinates["GMT"]!)
494 |
/host/spi-builder-workspace/Sources/Coordinate.swift:13:15: note: consider making struct 'Coordinate' conform to the 'Sendable' protocol
11 | #endif
12 |
13 | public struct Coordinate: Codable {
   |               `- note: consider making struct 'Coordinate' conform to the 'Sendable' protocol
14 |     public let latitude: Double
15 |     public let longitude: Double
/host/spi-builder-workspace/Sources/TimeZone+Location.swift:492:5: warning: 'public' modifier is redundant for static property declared in a public extension
490 |
491 |
492 |     public static let GMT: (identifier: String, coordinate: Coordinate) =
    |     `- warning: 'public' modifier is redundant for static property declared in a public extension
493 |             (identifier: "GMT", coordinate: TimeZone.knownTimeZoneCoordinates["GMT"]!)
494 |
[6/6] Emitting module TimeZones
/host/spi-builder-workspace/Sources/TimeZone+Abbrevation.swift:13:5: warning: 'public' modifier is redundant for enum declared in a public extension
11 |
12 |     //created from: TimeZone.abbreviationDictionary.keys
13 |     public enum Abbrevation: String {
   |     `- warning: 'public' modifier is redundant for enum declared in a public extension
14 |         case adt
15 |         case akdt
/host/spi-builder-workspace/Sources/TimeZone+Abbrevation.swift:67:5: warning: 'public' modifier is redundant for initializer declared in a public extension
65 |     }
66 |
67 |     public init(abbrevation: TimeZone.Abbrevation) {
   |     `- warning: 'public' modifier is redundant for initializer declared in a public extension
68 |         self.init(abbreviation: abbrevation.rawValue.uppercased())!
69 |     }
/host/spi-builder-workspace/Sources/TimeZone+Location.swift:24:5: warning: 'public' modifier is redundant for static property declared in a public extension
 22 | public extension TimeZone {
 23 |
 24 |     public static var local: TimeZone {
    |     `- warning: 'public' modifier is redundant for static property declared in a public extension
 25 |         return TimeZone(identifier: NSTimeZone.local.identifier)!
 26 |     }
/host/spi-builder-workspace/Sources/TimeZone+Location.swift:28:5: warning: 'public' modifier is redundant for static property declared in a public extension
 26 |     }
 27 |
 28 |     public static var system: TimeZone {
    |     `- warning: 'public' modifier is redundant for static property declared in a public extension
 29 |         return TimeZone(identifier: NSTimeZone.system.identifier)!
 30 |     }
/host/spi-builder-workspace/Sources/TimeZone+Location.swift:33:23: warning: static property 'knownTimeZoneCoordinates' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 31 |
 32 |     //created from TimeZone.knownTimeZoneIdentifiers
 33 |     public static var knownTimeZoneCoordinates: [String: Coordinate] = [
    |                       |- warning: static property 'knownTimeZoneCoordinates' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'knownTimeZoneCoordinates' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'knownTimeZoneCoordinates' 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
 34 |         "GMT": Coordinate(latitude: -15.706_518_6, longitude: -47.905_952_3),
 35 |
/host/spi-builder-workspace/Sources/TimeZone+Location.swift:33:5: warning: 'public' modifier is redundant for static property declared in a public extension
 31 |
 32 |     //created from TimeZone.knownTimeZoneIdentifiers
 33 |     public static var knownTimeZoneCoordinates: [String: Coordinate] = [
    |     `- warning: 'public' modifier is redundant for static property declared in a public extension
 34 |         "GMT": Coordinate(latitude: -15.706_518_6, longitude: -47.905_952_3),
 35 |
/host/spi-builder-workspace/Sources/TimeZone+Location.swift:492:23: warning: static property 'GMT' is not concurrency-safe because non-'Sendable' type '(identifier: String, coordinate: Coordinate)' may have shared mutable state; this is an error in the Swift 6 language mode
490 |
491 |
492 |     public static let GMT: (identifier: String, coordinate: Coordinate) =
    |                       |- warning: static property 'GMT' is not concurrency-safe because non-'Sendable' type '(identifier: String, coordinate: Coordinate)' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'GMT' 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
493 |             (identifier: "GMT", coordinate: TimeZone.knownTimeZoneCoordinates["GMT"]!)
494 |
/host/spi-builder-workspace/Sources/Coordinate.swift:13:15: note: consider making struct 'Coordinate' conform to the 'Sendable' protocol
11 | #endif
12 |
13 | public struct Coordinate: Codable {
   |               `- note: consider making struct 'Coordinate' conform to the 'Sendable' protocol
14 |     public let latitude: Double
15 |     public let longitude: Double
/host/spi-builder-workspace/Sources/TimeZone+Location.swift:492:5: warning: 'public' modifier is redundant for static property declared in a public extension
490 |
491 |
492 |     public static let GMT: (identifier: String, coordinate: Coordinate) =
    |     `- warning: 'public' modifier is redundant for static property declared in a public extension
493 |             (identifier: "GMT", coordinate: TimeZone.knownTimeZoneCoordinates["GMT"]!)
494 |
Build complete! (11.18s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "TimeZones",
  "name" : "TimeZones",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "TimeZones",
      "targets" : [
        "TimeZones"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TimeZonesTests",
      "module_type" : "SwiftTarget",
      "name" : "TimeZonesTests",
      "path" : "Tests/TimeZonesTests",
      "sources" : [
        "TimeZonesTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "TimeZones"
      ],
      "type" : "test"
    },
    {
      "c99name" : "TimeZones",
      "module_type" : "SwiftTarget",
      "name" : "TimeZones",
      "path" : "Sources",
      "product_memberships" : [
        "TimeZones"
      ],
      "sources" : [
        "Coordinate.swift",
        "TimeZone+Abbrevation.swift",
        "TimeZone+Location.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.2"
}
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.