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 SPIManifest, reference main (9939ab), with Swift 6.0 (beta) for macOS (SPM) on 22 Jul 2024 14:20:51 UTC.

Swift 6 data race errors: 3

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Beta.3.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.47.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/SwiftPackageIndex/SPIManifest.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/SwiftPackageIndex/SPIManifest
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 9939ab7 Merge pull request #48 from SwiftPackageIndex/dependabot/swift/github.com/jpsim/yams-5.1.3
Cloned https://github.com/SwiftPackageIndex/SPIManifest.git
Revision (git rev-parse @):
9939ab79065b429e7688112941a805e87fbf05ad
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/SwiftPackageIndex/SPIManifest.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/SwiftPackageIndex/SPIManifest.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Beta.3.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/14] Write sources
[0/14] Write validate-spi-manifest-entitlement.plist
[0/14] Write sources
[4/14] Write swift-version--14728B76ED507284.txt
[5/14] Compiling reader.c
[6/14] Compiling scanner.c
[7/14] Compiling emitter.c
[8/14] Compiling writer.c
[9/14] Compiling parser.c
[10/14] Compiling api.c
[12/29] Compiling Yams Resolver.swift
[13/29] Compiling Yams Tag.swift
[14/29] Compiling Yams String+Yams.swift
[15/30] Compiling Yams Representer.swift
[16/30] Compiling Yams Node.Scalar.swift
[17/30] Compiling Yams Node.Sequence.swift
[18/30] Compiling Yams Mark.swift
[19/30] Compiling Yams Node.Mapping.swift
[20/30] Compiling Yams Node.swift
[21/30] Compiling Yams Parser.swift
[22/30] Compiling Yams Emitter.swift
[23/30] Compiling Yams Encoder.swift
[24/30] Compiling Yams Constructor.swift
[25/30] Compiling Yams Decoder.swift
[26/30] Emitting module Yams
[27/30] Compiling Yams YamlError.swift
[28/37] Compiling SPIManifest Platform.swift
[29/37] Compiling SPIManifest SwiftVersion.swift
[30/37] Compiling SPIManifest ManifestError.swift
[31/37] Compiling SPIManifest Environment.swift
/Users/admin/builder/spi-builder-workspace/Sources/SPIManifest/Environment.swift:24:16: warning: static property 'live' is not concurrency-safe because non-'Sendable' type 'Environment' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 |
18 | struct Environment {
   |        `- note: consider making struct 'Environment' conform to the 'Sendable' protocol
19 |     var fileManager: FileManager
20 | }
   :
22 |
23 | extension Environment {
24 |     static let live: Self = .init(
   |                |- warning: static property 'live' is not concurrency-safe because non-'Sendable' type 'Environment' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'live' 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
25 |         fileManager: .live
26 |     )
/Users/admin/builder/spi-builder-workspace/Sources/SPIManifest/Environment.swift:44:16: warning: static property 'live' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state; this is an error in the Swift 6 language mode
30 | // MARK: FileManager
31 |
32 | struct FileManager {
   |        `- note: consider making struct 'FileManager' conform to the 'Sendable' protocol
33 |     var contents: (_ atPath: String) -> Data?
34 |     var createDirectory: (_ path: String,
   :
42 |     var temporaryDirectory: () -> URL
43 |
44 |     static let live: Self = .init(
   |                |- warning: static property 'live' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'live' 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
45 |         contents: Foundation.FileManager.default.contents(atPath:),
46 |         createDirectory: Foundation.FileManager.default
/Users/admin/builder/spi-builder-workspace/Sources/SPIManifest/Environment.swift:69:5: warning: var 'Current' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
67 |
68 | #if DEBUG
69 | var Current: Environment = .live
   |     |- warning: var 'Current' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'Current' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: annotate 'Current' 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
70 | #else
71 | let Current: Environment = .live
[32/37] Emitting module SPIManifest
/Users/admin/builder/spi-builder-workspace/Sources/SPIManifest/Environment.swift:24:16: warning: static property 'live' is not concurrency-safe because non-'Sendable' type 'Environment' may have shared mutable state; this is an error in the Swift 6 language mode
16 |
17 |
18 | struct Environment {
   |        `- note: consider making struct 'Environment' conform to the 'Sendable' protocol
19 |     var fileManager: FileManager
20 | }
   :
22 |
23 | extension Environment {
24 |     static let live: Self = .init(
   |                |- warning: static property 'live' is not concurrency-safe because non-'Sendable' type 'Environment' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'live' 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
25 |         fileManager: .live
26 |     )
/Users/admin/builder/spi-builder-workspace/Sources/SPIManifest/Environment.swift:44:16: warning: static property 'live' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state; this is an error in the Swift 6 language mode
30 | // MARK: FileManager
31 |
32 | struct FileManager {
   |        `- note: consider making struct 'FileManager' conform to the 'Sendable' protocol
33 |     var contents: (_ atPath: String) -> Data?
34 |     var createDirectory: (_ path: String,
   :
42 |     var temporaryDirectory: () -> URL
43 |
44 |     static let live: Self = .init(
   |                |- warning: static property 'live' is not concurrency-safe because non-'Sendable' type 'FileManager' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'live' 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
45 |         contents: Foundation.FileManager.default.contents(atPath:),
46 |         createDirectory: Foundation.FileManager.default
/Users/admin/builder/spi-builder-workspace/Sources/SPIManifest/Environment.swift:69:5: warning: var 'Current' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
67 |
68 | #if DEBUG
69 | var Current: Environment = .live
   |     |- warning: var 'Current' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'Current' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: annotate 'Current' 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
70 | #else
71 | let Current: Environment = .live
[33/37] Compiling SPIManifest Array+Uniqued.swift
[34/37] Compiling SPIManifest Manifest.swift
/Users/admin/builder/spi-builder-workspace/Sources/SPIManifest/Environment.swift:69:5: warning: var 'Current' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
67 |
68 | #if DEBUG
69 | var Current: Environment = .live
   |     |- warning: var 'Current' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'Current' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: annotate 'Current' 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
70 | #else
71 | let Current: Environment = .live
[35/39] Compiling validate_spi_manifest Validator.swift
[36/39] Emitting module validate_spi_manifest
[36/39] Write Objects.LinkFileList
[37/39] Linking validate-spi-manifest
[38/39] Applying validate-spi-manifest
Build complete! (18.11s)
Fetching https://github.com/jpsim/Yams.git
[1/9771] Fetching yams
Fetched https://github.com/jpsim/Yams.git from cache (1.91s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 5.1.3 (0.65s)
Creating working copy for https://github.com/jpsim/Yams.git
Working copy of https://github.com/jpsim/Yams.git resolved at 5.1.3
Build complete.
{
  "dependencies" : [
    {
      "identity" : "yams",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "4.0.0",
            "upper_bound" : "6.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/jpsim/Yams.git"
    }
  ],
  "manifest_display_name" : "SPIManifest",
  "name" : "SPIManifest",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "validate-spi-manifest",
      "targets" : [
        "validate-spi-manifest"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "SPIManifest",
      "targets" : [
        "SPIManifest"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "validate_spi_manifest",
      "module_type" : "SwiftTarget",
      "name" : "validate-spi-manifest",
      "path" : "Sources/validate-spi-manifest",
      "product_memberships" : [
        "validate-spi-manifest"
      ],
      "sources" : [
        "Validator.swift"
      ],
      "target_dependencies" : [
        "SPIManifest"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "SPIManifestTests",
      "module_type" : "SwiftTarget",
      "name" : "SPIManifestTests",
      "path" : "Tests/SPIManifestTests",
      "sources" : [
        "Array+UniquedTests.swift",
        "ManifestTests.swift",
        "RegressionTests.swift",
        "SwiftVersionTests.swift"
      ],
      "target_dependencies" : [
        "SPIManifest"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SPIManifest",
      "module_type" : "SwiftTarget",
      "name" : "SPIManifest",
      "path" : "Sources/SPIManifest",
      "product_dependencies" : [
        "Yams"
      ],
      "product_memberships" : [
        "validate-spi-manifest",
        "SPIManifest"
      ],
      "sources" : [
        "Array+Uniqued.swift",
        "Environment.swift",
        "Manifest.swift",
        "ManifestError.swift",
        "Platform.swift",
        "SwiftVersion.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.6"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.