Build Information
Successful build of Stencil with Swift 6.0 for Linux.
Swift 6 data race errors: 19
Build Command
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/stencilproject/Stencil.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/stencilproject/Stencil
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 1aeeced Merge pull request #342 from art-divin/master
Cloned https://github.com/stencilproject/Stencil.git
Revision (git rev-parse @):
1aeeced65dc9f4652b74887e0e14e666efbda78d
SUCCESS checkout https://github.com/stencilproject/Stencil.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $workDir
https://github.com/stencilproject/Stencil.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Fetching https://github.com/kylef/Spectre.git
Fetching https://github.com/kylef/PathKit.git
[1/1411] Fetching pathkit
[2/2432] Fetching pathkit, spectre
Fetched https://github.com/kylef/Spectre.git from cache (0.24s)
Fetched https://github.com/kylef/PathKit.git from cache (0.25s)
Computing version for https://github.com/kylef/Spectre.git
Computed https://github.com/kylef/Spectre.git at 0.10.1 (0.52s)
Computing version for https://github.com/kylef/PathKit.git
Computed https://github.com/kylef/PathKit.git at 1.0.1 (1.37s)
Creating working copy for https://github.com/kylef/PathKit.git
Working copy of https://github.com/kylef/PathKit.git resolved at 1.0.1
Creating working copy for https://github.com/kylef/Spectre.git
Working copy of https://github.com/kylef/Spectre.git resolved at 0.10.1
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/5] Emitting module PathKit
[5/5] Compiling PathKit PathKit.swift
[7/28] Emitting module Stencil
/host/spi-builder-workspace/Sources/Stencil/TrimBehaviour.swift:33:21: warning: static property 'nothing' is not concurrency-safe because non-'Sendable' type 'TrimBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | public struct TrimBehaviour: Equatable {
| `- note: consider making struct 'TrimBehaviour' conform to the 'Sendable' protocol
10 | var leading: Trim
11 | var trailing: Trim
:
31 |
32 | /// doesn't touch newlines
33 | public static let nothing = TrimBehaviour(leading: .nothing, trailing: .nothing)
| |- warning: static property 'nothing' is not concurrency-safe because non-'Sendable' type 'TrimBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nothing' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | /// removes whitespace before a block and whitespace and a single newline after a block
/host/spi-builder-workspace/Sources/Stencil/Errors.swift:7:14: warning: non-final class 'TemplateDoesNotExist' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
5 | //
6 |
7 | public class TemplateDoesNotExist: Error, CustomStringConvertible {
| `- warning: non-final class 'TemplateDoesNotExist' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
8 | let templateNames: [String]
9 | let loader: Loader?
/host/spi-builder-workspace/Sources/Stencil/Errors.swift:9:7: warning: stored property 'loader' of 'Sendable'-conforming class 'TemplateDoesNotExist' has non-sendable type '(any Loader)?'; this is an error in the Swift 6 language mode
7 | public class TemplateDoesNotExist: Error, CustomStringConvertible {
8 | let templateNames: [String]
9 | let loader: Loader?
| `- warning: stored property 'loader' of 'Sendable'-conforming class 'TemplateDoesNotExist' has non-sendable type '(any Loader)?'; this is an error in the Swift 6 language mode
10 |
11 | public init(templateNames: [String], loader: Loader? = nil) {
/host/spi-builder-workspace/Sources/Stencil/Loader.swift:11:17: note: protocol 'Loader' does not conform to the 'Sendable' protocol
9 |
10 | /// Type used for loading a template
11 | public protocol Loader {
| `- note: protocol 'Loader' does not conform to the 'Sendable' protocol
12 | /// Load a template with the given name
13 | func loadTemplate(name: String, environment: Environment) throws -> Template
/host/spi-builder-workspace/Sources/Stencil/Errors.swift:30:28: warning: stored property 'token' of 'Sendable'-conforming struct 'TemplateSyntaxError' has non-sendable type 'Token?'; this is an error in the Swift 6 language mode
28 | public let reason: String
29 | public var description: String { reason }
30 | public internal(set) var token: Token?
| `- warning: stored property 'token' of 'Sendable'-conforming struct 'TemplateSyntaxError' has non-sendable type 'Token?'; this is an error in the Swift 6 language mode
31 | public internal(set) var stackTrace: [Token]
32 | public var templateName: String? { token?.sourceMap.filename }
/host/spi-builder-workspace/Sources/Stencil/Tokenizer.swift:106:14: note: class 'Token' does not conform to the 'Sendable' protocol
104 | }
105 |
106 | public class Token: Equatable {
| `- note: class 'Token' does not conform to the 'Sendable' protocol
107 | public enum Kind: Equatable {
108 | /// A token representing a piece of text.
/host/spi-builder-workspace/Sources/Stencil/Errors.swift:31:28: warning: stored property 'stackTrace' of 'Sendable'-conforming struct 'TemplateSyntaxError' has non-sendable type '[Token]'; this is an error in the Swift 6 language mode
29 | public var description: String { reason }
30 | public internal(set) var token: Token?
31 | public internal(set) var stackTrace: [Token]
| `- warning: stored property 'stackTrace' of 'Sendable'-conforming struct 'TemplateSyntaxError' has non-sendable type '[Token]'; this is an error in the Swift 6 language mode
32 | public var templateName: String? { token?.sourceMap.filename }
33 | var allTokens: [Token] {
/host/spi-builder-workspace/Sources/Stencil/Tokenizer.swift:106:14: note: class 'Token' does not conform to the 'Sendable' protocol
104 | }
105 |
106 | public class Token: Equatable {
| `- note: class 'Token' does not conform to the 'Sendable' protocol
107 | public enum Kind: Equatable {
108 | /// A token representing a piece of text.
/host/spi-builder-workspace/Sources/Stencil/Lexer.swift:32:22: warning: static property 'behaviourMap' is not concurrency-safe because non-'Sendable' type '[Character : WhitespaceBehaviour.Behaviour]' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Characters controlling whitespace trimming behaviour
32 | private static let behaviourMap: [Character: WhitespaceBehaviour.Behaviour] = [
| |- warning: static property 'behaviourMap' is not concurrency-safe because non-'Sendable' type '[Character : WhitespaceBehaviour.Behaviour]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'behaviourMap' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | "+": .keep,
34 | "-": .trim
/host/spi-builder-workspace/Sources/Stencil/Tokenizer.swift:94:15: note: consider making enum 'Behaviour' conform to the 'Sendable' protocol
92 |
93 | public struct WhitespaceBehaviour: Equatable {
94 | public enum Behaviour {
| `- note: consider making enum 'Behaviour' conform to the 'Sendable' protocol
95 | case unspecified
96 | case trim
/host/spi-builder-workspace/Sources/Stencil/Loader.swift:122:7: warning: non-final class 'SuspiciousFileOperation' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
120 | }
121 |
122 | class SuspiciousFileOperation: Error {
| `- warning: non-final class 'SuspiciousFileOperation' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
123 | let basePath: Path
124 | let path: Path
/host/spi-builder-workspace/Sources/Stencil/Loader.swift:123:7: warning: stored property 'basePath' of 'Sendable'-conforming class 'SuspiciousFileOperation' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
121 |
122 | class SuspiciousFileOperation: Error {
123 | let basePath: Path
| `- warning: stored property 'basePath' of 'Sendable'-conforming class 'SuspiciousFileOperation' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
124 | let path: Path
125 |
/host/spi-builder-workspace/.build/checkouts/PathKit/Sources/PathKit.swift:17:15: note: struct 'Path' does not conform to the 'Sendable' protocol
15 |
16 | /// Represents a filesystem path.
17 | public struct Path {
| `- note: struct 'Path' does not conform to the 'Sendable' protocol
18 | /// The character used by the OS to separate two path elements
19 | public static let separator = "/"
/host/spi-builder-workspace/Sources/Stencil/Loader.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'PathKit'
6 |
7 | import Foundation
8 | import PathKit
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'PathKit'
9 |
10 | /// Type used for loading a template
/host/spi-builder-workspace/Sources/Stencil/Loader.swift:124:7: warning: stored property 'path' of 'Sendable'-conforming class 'SuspiciousFileOperation' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
122 | class SuspiciousFileOperation: Error {
123 | let basePath: Path
124 | let path: Path
| `- warning: stored property 'path' of 'Sendable'-conforming class 'SuspiciousFileOperation' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
125 |
126 | init(basePath: Path, path: Path) {
/host/spi-builder-workspace/.build/checkouts/PathKit/Sources/PathKit.swift:17:15: note: struct 'Path' does not conform to the 'Sendable' protocol
15 |
16 | /// Represents a filesystem path.
17 | public struct Path {
| `- note: struct 'Path' does not conform to the 'Sendable' protocol
18 | /// The character used by the OS to separate two path elements
19 | public static let separator = "/"
/host/spi-builder-workspace/Sources/Stencil/Tokenizer.swift:86:14: warning: static property 'unknown' is not concurrency-safe because non-'Sendable' type 'SourceMap' may have shared mutable state; this is an error in the Swift 6 language mode
75 | }
76 |
77 | public struct SourceMap: Equatable {
| `- note: consider making struct 'SourceMap' conform to the 'Sendable' protocol
78 | public let filename: String?
79 | public let location: ContentLocation
:
84 | }
85 |
86 | static let unknown = SourceMap()
| |- warning: static property 'unknown' is not concurrency-safe because non-'Sendable' type 'SourceMap' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unknown' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
87 |
88 | public static func == (lhs: SourceMap, rhs: SourceMap) -> Bool {
/host/spi-builder-workspace/Sources/Stencil/Tokenizer.swift:103:21: warning: static property 'unspecified' is not concurrency-safe because non-'Sendable' type 'WhitespaceBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
91 | }
92 |
93 | public struct WhitespaceBehaviour: Equatable {
| `- note: consider making struct 'WhitespaceBehaviour' conform to the 'Sendable' protocol
94 | public enum Behaviour {
95 | case unspecified
:
101 | let trailing: Behaviour
102 |
103 | public static let unspecified = WhitespaceBehaviour(leading: .unspecified, trailing: .unspecified)
| |- warning: static property 'unspecified' is not concurrency-safe because non-'Sendable' type 'WhitespaceBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unspecified' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
104 | }
105 |
/host/spi-builder-workspace/Sources/Stencil/TrimBehaviour.swift:36:21: warning: static property 'smart' is not concurrency-safe because non-'Sendable' type 'TrimBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | public struct TrimBehaviour: Equatable {
| `- note: consider making struct 'TrimBehaviour' conform to the 'Sendable' protocol
10 | var leading: Trim
11 | var trailing: Trim
:
34 |
35 | /// removes whitespace before a block and whitespace and a single newline after a block
36 | public static let smart = TrimBehaviour(leading: .whitespace, trailing: .whitespaceAndOneNewLine)
| |- warning: static property 'smart' is not concurrency-safe because non-'Sendable' type 'TrimBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'smart' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |
38 | /// removes all whitespace and newlines before and after a block
/host/spi-builder-workspace/Sources/Stencil/TrimBehaviour.swift:39:21: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TrimBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | public struct TrimBehaviour: Equatable {
| `- note: consider making struct 'TrimBehaviour' conform to the 'Sendable' protocol
10 | var leading: Trim
11 | var trailing: Trim
:
37 |
38 | /// removes all whitespace and newlines before and after a block
39 | public static let all = TrimBehaviour(leading: .whitespaceAndNewLines, trailing: .whitespaceAndNewLines)
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TrimBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 |
41 | static func leadingRegex(trim: Trim) -> NSRegularExpression {
/host/spi-builder-workspace/Sources/Stencil/TrimBehaviour.swift:68:22: warning: static property 'leadingWhitespaceAndNewlines' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression' may have shared mutable state; this is an error in the Swift 6 language mode
66 |
67 | // swiftlint:disable force_try
68 | private static let leadingWhitespaceAndNewlines = try! NSRegularExpression(pattern: "^\\s+")
| `- warning: static property 'leadingWhitespaceAndNewlines' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression' may have shared mutable state; this is an error in the Swift 6 language mode
69 | private static let trailingWhitespaceAndNewLines = try! NSRegularExpression(pattern: "\\s+$")
70 |
Foundation.NSRegularExpression:1:12: note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
1 | open class NSRegularExpression : NSObject, NSCopying, NSSecureCoding {
| `- note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
2 | override open func copy() -> Any
3 | open func copy(with zone: NSZone? = nil) -> Any
/host/spi-builder-workspace/Sources/Stencil/TrimBehaviour.swift:7:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
5 | //
6 |
7 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
8 |
9 | public struct TrimBehaviour: Equatable {
:
66 |
67 | // swiftlint:disable force_try
68 | private static let leadingWhitespaceAndNewlines = try! NSRegularExpression(pattern: "^\\s+")
| |- note: annotate 'leadingWhitespaceAndNewlines' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
69 | private static let trailingWhitespaceAndNewLines = try! NSRegularExpression(pattern: "\\s+$")
70 |
/host/spi-builder-workspace/Sources/Stencil/TrimBehaviour.swift:69:22: warning: static property 'trailingWhitespaceAndNewLines' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression' may have shared mutable state; this is an error in the Swift 6 language mode
67 | // swiftlint:disable force_try
68 | private static let leadingWhitespaceAndNewlines = try! NSRegularExpression(pattern: "^\\s+")
69 | private static let trailingWhitespaceAndNewLines = try! NSRegularExpression(pattern: "\\s+$")
| |- warning: static property 'trailingWhitespaceAndNewLines' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'trailingWhitespaceAndNewLines' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
70 |
71 | private static let leadingWhitespaceAndOneNewLine = try! NSRegularExpression(pattern: "^[ \t]*\n")
Foundation.NSRegularExpression:1:12: note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
1 | open class NSRegularExpression : NSObject, NSCopying, NSSecureCoding {
| `- note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
2 | override open func copy() -> Any
3 | open func copy(with zone: NSZone? = nil) -> Any
/host/spi-builder-workspace/Sources/Stencil/TrimBehaviour.swift:71:22: warning: static property 'leadingWhitespaceAndOneNewLine' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression' may have shared mutable state; this is an error in the Swift 6 language mode
69 | private static let trailingWhitespaceAndNewLines = try! NSRegularExpression(pattern: "\\s+$")
70 |
71 | private static let leadingWhitespaceAndOneNewLine = try! NSRegularExpression(pattern: "^[ \t]*\n")
| |- warning: static property 'leadingWhitespaceAndOneNewLine' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'leadingWhitespaceAndOneNewLine' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
72 | private static let trailingWhitespaceAndOneNewLine = try! NSRegularExpression(pattern: "\n[ \t]*$")
73 |
Foundation.NSRegularExpression:1:12: note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
1 | open class NSRegularExpression : NSObject, NSCopying, NSSecureCoding {
| `- note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
2 | override open func copy() -> Any
3 | open func copy(with zone: NSZone? = nil) -> Any
/host/spi-builder-workspace/Sources/Stencil/TrimBehaviour.swift:72:22: warning: static property 'trailingWhitespaceAndOneNewLine' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression' may have shared mutable state; this is an error in the Swift 6 language mode
70 |
71 | private static let leadingWhitespaceAndOneNewLine = try! NSRegularExpression(pattern: "^[ \t]*\n")
72 | private static let trailingWhitespaceAndOneNewLine = try! NSRegularExpression(pattern: "\n[ \t]*$")
| |- warning: static property 'trailingWhitespaceAndOneNewLine' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'trailingWhitespaceAndOneNewLine' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 |
74 | private static let leadingWhitespace = try! NSRegularExpression(pattern: "^[ \t]*")
Foundation.NSRegularExpression:1:12: note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
1 | open class NSRegularExpression : NSObject, NSCopying, NSSecureCoding {
| `- note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
2 | override open func copy() -> Any
3 | open func copy(with zone: NSZone? = nil) -> Any
/host/spi-builder-workspace/Sources/Stencil/TrimBehaviour.swift:74:22: warning: static property 'leadingWhitespace' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression' may have shared mutable state; this is an error in the Swift 6 language mode
72 | private static let trailingWhitespaceAndOneNewLine = try! NSRegularExpression(pattern: "\n[ \t]*$")
73 |
74 | private static let leadingWhitespace = try! NSRegularExpression(pattern: "^[ \t]*")
| |- warning: static property 'leadingWhitespace' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'leadingWhitespace' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
75 | private static let trailingWhitespace = try! NSRegularExpression(pattern: "[ \t]*$")
76 | }
Foundation.NSRegularExpression:1:12: note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
1 | open class NSRegularExpression : NSObject, NSCopying, NSSecureCoding {
| `- note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
2 | override open func copy() -> Any
3 | open func copy(with zone: NSZone? = nil) -> Any
/host/spi-builder-workspace/Sources/Stencil/TrimBehaviour.swift:75:22: warning: static property 'trailingWhitespace' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression' may have shared mutable state; this is an error in the Swift 6 language mode
73 |
74 | private static let leadingWhitespace = try! NSRegularExpression(pattern: "^[ \t]*")
75 | private static let trailingWhitespace = try! NSRegularExpression(pattern: "[ \t]*$")
| |- warning: static property 'trailingWhitespace' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'trailingWhitespace' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 | }
77 |
Foundation.NSRegularExpression:1:12: note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
1 | open class NSRegularExpression : NSObject, NSCopying, NSSecureCoding {
| `- note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
2 | override open func copy() -> Any
3 | open func copy(with zone: NSZone? = nil) -> Any
[8/30] Compiling Stencil Context.swift
/host/spi-builder-workspace/Sources/Stencil/TrimBehaviour.swift:33:21: warning: static property 'nothing' is not concurrency-safe because non-'Sendable' type 'TrimBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | public struct TrimBehaviour: Equatable {
| `- note: consider making struct 'TrimBehaviour' conform to the 'Sendable' protocol
10 | var leading: Trim
11 | var trailing: Trim
:
31 |
32 | /// doesn't touch newlines
33 | public static let nothing = TrimBehaviour(leading: .nothing, trailing: .nothing)
| |- warning: static property 'nothing' is not concurrency-safe because non-'Sendable' type 'TrimBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nothing' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | /// removes whitespace before a block and whitespace and a single newline after a block
[9/30] Compiling Stencil DynamicMemberLookup.swift
/host/spi-builder-workspace/Sources/Stencil/TrimBehaviour.swift:33:21: warning: static property 'nothing' is not concurrency-safe because non-'Sendable' type 'TrimBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | public struct TrimBehaviour: Equatable {
| `- note: consider making struct 'TrimBehaviour' conform to the 'Sendable' protocol
10 | var leading: Trim
11 | var trailing: Trim
:
31 |
32 | /// doesn't touch newlines
33 | public static let nothing = TrimBehaviour(leading: .nothing, trailing: .nothing)
| |- warning: static property 'nothing' is not concurrency-safe because non-'Sendable' type 'TrimBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nothing' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | /// removes whitespace before a block and whitespace and a single newline after a block
[10/30] Compiling Stencil Environment.swift
/host/spi-builder-workspace/Sources/Stencil/TrimBehaviour.swift:33:21: warning: static property 'nothing' is not concurrency-safe because non-'Sendable' type 'TrimBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | public struct TrimBehaviour: Equatable {
| `- note: consider making struct 'TrimBehaviour' conform to the 'Sendable' protocol
10 | var leading: Trim
11 | var trailing: Trim
:
31 |
32 | /// doesn't touch newlines
33 | public static let nothing = TrimBehaviour(leading: .nothing, trailing: .nothing)
| |- warning: static property 'nothing' is not concurrency-safe because non-'Sendable' type 'TrimBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nothing' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | /// removes whitespace before a block and whitespace and a single newline after a block
[11/30] Compiling Stencil IfTag.swift
[12/30] Compiling Stencil Include.swift
[13/30] Compiling Stencil Inheritance.swift
[14/30] Compiling Stencil FilterTag.swift
[15/30] Compiling Stencil Filters.swift
[16/30] Compiling Stencil ForTag.swift
[17/30] Compiling Stencil Errors.swift
/host/spi-builder-workspace/Sources/Stencil/Errors.swift:7:14: warning: non-final class 'TemplateDoesNotExist' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
5 | //
6 |
7 | public class TemplateDoesNotExist: Error, CustomStringConvertible {
| `- warning: non-final class 'TemplateDoesNotExist' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
8 | let templateNames: [String]
9 | let loader: Loader?
/host/spi-builder-workspace/Sources/Stencil/Errors.swift:9:7: warning: stored property 'loader' of 'Sendable'-conforming class 'TemplateDoesNotExist' has non-sendable type '(any Loader)?'; this is an error in the Swift 6 language mode
7 | public class TemplateDoesNotExist: Error, CustomStringConvertible {
8 | let templateNames: [String]
9 | let loader: Loader?
| `- warning: stored property 'loader' of 'Sendable'-conforming class 'TemplateDoesNotExist' has non-sendable type '(any Loader)?'; this is an error in the Swift 6 language mode
10 |
11 | public init(templateNames: [String], loader: Loader? = nil) {
/host/spi-builder-workspace/Sources/Stencil/Loader.swift:11:17: note: protocol 'Loader' does not conform to the 'Sendable' protocol
9 |
10 | /// Type used for loading a template
11 | public protocol Loader {
| `- note: protocol 'Loader' does not conform to the 'Sendable' protocol
12 | /// Load a template with the given name
13 | func loadTemplate(name: String, environment: Environment) throws -> Template
/host/spi-builder-workspace/Sources/Stencil/Errors.swift:30:28: warning: stored property 'token' of 'Sendable'-conforming struct 'TemplateSyntaxError' has non-sendable type 'Token?'; this is an error in the Swift 6 language mode
28 | public let reason: String
29 | public var description: String { reason }
30 | public internal(set) var token: Token?
| `- warning: stored property 'token' of 'Sendable'-conforming struct 'TemplateSyntaxError' has non-sendable type 'Token?'; this is an error in the Swift 6 language mode
31 | public internal(set) var stackTrace: [Token]
32 | public var templateName: String? { token?.sourceMap.filename }
/host/spi-builder-workspace/Sources/Stencil/Tokenizer.swift:106:14: note: class 'Token' does not conform to the 'Sendable' protocol
104 | }
105 |
106 | public class Token: Equatable {
| `- note: class 'Token' does not conform to the 'Sendable' protocol
107 | public enum Kind: Equatable {
108 | /// A token representing a piece of text.
/host/spi-builder-workspace/Sources/Stencil/Errors.swift:31:28: warning: stored property 'stackTrace' of 'Sendable'-conforming struct 'TemplateSyntaxError' has non-sendable type '[Token]'; this is an error in the Swift 6 language mode
29 | public var description: String { reason }
30 | public internal(set) var token: Token?
31 | public internal(set) var stackTrace: [Token]
| `- warning: stored property 'stackTrace' of 'Sendable'-conforming struct 'TemplateSyntaxError' has non-sendable type '[Token]'; this is an error in the Swift 6 language mode
32 | public var templateName: String? { token?.sourceMap.filename }
33 | var allTokens: [Token] {
/host/spi-builder-workspace/Sources/Stencil/Tokenizer.swift:106:14: note: class 'Token' does not conform to the 'Sendable' protocol
104 | }
105 |
106 | public class Token: Equatable {
| `- note: class 'Token' does not conform to the 'Sendable' protocol
107 | public enum Kind: Equatable {
108 | /// A token representing a piece of text.
[18/30] Compiling Stencil Expression.swift
/host/spi-builder-workspace/Sources/Stencil/Errors.swift:7:14: warning: non-final class 'TemplateDoesNotExist' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
5 | //
6 |
7 | public class TemplateDoesNotExist: Error, CustomStringConvertible {
| `- warning: non-final class 'TemplateDoesNotExist' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
8 | let templateNames: [String]
9 | let loader: Loader?
/host/spi-builder-workspace/Sources/Stencil/Errors.swift:9:7: warning: stored property 'loader' of 'Sendable'-conforming class 'TemplateDoesNotExist' has non-sendable type '(any Loader)?'; this is an error in the Swift 6 language mode
7 | public class TemplateDoesNotExist: Error, CustomStringConvertible {
8 | let templateNames: [String]
9 | let loader: Loader?
| `- warning: stored property 'loader' of 'Sendable'-conforming class 'TemplateDoesNotExist' has non-sendable type '(any Loader)?'; this is an error in the Swift 6 language mode
10 |
11 | public init(templateNames: [String], loader: Loader? = nil) {
/host/spi-builder-workspace/Sources/Stencil/Loader.swift:11:17: note: protocol 'Loader' does not conform to the 'Sendable' protocol
9 |
10 | /// Type used for loading a template
11 | public protocol Loader {
| `- note: protocol 'Loader' does not conform to the 'Sendable' protocol
12 | /// Load a template with the given name
13 | func loadTemplate(name: String, environment: Environment) throws -> Template
/host/spi-builder-workspace/Sources/Stencil/Errors.swift:30:28: warning: stored property 'token' of 'Sendable'-conforming struct 'TemplateSyntaxError' has non-sendable type 'Token?'; this is an error in the Swift 6 language mode
28 | public let reason: String
29 | public var description: String { reason }
30 | public internal(set) var token: Token?
| `- warning: stored property 'token' of 'Sendable'-conforming struct 'TemplateSyntaxError' has non-sendable type 'Token?'; this is an error in the Swift 6 language mode
31 | public internal(set) var stackTrace: [Token]
32 | public var templateName: String? { token?.sourceMap.filename }
/host/spi-builder-workspace/Sources/Stencil/Tokenizer.swift:106:14: note: class 'Token' does not conform to the 'Sendable' protocol
104 | }
105 |
106 | public class Token: Equatable {
| `- note: class 'Token' does not conform to the 'Sendable' protocol
107 | public enum Kind: Equatable {
108 | /// A token representing a piece of text.
/host/spi-builder-workspace/Sources/Stencil/Errors.swift:31:28: warning: stored property 'stackTrace' of 'Sendable'-conforming struct 'TemplateSyntaxError' has non-sendable type '[Token]'; this is an error in the Swift 6 language mode
29 | public var description: String { reason }
30 | public internal(set) var token: Token?
31 | public internal(set) var stackTrace: [Token]
| `- warning: stored property 'stackTrace' of 'Sendable'-conforming struct 'TemplateSyntaxError' has non-sendable type '[Token]'; this is an error in the Swift 6 language mode
32 | public var templateName: String? { token?.sourceMap.filename }
33 | var allTokens: [Token] {
/host/spi-builder-workspace/Sources/Stencil/Tokenizer.swift:106:14: note: class 'Token' does not conform to the 'Sendable' protocol
104 | }
105 |
106 | public class Token: Equatable {
| `- note: class 'Token' does not conform to the 'Sendable' protocol
107 | public enum Kind: Equatable {
108 | /// A token representing a piece of text.
[19/30] Compiling Stencil Extension.swift
/host/spi-builder-workspace/Sources/Stencil/Errors.swift:7:14: warning: non-final class 'TemplateDoesNotExist' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
5 | //
6 |
7 | public class TemplateDoesNotExist: Error, CustomStringConvertible {
| `- warning: non-final class 'TemplateDoesNotExist' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
8 | let templateNames: [String]
9 | let loader: Loader?
/host/spi-builder-workspace/Sources/Stencil/Errors.swift:9:7: warning: stored property 'loader' of 'Sendable'-conforming class 'TemplateDoesNotExist' has non-sendable type '(any Loader)?'; this is an error in the Swift 6 language mode
7 | public class TemplateDoesNotExist: Error, CustomStringConvertible {
8 | let templateNames: [String]
9 | let loader: Loader?
| `- warning: stored property 'loader' of 'Sendable'-conforming class 'TemplateDoesNotExist' has non-sendable type '(any Loader)?'; this is an error in the Swift 6 language mode
10 |
11 | public init(templateNames: [String], loader: Loader? = nil) {
/host/spi-builder-workspace/Sources/Stencil/Loader.swift:11:17: note: protocol 'Loader' does not conform to the 'Sendable' protocol
9 |
10 | /// Type used for loading a template
11 | public protocol Loader {
| `- note: protocol 'Loader' does not conform to the 'Sendable' protocol
12 | /// Load a template with the given name
13 | func loadTemplate(name: String, environment: Environment) throws -> Template
/host/spi-builder-workspace/Sources/Stencil/Errors.swift:30:28: warning: stored property 'token' of 'Sendable'-conforming struct 'TemplateSyntaxError' has non-sendable type 'Token?'; this is an error in the Swift 6 language mode
28 | public let reason: String
29 | public var description: String { reason }
30 | public internal(set) var token: Token?
| `- warning: stored property 'token' of 'Sendable'-conforming struct 'TemplateSyntaxError' has non-sendable type 'Token?'; this is an error in the Swift 6 language mode
31 | public internal(set) var stackTrace: [Token]
32 | public var templateName: String? { token?.sourceMap.filename }
/host/spi-builder-workspace/Sources/Stencil/Tokenizer.swift:106:14: note: class 'Token' does not conform to the 'Sendable' protocol
104 | }
105 |
106 | public class Token: Equatable {
| `- note: class 'Token' does not conform to the 'Sendable' protocol
107 | public enum Kind: Equatable {
108 | /// A token representing a piece of text.
/host/spi-builder-workspace/Sources/Stencil/Errors.swift:31:28: warning: stored property 'stackTrace' of 'Sendable'-conforming struct 'TemplateSyntaxError' has non-sendable type '[Token]'; this is an error in the Swift 6 language mode
29 | public var description: String { reason }
30 | public internal(set) var token: Token?
31 | public internal(set) var stackTrace: [Token]
| `- warning: stored property 'stackTrace' of 'Sendable'-conforming struct 'TemplateSyntaxError' has non-sendable type '[Token]'; this is an error in the Swift 6 language mode
32 | public var templateName: String? { token?.sourceMap.filename }
33 | var allTokens: [Token] {
/host/spi-builder-workspace/Sources/Stencil/Tokenizer.swift:106:14: note: class 'Token' does not conform to the 'Sendable' protocol
104 | }
105 |
106 | public class Token: Equatable {
| `- note: class 'Token' does not conform to the 'Sendable' protocol
107 | public enum Kind: Equatable {
108 | /// A token representing a piece of text.
[20/30] Compiling Stencil Loader.swift
/host/spi-builder-workspace/Sources/Stencil/Loader.swift:122:7: warning: non-final class 'SuspiciousFileOperation' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
120 | }
121 |
122 | class SuspiciousFileOperation: Error {
| `- warning: non-final class 'SuspiciousFileOperation' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
123 | let basePath: Path
124 | let path: Path
/host/spi-builder-workspace/Sources/Stencil/Loader.swift:123:7: warning: stored property 'basePath' of 'Sendable'-conforming class 'SuspiciousFileOperation' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
121 |
122 | class SuspiciousFileOperation: Error {
123 | let basePath: Path
| `- warning: stored property 'basePath' of 'Sendable'-conforming class 'SuspiciousFileOperation' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
124 | let path: Path
125 |
/host/spi-builder-workspace/.build/checkouts/PathKit/Sources/PathKit.swift:17:15: note: struct 'Path' does not conform to the 'Sendable' protocol
15 |
16 | /// Represents a filesystem path.
17 | public struct Path {
| `- note: struct 'Path' does not conform to the 'Sendable' protocol
18 | /// The character used by the OS to separate two path elements
19 | public static let separator = "/"
/host/spi-builder-workspace/Sources/Stencil/Loader.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'PathKit'
6 |
7 | import Foundation
8 | import PathKit
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'PathKit'
9 |
10 | /// Type used for loading a template
/host/spi-builder-workspace/Sources/Stencil/Loader.swift:124:7: warning: stored property 'path' of 'Sendable'-conforming class 'SuspiciousFileOperation' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
122 | class SuspiciousFileOperation: Error {
123 | let basePath: Path
124 | let path: Path
| `- warning: stored property 'path' of 'Sendable'-conforming class 'SuspiciousFileOperation' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
125 |
126 | init(basePath: Path, path: Path) {
/host/spi-builder-workspace/.build/checkouts/PathKit/Sources/PathKit.swift:17:15: note: struct 'Path' does not conform to the 'Sendable' protocol
15 |
16 | /// Represents a filesystem path.
17 | public struct Path {
| `- note: struct 'Path' does not conform to the 'Sendable' protocol
18 | /// The character used by the OS to separate two path elements
19 | public static let separator = "/"
/host/spi-builder-workspace/Sources/Stencil/TrimBehaviour.swift:33:21: warning: static property 'nothing' is not concurrency-safe because non-'Sendable' type 'TrimBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | public struct TrimBehaviour: Equatable {
| `- note: consider making struct 'TrimBehaviour' conform to the 'Sendable' protocol
10 | var leading: Trim
11 | var trailing: Trim
:
31 |
32 | /// doesn't touch newlines
33 | public static let nothing = TrimBehaviour(leading: .nothing, trailing: .nothing)
| |- warning: static property 'nothing' is not concurrency-safe because non-'Sendable' type 'TrimBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nothing' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | /// removes whitespace before a block and whitespace and a single newline after a block
[21/30] Compiling Stencil Node.swift
/host/spi-builder-workspace/Sources/Stencil/Loader.swift:122:7: warning: non-final class 'SuspiciousFileOperation' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
120 | }
121 |
122 | class SuspiciousFileOperation: Error {
| `- warning: non-final class 'SuspiciousFileOperation' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
123 | let basePath: Path
124 | let path: Path
/host/spi-builder-workspace/Sources/Stencil/Loader.swift:123:7: warning: stored property 'basePath' of 'Sendable'-conforming class 'SuspiciousFileOperation' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
121 |
122 | class SuspiciousFileOperation: Error {
123 | let basePath: Path
| `- warning: stored property 'basePath' of 'Sendable'-conforming class 'SuspiciousFileOperation' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
124 | let path: Path
125 |
/host/spi-builder-workspace/.build/checkouts/PathKit/Sources/PathKit.swift:17:15: note: struct 'Path' does not conform to the 'Sendable' protocol
15 |
16 | /// Represents a filesystem path.
17 | public struct Path {
| `- note: struct 'Path' does not conform to the 'Sendable' protocol
18 | /// The character used by the OS to separate two path elements
19 | public static let separator = "/"
/host/spi-builder-workspace/Sources/Stencil/Loader.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'PathKit'
6 |
7 | import Foundation
8 | import PathKit
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'PathKit'
9 |
10 | /// Type used for loading a template
/host/spi-builder-workspace/Sources/Stencil/Loader.swift:124:7: warning: stored property 'path' of 'Sendable'-conforming class 'SuspiciousFileOperation' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
122 | class SuspiciousFileOperation: Error {
123 | let basePath: Path
124 | let path: Path
| `- warning: stored property 'path' of 'Sendable'-conforming class 'SuspiciousFileOperation' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
125 |
126 | init(basePath: Path, path: Path) {
/host/spi-builder-workspace/.build/checkouts/PathKit/Sources/PathKit.swift:17:15: note: struct 'Path' does not conform to the 'Sendable' protocol
15 |
16 | /// Represents a filesystem path.
17 | public struct Path {
| `- note: struct 'Path' does not conform to the 'Sendable' protocol
18 | /// The character used by the OS to separate two path elements
19 | public static let separator = "/"
/host/spi-builder-workspace/Sources/Stencil/TrimBehaviour.swift:33:21: warning: static property 'nothing' is not concurrency-safe because non-'Sendable' type 'TrimBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | public struct TrimBehaviour: Equatable {
| `- note: consider making struct 'TrimBehaviour' conform to the 'Sendable' protocol
10 | var leading: Trim
11 | var trailing: Trim
:
31 |
32 | /// doesn't touch newlines
33 | public static let nothing = TrimBehaviour(leading: .nothing, trailing: .nothing)
| |- warning: static property 'nothing' is not concurrency-safe because non-'Sendable' type 'TrimBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nothing' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | /// removes whitespace before a block and whitespace and a single newline after a block
[22/30] Compiling Stencil NowTag.swift
/host/spi-builder-workspace/Sources/Stencil/Loader.swift:122:7: warning: non-final class 'SuspiciousFileOperation' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
120 | }
121 |
122 | class SuspiciousFileOperation: Error {
| `- warning: non-final class 'SuspiciousFileOperation' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
123 | let basePath: Path
124 | let path: Path
/host/spi-builder-workspace/Sources/Stencil/Loader.swift:123:7: warning: stored property 'basePath' of 'Sendable'-conforming class 'SuspiciousFileOperation' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
121 |
122 | class SuspiciousFileOperation: Error {
123 | let basePath: Path
| `- warning: stored property 'basePath' of 'Sendable'-conforming class 'SuspiciousFileOperation' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
124 | let path: Path
125 |
/host/spi-builder-workspace/.build/checkouts/PathKit/Sources/PathKit.swift:17:15: note: struct 'Path' does not conform to the 'Sendable' protocol
15 |
16 | /// Represents a filesystem path.
17 | public struct Path {
| `- note: struct 'Path' does not conform to the 'Sendable' protocol
18 | /// The character used by the OS to separate two path elements
19 | public static let separator = "/"
/host/spi-builder-workspace/Sources/Stencil/Loader.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'PathKit'
6 |
7 | import Foundation
8 | import PathKit
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'PathKit'
9 |
10 | /// Type used for loading a template
/host/spi-builder-workspace/Sources/Stencil/Loader.swift:124:7: warning: stored property 'path' of 'Sendable'-conforming class 'SuspiciousFileOperation' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
122 | class SuspiciousFileOperation: Error {
123 | let basePath: Path
124 | let path: Path
| `- warning: stored property 'path' of 'Sendable'-conforming class 'SuspiciousFileOperation' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
125 |
126 | init(basePath: Path, path: Path) {
/host/spi-builder-workspace/.build/checkouts/PathKit/Sources/PathKit.swift:17:15: note: struct 'Path' does not conform to the 'Sendable' protocol
15 |
16 | /// Represents a filesystem path.
17 | public struct Path {
| `- note: struct 'Path' does not conform to the 'Sendable' protocol
18 | /// The character used by the OS to separate two path elements
19 | public static let separator = "/"
/host/spi-builder-workspace/Sources/Stencil/TrimBehaviour.swift:33:21: warning: static property 'nothing' is not concurrency-safe because non-'Sendable' type 'TrimBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | public struct TrimBehaviour: Equatable {
| `- note: consider making struct 'TrimBehaviour' conform to the 'Sendable' protocol
10 | var leading: Trim
11 | var trailing: Trim
:
31 |
32 | /// doesn't touch newlines
33 | public static let nothing = TrimBehaviour(leading: .nothing, trailing: .nothing)
| |- warning: static property 'nothing' is not concurrency-safe because non-'Sendable' type 'TrimBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nothing' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | /// removes whitespace before a block and whitespace and a single newline after a block
[23/30] Compiling Stencil Parser.swift
/host/spi-builder-workspace/Sources/Stencil/TrimBehaviour.swift:33:21: warning: static property 'nothing' is not concurrency-safe because non-'Sendable' type 'TrimBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | public struct TrimBehaviour: Equatable {
| `- note: consider making struct 'TrimBehaviour' conform to the 'Sendable' protocol
10 | var leading: Trim
11 | var trailing: Trim
:
31 |
32 | /// doesn't touch newlines
33 | public static let nothing = TrimBehaviour(leading: .nothing, trailing: .nothing)
| |- warning: static property 'nothing' is not concurrency-safe because non-'Sendable' type 'TrimBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nothing' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | /// removes whitespace before a block and whitespace and a single newline after a block
/host/spi-builder-workspace/Sources/Stencil/Tokenizer.swift:86:14: warning: static property 'unknown' is not concurrency-safe because non-'Sendable' type 'SourceMap' may have shared mutable state; this is an error in the Swift 6 language mode
75 | }
76 |
77 | public struct SourceMap: Equatable {
| `- note: consider making struct 'SourceMap' conform to the 'Sendable' protocol
78 | public let filename: String?
79 | public let location: ContentLocation
:
84 | }
85 |
86 | static let unknown = SourceMap()
| |- warning: static property 'unknown' is not concurrency-safe because non-'Sendable' type 'SourceMap' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unknown' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
87 |
88 | public static func == (lhs: SourceMap, rhs: SourceMap) -> Bool {
/host/spi-builder-workspace/Sources/Stencil/Tokenizer.swift:103:21: warning: static property 'unspecified' is not concurrency-safe because non-'Sendable' type 'WhitespaceBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
91 | }
92 |
93 | public struct WhitespaceBehaviour: Equatable {
| `- note: consider making struct 'WhitespaceBehaviour' conform to the 'Sendable' protocol
94 | public enum Behaviour {
95 | case unspecified
:
101 | let trailing: Behaviour
102 |
103 | public static let unspecified = WhitespaceBehaviour(leading: .unspecified, trailing: .unspecified)
| |- warning: static property 'unspecified' is not concurrency-safe because non-'Sendable' type 'WhitespaceBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unspecified' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
104 | }
105 |
[24/30] Compiling Stencil Template.swift
/host/spi-builder-workspace/Sources/Stencil/TrimBehaviour.swift:33:21: warning: static property 'nothing' is not concurrency-safe because non-'Sendable' type 'TrimBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | public struct TrimBehaviour: Equatable {
| `- note: consider making struct 'TrimBehaviour' conform to the 'Sendable' protocol
10 | var leading: Trim
11 | var trailing: Trim
:
31 |
32 | /// doesn't touch newlines
33 | public static let nothing = TrimBehaviour(leading: .nothing, trailing: .nothing)
| |- warning: static property 'nothing' is not concurrency-safe because non-'Sendable' type 'TrimBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nothing' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | /// removes whitespace before a block and whitespace and a single newline after a block
/host/spi-builder-workspace/Sources/Stencil/Tokenizer.swift:86:14: warning: static property 'unknown' is not concurrency-safe because non-'Sendable' type 'SourceMap' may have shared mutable state; this is an error in the Swift 6 language mode
75 | }
76 |
77 | public struct SourceMap: Equatable {
| `- note: consider making struct 'SourceMap' conform to the 'Sendable' protocol
78 | public let filename: String?
79 | public let location: ContentLocation
:
84 | }
85 |
86 | static let unknown = SourceMap()
| |- warning: static property 'unknown' is not concurrency-safe because non-'Sendable' type 'SourceMap' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unknown' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
87 |
88 | public static func == (lhs: SourceMap, rhs: SourceMap) -> Bool {
/host/spi-builder-workspace/Sources/Stencil/Tokenizer.swift:103:21: warning: static property 'unspecified' is not concurrency-safe because non-'Sendable' type 'WhitespaceBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
91 | }
92 |
93 | public struct WhitespaceBehaviour: Equatable {
| `- note: consider making struct 'WhitespaceBehaviour' conform to the 'Sendable' protocol
94 | public enum Behaviour {
95 | case unspecified
:
101 | let trailing: Behaviour
102 |
103 | public static let unspecified = WhitespaceBehaviour(leading: .unspecified, trailing: .unspecified)
| |- warning: static property 'unspecified' is not concurrency-safe because non-'Sendable' type 'WhitespaceBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unspecified' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
104 | }
105 |
[25/30] Compiling Stencil Tokenizer.swift
/host/spi-builder-workspace/Sources/Stencil/TrimBehaviour.swift:33:21: warning: static property 'nothing' is not concurrency-safe because non-'Sendable' type 'TrimBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | public struct TrimBehaviour: Equatable {
| `- note: consider making struct 'TrimBehaviour' conform to the 'Sendable' protocol
10 | var leading: Trim
11 | var trailing: Trim
:
31 |
32 | /// doesn't touch newlines
33 | public static let nothing = TrimBehaviour(leading: .nothing, trailing: .nothing)
| |- warning: static property 'nothing' is not concurrency-safe because non-'Sendable' type 'TrimBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nothing' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | /// removes whitespace before a block and whitespace and a single newline after a block
/host/spi-builder-workspace/Sources/Stencil/Tokenizer.swift:86:14: warning: static property 'unknown' is not concurrency-safe because non-'Sendable' type 'SourceMap' may have shared mutable state; this is an error in the Swift 6 language mode
75 | }
76 |
77 | public struct SourceMap: Equatable {
| `- note: consider making struct 'SourceMap' conform to the 'Sendable' protocol
78 | public let filename: String?
79 | public let location: ContentLocation
:
84 | }
85 |
86 | static let unknown = SourceMap()
| |- warning: static property 'unknown' is not concurrency-safe because non-'Sendable' type 'SourceMap' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unknown' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
87 |
88 | public static func == (lhs: SourceMap, rhs: SourceMap) -> Bool {
/host/spi-builder-workspace/Sources/Stencil/Tokenizer.swift:103:21: warning: static property 'unspecified' is not concurrency-safe because non-'Sendable' type 'WhitespaceBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
91 | }
92 |
93 | public struct WhitespaceBehaviour: Equatable {
| `- note: consider making struct 'WhitespaceBehaviour' conform to the 'Sendable' protocol
94 | public enum Behaviour {
95 | case unspecified
:
101 | let trailing: Behaviour
102 |
103 | public static let unspecified = WhitespaceBehaviour(leading: .unspecified, trailing: .unspecified)
| |- warning: static property 'unspecified' is not concurrency-safe because non-'Sendable' type 'WhitespaceBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unspecified' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
104 | }
105 |
[26/30] Compiling Stencil KeyPath.swift
/host/spi-builder-workspace/Sources/Stencil/Lexer.swift:32:22: warning: static property 'behaviourMap' is not concurrency-safe because non-'Sendable' type '[Character : WhitespaceBehaviour.Behaviour]' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Characters controlling whitespace trimming behaviour
32 | private static let behaviourMap: [Character: WhitespaceBehaviour.Behaviour] = [
| |- warning: static property 'behaviourMap' is not concurrency-safe because non-'Sendable' type '[Character : WhitespaceBehaviour.Behaviour]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'behaviourMap' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | "+": .keep,
34 | "-": .trim
/host/spi-builder-workspace/Sources/Stencil/Tokenizer.swift:94:15: note: consider making enum 'Behaviour' conform to the 'Sendable' protocol
92 |
93 | public struct WhitespaceBehaviour: Equatable {
94 | public enum Behaviour {
| `- note: consider making enum 'Behaviour' conform to the 'Sendable' protocol
95 | case unspecified
96 | case trim
/host/spi-builder-workspace/Sources/Stencil/Tokenizer.swift:103:21: warning: static property 'unspecified' is not concurrency-safe because non-'Sendable' type 'WhitespaceBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
91 | }
92 |
93 | public struct WhitespaceBehaviour: Equatable {
| `- note: consider making struct 'WhitespaceBehaviour' conform to the 'Sendable' protocol
94 | public enum Behaviour {
95 | case unspecified
:
101 | let trailing: Behaviour
102 |
103 | public static let unspecified = WhitespaceBehaviour(leading: .unspecified, trailing: .unspecified)
| |- warning: static property 'unspecified' is not concurrency-safe because non-'Sendable' type 'WhitespaceBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unspecified' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
104 | }
105 |
[27/30] Compiling Stencil LazyValueWrapper.swift
/host/spi-builder-workspace/Sources/Stencil/Lexer.swift:32:22: warning: static property 'behaviourMap' is not concurrency-safe because non-'Sendable' type '[Character : WhitespaceBehaviour.Behaviour]' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Characters controlling whitespace trimming behaviour
32 | private static let behaviourMap: [Character: WhitespaceBehaviour.Behaviour] = [
| |- warning: static property 'behaviourMap' is not concurrency-safe because non-'Sendable' type '[Character : WhitespaceBehaviour.Behaviour]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'behaviourMap' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | "+": .keep,
34 | "-": .trim
/host/spi-builder-workspace/Sources/Stencil/Tokenizer.swift:94:15: note: consider making enum 'Behaviour' conform to the 'Sendable' protocol
92 |
93 | public struct WhitespaceBehaviour: Equatable {
94 | public enum Behaviour {
| `- note: consider making enum 'Behaviour' conform to the 'Sendable' protocol
95 | case unspecified
96 | case trim
/host/spi-builder-workspace/Sources/Stencil/Tokenizer.swift:103:21: warning: static property 'unspecified' is not concurrency-safe because non-'Sendable' type 'WhitespaceBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
91 | }
92 |
93 | public struct WhitespaceBehaviour: Equatable {
| `- note: consider making struct 'WhitespaceBehaviour' conform to the 'Sendable' protocol
94 | public enum Behaviour {
95 | case unspecified
:
101 | let trailing: Behaviour
102 |
103 | public static let unspecified = WhitespaceBehaviour(leading: .unspecified, trailing: .unspecified)
| |- warning: static property 'unspecified' is not concurrency-safe because non-'Sendable' type 'WhitespaceBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unspecified' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
104 | }
105 |
[28/30] Compiling Stencil Lexer.swift
/host/spi-builder-workspace/Sources/Stencil/Lexer.swift:32:22: warning: static property 'behaviourMap' is not concurrency-safe because non-'Sendable' type '[Character : WhitespaceBehaviour.Behaviour]' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Characters controlling whitespace trimming behaviour
32 | private static let behaviourMap: [Character: WhitespaceBehaviour.Behaviour] = [
| |- warning: static property 'behaviourMap' is not concurrency-safe because non-'Sendable' type '[Character : WhitespaceBehaviour.Behaviour]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'behaviourMap' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | "+": .keep,
34 | "-": .trim
/host/spi-builder-workspace/Sources/Stencil/Tokenizer.swift:94:15: note: consider making enum 'Behaviour' conform to the 'Sendable' protocol
92 |
93 | public struct WhitespaceBehaviour: Equatable {
94 | public enum Behaviour {
| `- note: consider making enum 'Behaviour' conform to the 'Sendable' protocol
95 | case unspecified
96 | case trim
/host/spi-builder-workspace/Sources/Stencil/Tokenizer.swift:103:21: warning: static property 'unspecified' is not concurrency-safe because non-'Sendable' type 'WhitespaceBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
91 | }
92 |
93 | public struct WhitespaceBehaviour: Equatable {
| `- note: consider making struct 'WhitespaceBehaviour' conform to the 'Sendable' protocol
94 | public enum Behaviour {
95 | case unspecified
:
101 | let trailing: Behaviour
102 |
103 | public static let unspecified = WhitespaceBehaviour(leading: .unspecified, trailing: .unspecified)
| |- warning: static property 'unspecified' is not concurrency-safe because non-'Sendable' type 'WhitespaceBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unspecified' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
104 | }
105 |
[29/30] Compiling Stencil TrimBehaviour.swift
/host/spi-builder-workspace/Sources/Stencil/TrimBehaviour.swift:33:21: warning: static property 'nothing' is not concurrency-safe because non-'Sendable' type 'TrimBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | public struct TrimBehaviour: Equatable {
| `- note: consider making struct 'TrimBehaviour' conform to the 'Sendable' protocol
10 | var leading: Trim
11 | var trailing: Trim
:
31 |
32 | /// doesn't touch newlines
33 | public static let nothing = TrimBehaviour(leading: .nothing, trailing: .nothing)
| |- warning: static property 'nothing' is not concurrency-safe because non-'Sendable' type 'TrimBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nothing' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | /// removes whitespace before a block and whitespace and a single newline after a block
/host/spi-builder-workspace/Sources/Stencil/TrimBehaviour.swift:36:21: warning: static property 'smart' is not concurrency-safe because non-'Sendable' type 'TrimBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | public struct TrimBehaviour: Equatable {
| `- note: consider making struct 'TrimBehaviour' conform to the 'Sendable' protocol
10 | var leading: Trim
11 | var trailing: Trim
:
34 |
35 | /// removes whitespace before a block and whitespace and a single newline after a block
36 | public static let smart = TrimBehaviour(leading: .whitespace, trailing: .whitespaceAndOneNewLine)
| |- warning: static property 'smart' is not concurrency-safe because non-'Sendable' type 'TrimBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'smart' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |
38 | /// removes all whitespace and newlines before and after a block
/host/spi-builder-workspace/Sources/Stencil/TrimBehaviour.swift:39:21: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TrimBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | public struct TrimBehaviour: Equatable {
| `- note: consider making struct 'TrimBehaviour' conform to the 'Sendable' protocol
10 | var leading: Trim
11 | var trailing: Trim
:
37 |
38 | /// removes all whitespace and newlines before and after a block
39 | public static let all = TrimBehaviour(leading: .whitespaceAndNewLines, trailing: .whitespaceAndNewLines)
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TrimBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 |
41 | static func leadingRegex(trim: Trim) -> NSRegularExpression {
/host/spi-builder-workspace/Sources/Stencil/TrimBehaviour.swift:68:22: warning: static property 'leadingWhitespaceAndNewlines' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression' may have shared mutable state; this is an error in the Swift 6 language mode
66 |
67 | // swiftlint:disable force_try
68 | private static let leadingWhitespaceAndNewlines = try! NSRegularExpression(pattern: "^\\s+")
| `- warning: static property 'leadingWhitespaceAndNewlines' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression' may have shared mutable state; this is an error in the Swift 6 language mode
69 | private static let trailingWhitespaceAndNewLines = try! NSRegularExpression(pattern: "\\s+$")
70 |
Foundation.NSRegularExpression:1:12: note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
1 | open class NSRegularExpression : NSObject, NSCopying, NSSecureCoding {
| `- note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
2 | override open func copy() -> Any
3 | open func copy(with zone: NSZone? = nil) -> Any
/host/spi-builder-workspace/Sources/Stencil/TrimBehaviour.swift:7:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
5 | //
6 |
7 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
8 |
9 | public struct TrimBehaviour: Equatable {
:
66 |
67 | // swiftlint:disable force_try
68 | private static let leadingWhitespaceAndNewlines = try! NSRegularExpression(pattern: "^\\s+")
| |- note: annotate 'leadingWhitespaceAndNewlines' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
69 | private static let trailingWhitespaceAndNewLines = try! NSRegularExpression(pattern: "\\s+$")
70 |
/host/spi-builder-workspace/Sources/Stencil/TrimBehaviour.swift:69:22: warning: static property 'trailingWhitespaceAndNewLines' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression' may have shared mutable state; this is an error in the Swift 6 language mode
67 | // swiftlint:disable force_try
68 | private static let leadingWhitespaceAndNewlines = try! NSRegularExpression(pattern: "^\\s+")
69 | private static let trailingWhitespaceAndNewLines = try! NSRegularExpression(pattern: "\\s+$")
| |- warning: static property 'trailingWhitespaceAndNewLines' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'trailingWhitespaceAndNewLines' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
70 |
71 | private static let leadingWhitespaceAndOneNewLine = try! NSRegularExpression(pattern: "^[ \t]*\n")
Foundation.NSRegularExpression:1:12: note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
1 | open class NSRegularExpression : NSObject, NSCopying, NSSecureCoding {
| `- note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
2 | override open func copy() -> Any
3 | open func copy(with zone: NSZone? = nil) -> Any
/host/spi-builder-workspace/Sources/Stencil/TrimBehaviour.swift:71:22: warning: static property 'leadingWhitespaceAndOneNewLine' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression' may have shared mutable state; this is an error in the Swift 6 language mode
69 | private static let trailingWhitespaceAndNewLines = try! NSRegularExpression(pattern: "\\s+$")
70 |
71 | private static let leadingWhitespaceAndOneNewLine = try! NSRegularExpression(pattern: "^[ \t]*\n")
| |- warning: static property 'leadingWhitespaceAndOneNewLine' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'leadingWhitespaceAndOneNewLine' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
72 | private static let trailingWhitespaceAndOneNewLine = try! NSRegularExpression(pattern: "\n[ \t]*$")
73 |
Foundation.NSRegularExpression:1:12: note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
1 | open class NSRegularExpression : NSObject, NSCopying, NSSecureCoding {
| `- note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
2 | override open func copy() -> Any
3 | open func copy(with zone: NSZone? = nil) -> Any
/host/spi-builder-workspace/Sources/Stencil/TrimBehaviour.swift:72:22: warning: static property 'trailingWhitespaceAndOneNewLine' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression' may have shared mutable state; this is an error in the Swift 6 language mode
70 |
71 | private static let leadingWhitespaceAndOneNewLine = try! NSRegularExpression(pattern: "^[ \t]*\n")
72 | private static let trailingWhitespaceAndOneNewLine = try! NSRegularExpression(pattern: "\n[ \t]*$")
| |- warning: static property 'trailingWhitespaceAndOneNewLine' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'trailingWhitespaceAndOneNewLine' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 |
74 | private static let leadingWhitespace = try! NSRegularExpression(pattern: "^[ \t]*")
Foundation.NSRegularExpression:1:12: note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
1 | open class NSRegularExpression : NSObject, NSCopying, NSSecureCoding {
| `- note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
2 | override open func copy() -> Any
3 | open func copy(with zone: NSZone? = nil) -> Any
/host/spi-builder-workspace/Sources/Stencil/TrimBehaviour.swift:74:22: warning: static property 'leadingWhitespace' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression' may have shared mutable state; this is an error in the Swift 6 language mode
72 | private static let trailingWhitespaceAndOneNewLine = try! NSRegularExpression(pattern: "\n[ \t]*$")
73 |
74 | private static let leadingWhitespace = try! NSRegularExpression(pattern: "^[ \t]*")
| |- warning: static property 'leadingWhitespace' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'leadingWhitespace' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
75 | private static let trailingWhitespace = try! NSRegularExpression(pattern: "[ \t]*$")
76 | }
Foundation.NSRegularExpression:1:12: note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
1 | open class NSRegularExpression : NSObject, NSCopying, NSSecureCoding {
| `- note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
2 | override open func copy() -> Any
3 | open func copy(with zone: NSZone? = nil) -> Any
/host/spi-builder-workspace/Sources/Stencil/TrimBehaviour.swift:75:22: warning: static property 'trailingWhitespace' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression' may have shared mutable state; this is an error in the Swift 6 language mode
73 |
74 | private static let leadingWhitespace = try! NSRegularExpression(pattern: "^[ \t]*")
75 | private static let trailingWhitespace = try! NSRegularExpression(pattern: "[ \t]*$")
| |- warning: static property 'trailingWhitespace' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'trailingWhitespace' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 | }
77 |
Foundation.NSRegularExpression:1:12: note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
1 | open class NSRegularExpression : NSObject, NSCopying, NSSecureCoding {
| `- note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
2 | override open func copy() -> Any
3 | open func copy(with zone: NSZone? = nil) -> Any
[30/30] Compiling Stencil Variable.swift
/host/spi-builder-workspace/Sources/Stencil/TrimBehaviour.swift:33:21: warning: static property 'nothing' is not concurrency-safe because non-'Sendable' type 'TrimBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | public struct TrimBehaviour: Equatable {
| `- note: consider making struct 'TrimBehaviour' conform to the 'Sendable' protocol
10 | var leading: Trim
11 | var trailing: Trim
:
31 |
32 | /// doesn't touch newlines
33 | public static let nothing = TrimBehaviour(leading: .nothing, trailing: .nothing)
| |- warning: static property 'nothing' is not concurrency-safe because non-'Sendable' type 'TrimBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nothing' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | /// removes whitespace before a block and whitespace and a single newline after a block
/host/spi-builder-workspace/Sources/Stencil/TrimBehaviour.swift:36:21: warning: static property 'smart' is not concurrency-safe because non-'Sendable' type 'TrimBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | public struct TrimBehaviour: Equatable {
| `- note: consider making struct 'TrimBehaviour' conform to the 'Sendable' protocol
10 | var leading: Trim
11 | var trailing: Trim
:
34 |
35 | /// removes whitespace before a block and whitespace and a single newline after a block
36 | public static let smart = TrimBehaviour(leading: .whitespace, trailing: .whitespaceAndOneNewLine)
| |- warning: static property 'smart' is not concurrency-safe because non-'Sendable' type 'TrimBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'smart' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |
38 | /// removes all whitespace and newlines before and after a block
/host/spi-builder-workspace/Sources/Stencil/TrimBehaviour.swift:39:21: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TrimBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
7 | import Foundation
8 |
9 | public struct TrimBehaviour: Equatable {
| `- note: consider making struct 'TrimBehaviour' conform to the 'Sendable' protocol
10 | var leading: Trim
11 | var trailing: Trim
:
37 |
38 | /// removes all whitespace and newlines before and after a block
39 | public static let all = TrimBehaviour(leading: .whitespaceAndNewLines, trailing: .whitespaceAndNewLines)
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TrimBehaviour' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 |
41 | static func leadingRegex(trim: Trim) -> NSRegularExpression {
/host/spi-builder-workspace/Sources/Stencil/TrimBehaviour.swift:68:22: warning: static property 'leadingWhitespaceAndNewlines' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression' may have shared mutable state; this is an error in the Swift 6 language mode
66 |
67 | // swiftlint:disable force_try
68 | private static let leadingWhitespaceAndNewlines = try! NSRegularExpression(pattern: "^\\s+")
| `- warning: static property 'leadingWhitespaceAndNewlines' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression' may have shared mutable state; this is an error in the Swift 6 language mode
69 | private static let trailingWhitespaceAndNewLines = try! NSRegularExpression(pattern: "\\s+$")
70 |
Foundation.NSRegularExpression:1:12: note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
1 | open class NSRegularExpression : NSObject, NSCopying, NSSecureCoding {
| `- note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
2 | override open func copy() -> Any
3 | open func copy(with zone: NSZone? = nil) -> Any
/host/spi-builder-workspace/Sources/Stencil/TrimBehaviour.swift:7:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
5 | //
6 |
7 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
8 |
9 | public struct TrimBehaviour: Equatable {
:
66 |
67 | // swiftlint:disable force_try
68 | private static let leadingWhitespaceAndNewlines = try! NSRegularExpression(pattern: "^\\s+")
| |- note: annotate 'leadingWhitespaceAndNewlines' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
69 | private static let trailingWhitespaceAndNewLines = try! NSRegularExpression(pattern: "\\s+$")
70 |
/host/spi-builder-workspace/Sources/Stencil/TrimBehaviour.swift:69:22: warning: static property 'trailingWhitespaceAndNewLines' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression' may have shared mutable state; this is an error in the Swift 6 language mode
67 | // swiftlint:disable force_try
68 | private static let leadingWhitespaceAndNewlines = try! NSRegularExpression(pattern: "^\\s+")
69 | private static let trailingWhitespaceAndNewLines = try! NSRegularExpression(pattern: "\\s+$")
| |- warning: static property 'trailingWhitespaceAndNewLines' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'trailingWhitespaceAndNewLines' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
70 |
71 | private static let leadingWhitespaceAndOneNewLine = try! NSRegularExpression(pattern: "^[ \t]*\n")
Foundation.NSRegularExpression:1:12: note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
1 | open class NSRegularExpression : NSObject, NSCopying, NSSecureCoding {
| `- note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
2 | override open func copy() -> Any
3 | open func copy(with zone: NSZone? = nil) -> Any
/host/spi-builder-workspace/Sources/Stencil/TrimBehaviour.swift:71:22: warning: static property 'leadingWhitespaceAndOneNewLine' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression' may have shared mutable state; this is an error in the Swift 6 language mode
69 | private static let trailingWhitespaceAndNewLines = try! NSRegularExpression(pattern: "\\s+$")
70 |
71 | private static let leadingWhitespaceAndOneNewLine = try! NSRegularExpression(pattern: "^[ \t]*\n")
| |- warning: static property 'leadingWhitespaceAndOneNewLine' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'leadingWhitespaceAndOneNewLine' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
72 | private static let trailingWhitespaceAndOneNewLine = try! NSRegularExpression(pattern: "\n[ \t]*$")
73 |
Foundation.NSRegularExpression:1:12: note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
1 | open class NSRegularExpression : NSObject, NSCopying, NSSecureCoding {
| `- note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
2 | override open func copy() -> Any
3 | open func copy(with zone: NSZone? = nil) -> Any
/host/spi-builder-workspace/Sources/Stencil/TrimBehaviour.swift:72:22: warning: static property 'trailingWhitespaceAndOneNewLine' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression' may have shared mutable state; this is an error in the Swift 6 language mode
70 |
71 | private static let leadingWhitespaceAndOneNewLine = try! NSRegularExpression(pattern: "^[ \t]*\n")
72 | private static let trailingWhitespaceAndOneNewLine = try! NSRegularExpression(pattern: "\n[ \t]*$")
| |- warning: static property 'trailingWhitespaceAndOneNewLine' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'trailingWhitespaceAndOneNewLine' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 |
74 | private static let leadingWhitespace = try! NSRegularExpression(pattern: "^[ \t]*")
Foundation.NSRegularExpression:1:12: note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
1 | open class NSRegularExpression : NSObject, NSCopying, NSSecureCoding {
| `- note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
2 | override open func copy() -> Any
3 | open func copy(with zone: NSZone? = nil) -> Any
/host/spi-builder-workspace/Sources/Stencil/TrimBehaviour.swift:74:22: warning: static property 'leadingWhitespace' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression' may have shared mutable state; this is an error in the Swift 6 language mode
72 | private static let trailingWhitespaceAndOneNewLine = try! NSRegularExpression(pattern: "\n[ \t]*$")
73 |
74 | private static let leadingWhitespace = try! NSRegularExpression(pattern: "^[ \t]*")
| |- warning: static property 'leadingWhitespace' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'leadingWhitespace' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
75 | private static let trailingWhitespace = try! NSRegularExpression(pattern: "[ \t]*$")
76 | }
Foundation.NSRegularExpression:1:12: note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
1 | open class NSRegularExpression : NSObject, NSCopying, NSSecureCoding {
| `- note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
2 | override open func copy() -> Any
3 | open func copy(with zone: NSZone? = nil) -> Any
/host/spi-builder-workspace/Sources/Stencil/TrimBehaviour.swift:75:22: warning: static property 'trailingWhitespace' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression' may have shared mutable state; this is an error in the Swift 6 language mode
73 |
74 | private static let leadingWhitespace = try! NSRegularExpression(pattern: "^[ \t]*")
75 | private static let trailingWhitespace = try! NSRegularExpression(pattern: "[ \t]*$")
| |- warning: static property 'trailingWhitespace' is not concurrency-safe because non-'Sendable' type 'NSRegularExpression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'trailingWhitespace' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 | }
77 |
Foundation.NSRegularExpression:1:12: note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
1 | open class NSRegularExpression : NSObject, NSCopying, NSSecureCoding {
| `- note: class 'NSRegularExpression' does not conform to the 'Sendable' protocol
2 | override open func copy() -> Any
3 | open func copy(with zone: NSZone? = nil) -> Any
Build complete! (18.17s)
Build complete.
{
"dependencies" : [
{
"identity" : "pathkit",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.1",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/kylef/PathKit.git"
},
{
"identity" : "spectre",
"requirement" : {
"range" : [
{
"lower_bound" : "0.10.1",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/kylef/Spectre.git"
}
],
"manifest_display_name" : "Stencil",
"name" : "Stencil",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "Stencil",
"targets" : [
"Stencil"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "StencilTests",
"module_type" : "SwiftTarget",
"name" : "StencilTests",
"path" : "Tests/StencilTests",
"product_dependencies" : [
"Spectre"
],
"sources" : [
"ContextSpec.swift",
"EnvironmentBaseAndChildTemplateSpec.swift",
"EnvironmentIncludeTemplateSpec.swift",
"EnvironmentSpec.swift",
"ExpressionSpec.swift",
"FilterSpec.swift",
"FilterTagSpec.swift",
"ForNodeSpec.swift",
"Helpers.swift",
"IfNodeSpec.swift",
"IncludeSpec.swift",
"InheritanceSpec.swift",
"LexerSpec.swift",
"LoaderSpec.swift",
"NodeSpec.swift",
"NowNodeSpec.swift",
"ParserSpec.swift",
"StencilSpec.swift",
"TemplateSpec.swift",
"TokenSpec.swift",
"TrimBehaviourSpec.swift",
"VariableSpec.swift"
],
"target_dependencies" : [
"Stencil"
],
"type" : "test"
},
{
"c99name" : "Stencil",
"module_type" : "SwiftTarget",
"name" : "Stencil",
"path" : "Sources/Stencil",
"product_dependencies" : [
"PathKit"
],
"product_memberships" : [
"Stencil"
],
"sources" : [
"Context.swift",
"DynamicMemberLookup.swift",
"Environment.swift",
"Errors.swift",
"Expression.swift",
"Extension.swift",
"FilterTag.swift",
"Filters.swift",
"ForTag.swift",
"IfTag.swift",
"Include.swift",
"Inheritance.swift",
"KeyPath.swift",
"LazyValueWrapper.swift",
"Lexer.swift",
"Loader.swift",
"Node.swift",
"NowTag.swift",
"Parser.swift",
"Template.swift",
"Tokenizer.swift",
"TrimBehaviour.swift",
"Variable.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Done.