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 master (063286), with Swift 6.0 for Linux on 31 Oct 2024 11:29:53 UTC.

Swift 6 data race errors: 1

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/behrang/YamlSwift.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/behrang/YamlSwift
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 063286d add version string
Cloned https://github.com/behrang/YamlSwift.git
Revision (git rev-parse @):
063286d0a66200b6ae0687c06914b19fe7c8dc83
SUCCESS checkout https://github.com/behrang/YamlSwift.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/behrang/YamlSwift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
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/9] Compiling Yaml YAMLResult.swift
[4/9] Compiling Yaml Yaml.swift
[5/9] Compiling Yaml YAMLParser.swift
/host/spi-builder-workspace/Sources/Yaml/YAMLParser.swift:143: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
141 | private typealias Context = Yaml.Context
142 |
143 | 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
144 |
145 | private typealias ContextValue = (context: Context, value: Yaml)
[6/9] Compiling Yaml YAMLOperators.swift
[7/9] Emitting module Yaml
/host/spi-builder-workspace/Sources/Yaml/YAMLParser.swift:143: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
141 | private typealias Context = Yaml.Context
142 |
143 | 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
144 |
145 | private typealias ContextValue = (context: Context, value: Yaml)
[8/9] Compiling Yaml YAMLRegex.swift
[9/9] Compiling Yaml YAMLTokenizer.swift
Build complete! (12.97s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Yaml",
  "name" : "Yaml",
  "path" : "/host/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"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.