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 Yaml, reference 3.4.4 (287f5c), with Swift 6.0 for macOS (SPM) on 31 Oct 2024 11:36:03 UTC.

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.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.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/behrang/YamlSwift.git
Reference: 3.4.4
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/behrang/YamlSwift
 * tag               3.4.4      -> FETCH_HEAD
HEAD is now at 287f5ca Merge branch 'release/3.4.4'
Cloned https://github.com/behrang/YamlSwift.git
Revision (git rev-parse @):
287f5cab7da0d92eb947b5fd8151b203ae04a9a3
SUCCESS checkout https://github.com/behrang/YamlSwift.git at 3.4.4
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "yamlswift",
      "name": "Yaml",
      "url": "https://github.com/behrang/YamlSwift.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/YamlSwift",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/behrang/YamlSwift.git
[1/1384] Fetching yamlswift
Fetched https://github.com/behrang/YamlSwift.git from cache (0.89s)
Creating working copy for https://github.com/behrang/YamlSwift.git
Working copy of https://github.com/behrang/YamlSwift.git resolved at 3.4.4 (287f5ca)
warning: '.resolve-product-dependencies': dependency 'yamlswift' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/behrang/YamlSwift.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun 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--7754E27361AE5C74.txt
[3/9] Emitting module Yaml
/Users/admin/builder/spi-builder-workspace/Sources/Yaml/YAMLParser.swift:64:13: warning: var 'error' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 62 | private typealias Context = Yaml.Context
 63 |
 64 | private var error = Yaml.Context.error
    |             |- warning: var 'error' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'error' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: annotate 'error' 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
 65 |
 66 | private typealias ContextValue = (context: Context, value: Yaml)
[4/9] Compiling Yaml YAMLOperators.swift
[5/9] Compiling Yaml YAMLResult.swift
[6/9] Compiling Yaml YAMLParser.swift
/Users/admin/builder/spi-builder-workspace/Sources/Yaml/YAMLParser.swift:64:13: warning: var 'error' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 62 | private typealias Context = Yaml.Context
 63 |
 64 | private var error = Yaml.Context.error
    |             |- warning: var 'error' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'error' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: annotate 'error' 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
 65 |
 66 | private typealias ContextValue = (context: Context, value: Yaml)
[7/9] Compiling Yaml YAMLTokenizer.swift
[8/9] Compiling Yaml Yaml.swift
[9/9] Compiling Yaml YAMLRegex.swift
Build complete! (8.17s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Yaml",
  "name" : "Yaml",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Yaml",
      "targets" : [
        "Yaml"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "YamlTests",
      "module_type" : "SwiftTarget",
      "name" : "YamlTests",
      "path" : "Tests/YamlTests",
      "sources" : [
        "ExampleTests.swift",
        "YamlTests.swift"
      ],
      "target_dependencies" : [
        "Yaml"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Yaml",
      "module_type" : "SwiftTarget",
      "name" : "Yaml",
      "path" : "Sources/Yaml",
      "product_memberships" : [
        "Yaml"
      ],
      "sources" : [
        "YAMLOperators.swift",
        "YAMLParser.swift",
        "YAMLRegex.swift",
        "YAMLResult.swift",
        "YAMLTokenizer.swift",
        "Yaml.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.1"
}
Done.