Build Information
Successful build of Yams, reference 5.3.1 (b4b804
), with Swift 6.1 for Linux on 29 Apr 2025 07:27:06 UTC.
Swift 6 data race errors: 49
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -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
346 | private extension Node {
347 | static let null = Node("null", Tag(.null))
348 | static let unused = Node("", .unused)
| |- warning: static property 'unused' is not concurrency-safe because non-'Sendable' type 'Node' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'unused' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
349 | }
350 |
/host/spi-builder-workspace/Sources/Yams/Node.swift:12:13: note: consider making enum 'Node' conform to the 'Sendable' protocol
10 |
11 | /// YAML Node.
12 | public enum Node: Hashable {
| `- note: consider making enum 'Node' conform to the 'Sendable' protocol
13 | /// Scalar node.
14 | case scalar(Scalar)
/host/spi-builder-workspace/Sources/Yams/Encoder.swift:352:16: warning: static property 'unused' is not concurrency-safe because non-'Sendable' type 'Tag' may have shared mutable state; this is an error in the Swift 6 language mode
350 |
351 | private extension Tag {
352 | static let unused = Tag(.unused)
| |- warning: static property 'unused' is not concurrency-safe because non-'Sendable' type 'Tag' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'unused' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
353 | }
354 |
/host/spi-builder-workspace/Sources/Yams/Tag.swift:10:20: note: class 'Tag' does not conform to the 'Sendable' protocol
8 |
9 | /// Tags describe the the _type_ of a Node.
10 | public final class Tag {
| `- note: class 'Tag' does not conform to the 'Sendable' protocol
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
/host/spi-builder-workspace/Sources/Yams/Encoder.swift:356:16: warning: static property 'unused' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
354 |
355 | private extension Tag.Name {
356 | static let unused: Tag.Name = "tag:yams.encoder:unused"
| |- warning: static property 'unused' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'unused' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
357 | }
358 |
/host/spi-builder-workspace/Sources/Yams/Tag.swift:12:19: note: consider making struct 'Name' conform to the 'Sendable' protocol
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
[14/29] Emitting module Yams
/host/spi-builder-workspace/Sources/Yams/Emitter.swift:10:22: warning: using '@_implementationOnly' without enabling library evolution for 'Yams' may lead to instability during execution
8 |
9 | #if SWIFT_PACKAGE
10 | @_implementationOnly import CYaml
| `- warning: using '@_implementationOnly' without enabling library evolution for 'Yams' may lead to instability during execution
11 | #endif
12 | import Foundation
/host/spi-builder-workspace/Sources/Yams/Parser.swift:12:22: warning: using '@_implementationOnly' without enabling library evolution for 'Yams' may lead to instability during execution
10 |
11 | #if SWIFT_PACKAGE
12 | @_implementationOnly import CYaml
| `- warning: using '@_implementationOnly' without enabling library evolution for 'Yams' may lead to instability during execution
13 | #endif
14 | import Foundation
/host/spi-builder-workspace/Sources/Yams/YamlError.swift:10:22: warning: using '@_implementationOnly' without enabling library evolution for 'Yams' may lead to instability during execution
8 |
9 | #if SWIFT_PACKAGE
10 | @_implementationOnly import CYaml
| `- warning: using '@_implementationOnly' without enabling library evolution for 'Yams' may lead to instability during execution
11 | #endif
12 | import Foundation
/host/spi-builder-workspace/Sources/Yams/Constructor.swift:71:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Constructor' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | /// Constructors are used to translate `Node`s to Swift values.
12 | public final class Constructor {
| `- note: class 'Constructor' does not conform to the 'Sendable' protocol
13 | /// Maps `Tag.Name`s to `Node.Scalar`s.
14 | public typealias ScalarMap = [Tag.Name: (Node.Scalar) -> Any?]
:
69 | extension Constructor {
70 | /// The default `Constructor` to be used with APIs where none is explicitly provided.
71 | public static let `default` = Constructor()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Constructor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
72 |
73 | /// The default `Tag.Name` to `Node.Scalar` map.
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Yams/Constructor.swift:74:23: warning: static property 'defaultScalarMap' is not concurrency-safe because non-'Sendable' type 'Constructor.ScalarMap' (aka 'Dictionary<Tag.Name, (Node.Scalar) -> Optional<Any>>') may have shared mutable state; this is an error in the Swift 6 language mode
72 |
73 | /// The default `Tag.Name` to `Node.Scalar` map.
74 | public static let defaultScalarMap: ScalarMap = [
| |- warning: static property 'defaultScalarMap' is not concurrency-safe because non-'Sendable' type 'Constructor.ScalarMap' (aka 'Dictionary<Tag.Name, (Node.Scalar) -> Optional<Any>>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultScalarMap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
75 | // Failsafe Schema
76 | .str: String.construct,
/host/spi-builder-workspace/Sources/Yams/Tag.swift:12:19: note: consider making struct 'Name' conform to the 'Sendable' protocol
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Yams/Constructor.swift:88:23: warning: static property 'defaultMappingMap' is not concurrency-safe because non-'Sendable' type 'Constructor.MappingMap' (aka 'Dictionary<Tag.Name, (Node.Mapping) -> Optional<Any>>') may have shared mutable state; this is an error in the Swift 6 language mode
86 |
87 | /// The default `Tag.Name` to `Node.Mapping` map.
88 | public static let defaultMappingMap: MappingMap = [
| |- warning: static property 'defaultMappingMap' is not concurrency-safe because non-'Sendable' type 'Constructor.MappingMap' (aka 'Dictionary<Tag.Name, (Node.Mapping) -> Optional<Any>>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultMappingMap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
89 | .map: [AnyHashable: Any].construct_mapping,
90 | // http://yaml.org/type/index.html
/host/spi-builder-workspace/Sources/Yams/Tag.swift:12:19: note: consider making struct 'Name' conform to the 'Sendable' protocol
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Yams/Constructor.swift:97:23: warning: static property 'defaultSequenceMap' is not concurrency-safe because non-'Sendable' type 'Constructor.SequenceMap' (aka 'Dictionary<Tag.Name, (Node.Sequence) -> Optional<Any>>') may have shared mutable state; this is an error in the Swift 6 language mode
95 |
96 | /// The default `Tag.Name` to `Node.Sequence` map.
97 | public static let defaultSequenceMap: SequenceMap = [
| |- warning: static property 'defaultSequenceMap' is not concurrency-safe because non-'Sendable' type 'Constructor.SequenceMap' (aka 'Dictionary<Tag.Name, (Node.Sequence) -> Optional<Any>>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultSequenceMap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
98 | .seq: [Any].construct_seq,
99 | // http://yaml.org/type/index.html
/host/spi-builder-workspace/Sources/Yams/Tag.swift:12:19: note: consider making struct 'Name' conform to the 'Sendable' protocol
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
/host/spi-builder-workspace/Sources/Yams/Encoder.swift:347:16: warning: static property 'null' is not concurrency-safe because non-'Sendable' type 'Node' may have shared mutable state; this is an error in the Swift 6 language mode
345 |
346 | private extension Node {
347 | static let null = Node("null", Tag(.null))
| |- warning: static property 'null' is not concurrency-safe because non-'Sendable' type 'Node' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'null' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
348 | static let unused = Node("", .unused)
349 | }
/host/spi-builder-workspace/Sources/Yams/Node.swift:12:13: note: consider making enum 'Node' conform to the 'Sendable' protocol
10 |
11 | /// YAML Node.
12 | public enum Node: Hashable {
| `- note: consider making enum 'Node' conform to the 'Sendable' protocol
13 | /// Scalar node.
14 | case scalar(Scalar)
/host/spi-builder-workspace/Sources/Yams/Encoder.swift:348:16: warning: static property 'unused' is not concurrency-safe because non-'Sendable' type 'Node' may have shared mutable state; this is an error in the Swift 6 language mode
346 | private extension Node {
347 | static let null = Node("null", Tag(.null))
348 | static let unused = Node("", .unused)
| |- warning: static property 'unused' is not concurrency-safe because non-'Sendable' type 'Node' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'unused' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
349 | }
350 |
/host/spi-builder-workspace/Sources/Yams/Node.swift:12:13: note: consider making enum 'Node' conform to the 'Sendable' protocol
10 |
11 | /// YAML Node.
12 | public enum Node: Hashable {
| `- note: consider making enum 'Node' conform to the 'Sendable' protocol
13 | /// Scalar node.
14 | case scalar(Scalar)
/host/spi-builder-workspace/Sources/Yams/Encoder.swift:352:16: warning: static property 'unused' is not concurrency-safe because non-'Sendable' type 'Tag' may have shared mutable state; this is an error in the Swift 6 language mode
350 |
351 | private extension Tag {
352 | static let unused = Tag(.unused)
| |- warning: static property 'unused' is not concurrency-safe because non-'Sendable' type 'Tag' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'unused' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
353 | }
354 |
/host/spi-builder-workspace/Sources/Yams/Tag.swift:10:20: note: class 'Tag' does not conform to the 'Sendable' protocol
8 |
9 | /// Tags describe the the _type_ of a Node.
10 | public final class Tag {
| `- note: class 'Tag' does not conform to the 'Sendable' protocol
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
/host/spi-builder-workspace/Sources/Yams/Encoder.swift:356:16: warning: static property 'unused' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
354 |
355 | private extension Tag.Name {
356 | static let unused: Tag.Name = "tag:yams.encoder:unused"
| |- warning: static property 'unused' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'unused' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
357 | }
358 |
/host/spi-builder-workspace/Sources/Yams/Tag.swift:12:19: note: consider making struct 'Name' conform to the 'Sendable' protocol
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
/host/spi-builder-workspace/Sources/Yams/Node.Alias.swift:55:16: warning: static property 'defaultTagName' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
53 |
54 | extension Node.Alias: TagResolvable {
55 | static let defaultTagName = Tag.Name.implicit
| |- warning: static property 'defaultTagName' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultTagName' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 | }
57 |
/host/spi-builder-workspace/Sources/Yams/Tag.swift:12:19: note: consider making struct 'Name' conform to the 'Sendable' protocol
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
/host/spi-builder-workspace/Sources/Yams/Node.Mapping.swift:142:16: warning: static property 'defaultTagName' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
140 |
141 | extension Node.Mapping: TagResolvable {
142 | static let defaultTagName = Tag.Name.map
| |- warning: static property 'defaultTagName' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultTagName' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
143 | }
144 |
/host/spi-builder-workspace/Sources/Yams/Tag.swift:12:19: note: consider making struct 'Name' conform to the 'Sendable' protocol
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
/host/spi-builder-workspace/Sources/Yams/Node.Scalar.swift:120:16: warning: static property 'defaultTagName' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
118 |
119 | extension Node.Scalar: TagResolvable {
120 | static let defaultTagName = Tag.Name.str
| |- warning: static property 'defaultTagName' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultTagName' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
121 | func resolveTag(using resolver: Resolver) -> Tag.Name {
122 | return tag.name == .implicit ? resolver.resolveTag(from: string) : tag.name
/host/spi-builder-workspace/Sources/Yams/Tag.swift:12:19: note: consider making struct 'Name' conform to the 'Sendable' protocol
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
/host/spi-builder-workspace/Sources/Yams/Node.Sequence.swift:187:16: warning: static property 'defaultTagName' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
185 |
186 | extension Node.Sequence: TagResolvable {
187 | static let defaultTagName = Tag.Name.seq
| |- warning: static property 'defaultTagName' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultTagName' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
188 | }
189 |
/host/spi-builder-workspace/Sources/Yams/Tag.swift:12:19: note: consider making struct 'Name' conform to the 'Sendable' protocol
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
/host/spi-builder-workspace/Sources/Yams/Parser.swift:130:27: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
128 | /// This can be overridden by setting `YAMS_DEFAULT_ENCODING` to either `UTF8` or `UTF16`.
129 | /// This value is case insensitive.
130 | public static var `default`: Encoding = {
| |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
131 | let key = "YAMS_DEFAULT_ENCODING"
132 | if let yamsEncoding = ProcessInfo.processInfo.environment[key],
/host/spi-builder-workspace/Sources/Yams/Resolver.swift:99:23: warning: static property 'basic' is not concurrency-safe because non-'Sendable' type 'Resolver' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | /// Class used to resolve nodes to tags based on customizable rules.
12 | public final class Resolver {
| `- note: class 'Resolver' does not conform to the 'Sendable' protocol
13 | /// Rule describing how to resolve tags from regex patterns.
14 | public struct Rule {
:
97 | extension Resolver {
98 | /// Resolver with no rules.
99 | public static let basic = Resolver()
| |- warning: static property 'basic' is not concurrency-safe because non-'Sendable' type 'Resolver' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'basic' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
100 | /// Resolver with a default set of rules.
101 | public static let `default` = Resolver([.bool, .int, .float, .merge, .null, .timestamp, .value])
/host/spi-builder-workspace/Sources/Yams/Resolver.swift:101:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Resolver' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | /// Class used to resolve nodes to tags based on customizable rules.
12 | public final class Resolver {
| `- note: class 'Resolver' does not conform to the 'Sendable' protocol
13 | /// Rule describing how to resolve tags from regex patterns.
14 | public struct Rule {
:
99 | public static let basic = Resolver()
100 | /// Resolver with a default set of rules.
101 | public static let `default` = Resolver([.bool, .int, .float, .merge, .null, .timestamp, .value])
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Resolver' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
102 | }
103 |
/host/spi-builder-workspace/Sources/Yams/Resolver.swift:110:23: warning: static property 'bool' is not concurrency-safe because non-'Sendable' type 'Resolver.Rule' may have shared mutable state; this is an error in the Swift 6 language mode
12 | public final class Resolver {
13 | /// Rule describing how to resolve tags from regex patterns.
14 | public struct Rule {
| `- note: consider making struct 'Rule' conform to the 'Sendable' protocol
15 | /// The tag name this rule applies to.
16 | public let tag: Tag.Name
:
108 |
109 | /// Default bool resolver rule.
110 | public static let bool = try! Resolver.Rule(.bool, """
| |- warning: static property 'bool' is not concurrency-safe because non-'Sendable' type 'Resolver.Rule' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'bool' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
111 | ^(?:yes|Yes|YES|no|No|NO\
112 | |true|True|TRUE|false|False|FALSE\
/host/spi-builder-workspace/Sources/Yams/Resolver.swift:117:23: warning: static property 'int' is not concurrency-safe because non-'Sendable' type 'Resolver.Rule' may have shared mutable state; this is an error in the Swift 6 language mode
12 | public final class Resolver {
13 | /// Rule describing how to resolve tags from regex patterns.
14 | public struct Rule {
| `- note: consider making struct 'Rule' conform to the 'Sendable' protocol
15 | /// The tag name this rule applies to.
16 | public let tag: Tag.Name
:
115 |
116 | /// Default int resolver rule.
117 | public static let int = try! Resolver.Rule(.int, """
| |- warning: static property 'int' is not concurrency-safe because non-'Sendable' type 'Resolver.Rule' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'int' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
118 | ^(?:[-+]?0b[0-1_]+\
119 | |[-+]?0o?[0-7_]+\
/host/spi-builder-workspace/Sources/Yams/Resolver.swift:126:23: warning: static property 'float' is not concurrency-safe because non-'Sendable' type 'Resolver.Rule' may have shared mutable state; this is an error in the Swift 6 language mode
12 | public final class Resolver {
13 | /// Rule describing how to resolve tags from regex patterns.
14 | public struct Rule {
| `- note: consider making struct 'Rule' conform to the 'Sendable' protocol
15 | /// The tag name this rule applies to.
16 | public let tag: Tag.Name
:
124 |
125 | /// Default float resolver rule.
126 | public static let float = try! Resolver.Rule(.float, """
| |- warning: static property 'float' is not concurrency-safe because non-'Sendable' type 'Resolver.Rule' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'float' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
127 | ^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?\
128 | |\\.[0-9_]+(?:[eE][-+][0-9]+)?\
/host/spi-builder-workspace/Sources/Yams/Resolver.swift:135:23: warning: static property 'merge' is not concurrency-safe because non-'Sendable' type 'Resolver.Rule' may have shared mutable state; this is an error in the Swift 6 language mode
12 | public final class Resolver {
13 | /// Rule describing how to resolve tags from regex patterns.
14 | public struct Rule {
| `- note: consider making struct 'Rule' conform to the 'Sendable' protocol
15 | /// The tag name this rule applies to.
16 | public let tag: Tag.Name
:
133 |
134 | /// Default merge resolver rule.
135 | public static let merge = try! Resolver.Rule(.merge, "^(?:<<)$")
| |- warning: static property 'merge' is not concurrency-safe because non-'Sendable' type 'Resolver.Rule' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'merge' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
136 |
137 | /// Default null resolver rule.
/host/spi-builder-workspace/Sources/Yams/Resolver.swift:138:23: warning: static property 'null' is not concurrency-safe because non-'Sendable' type 'Resolver.Rule' may have shared mutable state; this is an error in the Swift 6 language mode
12 | public final class Resolver {
13 | /// Rule describing how to resolve tags from regex patterns.
14 | public struct Rule {
| `- note: consider making struct 'Rule' conform to the 'Sendable' protocol
15 | /// The tag name this rule applies to.
16 | public let tag: Tag.Name
:
136 |
137 | /// Default null resolver rule.
138 | public static let null = try! Resolver.Rule(.null, """
| |- warning: static property 'null' is not concurrency-safe because non-'Sendable' type 'Resolver.Rule' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'null' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
139 | ^(?:~\
140 | |null|Null|NULL\
/host/spi-builder-workspace/Sources/Yams/Resolver.swift:145:23: warning: static property 'timestamp' is not concurrency-safe because non-'Sendable' type 'Resolver.Rule' may have shared mutable state; this is an error in the Swift 6 language mode
12 | public final class Resolver {
13 | /// Rule describing how to resolve tags from regex patterns.
14 | public struct Rule {
| `- note: consider making struct 'Rule' conform to the 'Sendable' protocol
15 | /// The tag name this rule applies to.
16 | public let tag: Tag.Name
:
143 |
144 | /// Default timestamp resolver rule.
145 | public static let timestamp = try! Resolver.Rule(.timestamp, """
| |- warning: static property 'timestamp' is not concurrency-safe because non-'Sendable' type 'Resolver.Rule' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'timestamp' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
146 | ^(?:[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]\
147 | |[0-9][0-9][0-9][0-9]-[0-9][0-9]?-[0-9][0-9]?\
/host/spi-builder-workspace/Sources/Yams/Resolver.swift:154:23: warning: static property 'value' is not concurrency-safe because non-'Sendable' type 'Resolver.Rule' may have shared mutable state; this is an error in the Swift 6 language mode
12 | public final class Resolver {
13 | /// Rule describing how to resolve tags from regex patterns.
14 | public struct Rule {
| `- note: consider making struct 'Rule' conform to the 'Sendable' protocol
15 | /// The tag name this rule applies to.
16 | public let tag: Tag.Name
:
152 |
153 | /// Default value resolver rule.
154 | public static let value = try! Resolver.Rule(.value, "^(?:=)$")
| |- warning: static property 'value' is not concurrency-safe because non-'Sendable' type 'Resolver.Rule' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'value' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
155 |
156 | // swiftlint:enable force_try
/host/spi-builder-workspace/Sources/Yams/Tag.swift:119:23: warning: static property 'implicit' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
117 | // Special
118 | /// Tag should be resolved by value.
119 | public static let implicit: Tag.Name = ""
| |- warning: static property 'implicit' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'implicit' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
120 | /// Tag should not be resolved by value, and be resolved as .str, .seq or .map.
121 | public static let nonSpecific: Tag.Name = "!"
/host/spi-builder-workspace/Sources/Yams/Tag.swift:121:23: warning: static property 'nonSpecific' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
119 | public static let implicit: Tag.Name = ""
120 | /// Tag should not be resolved by value, and be resolved as .str, .seq or .map.
121 | public static let nonSpecific: Tag.Name = "!"
| |- warning: static property 'nonSpecific' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'nonSpecific' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
122 |
123 | // Failsafe Schema
/host/spi-builder-workspace/Sources/Yams/Tag.swift:125:23: warning: static property 'str' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
123 | // Failsafe Schema
124 | /// "tag:yaml.org,2002:str" <http://yaml.org/type/str.html>
125 | public static let str: Tag.Name = "tag:yaml.org,2002:str"
| |- warning: static property 'str' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'str' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
126 | /// "tag:yaml.org,2002:seq" <http://yaml.org/type/seq.html>
127 | public static let seq: Tag.Name = "tag:yaml.org,2002:seq"
/host/spi-builder-workspace/Sources/Yams/Tag.swift:127:23: warning: static property 'seq' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
125 | public static let str: Tag.Name = "tag:yaml.org,2002:str"
126 | /// "tag:yaml.org,2002:seq" <http://yaml.org/type/seq.html>
127 | public static let seq: Tag.Name = "tag:yaml.org,2002:seq"
| |- warning: static property 'seq' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'seq' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
128 | /// "tag:yaml.org,2002:map" <http://yaml.org/type/map.html>
129 | public static let map: Tag.Name = "tag:yaml.org,2002:map"
/host/spi-builder-workspace/Sources/Yams/Tag.swift:129:23: warning: static property 'map' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
127 | public static let seq: Tag.Name = "tag:yaml.org,2002:seq"
128 | /// "tag:yaml.org,2002:map" <http://yaml.org/type/map.html>
129 | public static let map: Tag.Name = "tag:yaml.org,2002:map"
| |- warning: static property 'map' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'map' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
130 | // JSON Schema
131 | /// "tag:yaml.org,2002:bool" <http://yaml.org/type/bool.html>
/host/spi-builder-workspace/Sources/Yams/Tag.swift:132:23: warning: static property 'bool' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
130 | // JSON Schema
131 | /// "tag:yaml.org,2002:bool" <http://yaml.org/type/bool.html>
132 | public static let bool: Tag.Name = "tag:yaml.org,2002:bool"
| |- warning: static property 'bool' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'bool' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
133 | /// "tag:yaml.org,2002:float" <http://yaml.org/type/float.html>
134 | public static let float: Tag.Name = "tag:yaml.org,2002:float"
/host/spi-builder-workspace/Sources/Yams/Tag.swift:134:23: warning: static property 'float' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
132 | public static let bool: Tag.Name = "tag:yaml.org,2002:bool"
133 | /// "tag:yaml.org,2002:float" <http://yaml.org/type/float.html>
134 | public static let float: Tag.Name = "tag:yaml.org,2002:float"
| |- warning: static property 'float' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'float' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 | /// "tag:yaml.org,2002:null" <http://yaml.org/type/null.html>
136 | public static let null: Tag.Name = "tag:yaml.org,2002:null"
/host/spi-builder-workspace/Sources/Yams/Tag.swift:136:23: warning: static property 'null' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
134 | public static let float: Tag.Name = "tag:yaml.org,2002:float"
135 | /// "tag:yaml.org,2002:null" <http://yaml.org/type/null.html>
136 | public static let null: Tag.Name = "tag:yaml.org,2002:null"
| |- warning: static property 'null' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'null' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
137 | /// "tag:yaml.org,2002:int" <http://yaml.org/type/int.html>
138 | public static let int: Tag.Name = "tag:yaml.org,2002:int"
/host/spi-builder-workspace/Sources/Yams/Tag.swift:138:23: warning: static property 'int' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
136 | public static let null: Tag.Name = "tag:yaml.org,2002:null"
137 | /// "tag:yaml.org,2002:int" <http://yaml.org/type/int.html>
138 | public static let int: Tag.Name = "tag:yaml.org,2002:int"
| |- warning: static property 'int' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'int' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
139 | // http://yaml.org/type/index.html
140 | /// "tag:yaml.org,2002:binary" <http://yaml.org/type/binary.html>
/host/spi-builder-workspace/Sources/Yams/Tag.swift:141:23: warning: static property 'binary' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
139 | // http://yaml.org/type/index.html
140 | /// "tag:yaml.org,2002:binary" <http://yaml.org/type/binary.html>
141 | public static let binary: Tag.Name = "tag:yaml.org,2002:binary"
| |- warning: static property 'binary' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'binary' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
142 | /// "tag:yaml.org,2002:merge" <http://yaml.org/type/merge.html>
143 | public static let merge: Tag.Name = "tag:yaml.org,2002:merge"
/host/spi-builder-workspace/Sources/Yams/Tag.swift:143:23: warning: static property 'merge' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
141 | public static let binary: Tag.Name = "tag:yaml.org,2002:binary"
142 | /// "tag:yaml.org,2002:merge" <http://yaml.org/type/merge.html>
143 | public static let merge: Tag.Name = "tag:yaml.org,2002:merge"
| |- warning: static property 'merge' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'merge' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
144 | /// "tag:yaml.org,2002:omap" <http://yaml.org/type/omap.html>
145 | public static let omap: Tag.Name = "tag:yaml.org,2002:omap"
/host/spi-builder-workspace/Sources/Yams/Tag.swift:145:23: warning: static property 'omap' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
143 | public static let merge: Tag.Name = "tag:yaml.org,2002:merge"
144 | /// "tag:yaml.org,2002:omap" <http://yaml.org/type/omap.html>
145 | public static let omap: Tag.Name = "tag:yaml.org,2002:omap"
| |- warning: static property 'omap' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'omap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
146 | /// "tag:yaml.org,2002:pairs" <http://yaml.org/type/pairs.html>
147 | public static let pairs: Tag.Name = "tag:yaml.org,2002:pairs"
/host/spi-builder-workspace/Sources/Yams/Tag.swift:147:23: warning: static property 'pairs' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
145 | public static let omap: Tag.Name = "tag:yaml.org,2002:omap"
146 | /// "tag:yaml.org,2002:pairs" <http://yaml.org/type/pairs.html>
147 | public static let pairs: Tag.Name = "tag:yaml.org,2002:pairs"
| |- warning: static property 'pairs' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'pairs' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
148 | /// "tag:yaml.org,2002:set". <http://yaml.org/type/set.html>
149 | public static let set: Tag.Name = "tag:yaml.org,2002:set"
/host/spi-builder-workspace/Sources/Yams/Tag.swift:149:23: warning: static property 'set' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
147 | public static let pairs: Tag.Name = "tag:yaml.org,2002:pairs"
148 | /// "tag:yaml.org,2002:set". <http://yaml.org/type/set.html>
149 | public static let set: Tag.Name = "tag:yaml.org,2002:set"
| |- warning: static property 'set' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'set' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
150 | /// "tag:yaml.org,2002:timestamp" <http://yaml.org/type/timestamp.html>
151 | public static let timestamp: Tag.Name = "tag:yaml.org,2002:timestamp"
/host/spi-builder-workspace/Sources/Yams/Tag.swift:151:23: warning: static property 'timestamp' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
149 | public static let set: Tag.Name = "tag:yaml.org,2002:set"
150 | /// "tag:yaml.org,2002:timestamp" <http://yaml.org/type/timestamp.html>
151 | public static let timestamp: Tag.Name = "tag:yaml.org,2002:timestamp"
| |- warning: static property 'timestamp' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'timestamp' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
152 | /// "tag:yaml.org,2002:value" <http://yaml.org/type/value.html>
153 | public static let value: Tag.Name = "tag:yaml.org,2002:value"
/host/spi-builder-workspace/Sources/Yams/Tag.swift:153:23: warning: static property 'value' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
151 | public static let timestamp: Tag.Name = "tag:yaml.org,2002:timestamp"
152 | /// "tag:yaml.org,2002:value" <http://yaml.org/type/value.html>
153 | public static let value: Tag.Name = "tag:yaml.org,2002:value"
| |- warning: static property 'value' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'value' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
154 | /// "tag:yaml.org,2002:yaml" <http://yaml.org/type/yaml.html> We don't support this.
155 | public static let yaml: Tag.Name = "tag:yaml.org,2002:yaml"
/host/spi-builder-workspace/Sources/Yams/Tag.swift:155:23: warning: static property 'yaml' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
153 | public static let value: Tag.Name = "tag:yaml.org,2002:value"
154 | /// "tag:yaml.org,2002:yaml" <http://yaml.org/type/yaml.html> We don't support this.
155 | public static let yaml: Tag.Name = "tag:yaml.org,2002:yaml"
| |- warning: static property 'yaml' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'yaml' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
156 | }
157 |
/host/spi-builder-workspace/Sources/Yams/YamlAnchorProviding.swift:25:16: warning: static property 'anchorKeyNode' is not concurrency-safe because non-'Sendable' type 'Node' may have shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | internal extension Node {
25 | static let anchorKeyNode: Self = .scalar(.init(YamlAnchorFunctionNameProvider().getName()))
| |- warning: static property 'anchorKeyNode' is not concurrency-safe because non-'Sendable' type 'Node' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'anchorKeyNode' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | }
27 |
/host/spi-builder-workspace/Sources/Yams/Node.swift:12:13: note: consider making enum 'Node' conform to the 'Sendable' protocol
10 |
11 | /// YAML Node.
12 | public enum Node: Hashable {
| `- note: consider making enum 'Node' conform to the 'Sendable' protocol
13 | /// Scalar node.
14 | case scalar(Scalar)
/host/spi-builder-workspace/Sources/Yams/YamlError.swift:39:10: warning: associated value 'scanner(context:problem:_:yaml:)' of 'Sendable'-conforming enum 'YamlError' has non-sendable type 'YamlError.Context'; this is an error in the Swift 6 language mode
37 | /// - parameter mark: Problem position.
38 | /// - parameter yaml: YAML String which the problem occured while scanning.
39 | case scanner(context: Context?, problem: String, Mark, yaml: String)
| `- warning: associated value 'scanner(context:problem:_:yaml:)' of 'Sendable'-conforming enum 'YamlError' has non-sendable type 'YamlError.Context'; this is an error in the Swift 6 language mode
40 |
41 | /// `YAML_PARSER_ERROR`. Cannot parse the input stream.
:
83 |
84 | /// The error context.
85 | public struct Context: CustomStringConvertible {
| `- note: consider making struct 'Context' conform to the 'Sendable' protocol
86 | /// Context text.
87 | public let text: String
/host/spi-builder-workspace/Sources/Yams/YamlError.swift:39:10: warning: associated value 'scanner(context:problem:_:yaml:)' of 'Sendable'-conforming enum 'YamlError' has non-sendable type 'Mark'; this is an error in the Swift 6 language mode
37 | /// - parameter mark: Problem position.
38 | /// - parameter yaml: YAML String which the problem occured while scanning.
39 | case scanner(context: Context?, problem: String, Mark, yaml: String)
| `- warning: associated value 'scanner(context:problem:_:yaml:)' of 'Sendable'-conforming enum 'YamlError' has non-sendable type 'Mark'; this is an error in the Swift 6 language mode
40 |
41 | /// `YAML_PARSER_ERROR`. Cannot parse the input stream.
/host/spi-builder-workspace/Sources/Yams/Mark.swift:10:15: note: consider making struct 'Mark' conform to the 'Sendable' protocol
8 |
9 | /// The pointer position.
10 | public struct Mark {
| `- note: consider making struct 'Mark' conform to the 'Sendable' protocol
11 | /// Line number starting from 1.
12 | public let line: Int
/host/spi-builder-workspace/Sources/Yams/YamlError.swift:47:10: warning: associated value 'parser(context:problem:_:yaml:)' of 'Sendable'-conforming enum 'YamlError' has non-sendable type 'YamlError.Context'; this is an error in the Swift 6 language mode
45 | /// - parameter mark: Problem position.
46 | /// - parameter yaml: YAML String which the problem occured while parsing.
47 | case parser(context: Context?, problem: String, Mark, yaml: String)
| `- warning: associated value 'parser(context:problem:_:yaml:)' of 'Sendable'-conforming enum 'YamlError' has non-sendable type 'YamlError.Context'; this is an error in the Swift 6 language mode
48 |
49 | /// `YAML_COMPOSER_ERROR`. Cannot compose a YAML document.
:
83 |
84 | /// The error context.
85 | public struct Context: CustomStringConvertible {
| `- note: consider making struct 'Context' conform to the 'Sendable' protocol
86 | /// Context text.
87 | public let text: String
/host/spi-builder-workspace/Sources/Yams/YamlError.swift:47:10: warning: associated value 'parser(context:problem:_:yaml:)' of 'Sendable'-conforming enum 'YamlError' has non-sendable type 'Mark'; this is an error in the Swift 6 language mode
45 | /// - parameter mark: Problem position.
46 | /// - parameter yaml: YAML String which the problem occured while parsing.
47 | case parser(context: Context?, problem: String, Mark, yaml: String)
| `- warning: associated value 'parser(context:problem:_:yaml:)' of 'Sendable'-conforming enum 'YamlError' has non-sendable type 'Mark'; this is an error in the Swift 6 language mode
48 |
49 | /// `YAML_COMPOSER_ERROR`. Cannot compose a YAML document.
/host/spi-builder-workspace/Sources/Yams/Mark.swift:10:15: note: consider making struct 'Mark' conform to the 'Sendable' protocol
8 |
9 | /// The pointer position.
10 | public struct Mark {
| `- note: consider making struct 'Mark' conform to the 'Sendable' protocol
11 | /// Line number starting from 1.
12 | public let line: Int
/host/spi-builder-workspace/Sources/Yams/YamlError.swift:55:10: warning: associated value 'composer(context:problem:_:yaml:)' of 'Sendable'-conforming enum 'YamlError' has non-sendable type 'YamlError.Context'; this is an error in the Swift 6 language mode
53 | /// - parameter mark: Problem position.
54 | /// - parameter yaml: YAML String which the problem occured while composing.
55 | case composer(context: Context?, problem: String, Mark, yaml: String)
| `- warning: associated value 'composer(context:problem:_:yaml:)' of 'Sendable'-conforming enum 'YamlError' has non-sendable type 'YamlError.Context'; this is an error in the Swift 6 language mode
56 |
57 | // Used in `yaml_emitter_t`
:
83 |
84 | /// The error context.
85 | public struct Context: CustomStringConvertible {
| `- note: consider making struct 'Context' conform to the 'Sendable' protocol
86 | /// Context text.
87 | public let text: String
/host/spi-builder-workspace/Sources/Yams/YamlError.swift:55:10: warning: associated value 'composer(context:problem:_:yaml:)' of 'Sendable'-conforming enum 'YamlError' has non-sendable type 'Mark'; this is an error in the Swift 6 language mode
53 | /// - parameter mark: Problem position.
54 | /// - parameter yaml: YAML String which the problem occured while composing.
55 | case composer(context: Context?, problem: String, Mark, yaml: String)
| `- warning: associated value 'composer(context:problem:_:yaml:)' of 'Sendable'-conforming enum 'YamlError' has non-sendable type 'Mark'; this is an error in the Swift 6 language mode
56 |
57 | // Used in `yaml_emitter_t`
/host/spi-builder-workspace/Sources/Yams/Mark.swift:10:15: note: consider making struct 'Mark' conform to the 'Sendable' protocol
8 |
9 | /// The pointer position.
10 | public struct Mark {
| `- note: consider making struct 'Mark' conform to the 'Sendable' protocol
11 | /// Line number starting from 1.
12 | public let line: Int
/host/spi-builder-workspace/Sources/Yams/YamlError.swift:82:10: warning: associated value 'duplicatedKeysInMapping(duplicates:yaml:)' of 'Sendable'-conforming enum 'YamlError' has non-sendable type 'Node'; this is an error in the Swift 6 language mode
80 | /// - parameter duplicates: A dictionary keyed by the duplicated node value, with all nodes that duplicate the value
81 | /// - parameter yaml: YAML String which the problem occured while reading.
82 | case duplicatedKeysInMapping(duplicates: [Node: [Node]], yaml: String)
| `- warning: associated value 'duplicatedKeysInMapping(duplicates:yaml:)' of 'Sendable'-conforming enum 'YamlError' has non-sendable type 'Node'; this is an error in the Swift 6 language mode
83 |
84 | /// The error context.
/host/spi-builder-workspace/Sources/Yams/Node.swift:12:13: note: consider making enum 'Node' conform to the 'Sendable' protocol
10 |
11 | /// YAML Node.
12 | public enum Node: Hashable {
| `- note: consider making enum 'Node' conform to the 'Sendable' protocol
13 | /// Scalar node.
14 | case scalar(Scalar)
/host/spi-builder-workspace/Sources/Yams/YamlError.swift:82:10: warning: associated value 'duplicatedKeysInMapping(duplicates:yaml:)' of 'Sendable'-conforming enum 'YamlError' has non-sendable type 'Node'; this is an error in the Swift 6 language mode
80 | /// - parameter duplicates: A dictionary keyed by the duplicated node value, with all nodes that duplicate the value
81 | /// - parameter yaml: YAML String which the problem occured while reading.
82 | case duplicatedKeysInMapping(duplicates: [Node: [Node]], yaml: String)
| `- warning: associated value 'duplicatedKeysInMapping(duplicates:yaml:)' of 'Sendable'-conforming enum 'YamlError' has non-sendable type 'Node'; this is an error in the Swift 6 language mode
83 |
84 | /// The error context.
/host/spi-builder-workspace/Sources/Yams/Node.swift:12:13: note: consider making enum 'Node' conform to the 'Sendable' protocol
10 |
11 | /// YAML Node.
12 | public enum Node: Hashable {
| `- note: consider making enum 'Node' conform to the 'Sendable' protocol
13 | /// Scalar node.
14 | case scalar(Scalar)
/host/spi-builder-workspace/Sources/Yams/YamlTagProviding.swift:25:16: warning: static property 'tagKeyNode' is not concurrency-safe because non-'Sendable' type 'Node' may have shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | internal extension Node {
25 | static let tagKeyNode: Self = .scalar(.init(YamlTagFunctionNameProvider().getName()))
| |- warning: static property 'tagKeyNode' is not concurrency-safe because non-'Sendable' type 'Node' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'tagKeyNode' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | }
27 |
/host/spi-builder-workspace/Sources/Yams/Node.swift:12:13: note: consider making enum 'Node' conform to the 'Sendable' protocol
10 |
11 | /// YAML Node.
12 | public enum Node: Hashable {
| `- note: consider making enum 'Node' conform to the 'Sendable' protocol
13 | /// Scalar node.
14 | case scalar(Scalar)
[15/29] Compiling Yams Anchor.swift
/host/spi-builder-workspace/Sources/Yams/Constructor.swift:71:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Constructor' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | /// Constructors are used to translate `Node`s to Swift values.
12 | public final class Constructor {
| `- note: class 'Constructor' does not conform to the 'Sendable' protocol
13 | /// Maps `Tag.Name`s to `Node.Scalar`s.
14 | public typealias ScalarMap = [Tag.Name: (Node.Scalar) -> Any?]
:
69 | extension Constructor {
70 | /// The default `Constructor` to be used with APIs where none is explicitly provided.
71 | public static let `default` = Constructor()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Constructor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
72 |
73 | /// The default `Tag.Name` to `Node.Scalar` map.
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Yams/Constructor.swift:74:23: warning: static property 'defaultScalarMap' is not concurrency-safe because non-'Sendable' type 'Constructor.ScalarMap' (aka 'Dictionary<Tag.Name, (Node.Scalar) -> Optional<Any>>') may have shared mutable state; this is an error in the Swift 6 language mode
72 |
73 | /// The default `Tag.Name` to `Node.Scalar` map.
74 | public static let defaultScalarMap: ScalarMap = [
| |- warning: static property 'defaultScalarMap' is not concurrency-safe because non-'Sendable' type 'Constructor.ScalarMap' (aka 'Dictionary<Tag.Name, (Node.Scalar) -> Optional<Any>>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultScalarMap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
75 | // Failsafe Schema
76 | .str: String.construct,
/host/spi-builder-workspace/Sources/Yams/Tag.swift:12:19: note: consider making struct 'Name' conform to the 'Sendable' protocol
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Yams/Constructor.swift:88:23: warning: static property 'defaultMappingMap' is not concurrency-safe because non-'Sendable' type 'Constructor.MappingMap' (aka 'Dictionary<Tag.Name, (Node.Mapping) -> Optional<Any>>') may have shared mutable state; this is an error in the Swift 6 language mode
86 |
87 | /// The default `Tag.Name` to `Node.Mapping` map.
88 | public static let defaultMappingMap: MappingMap = [
| |- warning: static property 'defaultMappingMap' is not concurrency-safe because non-'Sendable' type 'Constructor.MappingMap' (aka 'Dictionary<Tag.Name, (Node.Mapping) -> Optional<Any>>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultMappingMap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
89 | .map: [AnyHashable: Any].construct_mapping,
90 | // http://yaml.org/type/index.html
/host/spi-builder-workspace/Sources/Yams/Tag.swift:12:19: note: consider making struct 'Name' conform to the 'Sendable' protocol
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Yams/Constructor.swift:97:23: warning: static property 'defaultSequenceMap' is not concurrency-safe because non-'Sendable' type 'Constructor.SequenceMap' (aka 'Dictionary<Tag.Name, (Node.Sequence) -> Optional<Any>>') may have shared mutable state; this is an error in the Swift 6 language mode
95 |
96 | /// The default `Tag.Name` to `Node.Sequence` map.
97 | public static let defaultSequenceMap: SequenceMap = [
| |- warning: static property 'defaultSequenceMap' is not concurrency-safe because non-'Sendable' type 'Constructor.SequenceMap' (aka 'Dictionary<Tag.Name, (Node.Sequence) -> Optional<Any>>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultSequenceMap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
98 | .seq: [Any].construct_seq,
99 | // http://yaml.org/type/index.html
/host/spi-builder-workspace/Sources/Yams/Tag.swift:12:19: note: consider making struct 'Name' conform to the 'Sendable' protocol
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
[16/29] Compiling Yams Constructor.swift
/host/spi-builder-workspace/Sources/Yams/Constructor.swift:71:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Constructor' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | /// Constructors are used to translate `Node`s to Swift values.
12 | public final class Constructor {
| `- note: class 'Constructor' does not conform to the 'Sendable' protocol
13 | /// Maps `Tag.Name`s to `Node.Scalar`s.
14 | public typealias ScalarMap = [Tag.Name: (Node.Scalar) -> Any?]
:
69 | extension Constructor {
70 | /// The default `Constructor` to be used with APIs where none is explicitly provided.
71 | public static let `default` = Constructor()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Constructor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
72 |
73 | /// The default `Tag.Name` to `Node.Scalar` map.
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Yams/Constructor.swift:74:23: warning: static property 'defaultScalarMap' is not concurrency-safe because non-'Sendable' type 'Constructor.ScalarMap' (aka 'Dictionary<Tag.Name, (Node.Scalar) -> Optional<Any>>') may have shared mutable state; this is an error in the Swift 6 language mode
72 |
73 | /// The default `Tag.Name` to `Node.Scalar` map.
74 | public static let defaultScalarMap: ScalarMap = [
| |- warning: static property 'defaultScalarMap' is not concurrency-safe because non-'Sendable' type 'Constructor.ScalarMap' (aka 'Dictionary<Tag.Name, (Node.Scalar) -> Optional<Any>>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultScalarMap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
75 | // Failsafe Schema
76 | .str: String.construct,
/host/spi-builder-workspace/Sources/Yams/Tag.swift:12:19: note: consider making struct 'Name' conform to the 'Sendable' protocol
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Yams/Constructor.swift:88:23: warning: static property 'defaultMappingMap' is not concurrency-safe because non-'Sendable' type 'Constructor.MappingMap' (aka 'Dictionary<Tag.Name, (Node.Mapping) -> Optional<Any>>') may have shared mutable state; this is an error in the Swift 6 language mode
86 |
87 | /// The default `Tag.Name` to `Node.Mapping` map.
88 | public static let defaultMappingMap: MappingMap = [
| |- warning: static property 'defaultMappingMap' is not concurrency-safe because non-'Sendable' type 'Constructor.MappingMap' (aka 'Dictionary<Tag.Name, (Node.Mapping) -> Optional<Any>>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultMappingMap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
89 | .map: [AnyHashable: Any].construct_mapping,
90 | // http://yaml.org/type/index.html
/host/spi-builder-workspace/Sources/Yams/Tag.swift:12:19: note: consider making struct 'Name' conform to the 'Sendable' protocol
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Yams/Constructor.swift:97:23: warning: static property 'defaultSequenceMap' is not concurrency-safe because non-'Sendable' type 'Constructor.SequenceMap' (aka 'Dictionary<Tag.Name, (Node.Sequence) -> Optional<Any>>') may have shared mutable state; this is an error in the Swift 6 language mode
95 |
96 | /// The default `Tag.Name` to `Node.Sequence` map.
97 | public static let defaultSequenceMap: SequenceMap = [
| |- warning: static property 'defaultSequenceMap' is not concurrency-safe because non-'Sendable' type 'Constructor.SequenceMap' (aka 'Dictionary<Tag.Name, (Node.Sequence) -> Optional<Any>>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultSequenceMap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
98 | .seq: [Any].construct_seq,
99 | // http://yaml.org/type/index.html
/host/spi-builder-workspace/Sources/Yams/Tag.swift:12:19: note: consider making struct 'Name' conform to the 'Sendable' protocol
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
[17/29] Compiling Yams Decoder.swift
/host/spi-builder-workspace/Sources/Yams/Constructor.swift:71:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Constructor' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | /// Constructors are used to translate `Node`s to Swift values.
12 | public final class Constructor {
| `- note: class 'Constructor' does not conform to the 'Sendable' protocol
13 | /// Maps `Tag.Name`s to `Node.Scalar`s.
14 | public typealias ScalarMap = [Tag.Name: (Node.Scalar) -> Any?]
:
69 | extension Constructor {
70 | /// The default `Constructor` to be used with APIs where none is explicitly provided.
71 | public static let `default` = Constructor()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Constructor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
72 |
73 | /// The default `Tag.Name` to `Node.Scalar` map.
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Yams/Constructor.swift:74:23: warning: static property 'defaultScalarMap' is not concurrency-safe because non-'Sendable' type 'Constructor.ScalarMap' (aka 'Dictionary<Tag.Name, (Node.Scalar) -> Optional<Any>>') may have shared mutable state; this is an error in the Swift 6 language mode
72 |
73 | /// The default `Tag.Name` to `Node.Scalar` map.
74 | public static let defaultScalarMap: ScalarMap = [
| |- warning: static property 'defaultScalarMap' is not concurrency-safe because non-'Sendable' type 'Constructor.ScalarMap' (aka 'Dictionary<Tag.Name, (Node.Scalar) -> Optional<Any>>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultScalarMap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
75 | // Failsafe Schema
76 | .str: String.construct,
/host/spi-builder-workspace/Sources/Yams/Tag.swift:12:19: note: consider making struct 'Name' conform to the 'Sendable' protocol
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Yams/Constructor.swift:88:23: warning: static property 'defaultMappingMap' is not concurrency-safe because non-'Sendable' type 'Constructor.MappingMap' (aka 'Dictionary<Tag.Name, (Node.Mapping) -> Optional<Any>>') may have shared mutable state; this is an error in the Swift 6 language mode
86 |
87 | /// The default `Tag.Name` to `Node.Mapping` map.
88 | public static let defaultMappingMap: MappingMap = [
| |- warning: static property 'defaultMappingMap' is not concurrency-safe because non-'Sendable' type 'Constructor.MappingMap' (aka 'Dictionary<Tag.Name, (Node.Mapping) -> Optional<Any>>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultMappingMap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
89 | .map: [AnyHashable: Any].construct_mapping,
90 | // http://yaml.org/type/index.html
/host/spi-builder-workspace/Sources/Yams/Tag.swift:12:19: note: consider making struct 'Name' conform to the 'Sendable' protocol
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Yams/Constructor.swift:97:23: warning: static property 'defaultSequenceMap' is not concurrency-safe because non-'Sendable' type 'Constructor.SequenceMap' (aka 'Dictionary<Tag.Name, (Node.Sequence) -> Optional<Any>>') may have shared mutable state; this is an error in the Swift 6 language mode
95 |
96 | /// The default `Tag.Name` to `Node.Sequence` map.
97 | public static let defaultSequenceMap: SequenceMap = [
| |- warning: static property 'defaultSequenceMap' is not concurrency-safe because non-'Sendable' type 'Constructor.SequenceMap' (aka 'Dictionary<Tag.Name, (Node.Sequence) -> Optional<Any>>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultSequenceMap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
98 | .seq: [Any].construct_seq,
99 | // http://yaml.org/type/index.html
/host/spi-builder-workspace/Sources/Yams/Tag.swift:12:19: note: consider making struct 'Name' conform to the 'Sendable' protocol
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
[18/29] Compiling Yams Tag.swift
/host/spi-builder-workspace/Sources/Yams/Tag.swift:119:23: warning: static property 'implicit' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
117 | // Special
118 | /// Tag should be resolved by value.
119 | public static let implicit: Tag.Name = ""
| |- warning: static property 'implicit' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'implicit' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
120 | /// Tag should not be resolved by value, and be resolved as .str, .seq or .map.
121 | public static let nonSpecific: Tag.Name = "!"
/host/spi-builder-workspace/Sources/Yams/Tag.swift:121:23: warning: static property 'nonSpecific' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
119 | public static let implicit: Tag.Name = ""
120 | /// Tag should not be resolved by value, and be resolved as .str, .seq or .map.
121 | public static let nonSpecific: Tag.Name = "!"
| |- warning: static property 'nonSpecific' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'nonSpecific' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
122 |
123 | // Failsafe Schema
/host/spi-builder-workspace/Sources/Yams/Tag.swift:125:23: warning: static property 'str' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
123 | // Failsafe Schema
124 | /// "tag:yaml.org,2002:str" <http://yaml.org/type/str.html>
125 | public static let str: Tag.Name = "tag:yaml.org,2002:str"
| |- warning: static property 'str' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'str' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
126 | /// "tag:yaml.org,2002:seq" <http://yaml.org/type/seq.html>
127 | public static let seq: Tag.Name = "tag:yaml.org,2002:seq"
/host/spi-builder-workspace/Sources/Yams/Tag.swift:127:23: warning: static property 'seq' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
125 | public static let str: Tag.Name = "tag:yaml.org,2002:str"
126 | /// "tag:yaml.org,2002:seq" <http://yaml.org/type/seq.html>
127 | public static let seq: Tag.Name = "tag:yaml.org,2002:seq"
| |- warning: static property 'seq' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'seq' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
128 | /// "tag:yaml.org,2002:map" <http://yaml.org/type/map.html>
129 | public static let map: Tag.Name = "tag:yaml.org,2002:map"
/host/spi-builder-workspace/Sources/Yams/Tag.swift:129:23: warning: static property 'map' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
127 | public static let seq: Tag.Name = "tag:yaml.org,2002:seq"
128 | /// "tag:yaml.org,2002:map" <http://yaml.org/type/map.html>
129 | public static let map: Tag.Name = "tag:yaml.org,2002:map"
| |- warning: static property 'map' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'map' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
130 | // JSON Schema
131 | /// "tag:yaml.org,2002:bool" <http://yaml.org/type/bool.html>
/host/spi-builder-workspace/Sources/Yams/Tag.swift:132:23: warning: static property 'bool' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
130 | // JSON Schema
131 | /// "tag:yaml.org,2002:bool" <http://yaml.org/type/bool.html>
132 | public static let bool: Tag.Name = "tag:yaml.org,2002:bool"
| |- warning: static property 'bool' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'bool' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
133 | /// "tag:yaml.org,2002:float" <http://yaml.org/type/float.html>
134 | public static let float: Tag.Name = "tag:yaml.org,2002:float"
/host/spi-builder-workspace/Sources/Yams/Tag.swift:134:23: warning: static property 'float' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
132 | public static let bool: Tag.Name = "tag:yaml.org,2002:bool"
133 | /// "tag:yaml.org,2002:float" <http://yaml.org/type/float.html>
134 | public static let float: Tag.Name = "tag:yaml.org,2002:float"
| |- warning: static property 'float' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'float' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 | /// "tag:yaml.org,2002:null" <http://yaml.org/type/null.html>
136 | public static let null: Tag.Name = "tag:yaml.org,2002:null"
/host/spi-builder-workspace/Sources/Yams/Tag.swift:136:23: warning: static property 'null' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
134 | public static let float: Tag.Name = "tag:yaml.org,2002:float"
135 | /// "tag:yaml.org,2002:null" <http://yaml.org/type/null.html>
136 | public static let null: Tag.Name = "tag:yaml.org,2002:null"
| |- warning: static property 'null' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'null' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
137 | /// "tag:yaml.org,2002:int" <http://yaml.org/type/int.html>
138 | public static let int: Tag.Name = "tag:yaml.org,2002:int"
/host/spi-builder-workspace/Sources/Yams/Tag.swift:138:23: warning: static property 'int' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
136 | public static let null: Tag.Name = "tag:yaml.org,2002:null"
137 | /// "tag:yaml.org,2002:int" <http://yaml.org/type/int.html>
138 | public static let int: Tag.Name = "tag:yaml.org,2002:int"
| |- warning: static property 'int' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'int' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
139 | // http://yaml.org/type/index.html
140 | /// "tag:yaml.org,2002:binary" <http://yaml.org/type/binary.html>
/host/spi-builder-workspace/Sources/Yams/Tag.swift:141:23: warning: static property 'binary' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
139 | // http://yaml.org/type/index.html
140 | /// "tag:yaml.org,2002:binary" <http://yaml.org/type/binary.html>
141 | public static let binary: Tag.Name = "tag:yaml.org,2002:binary"
| |- warning: static property 'binary' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'binary' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
142 | /// "tag:yaml.org,2002:merge" <http://yaml.org/type/merge.html>
143 | public static let merge: Tag.Name = "tag:yaml.org,2002:merge"
/host/spi-builder-workspace/Sources/Yams/Tag.swift:143:23: warning: static property 'merge' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
141 | public static let binary: Tag.Name = "tag:yaml.org,2002:binary"
142 | /// "tag:yaml.org,2002:merge" <http://yaml.org/type/merge.html>
143 | public static let merge: Tag.Name = "tag:yaml.org,2002:merge"
| |- warning: static property 'merge' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'merge' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
144 | /// "tag:yaml.org,2002:omap" <http://yaml.org/type/omap.html>
145 | public static let omap: Tag.Name = "tag:yaml.org,2002:omap"
/host/spi-builder-workspace/Sources/Yams/Tag.swift:145:23: warning: static property 'omap' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
143 | public static let merge: Tag.Name = "tag:yaml.org,2002:merge"
144 | /// "tag:yaml.org,2002:omap" <http://yaml.org/type/omap.html>
145 | public static let omap: Tag.Name = "tag:yaml.org,2002:omap"
| |- warning: static property 'omap' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'omap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
146 | /// "tag:yaml.org,2002:pairs" <http://yaml.org/type/pairs.html>
147 | public static let pairs: Tag.Name = "tag:yaml.org,2002:pairs"
/host/spi-builder-workspace/Sources/Yams/Tag.swift:147:23: warning: static property 'pairs' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
145 | public static let omap: Tag.Name = "tag:yaml.org,2002:omap"
146 | /// "tag:yaml.org,2002:pairs" <http://yaml.org/type/pairs.html>
147 | public static let pairs: Tag.Name = "tag:yaml.org,2002:pairs"
| |- warning: static property 'pairs' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'pairs' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
148 | /// "tag:yaml.org,2002:set". <http://yaml.org/type/set.html>
149 | public static let set: Tag.Name = "tag:yaml.org,2002:set"
/host/spi-builder-workspace/Sources/Yams/Tag.swift:149:23: warning: static property 'set' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
147 | public static let pairs: Tag.Name = "tag:yaml.org,2002:pairs"
148 | /// "tag:yaml.org,2002:set". <http://yaml.org/type/set.html>
149 | public static let set: Tag.Name = "tag:yaml.org,2002:set"
| |- warning: static property 'set' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'set' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
150 | /// "tag:yaml.org,2002:timestamp" <http://yaml.org/type/timestamp.html>
151 | public static let timestamp: Tag.Name = "tag:yaml.org,2002:timestamp"
/host/spi-builder-workspace/Sources/Yams/Tag.swift:151:23: warning: static property 'timestamp' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
149 | public static let set: Tag.Name = "tag:yaml.org,2002:set"
150 | /// "tag:yaml.org,2002:timestamp" <http://yaml.org/type/timestamp.html>
151 | public static let timestamp: Tag.Name = "tag:yaml.org,2002:timestamp"
| |- warning: static property 'timestamp' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'timestamp' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
152 | /// "tag:yaml.org,2002:value" <http://yaml.org/type/value.html>
153 | public static let value: Tag.Name = "tag:yaml.org,2002:value"
/host/spi-builder-workspace/Sources/Yams/Tag.swift:153:23: warning: static property 'value' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
151 | public static let timestamp: Tag.Name = "tag:yaml.org,2002:timestamp"
152 | /// "tag:yaml.org,2002:value" <http://yaml.org/type/value.html>
153 | public static let value: Tag.Name = "tag:yaml.org,2002:value"
| |- warning: static property 'value' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'value' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
154 | /// "tag:yaml.org,2002:yaml" <http://yaml.org/type/yaml.html> We don't support this.
155 | public static let yaml: Tag.Name = "tag:yaml.org,2002:yaml"
/host/spi-builder-workspace/Sources/Yams/Tag.swift:155:23: warning: static property 'yaml' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
153 | public static let value: Tag.Name = "tag:yaml.org,2002:value"
154 | /// "tag:yaml.org,2002:yaml" <http://yaml.org/type/yaml.html> We don't support this.
155 | public static let yaml: Tag.Name = "tag:yaml.org,2002:yaml"
| |- warning: static property 'yaml' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'yaml' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
156 | }
157 |
/host/spi-builder-workspace/Sources/Yams/YamlAnchorProviding.swift:25:16: warning: static property 'anchorKeyNode' is not concurrency-safe because non-'Sendable' type 'Node' may have shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | internal extension Node {
25 | static let anchorKeyNode: Self = .scalar(.init(YamlAnchorFunctionNameProvider().getName()))
| |- warning: static property 'anchorKeyNode' is not concurrency-safe because non-'Sendable' type 'Node' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'anchorKeyNode' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | }
27 |
/host/spi-builder-workspace/Sources/Yams/Node.swift:12:13: note: consider making enum 'Node' conform to the 'Sendable' protocol
10 |
11 | /// YAML Node.
12 | public enum Node: Hashable {
| `- note: consider making enum 'Node' conform to the 'Sendable' protocol
13 | /// Scalar node.
14 | case scalar(Scalar)
[19/29] Compiling Yams YamlAnchorProviding.swift
/host/spi-builder-workspace/Sources/Yams/Tag.swift:119:23: warning: static property 'implicit' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
117 | // Special
118 | /// Tag should be resolved by value.
119 | public static let implicit: Tag.Name = ""
| |- warning: static property 'implicit' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'implicit' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
120 | /// Tag should not be resolved by value, and be resolved as .str, .seq or .map.
121 | public static let nonSpecific: Tag.Name = "!"
/host/spi-builder-workspace/Sources/Yams/Tag.swift:121:23: warning: static property 'nonSpecific' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
119 | public static let implicit: Tag.Name = ""
120 | /// Tag should not be resolved by value, and be resolved as .str, .seq or .map.
121 | public static let nonSpecific: Tag.Name = "!"
| |- warning: static property 'nonSpecific' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'nonSpecific' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
122 |
123 | // Failsafe Schema
/host/spi-builder-workspace/Sources/Yams/Tag.swift:125:23: warning: static property 'str' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
123 | // Failsafe Schema
124 | /// "tag:yaml.org,2002:str" <http://yaml.org/type/str.html>
125 | public static let str: Tag.Name = "tag:yaml.org,2002:str"
| |- warning: static property 'str' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'str' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
126 | /// "tag:yaml.org,2002:seq" <http://yaml.org/type/seq.html>
127 | public static let seq: Tag.Name = "tag:yaml.org,2002:seq"
/host/spi-builder-workspace/Sources/Yams/Tag.swift:127:23: warning: static property 'seq' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
125 | public static let str: Tag.Name = "tag:yaml.org,2002:str"
126 | /// "tag:yaml.org,2002:seq" <http://yaml.org/type/seq.html>
127 | public static let seq: Tag.Name = "tag:yaml.org,2002:seq"
| |- warning: static property 'seq' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'seq' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
128 | /// "tag:yaml.org,2002:map" <http://yaml.org/type/map.html>
129 | public static let map: Tag.Name = "tag:yaml.org,2002:map"
/host/spi-builder-workspace/Sources/Yams/Tag.swift:129:23: warning: static property 'map' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
127 | public static let seq: Tag.Name = "tag:yaml.org,2002:seq"
128 | /// "tag:yaml.org,2002:map" <http://yaml.org/type/map.html>
129 | public static let map: Tag.Name = "tag:yaml.org,2002:map"
| |- warning: static property 'map' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'map' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
130 | // JSON Schema
131 | /// "tag:yaml.org,2002:bool" <http://yaml.org/type/bool.html>
/host/spi-builder-workspace/Sources/Yams/Tag.swift:132:23: warning: static property 'bool' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
130 | // JSON Schema
131 | /// "tag:yaml.org,2002:bool" <http://yaml.org/type/bool.html>
132 | public static let bool: Tag.Name = "tag:yaml.org,2002:bool"
| |- warning: static property 'bool' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'bool' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
133 | /// "tag:yaml.org,2002:float" <http://yaml.org/type/float.html>
134 | public static let float: Tag.Name = "tag:yaml.org,2002:float"
/host/spi-builder-workspace/Sources/Yams/Tag.swift:134:23: warning: static property 'float' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
132 | public static let bool: Tag.Name = "tag:yaml.org,2002:bool"
133 | /// "tag:yaml.org,2002:float" <http://yaml.org/type/float.html>
134 | public static let float: Tag.Name = "tag:yaml.org,2002:float"
| |- warning: static property 'float' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'float' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
135 | /// "tag:yaml.org,2002:null" <http://yaml.org/type/null.html>
136 | public static let null: Tag.Name = "tag:yaml.org,2002:null"
/host/spi-builder-workspace/Sources/Yams/Tag.swift:136:23: warning: static property 'null' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
134 | public static let float: Tag.Name = "tag:yaml.org,2002:float"
135 | /// "tag:yaml.org,2002:null" <http://yaml.org/type/null.html>
136 | public static let null: Tag.Name = "tag:yaml.org,2002:null"
| |- warning: static property 'null' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'null' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
137 | /// "tag:yaml.org,2002:int" <http://yaml.org/type/int.html>
138 | public static let int: Tag.Name = "tag:yaml.org,2002:int"
/host/spi-builder-workspace/Sources/Yams/Tag.swift:138:23: warning: static property 'int' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
136 | public static let null: Tag.Name = "tag:yaml.org,2002:null"
137 | /// "tag:yaml.org,2002:int" <http://yaml.org/type/int.html>
138 | public static let int: Tag.Name = "tag:yaml.org,2002:int"
| |- warning: static property 'int' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'int' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
139 | // http://yaml.org/type/index.html
140 | /// "tag:yaml.org,2002:binary" <http://yaml.org/type/binary.html>
/host/spi-builder-workspace/Sources/Yams/Tag.swift:141:23: warning: static property 'binary' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
139 | // http://yaml.org/type/index.html
140 | /// "tag:yaml.org,2002:binary" <http://yaml.org/type/binary.html>
141 | public static let binary: Tag.Name = "tag:yaml.org,2002:binary"
| |- warning: static property 'binary' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'binary' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
142 | /// "tag:yaml.org,2002:merge" <http://yaml.org/type/merge.html>
143 | public static let merge: Tag.Name = "tag:yaml.org,2002:merge"
/host/spi-builder-workspace/Sources/Yams/Tag.swift:143:23: warning: static property 'merge' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
141 | public static let binary: Tag.Name = "tag:yaml.org,2002:binary"
142 | /// "tag:yaml.org,2002:merge" <http://yaml.org/type/merge.html>
143 | public static let merge: Tag.Name = "tag:yaml.org,2002:merge"
| |- warning: static property 'merge' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'merge' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
144 | /// "tag:yaml.org,2002:omap" <http://yaml.org/type/omap.html>
145 | public static let omap: Tag.Name = "tag:yaml.org,2002:omap"
/host/spi-builder-workspace/Sources/Yams/Tag.swift:145:23: warning: static property 'omap' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
143 | public static let merge: Tag.Name = "tag:yaml.org,2002:merge"
144 | /// "tag:yaml.org,2002:omap" <http://yaml.org/type/omap.html>
145 | public static let omap: Tag.Name = "tag:yaml.org,2002:omap"
| |- warning: static property 'omap' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'omap' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
146 | /// "tag:yaml.org,2002:pairs" <http://yaml.org/type/pairs.html>
147 | public static let pairs: Tag.Name = "tag:yaml.org,2002:pairs"
/host/spi-builder-workspace/Sources/Yams/Tag.swift:147:23: warning: static property 'pairs' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
145 | public static let omap: Tag.Name = "tag:yaml.org,2002:omap"
146 | /// "tag:yaml.org,2002:pairs" <http://yaml.org/type/pairs.html>
147 | public static let pairs: Tag.Name = "tag:yaml.org,2002:pairs"
| |- warning: static property 'pairs' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'pairs' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
148 | /// "tag:yaml.org,2002:set". <http://yaml.org/type/set.html>
149 | public static let set: Tag.Name = "tag:yaml.org,2002:set"
/host/spi-builder-workspace/Sources/Yams/Tag.swift:149:23: warning: static property 'set' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
147 | public static let pairs: Tag.Name = "tag:yaml.org,2002:pairs"
148 | /// "tag:yaml.org,2002:set". <http://yaml.org/type/set.html>
149 | public static let set: Tag.Name = "tag:yaml.org,2002:set"
| |- warning: static property 'set' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'set' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
150 | /// "tag:yaml.org,2002:timestamp" <http://yaml.org/type/timestamp.html>
151 | public static let timestamp: Tag.Name = "tag:yaml.org,2002:timestamp"
/host/spi-builder-workspace/Sources/Yams/Tag.swift:151:23: warning: static property 'timestamp' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
149 | public static let set: Tag.Name = "tag:yaml.org,2002:set"
150 | /// "tag:yaml.org,2002:timestamp" <http://yaml.org/type/timestamp.html>
151 | public static let timestamp: Tag.Name = "tag:yaml.org,2002:timestamp"
| |- warning: static property 'timestamp' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'timestamp' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
152 | /// "tag:yaml.org,2002:value" <http://yaml.org/type/value.html>
153 | public static let value: Tag.Name = "tag:yaml.org,2002:value"
/host/spi-builder-workspace/Sources/Yams/Tag.swift:153:23: warning: static property 'value' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
151 | public static let timestamp: Tag.Name = "tag:yaml.org,2002:timestamp"
152 | /// "tag:yaml.org,2002:value" <http://yaml.org/type/value.html>
153 | public static let value: Tag.Name = "tag:yaml.org,2002:value"
| |- warning: static property 'value' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'value' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
154 | /// "tag:yaml.org,2002:yaml" <http://yaml.org/type/yaml.html> We don't support this.
155 | public static let yaml: Tag.Name = "tag:yaml.org,2002:yaml"
/host/spi-builder-workspace/Sources/Yams/Tag.swift:155:23: warning: static property 'yaml' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
:
153 | public static let value: Tag.Name = "tag:yaml.org,2002:value"
154 | /// "tag:yaml.org,2002:yaml" <http://yaml.org/type/yaml.html> We don't support this.
155 | public static let yaml: Tag.Name = "tag:yaml.org,2002:yaml"
| |- warning: static property 'yaml' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'yaml' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
156 | }
157 |
/host/spi-builder-workspace/Sources/Yams/YamlAnchorProviding.swift:25:16: warning: static property 'anchorKeyNode' is not concurrency-safe because non-'Sendable' type 'Node' may have shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | internal extension Node {
25 | static let anchorKeyNode: Self = .scalar(.init(YamlAnchorFunctionNameProvider().getName()))
| |- warning: static property 'anchorKeyNode' is not concurrency-safe because non-'Sendable' type 'Node' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'anchorKeyNode' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | }
27 |
/host/spi-builder-workspace/Sources/Yams/Node.swift:12:13: note: consider making enum 'Node' conform to the 'Sendable' protocol
10 |
11 | /// YAML Node.
12 | public enum Node: Hashable {
| `- note: consider making enum 'Node' conform to the 'Sendable' protocol
13 | /// Scalar node.
14 | case scalar(Scalar)
[20/29] Compiling Yams Node.Alias.swift
/host/spi-builder-workspace/Sources/Yams/Node.Alias.swift:55:16: warning: static property 'defaultTagName' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
53 |
54 | extension Node.Alias: TagResolvable {
55 | static let defaultTagName = Tag.Name.implicit
| |- warning: static property 'defaultTagName' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultTagName' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 | }
57 |
/host/spi-builder-workspace/Sources/Yams/Tag.swift:12:19: note: consider making struct 'Name' conform to the 'Sendable' protocol
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
/host/spi-builder-workspace/Sources/Yams/Node.Mapping.swift:142:16: warning: static property 'defaultTagName' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
140 |
141 | extension Node.Mapping: TagResolvable {
142 | static let defaultTagName = Tag.Name.map
| |- warning: static property 'defaultTagName' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultTagName' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
143 | }
144 |
/host/spi-builder-workspace/Sources/Yams/Tag.swift:12:19: note: consider making struct 'Name' conform to the 'Sendable' protocol
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
/host/spi-builder-workspace/Sources/Yams/Node.Scalar.swift:120:16: warning: static property 'defaultTagName' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
118 |
119 | extension Node.Scalar: TagResolvable {
120 | static let defaultTagName = Tag.Name.str
| |- warning: static property 'defaultTagName' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultTagName' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
121 | func resolveTag(using resolver: Resolver) -> Tag.Name {
122 | return tag.name == .implicit ? resolver.resolveTag(from: string) : tag.name
/host/spi-builder-workspace/Sources/Yams/Tag.swift:12:19: note: consider making struct 'Name' conform to the 'Sendable' protocol
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
[21/29] Compiling Yams Node.Mapping.swift
/host/spi-builder-workspace/Sources/Yams/Node.Alias.swift:55:16: warning: static property 'defaultTagName' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
53 |
54 | extension Node.Alias: TagResolvable {
55 | static let defaultTagName = Tag.Name.implicit
| |- warning: static property 'defaultTagName' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultTagName' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 | }
57 |
/host/spi-builder-workspace/Sources/Yams/Tag.swift:12:19: note: consider making struct 'Name' conform to the 'Sendable' protocol
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
/host/spi-builder-workspace/Sources/Yams/Node.Mapping.swift:142:16: warning: static property 'defaultTagName' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
140 |
141 | extension Node.Mapping: TagResolvable {
142 | static let defaultTagName = Tag.Name.map
| |- warning: static property 'defaultTagName' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultTagName' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
143 | }
144 |
/host/spi-builder-workspace/Sources/Yams/Tag.swift:12:19: note: consider making struct 'Name' conform to the 'Sendable' protocol
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
/host/spi-builder-workspace/Sources/Yams/Node.Scalar.swift:120:16: warning: static property 'defaultTagName' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
118 |
119 | extension Node.Scalar: TagResolvable {
120 | static let defaultTagName = Tag.Name.str
| |- warning: static property 'defaultTagName' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultTagName' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
121 | func resolveTag(using resolver: Resolver) -> Tag.Name {
122 | return tag.name == .implicit ? resolver.resolveTag(from: string) : tag.name
/host/spi-builder-workspace/Sources/Yams/Tag.swift:12:19: note: consider making struct 'Name' conform to the 'Sendable' protocol
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
[22/29] Compiling Yams Node.Scalar.swift
/host/spi-builder-workspace/Sources/Yams/Node.Alias.swift:55:16: warning: static property 'defaultTagName' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
53 |
54 | extension Node.Alias: TagResolvable {
55 | static let defaultTagName = Tag.Name.implicit
| |- warning: static property 'defaultTagName' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultTagName' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 | }
57 |
/host/spi-builder-workspace/Sources/Yams/Tag.swift:12:19: note: consider making struct 'Name' conform to the 'Sendable' protocol
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
/host/spi-builder-workspace/Sources/Yams/Node.Mapping.swift:142:16: warning: static property 'defaultTagName' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
140 |
141 | extension Node.Mapping: TagResolvable {
142 | static let defaultTagName = Tag.Name.map
| |- warning: static property 'defaultTagName' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultTagName' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
143 | }
144 |
/host/spi-builder-workspace/Sources/Yams/Tag.swift:12:19: note: consider making struct 'Name' conform to the 'Sendable' protocol
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
/host/spi-builder-workspace/Sources/Yams/Node.Scalar.swift:120:16: warning: static property 'defaultTagName' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
118 |
119 | extension Node.Scalar: TagResolvable {
120 | static let defaultTagName = Tag.Name.str
| |- warning: static property 'defaultTagName' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultTagName' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
121 | func resolveTag(using resolver: Resolver) -> Tag.Name {
122 | return tag.name == .implicit ? resolver.resolveTag(from: string) : tag.name
/host/spi-builder-workspace/Sources/Yams/Tag.swift:12:19: note: consider making struct 'Name' conform to the 'Sendable' protocol
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
[23/29] Compiling Yams Resolver.swift
/host/spi-builder-workspace/Sources/Yams/Resolver.swift:99:23: warning: static property 'basic' is not concurrency-safe because non-'Sendable' type 'Resolver' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | /// Class used to resolve nodes to tags based on customizable rules.
12 | public final class Resolver {
| `- note: class 'Resolver' does not conform to the 'Sendable' protocol
13 | /// Rule describing how to resolve tags from regex patterns.
14 | public struct Rule {
:
97 | extension Resolver {
98 | /// Resolver with no rules.
99 | public static let basic = Resolver()
| |- warning: static property 'basic' is not concurrency-safe because non-'Sendable' type 'Resolver' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'basic' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
100 | /// Resolver with a default set of rules.
101 | public static let `default` = Resolver([.bool, .int, .float, .merge, .null, .timestamp, .value])
/host/spi-builder-workspace/Sources/Yams/Resolver.swift:101:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Resolver' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | /// Class used to resolve nodes to tags based on customizable rules.
12 | public final class Resolver {
| `- note: class 'Resolver' does not conform to the 'Sendable' protocol
13 | /// Rule describing how to resolve tags from regex patterns.
14 | public struct Rule {
:
99 | public static let basic = Resolver()
100 | /// Resolver with a default set of rules.
101 | public static let `default` = Resolver([.bool, .int, .float, .merge, .null, .timestamp, .value])
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Resolver' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
102 | }
103 |
/host/spi-builder-workspace/Sources/Yams/Resolver.swift:110:23: warning: static property 'bool' is not concurrency-safe because non-'Sendable' type 'Resolver.Rule' may have shared mutable state; this is an error in the Swift 6 language mode
12 | public final class Resolver {
13 | /// Rule describing how to resolve tags from regex patterns.
14 | public struct Rule {
| `- note: consider making struct 'Rule' conform to the 'Sendable' protocol
15 | /// The tag name this rule applies to.
16 | public let tag: Tag.Name
:
108 |
109 | /// Default bool resolver rule.
110 | public static let bool = try! Resolver.Rule(.bool, """
| |- warning: static property 'bool' is not concurrency-safe because non-'Sendable' type 'Resolver.Rule' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'bool' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
111 | ^(?:yes|Yes|YES|no|No|NO\
112 | |true|True|TRUE|false|False|FALSE\
/host/spi-builder-workspace/Sources/Yams/Resolver.swift:117:23: warning: static property 'int' is not concurrency-safe because non-'Sendable' type 'Resolver.Rule' may have shared mutable state; this is an error in the Swift 6 language mode
12 | public final class Resolver {
13 | /// Rule describing how to resolve tags from regex patterns.
14 | public struct Rule {
| `- note: consider making struct 'Rule' conform to the 'Sendable' protocol
15 | /// The tag name this rule applies to.
16 | public let tag: Tag.Name
:
115 |
116 | /// Default int resolver rule.
117 | public static let int = try! Resolver.Rule(.int, """
| |- warning: static property 'int' is not concurrency-safe because non-'Sendable' type 'Resolver.Rule' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'int' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
118 | ^(?:[-+]?0b[0-1_]+\
119 | |[-+]?0o?[0-7_]+\
/host/spi-builder-workspace/Sources/Yams/Resolver.swift:126:23: warning: static property 'float' is not concurrency-safe because non-'Sendable' type 'Resolver.Rule' may have shared mutable state; this is an error in the Swift 6 language mode
12 | public final class Resolver {
13 | /// Rule describing how to resolve tags from regex patterns.
14 | public struct Rule {
| `- note: consider making struct 'Rule' conform to the 'Sendable' protocol
15 | /// The tag name this rule applies to.
16 | public let tag: Tag.Name
:
124 |
125 | /// Default float resolver rule.
126 | public static let float = try! Resolver.Rule(.float, """
| |- warning: static property 'float' is not concurrency-safe because non-'Sendable' type 'Resolver.Rule' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'float' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
127 | ^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?\
128 | |\\.[0-9_]+(?:[eE][-+][0-9]+)?\
/host/spi-builder-workspace/Sources/Yams/Resolver.swift:135:23: warning: static property 'merge' is not concurrency-safe because non-'Sendable' type 'Resolver.Rule' may have shared mutable state; this is an error in the Swift 6 language mode
12 | public final class Resolver {
13 | /// Rule describing how to resolve tags from regex patterns.
14 | public struct Rule {
| `- note: consider making struct 'Rule' conform to the 'Sendable' protocol
15 | /// The tag name this rule applies to.
16 | public let tag: Tag.Name
:
133 |
134 | /// Default merge resolver rule.
135 | public static let merge = try! Resolver.Rule(.merge, "^(?:<<)$")
| |- warning: static property 'merge' is not concurrency-safe because non-'Sendable' type 'Resolver.Rule' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'merge' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
136 |
137 | /// Default null resolver rule.
/host/spi-builder-workspace/Sources/Yams/Resolver.swift:138:23: warning: static property 'null' is not concurrency-safe because non-'Sendable' type 'Resolver.Rule' may have shared mutable state; this is an error in the Swift 6 language mode
12 | public final class Resolver {
13 | /// Rule describing how to resolve tags from regex patterns.
14 | public struct Rule {
| `- note: consider making struct 'Rule' conform to the 'Sendable' protocol
15 | /// The tag name this rule applies to.
16 | public let tag: Tag.Name
:
136 |
137 | /// Default null resolver rule.
138 | public static let null = try! Resolver.Rule(.null, """
| |- warning: static property 'null' is not concurrency-safe because non-'Sendable' type 'Resolver.Rule' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'null' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
139 | ^(?:~\
140 | |null|Null|NULL\
/host/spi-builder-workspace/Sources/Yams/Resolver.swift:145:23: warning: static property 'timestamp' is not concurrency-safe because non-'Sendable' type 'Resolver.Rule' may have shared mutable state; this is an error in the Swift 6 language mode
12 | public final class Resolver {
13 | /// Rule describing how to resolve tags from regex patterns.
14 | public struct Rule {
| `- note: consider making struct 'Rule' conform to the 'Sendable' protocol
15 | /// The tag name this rule applies to.
16 | public let tag: Tag.Name
:
143 |
144 | /// Default timestamp resolver rule.
145 | public static let timestamp = try! Resolver.Rule(.timestamp, """
| |- warning: static property 'timestamp' is not concurrency-safe because non-'Sendable' type 'Resolver.Rule' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'timestamp' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
146 | ^(?:[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]\
147 | |[0-9][0-9][0-9][0-9]-[0-9][0-9]?-[0-9][0-9]?\
/host/spi-builder-workspace/Sources/Yams/Resolver.swift:154:23: warning: static property 'value' is not concurrency-safe because non-'Sendable' type 'Resolver.Rule' may have shared mutable state; this is an error in the Swift 6 language mode
12 | public final class Resolver {
13 | /// Rule describing how to resolve tags from regex patterns.
14 | public struct Rule {
| `- note: consider making struct 'Rule' conform to the 'Sendable' protocol
15 | /// The tag name this rule applies to.
16 | public let tag: Tag.Name
:
152 |
153 | /// Default value resolver rule.
154 | public static let value = try! Resolver.Rule(.value, "^(?:=)$")
| |- warning: static property 'value' is not concurrency-safe because non-'Sendable' type 'Resolver.Rule' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'value' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
155 |
156 | // swiftlint:enable force_try
[24/29] Compiling Yams String+Yams.swift
/host/spi-builder-workspace/Sources/Yams/Resolver.swift:99:23: warning: static property 'basic' is not concurrency-safe because non-'Sendable' type 'Resolver' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | /// Class used to resolve nodes to tags based on customizable rules.
12 | public final class Resolver {
| `- note: class 'Resolver' does not conform to the 'Sendable' protocol
13 | /// Rule describing how to resolve tags from regex patterns.
14 | public struct Rule {
:
97 | extension Resolver {
98 | /// Resolver with no rules.
99 | public static let basic = Resolver()
| |- warning: static property 'basic' is not concurrency-safe because non-'Sendable' type 'Resolver' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'basic' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
100 | /// Resolver with a default set of rules.
101 | public static let `default` = Resolver([.bool, .int, .float, .merge, .null, .timestamp, .value])
/host/spi-builder-workspace/Sources/Yams/Resolver.swift:101:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Resolver' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | /// Class used to resolve nodes to tags based on customizable rules.
12 | public final class Resolver {
| `- note: class 'Resolver' does not conform to the 'Sendable' protocol
13 | /// Rule describing how to resolve tags from regex patterns.
14 | public struct Rule {
:
99 | public static let basic = Resolver()
100 | /// Resolver with a default set of rules.
101 | public static let `default` = Resolver([.bool, .int, .float, .merge, .null, .timestamp, .value])
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'Resolver' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
102 | }
103 |
/host/spi-builder-workspace/Sources/Yams/Resolver.swift:110:23: warning: static property 'bool' is not concurrency-safe because non-'Sendable' type 'Resolver.Rule' may have shared mutable state; this is an error in the Swift 6 language mode
12 | public final class Resolver {
13 | /// Rule describing how to resolve tags from regex patterns.
14 | public struct Rule {
| `- note: consider making struct 'Rule' conform to the 'Sendable' protocol
15 | /// The tag name this rule applies to.
16 | public let tag: Tag.Name
:
108 |
109 | /// Default bool resolver rule.
110 | public static let bool = try! Resolver.Rule(.bool, """
| |- warning: static property 'bool' is not concurrency-safe because non-'Sendable' type 'Resolver.Rule' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'bool' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
111 | ^(?:yes|Yes|YES|no|No|NO\
112 | |true|True|TRUE|false|False|FALSE\
/host/spi-builder-workspace/Sources/Yams/Resolver.swift:117:23: warning: static property 'int' is not concurrency-safe because non-'Sendable' type 'Resolver.Rule' may have shared mutable state; this is an error in the Swift 6 language mode
12 | public final class Resolver {
13 | /// Rule describing how to resolve tags from regex patterns.
14 | public struct Rule {
| `- note: consider making struct 'Rule' conform to the 'Sendable' protocol
15 | /// The tag name this rule applies to.
16 | public let tag: Tag.Name
:
115 |
116 | /// Default int resolver rule.
117 | public static let int = try! Resolver.Rule(.int, """
| |- warning: static property 'int' is not concurrency-safe because non-'Sendable' type 'Resolver.Rule' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'int' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
118 | ^(?:[-+]?0b[0-1_]+\
119 | |[-+]?0o?[0-7_]+\
/host/spi-builder-workspace/Sources/Yams/Resolver.swift:126:23: warning: static property 'float' is not concurrency-safe because non-'Sendable' type 'Resolver.Rule' may have shared mutable state; this is an error in the Swift 6 language mode
12 | public final class Resolver {
13 | /// Rule describing how to resolve tags from regex patterns.
14 | public struct Rule {
| `- note: consider making struct 'Rule' conform to the 'Sendable' protocol
15 | /// The tag name this rule applies to.
16 | public let tag: Tag.Name
:
124 |
125 | /// Default float resolver rule.
126 | public static let float = try! Resolver.Rule(.float, """
| |- warning: static property 'float' is not concurrency-safe because non-'Sendable' type 'Resolver.Rule' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'float' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
127 | ^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?\
128 | |\\.[0-9_]+(?:[eE][-+][0-9]+)?\
/host/spi-builder-workspace/Sources/Yams/Resolver.swift:135:23: warning: static property 'merge' is not concurrency-safe because non-'Sendable' type 'Resolver.Rule' may have shared mutable state; this is an error in the Swift 6 language mode
12 | public final class Resolver {
13 | /// Rule describing how to resolve tags from regex patterns.
14 | public struct Rule {
| `- note: consider making struct 'Rule' conform to the 'Sendable' protocol
15 | /// The tag name this rule applies to.
16 | public let tag: Tag.Name
:
133 |
134 | /// Default merge resolver rule.
135 | public static let merge = try! Resolver.Rule(.merge, "^(?:<<)$")
| |- warning: static property 'merge' is not concurrency-safe because non-'Sendable' type 'Resolver.Rule' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'merge' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
136 |
137 | /// Default null resolver rule.
/host/spi-builder-workspace/Sources/Yams/Resolver.swift:138:23: warning: static property 'null' is not concurrency-safe because non-'Sendable' type 'Resolver.Rule' may have shared mutable state; this is an error in the Swift 6 language mode
12 | public final class Resolver {
13 | /// Rule describing how to resolve tags from regex patterns.
14 | public struct Rule {
| `- note: consider making struct 'Rule' conform to the 'Sendable' protocol
15 | /// The tag name this rule applies to.
16 | public let tag: Tag.Name
:
136 |
137 | /// Default null resolver rule.
138 | public static let null = try! Resolver.Rule(.null, """
| |- warning: static property 'null' is not concurrency-safe because non-'Sendable' type 'Resolver.Rule' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'null' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
139 | ^(?:~\
140 | |null|Null|NULL\
/host/spi-builder-workspace/Sources/Yams/Resolver.swift:145:23: warning: static property 'timestamp' is not concurrency-safe because non-'Sendable' type 'Resolver.Rule' may have shared mutable state; this is an error in the Swift 6 language mode
12 | public final class Resolver {
13 | /// Rule describing how to resolve tags from regex patterns.
14 | public struct Rule {
| `- note: consider making struct 'Rule' conform to the 'Sendable' protocol
15 | /// The tag name this rule applies to.
16 | public let tag: Tag.Name
:
143 |
144 | /// Default timestamp resolver rule.
145 | public static let timestamp = try! Resolver.Rule(.timestamp, """
| |- warning: static property 'timestamp' is not concurrency-safe because non-'Sendable' type 'Resolver.Rule' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'timestamp' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
146 | ^(?:[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]\
147 | |[0-9][0-9][0-9][0-9]-[0-9][0-9]?-[0-9][0-9]?\
/host/spi-builder-workspace/Sources/Yams/Resolver.swift:154:23: warning: static property 'value' is not concurrency-safe because non-'Sendable' type 'Resolver.Rule' may have shared mutable state; this is an error in the Swift 6 language mode
12 | public final class Resolver {
13 | /// Rule describing how to resolve tags from regex patterns.
14 | public struct Rule {
| `- note: consider making struct 'Rule' conform to the 'Sendable' protocol
15 | /// The tag name this rule applies to.
16 | public let tag: Tag.Name
:
152 |
153 | /// Default value resolver rule.
154 | public static let value = try! Resolver.Rule(.value, "^(?:=)$")
| |- warning: static property 'value' is not concurrency-safe because non-'Sendable' type 'Resolver.Rule' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'value' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
155 |
156 | // swiftlint:enable force_try
[25/29] Compiling Yams Node.Sequence.swift
/host/spi-builder-workspace/Sources/Yams/Parser.swift:12:22: warning: using '@_implementationOnly' without enabling library evolution for 'Yams' may lead to instability during execution
10 |
11 | #if SWIFT_PACKAGE
12 | @_implementationOnly import CYaml
| `- warning: using '@_implementationOnly' without enabling library evolution for 'Yams' may lead to instability during execution
13 | #endif
14 | import Foundation
/host/spi-builder-workspace/Sources/Yams/Node.Sequence.swift:187:16: warning: static property 'defaultTagName' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
185 |
186 | extension Node.Sequence: TagResolvable {
187 | static let defaultTagName = Tag.Name.seq
| |- warning: static property 'defaultTagName' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultTagName' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
188 | }
189 |
/host/spi-builder-workspace/Sources/Yams/Tag.swift:12:19: note: consider making struct 'Name' conform to the 'Sendable' protocol
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
/host/spi-builder-workspace/Sources/Yams/Parser.swift:130:27: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
128 | /// This can be overridden by setting `YAMS_DEFAULT_ENCODING` to either `UTF8` or `UTF16`.
129 | /// This value is case insensitive.
130 | public static var `default`: Encoding = {
| |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
131 | let key = "YAMS_DEFAULT_ENCODING"
132 | if let yamsEncoding = ProcessInfo.processInfo.environment[key],
[26/29] Compiling Yams Node.swift
/host/spi-builder-workspace/Sources/Yams/Parser.swift:12:22: warning: using '@_implementationOnly' without enabling library evolution for 'Yams' may lead to instability during execution
10 |
11 | #if SWIFT_PACKAGE
12 | @_implementationOnly import CYaml
| `- warning: using '@_implementationOnly' without enabling library evolution for 'Yams' may lead to instability during execution
13 | #endif
14 | import Foundation
/host/spi-builder-workspace/Sources/Yams/Node.Sequence.swift:187:16: warning: static property 'defaultTagName' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
185 |
186 | extension Node.Sequence: TagResolvable {
187 | static let defaultTagName = Tag.Name.seq
| |- warning: static property 'defaultTagName' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultTagName' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
188 | }
189 |
/host/spi-builder-workspace/Sources/Yams/Tag.swift:12:19: note: consider making struct 'Name' conform to the 'Sendable' protocol
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
/host/spi-builder-workspace/Sources/Yams/Parser.swift:130:27: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
128 | /// This can be overridden by setting `YAMS_DEFAULT_ENCODING` to either `UTF8` or `UTF16`.
129 | /// This value is case insensitive.
130 | public static var `default`: Encoding = {
| |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
131 | let key = "YAMS_DEFAULT_ENCODING"
132 | if let yamsEncoding = ProcessInfo.processInfo.environment[key],
[27/29] Compiling Yams Parser.swift
/host/spi-builder-workspace/Sources/Yams/Parser.swift:12:22: warning: using '@_implementationOnly' without enabling library evolution for 'Yams' may lead to instability during execution
10 |
11 | #if SWIFT_PACKAGE
12 | @_implementationOnly import CYaml
| `- warning: using '@_implementationOnly' without enabling library evolution for 'Yams' may lead to instability during execution
13 | #endif
14 | import Foundation
/host/spi-builder-workspace/Sources/Yams/Node.Sequence.swift:187:16: warning: static property 'defaultTagName' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
185 |
186 | extension Node.Sequence: TagResolvable {
187 | static let defaultTagName = Tag.Name.seq
| |- warning: static property 'defaultTagName' is not concurrency-safe because non-'Sendable' type 'Tag.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultTagName' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
188 | }
189 |
/host/spi-builder-workspace/Sources/Yams/Tag.swift:12:19: note: consider making struct 'Name' conform to the 'Sendable' protocol
10 | public final class Tag {
11 | /// Tag name.
12 | public struct Name: RawRepresentable, Hashable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | /// This `Tag.Name`'s raw string value.
14 | public let rawValue: String
/host/spi-builder-workspace/Sources/Yams/Parser.swift:130:27: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
128 | /// This can be overridden by setting `YAMS_DEFAULT_ENCODING` to either `UTF8` or `UTF16`.
129 | /// This value is case insensitive.
130 | public static var `default`: Encoding = {
| |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
131 | let key = "YAMS_DEFAULT_ENCODING"
132 | if let yamsEncoding = ProcessInfo.processInfo.environment[key],
[28/29] Compiling Yams YamlError.swift
/host/spi-builder-workspace/Sources/Yams/YamlError.swift:10:22: warning: using '@_implementationOnly' without enabling library evolution for 'Yams' may lead to instability during execution
8 |
9 | #if SWIFT_PACKAGE
10 | @_implementationOnly import CYaml
| `- warning: using '@_implementationOnly' without enabling library evolution for 'Yams' may lead to instability during execution
11 | #endif
12 | import Foundation
/host/spi-builder-workspace/Sources/Yams/YamlError.swift:39:10: warning: associated value 'scanner(context:problem:_:yaml:)' of 'Sendable'-conforming enum 'YamlError' has non-sendable type 'YamlError.Context'; this is an error in the Swift 6 language mode
37 | /// - parameter mark: Problem position.
38 | /// - parameter yaml: YAML String which the problem occured while scanning.
39 | case scanner(context: Context?, problem: String, Mark, yaml: String)
| `- warning: associated value 'scanner(context:problem:_:yaml:)' of 'Sendable'-conforming enum 'YamlError' has non-sendable type 'YamlError.Context'; this is an error in the Swift 6 language mode
40 |
41 | /// `YAML_PARSER_ERROR`. Cannot parse the input stream.
:
83 |
84 | /// The error context.
85 | public struct Context: CustomStringConvertible {
| `- note: consider making struct 'Context' conform to the 'Sendable' protocol
86 | /// Context text.
87 | public let text: String
/host/spi-builder-workspace/Sources/Yams/YamlError.swift:39:10: warning: associated value 'scanner(context:problem:_:yaml:)' of 'Sendable'-conforming enum 'YamlError' has non-sendable type 'Mark'; this is an error in the Swift 6 language mode
37 | /// - parameter mark: Problem position.
38 | /// - parameter yaml: YAML String which the problem occured while scanning.
39 | case scanner(context: Context?, problem: String, Mark, yaml: String)
| `- warning: associated value 'scanner(context:problem:_:yaml:)' of 'Sendable'-conforming enum 'YamlError' has non-sendable type 'Mark'; this is an error in the Swift 6 language mode
40 |
41 | /// `YAML_PARSER_ERROR`. Cannot parse the input stream.
/host/spi-builder-workspace/Sources/Yams/Mark.swift:10:15: note: consider making struct 'Mark' conform to the 'Sendable' protocol
8 |
9 | /// The pointer position.
10 | public struct Mark {
| `- note: consider making struct 'Mark' conform to the 'Sendable' protocol
11 | /// Line number starting from 1.
12 | public let line: Int
/host/spi-builder-workspace/Sources/Yams/YamlError.swift:47:10: warning: associated value 'parser(context:problem:_:yaml:)' of 'Sendable'-conforming enum 'YamlError' has non-sendable type 'YamlError.Context'; this is an error in the Swift 6 language mode
45 | /// - parameter mark: Problem position.
46 | /// - parameter yaml: YAML String which the problem occured while parsing.
47 | case parser(context: Context?, problem: String, Mark, yaml: String)
| `- warning: associated value 'parser(context:problem:_:yaml:)' of 'Sendable'-conforming enum 'YamlError' has non-sendable type 'YamlError.Context'; this is an error in the Swift 6 language mode
48 |
49 | /// `YAML_COMPOSER_ERROR`. Cannot compose a YAML document.
:
83 |
84 | /// The error context.
85 | public struct Context: CustomStringConvertible {
| `- note: consider making struct 'Context' conform to the 'Sendable' protocol
86 | /// Context text.
87 | public let text: String
/host/spi-builder-workspace/Sources/Yams/YamlError.swift:47:10: warning: associated value 'parser(context:problem:_:yaml:)' of 'Sendable'-conforming enum 'YamlError' has non-sendable type 'Mark'; this is an error in the Swift 6 language mode
45 | /// - parameter mark: Problem position.
46 | /// - parameter yaml: YAML String which the problem occured while parsing.
47 | case parser(context: Context?, problem: String, Mark, yaml: String)
| `- warning: associated value 'parser(context:problem:_:yaml:)' of 'Sendable'-conforming enum 'YamlError' has non-sendable type 'Mark'; this is an error in the Swift 6 language mode
48 |
49 | /// `YAML_COMPOSER_ERROR`. Cannot compose a YAML document.
/host/spi-builder-workspace/Sources/Yams/Mark.swift:10:15: note: consider making struct 'Mark' conform to the 'Sendable' protocol
8 |
9 | /// The pointer position.
10 | public struct Mark {
| `- note: consider making struct 'Mark' conform to the 'Sendable' protocol
11 | /// Line number starting from 1.
12 | public let line: Int
/host/spi-builder-workspace/Sources/Yams/YamlError.swift:55:10: warning: associated value 'composer(context:problem:_:yaml:)' of 'Sendable'-conforming enum 'YamlError' has non-sendable type 'YamlError.Context'; this is an error in the Swift 6 language mode
53 | /// - parameter mark: Problem position.
54 | /// - parameter yaml: YAML String which the problem occured while composing.
55 | case composer(context: Context?, problem: String, Mark, yaml: String)
| `- warning: associated value 'composer(context:problem:_:yaml:)' of 'Sendable'-conforming enum 'YamlError' has non-sendable type 'YamlError.Context'; this is an error in the Swift 6 language mode
56 |
57 | // Used in `yaml_emitter_t`
:
83 |
84 | /// The error context.
85 | public struct Context: CustomStringConvertible {
| `- note: consider making struct 'Context' conform to the 'Sendable' protocol
86 | /// Context text.
87 | public let text: String
/host/spi-builder-workspace/Sources/Yams/YamlError.swift:55:10: warning: associated value 'composer(context:problem:_:yaml:)' of 'Sendable'-conforming enum 'YamlError' has non-sendable type 'Mark'; this is an error in the Swift 6 language mode
53 | /// - parameter mark: Problem position.
54 | /// - parameter yaml: YAML String which the problem occured while composing.
55 | case composer(context: Context?, problem: String, Mark, yaml: String)
| `- warning: associated value 'composer(context:problem:_:yaml:)' of 'Sendable'-conforming enum 'YamlError' has non-sendable type 'Mark'; this is an error in the Swift 6 language mode
56 |
57 | // Used in `yaml_emitter_t`
/host/spi-builder-workspace/Sources/Yams/Mark.swift:10:15: note: consider making struct 'Mark' conform to the 'Sendable' protocol
8 |
9 | /// The pointer position.
10 | public struct Mark {
| `- note: consider making struct 'Mark' conform to the 'Sendable' protocol
11 | /// Line number starting from 1.
12 | public let line: Int
/host/spi-builder-workspace/Sources/Yams/YamlError.swift:82:10: warning: associated value 'duplicatedKeysInMapping(duplicates:yaml:)' of 'Sendable'-conforming enum 'YamlError' has non-sendable type 'Node'; this is an error in the Swift 6 language mode
80 | /// - parameter duplicates: A dictionary keyed by the duplicated node value, with all nodes that duplicate the value
81 | /// - parameter yaml: YAML String which the problem occured while reading.
82 | case duplicatedKeysInMapping(duplicates: [Node: [Node]], yaml: String)
| `- warning: associated value 'duplicatedKeysInMapping(duplicates:yaml:)' of 'Sendable'-conforming enum 'YamlError' has non-sendable type 'Node'; this is an error in the Swift 6 language mode
83 |
84 | /// The error context.
/host/spi-builder-workspace/Sources/Yams/Node.swift:12:13: note: consider making enum 'Node' conform to the 'Sendable' protocol
10 |
11 | /// YAML Node.
12 | public enum Node: Hashable {
| `- note: consider making enum 'Node' conform to the 'Sendable' protocol
13 | /// Scalar node.
14 | case scalar(Scalar)
/host/spi-builder-workspace/Sources/Yams/YamlError.swift:82:10: warning: associated value 'duplicatedKeysInMapping(duplicates:yaml:)' of 'Sendable'-conforming enum 'YamlError' has non-sendable type 'Node'; this is an error in the Swift 6 language mode
80 | /// - parameter duplicates: A dictionary keyed by the duplicated node value, with all nodes that duplicate the value
81 | /// - parameter yaml: YAML String which the problem occured while reading.
82 | case duplicatedKeysInMapping(duplicates: [Node: [Node]], yaml: String)
| `- warning: associated value 'duplicatedKeysInMapping(duplicates:yaml:)' of 'Sendable'-conforming enum 'YamlError' has non-sendable type 'Node'; this is an error in the Swift 6 language mode
83 |
84 | /// The error context.
/host/spi-builder-workspace/Sources/Yams/Node.swift:12:13: note: consider making enum 'Node' conform to the 'Sendable' protocol
10 |
11 | /// YAML Node.
12 | public enum Node: Hashable {
| `- note: consider making enum 'Node' conform to the 'Sendable' protocol
13 | /// Scalar node.
14 | case scalar(Scalar)
/host/spi-builder-workspace/Sources/Yams/YamlTagProviding.swift:25:16: warning: static property 'tagKeyNode' is not concurrency-safe because non-'Sendable' type 'Node' may have shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | internal extension Node {
25 | static let tagKeyNode: Self = .scalar(.init(YamlTagFunctionNameProvider().getName()))
| |- warning: static property 'tagKeyNode' is not concurrency-safe because non-'Sendable' type 'Node' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'tagKeyNode' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | }
27 |
/host/spi-builder-workspace/Sources/Yams/Node.swift:12:13: note: consider making enum 'Node' conform to the 'Sendable' protocol
10 |
11 | /// YAML Node.
12 | public enum Node: Hashable {
| `- note: consider making enum 'Node' conform to the 'Sendable' protocol
13 | /// Scalar node.
14 | case scalar(Scalar)
[29/29] Compiling Yams YamlTagProviding.swift
/host/spi-builder-workspace/Sources/Yams/YamlError.swift:10:22: warning: using '@_implementationOnly' without enabling library evolution for 'Yams' may lead to instability during execution
8 |
9 | #if SWIFT_PACKAGE
10 | @_implementationOnly import CYaml
| `- warning: using '@_implementationOnly' without enabling library evolution for 'Yams' may lead to instability during execution
11 | #endif
12 | import Foundation
/host/spi-builder-workspace/Sources/Yams/YamlError.swift:39:10: warning: associated value 'scanner(context:problem:_:yaml:)' of 'Sendable'-conforming enum 'YamlError' has non-sendable type 'YamlError.Context'; this is an error in the Swift 6 language mode
37 | /// - parameter mark: Problem position.
38 | /// - parameter yaml: YAML String which the problem occured while scanning.
39 | case scanner(context: Context?, problem: String, Mark, yaml: String)
| `- warning: associated value 'scanner(context:problem:_:yaml:)' of 'Sendable'-conforming enum 'YamlError' has non-sendable type 'YamlError.Context'; this is an error in the Swift 6 language mode
40 |
41 | /// `YAML_PARSER_ERROR`. Cannot parse the input stream.
:
83 |
84 | /// The error context.
85 | public struct Context: CustomStringConvertible {
| `- note: consider making struct 'Context' conform to the 'Sendable' protocol
86 | /// Context text.
87 | public let text: String
/host/spi-builder-workspace/Sources/Yams/YamlError.swift:39:10: warning: associated value 'scanner(context:problem:_:yaml:)' of 'Sendable'-conforming enum 'YamlError' has non-sendable type 'Mark'; this is an error in the Swift 6 language mode
37 | /// - parameter mark: Problem position.
38 | /// - parameter yaml: YAML String which the problem occured while scanning.
39 | case scanner(context: Context?, problem: String, Mark, yaml: String)
| `- warning: associated value 'scanner(context:problem:_:yaml:)' of 'Sendable'-conforming enum 'YamlError' has non-sendable type 'Mark'; this is an error in the Swift 6 language mode
40 |
41 | /// `YAML_PARSER_ERROR`. Cannot parse the input stream.
/host/spi-builder-workspace/Sources/Yams/Mark.swift:10:15: note: consider making struct 'Mark' conform to the 'Sendable' protocol
8 |
9 | /// The pointer position.
10 | public struct Mark {
| `- note: consider making struct 'Mark' conform to the 'Sendable' protocol
11 | /// Line number starting from 1.
12 | public let line: Int
/host/spi-builder-workspace/Sources/Yams/YamlError.swift:47:10: warning: associated value 'parser(context:problem:_:yaml:)' of 'Sendable'-conforming enum 'YamlError' has non-sendable type 'YamlError.Context'; this is an error in the Swift 6 language mode
45 | /// - parameter mark: Problem position.
46 | /// - parameter yaml: YAML String which the problem occured while parsing.
47 | case parser(context: Context?, problem: String, Mark, yaml: String)
| `- warning: associated value 'parser(context:problem:_:yaml:)' of 'Sendable'-conforming enum 'YamlError' has non-sendable type 'YamlError.Context'; this is an error in the Swift 6 language mode
48 |
49 | /// `YAML_COMPOSER_ERROR`. Cannot compose a YAML document.
:
83 |
84 | /// The error context.
85 | public struct Context: CustomStringConvertible {
| `- note: consider making struct 'Context' conform to the 'Sendable' protocol
86 | /// Context text.
87 | public let text: String
/host/spi-builder-workspace/Sources/Yams/YamlError.swift:47:10: warning: associated value 'parser(context:problem:_:yaml:)' of 'Sendable'-conforming enum 'YamlError' has non-sendable type 'Mark'; this is an error in the Swift 6 language mode
45 | /// - parameter mark: Problem position.
46 | /// - parameter yaml: YAML String which the problem occured while parsing.
47 | case parser(context: Context?, problem: String, Mark, yaml: String)
| `- warning: associated value 'parser(context:problem:_:yaml:)' of 'Sendable'-conforming enum 'YamlError' has non-sendable type 'Mark'; this is an error in the Swift 6 language mode
48 |
49 | /// `YAML_COMPOSER_ERROR`. Cannot compose a YAML document.
/host/spi-builder-workspace/Sources/Yams/Mark.swift:10:15: note: consider making struct 'Mark' conform to the 'Sendable' protocol
8 |
9 | /// The pointer position.
10 | public struct Mark {
| `- note: consider making struct 'Mark' conform to the 'Sendable' protocol
11 | /// Line number starting from 1.
12 | public let line: Int
/host/spi-builder-workspace/Sources/Yams/YamlError.swift:55:10: warning: associated value 'composer(context:problem:_:yaml:)' of 'Sendable'-conforming enum 'YamlError' has non-sendable type 'YamlError.Context'; this is an error in the Swift 6 language mode
53 | /// - parameter mark: Problem position.
54 | /// - parameter yaml: YAML String which the problem occured while composing.
55 | case composer(context: Context?, problem: String, Mark, yaml: String)
| `- warning: associated value 'composer(context:problem:_:yaml:)' of 'Sendable'-conforming enum 'YamlError' has non-sendable type 'YamlError.Context'; this is an error in the Swift 6 language mode
56 |
57 | // Used in `yaml_emitter_t`
:
83 |
84 | /// The error context.
85 | public struct Context: CustomStringConvertible {
| `- note: consider making struct 'Context' conform to the 'Sendable' protocol
86 | /// Context text.
87 | public let text: String
/host/spi-builder-workspace/Sources/Yams/YamlError.swift:55:10: warning: associated value 'composer(context:problem:_:yaml:)' of 'Sendable'-conforming enum 'YamlError' has non-sendable type 'Mark'; this is an error in the Swift 6 language mode
53 | /// - parameter mark: Problem position.
54 | /// - parameter yaml: YAML String which the problem occured while composing.
55 | case composer(context: Context?, problem: String, Mark, yaml: String)
| `- warning: associated value 'composer(context:problem:_:yaml:)' of 'Sendable'-conforming enum 'YamlError' has non-sendable type 'Mark'; this is an error in the Swift 6 language mode
56 |
57 | // Used in `yaml_emitter_t`
/host/spi-builder-workspace/Sources/Yams/Mark.swift:10:15: note: consider making struct 'Mark' conform to the 'Sendable' protocol
8 |
9 | /// The pointer position.
10 | public struct Mark {
| `- note: consider making struct 'Mark' conform to the 'Sendable' protocol
11 | /// Line number starting from 1.
12 | public let line: Int
/host/spi-builder-workspace/Sources/Yams/YamlError.swift:82:10: warning: associated value 'duplicatedKeysInMapping(duplicates:yaml:)' of 'Sendable'-conforming enum 'YamlError' has non-sendable type 'Node'; this is an error in the Swift 6 language mode
80 | /// - parameter duplicates: A dictionary keyed by the duplicated node value, with all nodes that duplicate the value
81 | /// - parameter yaml: YAML String which the problem occured while reading.
82 | case duplicatedKeysInMapping(duplicates: [Node: [Node]], yaml: String)
| `- warning: associated value 'duplicatedKeysInMapping(duplicates:yaml:)' of 'Sendable'-conforming enum 'YamlError' has non-sendable type 'Node'; this is an error in the Swift 6 language mode
83 |
84 | /// The error context.
/host/spi-builder-workspace/Sources/Yams/Node.swift:12:13: note: consider making enum 'Node' conform to the 'Sendable' protocol
10 |
11 | /// YAML Node.
12 | public enum Node: Hashable {
| `- note: consider making enum 'Node' conform to the 'Sendable' protocol
13 | /// Scalar node.
14 | case scalar(Scalar)
/host/spi-builder-workspace/Sources/Yams/YamlError.swift:82:10: warning: associated value 'duplicatedKeysInMapping(duplicates:yaml:)' of 'Sendable'-conforming enum 'YamlError' has non-sendable type 'Node'; this is an error in the Swift 6 language mode
80 | /// - parameter duplicates: A dictionary keyed by the duplicated node value, with all nodes that duplicate the value
81 | /// - parameter yaml: YAML String which the problem occured while reading.
82 | case duplicatedKeysInMapping(duplicates: [Node: [Node]], yaml: String)
| `- warning: associated value 'duplicatedKeysInMapping(duplicates:yaml:)' of 'Sendable'-conforming enum 'YamlError' has non-sendable type 'Node'; this is an error in the Swift 6 language mode
83 |
84 | /// The error context.
/host/spi-builder-workspace/Sources/Yams/Node.swift:12:13: note: consider making enum 'Node' conform to the 'Sendable' protocol
10 |
11 | /// YAML Node.
12 | public enum Node: Hashable {
| `- note: consider making enum 'Node' conform to the 'Sendable' protocol
13 | /// Scalar node.
14 | case scalar(Scalar)
/host/spi-builder-workspace/Sources/Yams/YamlTagProviding.swift:25:16: warning: static property 'tagKeyNode' is not concurrency-safe because non-'Sendable' type 'Node' may have shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | internal extension Node {
25 | static let tagKeyNode: Self = .scalar(.init(YamlTagFunctionNameProvider().getName()))
| |- warning: static property 'tagKeyNode' is not concurrency-safe because non-'Sendable' type 'Node' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'tagKeyNode' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | }
27 |
/host/spi-builder-workspace/Sources/Yams/Node.swift:12:13: note: consider making enum 'Node' conform to the 'Sendable' protocol
10 |
11 | /// YAML Node.
12 | public enum Node: Hashable {
| `- note: consider making enum 'Node' conform to the 'Sendable' protocol
13 | /// Scalar node.
14 | case scalar(Scalar)
Build complete! (8.01s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Yams",
"name" : "Yams",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "Yams",
"targets" : [
"Yams"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "YamsTests",
"module_type" : "SwiftTarget",
"name" : "YamsTests",
"path" : "Tests/YamsTests",
"resources" : [
{
"path" : "/host/spi-builder-workspace/Tests/YamsTests/Fixtures/SourceKitten#289/debug.yaml",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"AliasingStrategyTests.swift",
"AnchorCodingTests.swift",
"AnchorTolerancesTests.swift",
"ConstructorTests.swift",
"EmitterTests.swift",
"EncoderTests.swift",
"MarkTests.swift",
"NodeDecoderTests.swift",
"NodeTests.swift",
"PerformanceTests.swift",
"RepresenterTests.swift",
"ResolverTests.swift",
"SpecTests.swift",
"StringTests.swift",
"TagCodingTests.swift",
"TagTolerancesTests.swift",
"TestHelper.swift",
"TopLevelDecoderTests.swift",
"YamlErrorTests.swift"
],
"target_dependencies" : [
"Yams"
],
"type" : "test"
},
{
"c99name" : "Yams",
"module_type" : "SwiftTarget",
"name" : "Yams",
"path" : "Sources/Yams",
"product_memberships" : [
"Yams"
],
"sources" : [
"Anchor.swift",
"Constructor.swift",
"Decoder.swift",
"Emitter.swift",
"Encoder.swift",
"Mark.swift",
"Node.Alias.swift",
"Node.Mapping.swift",
"Node.Scalar.swift",
"Node.Sequence.swift",
"Node.swift",
"Parser.swift",
"RedundancyAliasingStrategy.swift",
"Representer.swift",
"Resolver.swift",
"String+Yams.swift",
"Tag.swift",
"YamlAnchorProviding.swift",
"YamlError.swift",
"YamlTagProviding.swift"
],
"target_dependencies" : [
"CYaml"
],
"type" : "library"
},
{
"c99name" : "CYaml",
"module_type" : "ClangTarget",
"name" : "CYaml",
"path" : "Sources/CYaml",
"product_memberships" : [
"Yams"
],
"sources" : [
"src/api.c",
"src/emitter.c",
"src/parser.c",
"src/reader.c",
"src/scanner.c",
"src/writer.c"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Done.