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 swiftver, reference 2.0.6 (311bb5), with Swift 6.1 for Linux on 25 Apr 2025 13:33:21 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.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.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/brightdigit/SwiftVer.git
Reference: 2.0.6
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/brightdigit/SwiftVer
 * tag               2.0.6      -> FETCH_HEAD
HEAD is now at 311bb5b fixing whitespace
Cloned https://github.com/brightdigit/SwiftVer.git
Revision (git rev-parse @):
311bb5b6e76947379f9072fac90cfed52aca1ab1
SUCCESS checkout https://github.com/brightdigit/SwiftVer.git at 2.0.6
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/brightdigit/SwiftVer.git
https://github.com/brightdigit/SwiftVer.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "swiftver",
  "name" : "swiftver",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftVer",
      "targets" : [
        "SwiftVer"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftVerTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftVerTests",
      "path" : "Tests/SwiftVerTests",
      "sources" : [
        "GlobalVersionTests.swift",
        "HashTests.swift",
        "IntraVersionTests.swift",
        "MockBundle.swift",
        "RFC3339DateFormatterTests.swift",
        "SemVerTests.swift",
        "StageBuildDictionaryProtocolTests.swift",
        "VersionControlInfoTests.swift",
        "VersionControlTypeTests.swift",
        "testVCS.swift"
      ],
      "target_dependencies" : [
        "SwiftVer"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftVer",
      "module_type" : "SwiftTarget",
      "name" : "SwiftVer",
      "path" : "Sources/SwiftVer",
      "product_memberships" : [
        "SwiftVer"
      ],
      "sources" : [
        "Data.swift",
        "Hash.swift",
        "InfoDictionaryContainerProtocol.swift",
        "RFC3339DateFormatter.swift",
        "ResourceContainerProtocol.swift",
        "SemVer.swift",
        "Stage.swift",
        "StageBuild.swift",
        "StageBuildDictionaryBase.swift",
        "StageBuildDictionaryProtocol.swift",
        "Version.swift",
        "VersionControlInfo.swift",
        "VersionControlType.swift",
        "VersionNumberSuffixFormatError.swift",
        "VersionNumberSuffixParseError.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/17] Compiling SwiftVer ResourceContainerProtocol.swift
[4/17] Compiling SwiftVer SemVer.swift
[5/17] Compiling SwiftVer InfoDictionaryContainerProtocol.swift
[6/17] Compiling SwiftVer RFC3339DateFormatter.swift
[7/17] Compiling SwiftVer Stage.swift
/host/spi-builder-workspace/Sources/SwiftVer/Stage.swift:61:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Stage.StageBuildDictionary' may have shared mutable state; this is an error in the Swift 6 language mode
 45 |   }
 46 |
 47 |   private struct StageBuildDictionary: StageBuildDictionaryProtocol {
    |                  `- note: consider making struct 'StageBuildDictionary' conform to the 'Sendable' protocol
 48 |     func minimumBuild(forSemVer semver: SemVer, atStage stage: Stage?) -> Int? {
 49 |       if let stage = stage {
    :
 59 |     }
 60 |
 61 |     public static let empty = StageBuildDictionary(dictionary: StageBuildDictionaryBase())
    |                       |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Stage.StageBuildDictionary' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'empty' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 62 |     public var semvers: [SemVer] {
 63 |       return Array(dictionary.keys)
/host/spi-builder-workspace/Sources/SwiftVer/Stage.swift:94:21: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Set<Stage>' may have shared mutable state; this is an error in the Swift 6 language mode
  4 |  Stage Enumeration.
  5 |  */
  6 | public enum Stage: CustomStringConvertible {
    |             `- note: consider making enum 'Stage' conform to the 'Sendable' protocol
  7 |   /**
  8 |    Builds a StageBuildDictionaryProtocol from a plist.
    :
 92 |    A list of all the stages.
 93 |    */
 94 |   public static let all: Set<Stage> = [.alpha, .beta, .production]
    |                     |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Set<Stage>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 95 |
 96 |   /**
[8/17] Compiling SwiftVer StageBuild.swift
/host/spi-builder-workspace/Sources/SwiftVer/Stage.swift:61:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Stage.StageBuildDictionary' may have shared mutable state; this is an error in the Swift 6 language mode
 45 |   }
 46 |
 47 |   private struct StageBuildDictionary: StageBuildDictionaryProtocol {
    |                  `- note: consider making struct 'StageBuildDictionary' conform to the 'Sendable' protocol
 48 |     func minimumBuild(forSemVer semver: SemVer, atStage stage: Stage?) -> Int? {
 49 |       if let stage = stage {
    :
 59 |     }
 60 |
 61 |     public static let empty = StageBuildDictionary(dictionary: StageBuildDictionaryBase())
    |                       |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Stage.StageBuildDictionary' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'empty' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 62 |     public var semvers: [SemVer] {
 63 |       return Array(dictionary.keys)
/host/spi-builder-workspace/Sources/SwiftVer/Stage.swift:94:21: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Set<Stage>' may have shared mutable state; this is an error in the Swift 6 language mode
  4 |  Stage Enumeration.
  5 |  */
  6 | public enum Stage: CustomStringConvertible {
    |             `- note: consider making enum 'Stage' conform to the 'Sendable' protocol
  7 |   /**
  8 |    Builds a StageBuildDictionaryProtocol from a plist.
    :
 92 |    A list of all the stages.
 93 |    */
 94 |   public static let all: Set<Stage> = [.alpha, .beta, .production]
    |                     |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Set<Stage>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 95 |
 96 |   /**
[9/18] Compiling SwiftVer StageBuildDictionaryBase.swift
[10/18] Compiling SwiftVer StageBuildDictionaryProtocol.swift
[11/18] Compiling SwiftVer Version.swift
[12/18] Compiling SwiftVer VersionControlInfo.swift
[13/18] Compiling SwiftVer VersionControlType.swift
/host/spi-builder-workspace/Sources/SwiftVer/VersionControlType.swift:13:22: warning: static property 'lookup' is not concurrency-safe because non-'Sendable' type '[String : VersionControlType]' may have shared mutable state; this is an error in the Swift 6 language mode
10 |  Version Control Type.
11 |  */
12 | public enum VersionControlType: CustomStringConvertible {
   |             `- note: consider making enum 'VersionControlType' conform to the 'Sendable' protocol
13 |   private static let lookup: [String: VersionControlType] = [
   |                      |- warning: static property 'lookup' is not concurrency-safe because non-'Sendable' type '[String : VersionControlType]' may have shared mutable state; this is an error in the Swift 6 language mode
   |                      |- note: add '@MainActor' to make static property 'lookup' part of global actor 'MainActor'
   |                      `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |     "git": .git,
15 |     "mercurial": .mercurial,
[14/18] Compiling SwiftVer VersionNumberSuffixFormatError.swift
/host/spi-builder-workspace/Sources/SwiftVer/VersionControlType.swift:13:22: warning: static property 'lookup' is not concurrency-safe because non-'Sendable' type '[String : VersionControlType]' may have shared mutable state; this is an error in the Swift 6 language mode
10 |  Version Control Type.
11 |  */
12 | public enum VersionControlType: CustomStringConvertible {
   |             `- note: consider making enum 'VersionControlType' conform to the 'Sendable' protocol
13 |   private static let lookup: [String: VersionControlType] = [
   |                      |- warning: static property 'lookup' is not concurrency-safe because non-'Sendable' type '[String : VersionControlType]' may have shared mutable state; this is an error in the Swift 6 language mode
   |                      |- note: add '@MainActor' to make static property 'lookup' part of global actor 'MainActor'
   |                      `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |     "git": .git,
15 |     "mercurial": .mercurial,
[15/18] Emitting module SwiftVer
/host/spi-builder-workspace/Sources/SwiftVer/Stage.swift:61:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Stage.StageBuildDictionary' may have shared mutable state; this is an error in the Swift 6 language mode
 45 |   }
 46 |
 47 |   private struct StageBuildDictionary: StageBuildDictionaryProtocol {
    |                  `- note: consider making struct 'StageBuildDictionary' conform to the 'Sendable' protocol
 48 |     func minimumBuild(forSemVer semver: SemVer, atStage stage: Stage?) -> Int? {
 49 |       if let stage = stage {
    :
 59 |     }
 60 |
 61 |     public static let empty = StageBuildDictionary(dictionary: StageBuildDictionaryBase())
    |                       |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Stage.StageBuildDictionary' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'empty' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 62 |     public var semvers: [SemVer] {
 63 |       return Array(dictionary.keys)
/host/spi-builder-workspace/Sources/SwiftVer/Stage.swift:94:21: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Set<Stage>' may have shared mutable state; this is an error in the Swift 6 language mode
  4 |  Stage Enumeration.
  5 |  */
  6 | public enum Stage: CustomStringConvertible {
    |             `- note: consider making enum 'Stage' conform to the 'Sendable' protocol
  7 |   /**
  8 |    Builds a StageBuildDictionaryProtocol from a plist.
    :
 92 |    A list of all the stages.
 93 |    */
 94 |   public static let all: Set<Stage> = [.alpha, .beta, .production]
    |                     |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'Set<Stage>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 95 |
 96 |   /**
/host/spi-builder-workspace/Sources/SwiftVer/VersionControlType.swift:13:22: warning: static property 'lookup' is not concurrency-safe because non-'Sendable' type '[String : VersionControlType]' may have shared mutable state; this is an error in the Swift 6 language mode
10 |  Version Control Type.
11 |  */
12 | public enum VersionControlType: CustomStringConvertible {
   |             `- note: consider making enum 'VersionControlType' conform to the 'Sendable' protocol
13 |   private static let lookup: [String: VersionControlType] = [
   |                      |- warning: static property 'lookup' is not concurrency-safe because non-'Sendable' type '[String : VersionControlType]' may have shared mutable state; this is an error in the Swift 6 language mode
   |                      |- note: add '@MainActor' to make static property 'lookup' part of global actor 'MainActor'
   |                      `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |     "git": .git,
15 |     "mercurial": .mercurial,
[16/18] Compiling SwiftVer Data.swift
[17/18] Compiling SwiftVer Hash.swift
[18/18] Compiling SwiftVer VersionNumberSuffixParseError.swift
Build complete! (9.15s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "swiftver",
  "name" : "swiftver",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftVer",
      "targets" : [
        "SwiftVer"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftVerTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftVerTests",
      "path" : "Tests/SwiftVerTests",
      "sources" : [
        "GlobalVersionTests.swift",
        "HashTests.swift",
        "IntraVersionTests.swift",
        "MockBundle.swift",
        "RFC3339DateFormatterTests.swift",
        "SemVerTests.swift",
        "StageBuildDictionaryProtocolTests.swift",
        "VersionControlInfoTests.swift",
        "VersionControlTypeTests.swift",
        "testVCS.swift"
      ],
      "target_dependencies" : [
        "SwiftVer"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftVer",
      "module_type" : "SwiftTarget",
      "name" : "SwiftVer",
      "path" : "Sources/SwiftVer",
      "product_memberships" : [
        "SwiftVer"
      ],
      "sources" : [
        "Data.swift",
        "Hash.swift",
        "InfoDictionaryContainerProtocol.swift",
        "RFC3339DateFormatter.swift",
        "ResourceContainerProtocol.swift",
        "SemVer.swift",
        "Stage.swift",
        "StageBuild.swift",
        "StageBuildDictionaryBase.swift",
        "StageBuildDictionaryProtocol.swift",
        "Version.swift",
        "VersionControlInfo.swift",
        "VersionControlType.swift",
        "VersionNumberSuffixFormatError.swift",
        "VersionNumberSuffixParseError.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.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
Done.