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 XMLCoding, reference master (f0fbfe), with Swift 6.0 (beta) for Linux on 15 Sep 2024 01:48:22 UTC.

Swift 6 data race errors: 3

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.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/LiveUI/XMLCoding.git
Reference: master
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/LiveUI/XMLCoding
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at f0fbfe1 Merge pull request #17 from tachyonics/master
Cloned https://github.com/LiveUI/XMLCoding.git
Revision (git rev-parse @):
f0fbfe17e73f329e13a6133ff5437f7b174049fd
SUCCESS checkout https://github.com/LiveUI/XMLCoding.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/LiveUI/XMLCoding.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:9d7dab235f2b0b46edadd73b1fb0c3b5323df02053420324a4a2f8ca89cb54a5
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/14] Compiling XMLCoding XMLReferencingEncoder.swift
[4/15] Compiling XMLCoding XMLEncoder.swift
/host/spi-builder-workspace/Sources/XMLCoding/Encoder/XMLEncoder.swift:29:27: warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
  17 |     // MARK: Options
  18 |     /// The formatting of the output XML data.
  19 |     public struct OutputFormatting : OptionSet {
     |                   `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
  20 |         /// The format's default value.
  21 |         public let rawValue: UInt
     :
  27 |
  28 |         /// Produce human-readable XML with indented output.
  29 |         public static let prettyPrinted = OutputFormatting(rawValue: 1 << 0)
     |                           |- warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
     |                           |- note: annotate 'prettyPrinted' 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 |
  31 |         /// Produce XML with dictionary keys sorted in lexicographic order.
/host/spi-builder-workspace/Sources/XMLCoding/Encoder/XMLEncoder.swift:33:27: warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
  17 |     // MARK: Options
  18 |     /// The formatting of the output XML data.
  19 |     public struct OutputFormatting : OptionSet {
     |                   `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
  20 |         /// The format's default value.
  21 |         public let rawValue: UInt
     :
  31 |         /// Produce XML with dictionary keys sorted in lexicographic order.
  32 |         @available(OSX 10.13, iOS 11.0, watchOS 4.0, tvOS 11.0, *)
  33 |         public static let sortedKeys    = OutputFormatting(rawValue: 1 << 1)
     |                           |- warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
     |                           |- note: annotate 'sortedKeys' 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 |     }
  35 |
/host/spi-builder-workspace/Sources/XMLCoding/ISO8601DateFormatter.swift:17:14: warning: var '_iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | // NOTE: This value is implicitly lazy and _must_ be lazy. We're compiled against the latest SDK (w/ ISO8601DateFormatter), but linked against whichever Foundation the user has. ISO8601DateFormatter might not exist, so we better not hit this code path on an older OS.
16 | @available(OSX 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
17 | internal var _iso8601Formatter: ISO8601DateFormatter = {
   |              |- warning: var '_iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |              |- note: convert '_iso8601Formatter' to a 'let' constant to make 'Sendable' shared state immutable
   |              |- note: annotate '_iso8601Formatter' 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 |     let formatter = ISO8601DateFormatter()
19 |     formatter.formatOptions = .withInternetDateTime
[5/15] Compiling XMLCoding XMLEncodingStorage.swift
/host/spi-builder-workspace/Sources/XMLCoding/Encoder/XMLEncoder.swift:29:27: warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
  17 |     // MARK: Options
  18 |     /// The formatting of the output XML data.
  19 |     public struct OutputFormatting : OptionSet {
     |                   `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
  20 |         /// The format's default value.
  21 |         public let rawValue: UInt
     :
  27 |
  28 |         /// Produce human-readable XML with indented output.
  29 |         public static let prettyPrinted = OutputFormatting(rawValue: 1 << 0)
     |                           |- warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
     |                           |- note: annotate 'prettyPrinted' 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 |
  31 |         /// Produce XML with dictionary keys sorted in lexicographic order.
/host/spi-builder-workspace/Sources/XMLCoding/Encoder/XMLEncoder.swift:33:27: warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
  17 |     // MARK: Options
  18 |     /// The formatting of the output XML data.
  19 |     public struct OutputFormatting : OptionSet {
     |                   `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
  20 |         /// The format's default value.
  21 |         public let rawValue: UInt
     :
  31 |         /// Produce XML with dictionary keys sorted in lexicographic order.
  32 |         @available(OSX 10.13, iOS 11.0, watchOS 4.0, tvOS 11.0, *)
  33 |         public static let sortedKeys    = OutputFormatting(rawValue: 1 << 1)
     |                           |- warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
     |                           |- note: annotate 'sortedKeys' 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 |     }
  35 |
/host/spi-builder-workspace/Sources/XMLCoding/ISO8601DateFormatter.swift:17:14: warning: var '_iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | // NOTE: This value is implicitly lazy and _must_ be lazy. We're compiled against the latest SDK (w/ ISO8601DateFormatter), but linked against whichever Foundation the user has. ISO8601DateFormatter might not exist, so we better not hit this code path on an older OS.
16 | @available(OSX 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
17 | internal var _iso8601Formatter: ISO8601DateFormatter = {
   |              |- warning: var '_iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |              |- note: convert '_iso8601Formatter' to a 'let' constant to make 'Sendable' shared state immutable
   |              |- note: annotate '_iso8601Formatter' 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 |     let formatter = ISO8601DateFormatter()
19 |     formatter.formatOptions = .withInternetDateTime
[6/15] Compiling XMLCoding ISO8601DateFormatter.swift
/host/spi-builder-workspace/Sources/XMLCoding/ISO8601DateFormatter.swift:17:14: warning: var '_iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | // NOTE: This value is implicitly lazy and _must_ be lazy. We're compiled against the latest SDK (w/ ISO8601DateFormatter), but linked against whichever Foundation the user has. ISO8601DateFormatter might not exist, so we better not hit this code path on an older OS.
16 | @available(OSX 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
17 | internal var _iso8601Formatter: ISO8601DateFormatter = {
   |              |- warning: var '_iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |              |- note: convert '_iso8601Formatter' to a 'let' constant to make 'Sendable' shared state immutable
   |              |- note: annotate '_iso8601Formatter' 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 |     let formatter = ISO8601DateFormatter()
19 |     formatter.formatOptions = .withInternetDateTime
[7/15] Compiling XMLCoding XMLUnkeyedDecodingContainer.swift
[8/15] Compiling XMLCoding EncodingErrorExtension.swift
[9/15] Compiling XMLCoding DecodingErrorExtension.swift
/host/spi-builder-workspace/Sources/XMLCoding/ISO8601DateFormatter.swift:17:14: warning: var '_iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | // NOTE: This value is implicitly lazy and _must_ be lazy. We're compiled against the latest SDK (w/ ISO8601DateFormatter), but linked against whichever Foundation the user has. ISO8601DateFormatter might not exist, so we better not hit this code path on an older OS.
16 | @available(OSX 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
17 | internal var _iso8601Formatter: ISO8601DateFormatter = {
   |              |- warning: var '_iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |              |- note: convert '_iso8601Formatter' to a 'let' constant to make 'Sendable' shared state immutable
   |              |- note: annotate '_iso8601Formatter' 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 |     let formatter = ISO8601DateFormatter()
19 |     formatter.formatOptions = .withInternetDateTime
[10/15] Compiling XMLCoding XMLDecoder.swift
/host/spi-builder-workspace/Sources/XMLCoding/ISO8601DateFormatter.swift:17:14: warning: var '_iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | // NOTE: This value is implicitly lazy and _must_ be lazy. We're compiled against the latest SDK (w/ ISO8601DateFormatter), but linked against whichever Foundation the user has. ISO8601DateFormatter might not exist, so we better not hit this code path on an older OS.
16 | @available(OSX 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
17 | internal var _iso8601Formatter: ISO8601DateFormatter = {
   |              |- warning: var '_iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |              |- note: convert '_iso8601Formatter' to a 'let' constant to make 'Sendable' shared state immutable
   |              |- note: annotate '_iso8601Formatter' 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 |     let formatter = ISO8601DateFormatter()
19 |     formatter.formatOptions = .withInternetDateTime
[11/15] Emitting module XMLCoding
/host/spi-builder-workspace/Sources/XMLCoding/Encoder/XMLEncoder.swift:29:27: warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
  17 |     // MARK: Options
  18 |     /// The formatting of the output XML data.
  19 |     public struct OutputFormatting : OptionSet {
     |                   `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
  20 |         /// The format's default value.
  21 |         public let rawValue: UInt
     :
  27 |
  28 |         /// Produce human-readable XML with indented output.
  29 |         public static let prettyPrinted = OutputFormatting(rawValue: 1 << 0)
     |                           |- warning: static property 'prettyPrinted' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
     |                           |- note: annotate 'prettyPrinted' 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 |
  31 |         /// Produce XML with dictionary keys sorted in lexicographic order.
/host/spi-builder-workspace/Sources/XMLCoding/Encoder/XMLEncoder.swift:33:27: warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
  17 |     // MARK: Options
  18 |     /// The formatting of the output XML data.
  19 |     public struct OutputFormatting : OptionSet {
     |                   `- note: consider making struct 'OutputFormatting' conform to the 'Sendable' protocol
  20 |         /// The format's default value.
  21 |         public let rawValue: UInt
     :
  31 |         /// Produce XML with dictionary keys sorted in lexicographic order.
  32 |         @available(OSX 10.13, iOS 11.0, watchOS 4.0, tvOS 11.0, *)
  33 |         public static let sortedKeys    = OutputFormatting(rawValue: 1 << 1)
     |                           |- warning: static property 'sortedKeys' is not concurrency-safe because non-'Sendable' type 'XMLEncoder.OutputFormatting' may have shared mutable state; this is an error in the Swift 6 language mode
     |                           |- note: annotate 'sortedKeys' 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 |     }
  35 |
/host/spi-builder-workspace/Sources/XMLCoding/ISO8601DateFormatter.swift:17:14: warning: var '_iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | // NOTE: This value is implicitly lazy and _must_ be lazy. We're compiled against the latest SDK (w/ ISO8601DateFormatter), but linked against whichever Foundation the user has. ISO8601DateFormatter might not exist, so we better not hit this code path on an older OS.
16 | @available(OSX 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
17 | internal var _iso8601Formatter: ISO8601DateFormatter = {
   |              |- warning: var '_iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |              |- note: convert '_iso8601Formatter' to a 'let' constant to make 'Sendable' shared state immutable
   |              |- note: annotate '_iso8601Formatter' 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 |     let formatter = ISO8601DateFormatter()
19 |     formatter.formatOptions = .withInternetDateTime
[12/15] Compiling XMLCoding XMLDecodingStorage.swift
[13/15] Compiling XMLCoding XMLKeyedDecodingContainer.swift
[14/15] Compiling XMLCoding XMLKey.swift
[15/15] Compiling XMLCoding XMLStackParser.swift
Build complete! (17.63s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "XMLCoding",
  "name" : "XMLCoding",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "XMLCoding",
      "targets" : [
        "XMLCoding"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "XMLCodingTests",
      "module_type" : "SwiftTarget",
      "name" : "XMLCodingTests",
      "path" : "Tests/XMLCodingTests",
      "sources" : [
        "XCTestManifests.swift",
        "XMLParsingTests.swift"
      ],
      "target_dependencies" : [
        "XMLCoding"
      ],
      "type" : "test"
    },
    {
      "c99name" : "XMLCoding",
      "module_type" : "SwiftTarget",
      "name" : "XMLCoding",
      "path" : "Sources/XMLCoding",
      "product_memberships" : [
        "XMLCoding"
      ],
      "sources" : [
        "Decoder/DecodingErrorExtension.swift",
        "Decoder/XMLDecoder.swift",
        "Decoder/XMLDecodingStorage.swift",
        "Decoder/XMLKeyedDecodingContainer.swift",
        "Decoder/XMLUnkeyedDecodingContainer.swift",
        "Encoder/EncodingErrorExtension.swift",
        "Encoder/XMLEncoder.swift",
        "Encoder/XMLEncodingStorage.swift",
        "Encoder/XMLReferencingEncoder.swift",
        "ISO8601DateFormatter.swift",
        "XMLKey.swift",
        "XMLStackParser.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
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.