The Swift Package Index logo.Swift Package Index

Build Information

Successful build of Toml, reference master (f26573), with Swift 6.1 for Wasm on 27 May 2025 13:39:32 UTC.

Swift 6 data race errors: 3

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jdfergason/swift-toml.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/jdfergason/swift-toml
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at f26573b Update travis to xcode 11.5
Cloned https://github.com/jdfergason/swift-toml.git
Revision (git rev-parse @):
f26573bd49534f68ac11c2f7467c1d50cdb2afce
SUCCESS checkout https://github.com/jdfergason/swift-toml.git at master
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/jdfergason/swift-toml.git
https://github.com/jdfergason/swift-toml.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Toml",
  "name" : "Toml",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Toml",
      "targets" : [
        "Toml"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TomlTests",
      "module_type" : "SwiftTarget",
      "name" : "TomlTests",
      "path" : "Tests/TomlTests",
      "sources" : [
        "TomlTests.swift"
      ],
      "target_dependencies" : [
        "Toml"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Toml",
      "module_type" : "SwiftTarget",
      "name" : "Toml",
      "path" : "Sources/Toml",
      "product_memberships" : [
        "Toml"
      ],
      "sources" : [
        "Date.swift",
        "Evaluator.swift",
        "Grammar.swift",
        "Helpers.swift",
        "Lexer.swift",
        "Parser.swift",
        "Path.swift",
        "Regex.swift",
        "Serialize.swift",
        "String.swift",
        "Tokens.swift",
        "Toml.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:059e0fdbe549369b902c0d423739510ddee50a4a70258d1404125eb9394ef31c
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/14] Compiling Toml Tokens.swift
[4/15] Compiling Toml Serialize.swift
[5/15] Compiling Toml Lexer.swift
[6/15] Compiling Toml Parser.swift
[7/15] Compiling Toml String.swift
[8/15] Compiling Toml Path.swift
/host/spi-builder-workspace/Sources/Toml/Regex.swift:19:5: warning: var 'expressions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | var expressions = [String: NSRegularExpression]()
   |     |- warning: var 'expressions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'expressions' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'expressions' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | extension String {
[9/15] Compiling Toml Regex.swift
/host/spi-builder-workspace/Sources/Toml/Regex.swift:19:5: warning: var 'expressions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | var expressions = [String: NSRegularExpression]()
   |     |- warning: var 'expressions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'expressions' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'expressions' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | extension String {
[10/15] Compiling Toml Date.swift
/host/spi-builder-workspace/Sources/Toml/Date.swift:28:13: warning: var 'rfc3339fractionalformatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 | }
27 |
28 | private var rfc3339fractionalformatter =
   |             |- warning: var 'rfc3339fractionalformatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'rfc3339fractionalformatter' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: add '@MainActor' to make var 'rfc3339fractionalformatter' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 |     buildDateFormatter(format: "yyyy'-'MM'-'dd'T'HH':'mm':'ss.SSSSSSZZZZZ")
30 |
/host/spi-builder-workspace/Sources/Toml/Date.swift:31:13: warning: var 'rfc3339formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
29 |     buildDateFormatter(format: "yyyy'-'MM'-'dd'T'HH':'mm':'ss.SSSSSSZZZZZ")
30 |
31 | private var rfc3339formatter: DateFormatter =
   |             |- warning: var 'rfc3339formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'rfc3339formatter' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: add '@MainActor' to make var 'rfc3339formatter' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 |     buildDateFormatter(format: "yyyy'-'MM'-'dd'T'HH':'mm':'ssZZZZZ")
33 |
[11/15] Compiling Toml Evaluator.swift
/host/spi-builder-workspace/Sources/Toml/Date.swift:28:13: warning: var 'rfc3339fractionalformatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 | }
27 |
28 | private var rfc3339fractionalformatter =
   |             |- warning: var 'rfc3339fractionalformatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'rfc3339fractionalformatter' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: add '@MainActor' to make var 'rfc3339fractionalformatter' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 |     buildDateFormatter(format: "yyyy'-'MM'-'dd'T'HH':'mm':'ss.SSSSSSZZZZZ")
30 |
/host/spi-builder-workspace/Sources/Toml/Date.swift:31:13: warning: var 'rfc3339formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
29 |     buildDateFormatter(format: "yyyy'-'MM'-'dd'T'HH':'mm':'ss.SSSSSSZZZZZ")
30 |
31 | private var rfc3339formatter: DateFormatter =
   |             |- warning: var 'rfc3339formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'rfc3339formatter' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: add '@MainActor' to make var 'rfc3339formatter' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 |     buildDateFormatter(format: "yyyy'-'MM'-'dd'T'HH':'mm':'ssZZZZZ")
33 |
[12/15] Emitting module Toml
/host/spi-builder-workspace/Sources/Toml/Date.swift:28:13: warning: var 'rfc3339fractionalformatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 | }
27 |
28 | private var rfc3339fractionalformatter =
   |             |- warning: var 'rfc3339fractionalformatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'rfc3339fractionalformatter' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: add '@MainActor' to make var 'rfc3339fractionalformatter' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 |     buildDateFormatter(format: "yyyy'-'MM'-'dd'T'HH':'mm':'ss.SSSSSSZZZZZ")
30 |
/host/spi-builder-workspace/Sources/Toml/Date.swift:31:13: warning: var 'rfc3339formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
29 |     buildDateFormatter(format: "yyyy'-'MM'-'dd'T'HH':'mm':'ss.SSSSSSZZZZZ")
30 |
31 | private var rfc3339formatter: DateFormatter =
   |             |- warning: var 'rfc3339formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'rfc3339formatter' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: add '@MainActor' to make var 'rfc3339formatter' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 |     buildDateFormatter(format: "yyyy'-'MM'-'dd'T'HH':'mm':'ssZZZZZ")
33 |
/host/spi-builder-workspace/Sources/Toml/Regex.swift:19:5: warning: var 'expressions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 | import Foundation
18 |
19 | var expressions = [String: NSRegularExpression]()
   |     |- warning: var 'expressions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'expressions' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'expressions' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
21 | extension String {
[13/15] Compiling Toml Grammar.swift
[14/15] Compiling Toml Helpers.swift
[15/15] Compiling Toml Toml.swift
Build complete! (9.23s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Toml",
  "name" : "Toml",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Toml",
      "targets" : [
        "Toml"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TomlTests",
      "module_type" : "SwiftTarget",
      "name" : "TomlTests",
      "path" : "Tests/TomlTests",
      "sources" : [
        "TomlTests.swift"
      ],
      "target_dependencies" : [
        "Toml"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Toml",
      "module_type" : "SwiftTarget",
      "name" : "Toml",
      "path" : "Sources/Toml",
      "product_memberships" : [
        "Toml"
      ],
      "sources" : [
        "Date.swift",
        "Evaluator.swift",
        "Grammar.swift",
        "Helpers.swift",
        "Lexer.swift",
        "Parser.swift",
        "Path.swift",
        "Regex.swift",
        "Serialize.swift",
        "String.swift",
        "Tokens.swift",
        "Toml.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:059e0fdbe549369b902c0d423739510ddee50a4a70258d1404125eb9394ef31c
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Done.