This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 3

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/brightdigit/SwiftVer.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/brightdigit/SwiftVer
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at c6e40a0 Merge pull request #18 from brightdigit/feature/swiftpm-eggseed-update
Cloned https://github.com/brightdigit/SwiftVer.git
Revision (git rev-parse @):
c6e40a0b74c6a47d8c056e168a33495436fae817
SUCCESS checkout https://github.com/brightdigit/SwiftVer.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/brightdigit/SwiftVer.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/17] Compiling SwiftVer Version.swift
[4/17] Compiling SwiftVer VersionControlInfo.swift
[5/17] Compiling SwiftVer StageBuildDictionaryBase.swift
[6/17] Compiling SwiftVer StageBuildDictionaryProtocol.swift
[7/18] Emitting module SwiftVer
/Users/admin/builder/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: annotate 'empty' 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
 62 |     public var semvers: [SemVer] {
 63 |       return Array(dictionary.keys)
/Users/admin/builder/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: annotate 'all' 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
 95 |
 96 |   /**
/Users/admin/builder/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: annotate 'lookup' 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
14 |     "git": .git,
15 |     "mercurial": .mercurial,
[8/18] Compiling SwiftVer InfoDictionaryContainerProtocol.swift
[9/18] Compiling SwiftVer RFC3339DateFormatter.swift
[10/18] Compiling SwiftVer Data.swift
[11/18] Compiling SwiftVer Hash.swift
[12/18] Compiling SwiftVer VersionControlType.swift
/Users/admin/builder/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: annotate 'lookup' 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
14 |     "git": .git,
15 |     "mercurial": .mercurial,
[13/18] Compiling SwiftVer Stage.swift
/Users/admin/builder/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: annotate 'empty' 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
 62 |     public var semvers: [SemVer] {
 63 |       return Array(dictionary.keys)
/Users/admin/builder/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: annotate 'all' 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
 95 |
 96 |   /**
[14/18] Compiling SwiftVer StageBuild.swift
/Users/admin/builder/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: annotate 'empty' 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
 62 |     public var semvers: [SemVer] {
 63 |       return Array(dictionary.keys)
/Users/admin/builder/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: annotate 'all' 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
 95 |
 96 |   /**
[15/18] Compiling SwiftVer ResourceContainerProtocol.swift
[16/18] Compiling SwiftVer SemVer.swift
[17/18] Compiling SwiftVer VersionNumberSuffixFormatError.swift
[18/18] Compiling SwiftVer VersionNumberSuffixParseError.swift
Build complete! (23.80s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftVer",
  "name" : "SwiftVer",
  "path" : "/Users/admin/builder/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",
        "XCTestManifests.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"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.