Build Information
Successful build of FileKit, reference 6.1.0 (9006d2
), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 00:04:09 UTC.
Swift 6 data race errors: 71
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
/Users/admin/builder/spi-builder-workspace/Sources/FileSystemEvent.swift:168:23: warning: static property 'ItemXattrMod' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
90 |
91 | /// A set of fileystem event flags.
92 | public struct FileSystemEventFlags: OptionSet, CustomStringConvertible, CustomDebugStringConvertible {
| `- note: consider making struct 'FileSystemEventFlags' conform to the 'Sendable' protocol
93 |
94 | // MARK: - Options
:
166 | /// A file system object at the specific path supplied in this event had its
167 | /// extended attributes modified.
168 | public static let ItemXattrMod = FileSystemEventFlags(rawValue: kFSEventStreamEventFlagItemXattrMod)
| |- warning: static property 'ItemXattrMod' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ItemXattrMod' 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
169 |
170 | /// The file system object at the specific path supplied in this event is a
/Users/admin/builder/spi-builder-workspace/Sources/FileSystemEvent.swift:172:23: warning: static property 'ItemIsFile' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
90 |
91 | /// A set of fileystem event flags.
92 | public struct FileSystemEventFlags: OptionSet, CustomStringConvertible, CustomDebugStringConvertible {
| `- note: consider making struct 'FileSystemEventFlags' conform to the 'Sendable' protocol
93 |
94 | // MARK: - Options
:
170 | /// The file system object at the specific path supplied in this event is a
171 | /// regular file.
172 | public static let ItemIsFile = FileSystemEventFlags(rawValue: kFSEventStreamEventFlagItemIsFile)
| |- warning: static property 'ItemIsFile' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ItemIsFile' 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
173 |
174 | /// The file system object at the specific path supplied in this event is a
/Users/admin/builder/spi-builder-workspace/Sources/FileSystemEvent.swift:176:23: warning: static property 'ItemIsDir' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
90 |
91 | /// A set of fileystem event flags.
92 | public struct FileSystemEventFlags: OptionSet, CustomStringConvertible, CustomDebugStringConvertible {
| `- note: consider making struct 'FileSystemEventFlags' conform to the 'Sendable' protocol
93 |
94 | // MARK: - Options
:
174 | /// The file system object at the specific path supplied in this event is a
175 | /// directory.
176 | public static let ItemIsDir = FileSystemEventFlags(rawValue: kFSEventStreamEventFlagItemIsDir)
| |- warning: static property 'ItemIsDir' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ItemIsDir' 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
177 |
178 | /// The file system object at the specific path supplied in this event is a
/Users/admin/builder/spi-builder-workspace/Sources/FileSystemEvent.swift:180:23: warning: static property 'ItemIsSymlink' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
90 |
91 | /// A set of fileystem event flags.
92 | public struct FileSystemEventFlags: OptionSet, CustomStringConvertible, CustomDebugStringConvertible {
| `- note: consider making struct 'FileSystemEventFlags' conform to the 'Sendable' protocol
93 |
94 | // MARK: - Options
:
178 | /// The file system object at the specific path supplied in this event is a
179 | /// symbolic link.
180 | public static let ItemIsSymlink = FileSystemEventFlags(rawValue: kFSEventStreamEventFlagItemIsSymlink)
| |- warning: static property 'ItemIsSymlink' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ItemIsSymlink' 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
181 |
182 | /// Indicates the event was triggered by the current process.
/Users/admin/builder/spi-builder-workspace/Sources/FileSystemEvent.swift:183:23: warning: static property 'OwnEvent' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
90 |
91 | /// A set of fileystem event flags.
92 | public struct FileSystemEventFlags: OptionSet, CustomStringConvertible, CustomDebugStringConvertible {
| `- note: consider making struct 'FileSystemEventFlags' conform to the 'Sendable' protocol
93 |
94 | // MARK: - Options
:
181 |
182 | /// Indicates the event was triggered by the current process.
183 | public static let OwnEvent = FileSystemEventFlags(rawValue: kFSEventStreamEventFlagOwnEvent)
| |- warning: static property 'OwnEvent' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'OwnEvent' 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
184 |
185 | /// Flag for if the item is a hardlink.
/Users/admin/builder/spi-builder-workspace/Sources/FileSystemEvent.swift:187:23: warning: static property 'ItemIsHardlink' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
90 |
91 | /// A set of fileystem event flags.
92 | public struct FileSystemEventFlags: OptionSet, CustomStringConvertible, CustomDebugStringConvertible {
| `- note: consider making struct 'FileSystemEventFlags' conform to the 'Sendable' protocol
93 |
94 | // MARK: - Options
:
185 | /// Flag for if the item is a hardlink.
186 | @available(iOS 9, OSX 10.10, *)
187 | public static let ItemIsHardlink = FileSystemEventFlags(rawValue: kFSEventStreamEventFlagItemIsHardlink)
| |- warning: static property 'ItemIsHardlink' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ItemIsHardlink' 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
188 |
189 | /// Flag for if the item was the last hardlink.
/Users/admin/builder/spi-builder-workspace/Sources/FileSystemEvent.swift:191:23: warning: static property 'ItemIsLastHardlink' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
90 |
91 | /// A set of fileystem event flags.
92 | public struct FileSystemEventFlags: OptionSet, CustomStringConvertible, CustomDebugStringConvertible {
| `- note: consider making struct 'FileSystemEventFlags' conform to the 'Sendable' protocol
93 |
94 | // MARK: - Options
:
189 | /// Flag for if the item was the last hardlink.
190 | @available(iOS 9, OSX 10.10, *)
191 | public static let ItemIsLastHardlink = FileSystemEventFlags(rawValue: kFSEventStreamEventFlagItemIsLastHardlink)
| |- warning: static property 'ItemIsLastHardlink' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ItemIsLastHardlink' 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
192 |
193 | // MARK: - All Flags
/Users/admin/builder/spi-builder-workspace/Sources/FileSystemEvent.swift:196:23: warning: static property 'allFlags' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
194 |
195 | /// An array of all of the flags.
196 | public static var allFlags: [FileSystemEventFlags] = {
| |- warning: static property 'allFlags' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allFlags' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allFlags' 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
197 | var array: [FileSystemEventFlags] = [ // swiftlint:disable comma
198 | .None, .MustScanSubDirs, .UserDropped,
/Users/admin/builder/spi-builder-workspace/Sources/FileSystemEvent.swift:269:23: warning: static property 'None' is not concurrency-safe because non-'Sendable' type 'FileSystemEventStreamCreateFlags' may have shared mutable state; this is an error in the Swift 6 language mode
262 |
263 | /// Flags for creating an event stream.
264 | public struct FileSystemEventStreamCreateFlags: OptionSet, CustomStringConvertible, CustomDebugStringConvertible {
| `- note: consider making struct 'FileSystemEventStreamCreateFlags' conform to the 'Sendable' protocol
265 |
266 | // MARK: - Options
267 |
268 | /// The default.
269 | public static let None = FileSystemEventStreamCreateFlags(rawValue: kFSEventStreamCreateFlagNone)
| |- warning: static property 'None' is not concurrency-safe because non-'Sendable' type 'FileSystemEventStreamCreateFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'None' 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
270 |
271 | /// The callback function will be invoked with CF types rather than raw C
/Users/admin/builder/spi-builder-workspace/Sources/FileSystemEvent.swift:273:23: warning: static property 'UseCFTypes' is not concurrency-safe because non-'Sendable' type 'FileSystemEventStreamCreateFlags' may have shared mutable state; this is an error in the Swift 6 language mode
262 |
263 | /// Flags for creating an event stream.
264 | public struct FileSystemEventStreamCreateFlags: OptionSet, CustomStringConvertible, CustomDebugStringConvertible {
| `- note: consider making struct 'FileSystemEventStreamCreateFlags' conform to the 'Sendable' protocol
265 |
266 | // MARK: - Options
:
271 | /// The callback function will be invoked with CF types rather than raw C
272 | /// types.
273 | public static let UseCFTypes = FileSystemEventStreamCreateFlags(rawValue: kFSEventStreamCreateFlagUseCFTypes)
| |- warning: static property 'UseCFTypes' is not concurrency-safe because non-'Sendable' type 'FileSystemEventStreamCreateFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'UseCFTypes' 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
274 |
275 | /// Affects the meaning of the latency parameter.
/Users/admin/builder/spi-builder-workspace/Sources/FileSystemEvent.swift:276:23: warning: static property 'FlagNoDefer' is not concurrency-safe because non-'Sendable' type 'FileSystemEventStreamCreateFlags' may have shared mutable state; this is an error in the Swift 6 language mode
262 |
263 | /// Flags for creating an event stream.
264 | public struct FileSystemEventStreamCreateFlags: OptionSet, CustomStringConvertible, CustomDebugStringConvertible {
| `- note: consider making struct 'FileSystemEventStreamCreateFlags' conform to the 'Sendable' protocol
265 |
266 | // MARK: - Options
:
274 |
275 | /// Affects the meaning of the latency parameter.
276 | public static let FlagNoDefer = FileSystemEventStreamCreateFlags(rawValue: kFSEventStreamCreateFlagNoDefer)
| |- warning: static property 'FlagNoDefer' is not concurrency-safe because non-'Sendable' type 'FileSystemEventStreamCreateFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'FlagNoDefer' 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
277 |
278 | /// Request notifications of changes along the path to the path(s) watched.
/Users/admin/builder/spi-builder-workspace/Sources/FileSystemEvent.swift:279:23: warning: static property 'WatchRoot' is not concurrency-safe because non-'Sendable' type 'FileSystemEventStreamCreateFlags' may have shared mutable state; this is an error in the Swift 6 language mode
262 |
263 | /// Flags for creating an event stream.
264 | public struct FileSystemEventStreamCreateFlags: OptionSet, CustomStringConvertible, CustomDebugStringConvertible {
| `- note: consider making struct 'FileSystemEventStreamCreateFlags' conform to the 'Sendable' protocol
265 |
266 | // MARK: - Options
:
277 |
278 | /// Request notifications of changes along the path to the path(s) watched.
279 | public static let WatchRoot = FileSystemEventStreamCreateFlags(rawValue: kFSEventStreamCreateFlagWatchRoot)
| |- warning: static property 'WatchRoot' is not concurrency-safe because non-'Sendable' type 'FileSystemEventStreamCreateFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'WatchRoot' 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
280 |
281 | /// Don't send events that were triggered by the current process.
/Users/admin/builder/spi-builder-workspace/Sources/FileSystemEvent.swift:282:23: warning: static property 'IgnoreSelf' is not concurrency-safe because non-'Sendable' type 'FileSystemEventStreamCreateFlags' may have shared mutable state; this is an error in the Swift 6 language mode
262 |
263 | /// Flags for creating an event stream.
264 | public struct FileSystemEventStreamCreateFlags: OptionSet, CustomStringConvertible, CustomDebugStringConvertible {
| `- note: consider making struct 'FileSystemEventStreamCreateFlags' conform to the 'Sendable' protocol
265 |
266 | // MARK: - Options
:
280 |
281 | /// Don't send events that were triggered by the current process.
282 | public static let IgnoreSelf = FileSystemEventStreamCreateFlags(rawValue: kFSEventStreamCreateFlagIgnoreSelf)
| |- warning: static property 'IgnoreSelf' is not concurrency-safe because non-'Sendable' type 'FileSystemEventStreamCreateFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'IgnoreSelf' 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
283 |
284 | /// Request file-level notifications.
/Users/admin/builder/spi-builder-workspace/Sources/FileSystemEvent.swift:285:23: warning: static property 'FileEvents' is not concurrency-safe because non-'Sendable' type 'FileSystemEventStreamCreateFlags' may have shared mutable state; this is an error in the Swift 6 language mode
262 |
263 | /// Flags for creating an event stream.
264 | public struct FileSystemEventStreamCreateFlags: OptionSet, CustomStringConvertible, CustomDebugStringConvertible {
| `- note: consider making struct 'FileSystemEventStreamCreateFlags' conform to the 'Sendable' protocol
265 |
266 | // MARK: - Options
:
283 |
284 | /// Request file-level notifications.
285 | public static let FileEvents = FileSystemEventStreamCreateFlags(rawValue: kFSEventStreamCreateFlagFileEvents)
| |- warning: static property 'FileEvents' is not concurrency-safe because non-'Sendable' type 'FileSystemEventStreamCreateFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'FileEvents' 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
286 |
287 | /// Tag events that were triggered by the current process with the
/Users/admin/builder/spi-builder-workspace/Sources/FileSystemEvent.swift:289:23: warning: static property 'MarkSelf' is not concurrency-safe because non-'Sendable' type 'FileSystemEventStreamCreateFlags' may have shared mutable state; this is an error in the Swift 6 language mode
262 |
263 | /// Flags for creating an event stream.
264 | public struct FileSystemEventStreamCreateFlags: OptionSet, CustomStringConvertible, CustomDebugStringConvertible {
| `- note: consider making struct 'FileSystemEventStreamCreateFlags' conform to the 'Sendable' protocol
265 |
266 | // MARK: - Options
:
287 | /// Tag events that were triggered by the current process with the
288 | /// `OwnEvent` flag.
289 | public static let MarkSelf = FileSystemEventStreamCreateFlags(rawValue: kFSEventStreamCreateFlagMarkSelf)
| |- warning: static property 'MarkSelf' is not concurrency-safe because non-'Sendable' type 'FileSystemEventStreamCreateFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'MarkSelf' 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
290 |
291 | // MARK: - All Flags
/Users/admin/builder/spi-builder-workspace/Sources/FileSystemEvent.swift:294:23: warning: static property 'allFlags' is not concurrency-safe because non-'Sendable' type '[FileSystemEventStreamCreateFlags]' may have shared mutable state; this is an error in the Swift 6 language mode
262 |
263 | /// Flags for creating an event stream.
264 | public struct FileSystemEventStreamCreateFlags: OptionSet, CustomStringConvertible, CustomDebugStringConvertible {
| `- note: consider making struct 'FileSystemEventStreamCreateFlags' conform to the 'Sendable' protocol
265 |
266 | // MARK: - Options
:
292 |
293 | /// All of the event stream creation flags.
294 | public static let allFlags: [FileSystemEventStreamCreateFlags] = [.None, .UseCFTypes, .FlagNoDefer, .WatchRoot, .IgnoreSelf, .FileEvents, .MarkSelf]
| |- warning: static property 'allFlags' is not concurrency-safe because non-'Sendable' type '[FileSystemEventStreamCreateFlags]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'allFlags' 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
295 |
296 | /// All of the names of the event stream creation flags.
[14/38] Compiling FileKit FileType.swift
/Users/admin/builder/spi-builder-workspace/Sources/FileSystemEvent.swift:98:23: warning: static property 'None' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
90 |
91 | /// A set of fileystem event flags.
92 | public struct FileSystemEventFlags: OptionSet, CustomStringConvertible, CustomDebugStringConvertible {
| `- note: consider making struct 'FileSystemEventFlags' conform to the 'Sendable' protocol
93 |
94 | // MARK: - Options
:
96 | /// There was some change in the directory at the specific path supplied in
97 | /// this event.
98 | public static let None = FileSystemEventFlags(rawValue: kFSEventStreamEventFlagNone)
| |- warning: static property 'None' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'None' 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
99 |
100 | /// Your application must rescan not just the directory given in the event,
/Users/admin/builder/spi-builder-workspace/Sources/FileSystemEvent.swift:102:23: warning: static property 'MustScanSubDirs' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
90 |
91 | /// A set of fileystem event flags.
92 | public struct FileSystemEventFlags: OptionSet, CustomStringConvertible, CustomDebugStringConvertible {
| `- note: consider making struct 'FileSystemEventFlags' conform to the 'Sendable' protocol
93 |
94 | // MARK: - Options
:
100 | /// Your application must rescan not just the directory given in the event,
101 | /// but all its children, recursively.
102 | public static let MustScanSubDirs = FileSystemEventFlags(rawValue: kFSEventStreamEventFlagMustScanSubDirs)
| |- warning: static property 'MustScanSubDirs' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'MustScanSubDirs' 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
103 |
104 | /// May be set in addition to `MustScanSubDirs` indicate that a problem
/Users/admin/builder/spi-builder-workspace/Sources/FileSystemEvent.swift:109:23: warning: static property 'UserDropped' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
90 |
91 | /// A set of fileystem event flags.
92 | public struct FileSystemEventFlags: OptionSet, CustomStringConvertible, CustomDebugStringConvertible {
| `- note: consider making struct 'FileSystemEventFlags' conform to the 'Sendable' protocol
93 |
94 | // MARK: - Options
:
107 | /// any directories (and their subdirectories, recursively) being monitored
108 | /// by this stream.
109 | public static let UserDropped = FileSystemEventFlags(rawValue: kFSEventStreamEventFlagUserDropped)
| |- warning: static property 'UserDropped' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'UserDropped' 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
110 |
111 | /// May be set in addition to `MustScanSubDirs` indicate that a problem
/Users/admin/builder/spi-builder-workspace/Sources/FileSystemEvent.swift:116:23: warning: static property 'KernelDropped' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
90 |
91 | /// A set of fileystem event flags.
92 | public struct FileSystemEventFlags: OptionSet, CustomStringConvertible, CustomDebugStringConvertible {
| `- note: consider making struct 'FileSystemEventFlags' conform to the 'Sendable' protocol
93 |
94 | // MARK: - Options
:
114 | /// any directories (and their subdirectories, recursively) being monitored
115 | /// by this stream.
116 | public static let KernelDropped = FileSystemEventFlags(rawValue: kFSEventStreamEventFlagKernelDropped)
| |- warning: static property 'KernelDropped' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'KernelDropped' 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
117 |
118 | /// The 64-bit event ID counter wrapped around.
/Users/admin/builder/spi-builder-workspace/Sources/FileSystemEvent.swift:119:23: warning: static property 'EventIdsWrapped' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
90 |
91 | /// A set of fileystem event flags.
92 | public struct FileSystemEventFlags: OptionSet, CustomStringConvertible, CustomDebugStringConvertible {
| `- note: consider making struct 'FileSystemEventFlags' conform to the 'Sendable' protocol
93 |
94 | // MARK: - Options
:
117 |
118 | /// The 64-bit event ID counter wrapped around.
119 | public static let EventIdsWrapped = FileSystemEventFlags(rawValue: kFSEventStreamEventFlagEventIdsWrapped)
| |- warning: static property 'EventIdsWrapped' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'EventIdsWrapped' 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
120 |
121 | /// Denotes a sentinel event sent to mark the end of the "historical" events
/Users/admin/builder/spi-builder-workspace/Sources/FileSystemEvent.swift:124:23: warning: static property 'HistoryDone' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
90 |
91 | /// A set of fileystem event flags.
92 | public struct FileSystemEventFlags: OptionSet, CustomStringConvertible, CustomDebugStringConvertible {
| `- note: consider making struct 'FileSystemEventFlags' conform to the 'Sendable' protocol
93 |
94 | // MARK: - Options
:
122 | /// sent as a result of specifying a `sinceWhen` value in the
123 | /// FSEventStreamCreate...() call that created this event stream.
124 | public static let HistoryDone = FileSystemEventFlags(rawValue: kFSEventStreamEventFlagHistoryDone)
| |- warning: static property 'HistoryDone' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'HistoryDone' 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
125 |
126 | /// Denotes a special event sent when there is a change to one of the
/Users/admin/builder/spi-builder-workspace/Sources/FileSystemEvent.swift:128:23: warning: static property 'RootChanged' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
90 |
91 | /// A set of fileystem event flags.
92 | public struct FileSystemEventFlags: OptionSet, CustomStringConvertible, CustomDebugStringConvertible {
| `- note: consider making struct 'FileSystemEventFlags' conform to the 'Sendable' protocol
93 |
94 | // MARK: - Options
:
126 | /// Denotes a special event sent when there is a change to one of the
127 | /// directories along the path to one of the directories asked to watch.
128 | public static let RootChanged = FileSystemEventFlags(rawValue: kFSEventStreamEventFlagRootChanged)
| |- warning: static property 'RootChanged' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'RootChanged' 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
129 |
130 | /// Denotes a special event sent when a volume is mounted underneath one of
/Users/admin/builder/spi-builder-workspace/Sources/FileSystemEvent.swift:132:23: warning: static property 'Mount' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
90 |
91 | /// A set of fileystem event flags.
92 | public struct FileSystemEventFlags: OptionSet, CustomStringConvertible, CustomDebugStringConvertible {
| `- note: consider making struct 'FileSystemEventFlags' conform to the 'Sendable' protocol
93 |
94 | // MARK: - Options
:
130 | /// Denotes a special event sent when a volume is mounted underneath one of
131 | /// the paths being monitored.
132 | public static let Mount = FileSystemEventFlags(rawValue: kFSEventStreamEventFlagMount)
| |- warning: static property 'Mount' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'Mount' 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
133 |
134 | /// Denotes a special event sent when a volume is unmounted underneath one
/Users/admin/builder/spi-builder-workspace/Sources/FileSystemEvent.swift:136:23: warning: static property 'Unmount' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
90 |
91 | /// A set of fileystem event flags.
92 | public struct FileSystemEventFlags: OptionSet, CustomStringConvertible, CustomDebugStringConvertible {
| `- note: consider making struct 'FileSystemEventFlags' conform to the 'Sendable' protocol
93 |
94 | // MARK: - Options
:
134 | /// Denotes a special event sent when a volume is unmounted underneath one
135 | /// of the paths being monitored.
136 | public static let Unmount = FileSystemEventFlags(rawValue: kFSEventStreamEventFlagUnmount)
| |- warning: static property 'Unmount' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'Unmount' 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
137 |
138 | /// A file system object was created at the specific path supplied in this
/Users/admin/builder/spi-builder-workspace/Sources/FileSystemEvent.swift:140:23: warning: static property 'Created' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
90 |
91 | /// A set of fileystem event flags.
92 | public struct FileSystemEventFlags: OptionSet, CustomStringConvertible, CustomDebugStringConvertible {
| `- note: consider making struct 'FileSystemEventFlags' conform to the 'Sendable' protocol
93 |
94 | // MARK: - Options
:
138 | /// A file system object was created at the specific path supplied in this
139 | /// event.
140 | public static let Created = FileSystemEventFlags(rawValue: kFSEventStreamEventFlagItemCreated)
| |- warning: static property 'Created' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'Created' 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
141 |
142 | /// A file system object was removed at the specific path supplied in this
/Users/admin/builder/spi-builder-workspace/Sources/FileSystemEvent.swift:144:23: warning: static property 'ItemRemoved' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
90 |
91 | /// A set of fileystem event flags.
92 | public struct FileSystemEventFlags: OptionSet, CustomStringConvertible, CustomDebugStringConvertible {
| `- note: consider making struct 'FileSystemEventFlags' conform to the 'Sendable' protocol
93 |
94 | // MARK: - Options
:
142 | /// A file system object was removed at the specific path supplied in this
143 | /// event.
144 | public static let ItemRemoved = FileSystemEventFlags(rawValue: kFSEventStreamEventFlagItemRemoved)
| |- warning: static property 'ItemRemoved' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ItemRemoved' 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
145 |
146 | /// A file system object at the specific path supplied in this event had its
/Users/admin/builder/spi-builder-workspace/Sources/FileSystemEvent.swift:148:23: warning: static property 'ItemInodeMetaMod' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
90 |
91 | /// A set of fileystem event flags.
92 | public struct FileSystemEventFlags: OptionSet, CustomStringConvertible, CustomDebugStringConvertible {
| `- note: consider making struct 'FileSystemEventFlags' conform to the 'Sendable' protocol
93 |
94 | // MARK: - Options
:
146 | /// A file system object at the specific path supplied in this event had its
147 | /// metadata modified.
148 | public static let ItemInodeMetaMod = FileSystemEventFlags(rawValue: kFSEventStreamEventFlagItemInodeMetaMod)
| |- warning: static property 'ItemInodeMetaMod' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ItemInodeMetaMod' 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
149 |
150 | /// A file system object was renamed at the specific path supplied in this
/Users/admin/builder/spi-builder-workspace/Sources/FileSystemEvent.swift:152:23: warning: static property 'ItemRenamed' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
90 |
91 | /// A set of fileystem event flags.
92 | public struct FileSystemEventFlags: OptionSet, CustomStringConvertible, CustomDebugStringConvertible {
| `- note: consider making struct 'FileSystemEventFlags' conform to the 'Sendable' protocol
93 |
94 | // MARK: - Options
:
150 | /// A file system object was renamed at the specific path supplied in this
151 | /// event.
152 | public static let ItemRenamed = FileSystemEventFlags(rawValue: kFSEventStreamEventFlagItemRenamed)
| |- warning: static property 'ItemRenamed' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ItemRenamed' 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
153 |
154 | /// A file system object at the specific path supplied in this event had its
/Users/admin/builder/spi-builder-workspace/Sources/FileSystemEvent.swift:156:23: warning: static property 'ItemModified' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
90 |
91 | /// A set of fileystem event flags.
92 | public struct FileSystemEventFlags: OptionSet, CustomStringConvertible, CustomDebugStringConvertible {
| `- note: consider making struct 'FileSystemEventFlags' conform to the 'Sendable' protocol
93 |
94 | // MARK: - Options
:
154 | /// A file system object at the specific path supplied in this event had its
155 | /// data modified.
156 | public static let ItemModified = FileSystemEventFlags(rawValue: kFSEventStreamEventFlagItemModified)
| |- warning: static property 'ItemModified' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ItemModified' 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
157 |
158 | /// A file system object at the specific path supplied in this event had its
/Users/admin/builder/spi-builder-workspace/Sources/FileSystemEvent.swift:160:23: warning: static property 'ItemFinderInfoMod' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
90 |
91 | /// A set of fileystem event flags.
92 | public struct FileSystemEventFlags: OptionSet, CustomStringConvertible, CustomDebugStringConvertible {
| `- note: consider making struct 'FileSystemEventFlags' conform to the 'Sendable' protocol
93 |
94 | // MARK: - Options
:
158 | /// A file system object at the specific path supplied in this event had its
159 | /// FinderInfo data modified.
160 | public static let ItemFinderInfoMod = FileSystemEventFlags(rawValue: kFSEventStreamEventFlagItemFinderInfoMod)
| |- warning: static property 'ItemFinderInfoMod' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ItemFinderInfoMod' 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
161 |
162 | /// A file system object at the specific path supplied in this event had its
/Users/admin/builder/spi-builder-workspace/Sources/FileSystemEvent.swift:164:23: warning: static property 'ItemChangeOwner' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
90 |
91 | /// A set of fileystem event flags.
92 | public struct FileSystemEventFlags: OptionSet, CustomStringConvertible, CustomDebugStringConvertible {
| `- note: consider making struct 'FileSystemEventFlags' conform to the 'Sendable' protocol
93 |
94 | // MARK: - Options
:
162 | /// A file system object at the specific path supplied in this event had its
163 | /// ownership changed.
164 | public static let ItemChangeOwner = FileSystemEventFlags(rawValue: kFSEventStreamEventFlagItemChangeOwner)
| |- warning: static property 'ItemChangeOwner' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ItemChangeOwner' 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
165 |
166 | /// A file system object at the specific path supplied in this event had its
/Users/admin/builder/spi-builder-workspace/Sources/FileSystemEvent.swift:168:23: warning: static property 'ItemXattrMod' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
90 |
91 | /// A set of fileystem event flags.
92 | public struct FileSystemEventFlags: OptionSet, CustomStringConvertible, CustomDebugStringConvertible {
| `- note: consider making struct 'FileSystemEventFlags' conform to the 'Sendable' protocol
93 |
94 | // MARK: - Options
:
166 | /// A file system object at the specific path supplied in this event had its
167 | /// extended attributes modified.
168 | public static let ItemXattrMod = FileSystemEventFlags(rawValue: kFSEventStreamEventFlagItemXattrMod)
| |- warning: static property 'ItemXattrMod' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ItemXattrMod' 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
169 |
170 | /// The file system object at the specific path supplied in this event is a
/Users/admin/builder/spi-builder-workspace/Sources/FileSystemEvent.swift:172:23: warning: static property 'ItemIsFile' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
90 |
91 | /// A set of fileystem event flags.
92 | public struct FileSystemEventFlags: OptionSet, CustomStringConvertible, CustomDebugStringConvertible {
| `- note: consider making struct 'FileSystemEventFlags' conform to the 'Sendable' protocol
93 |
94 | // MARK: - Options
:
170 | /// The file system object at the specific path supplied in this event is a
171 | /// regular file.
172 | public static let ItemIsFile = FileSystemEventFlags(rawValue: kFSEventStreamEventFlagItemIsFile)
| |- warning: static property 'ItemIsFile' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ItemIsFile' 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
173 |
174 | /// The file system object at the specific path supplied in this event is a
/Users/admin/builder/spi-builder-workspace/Sources/FileSystemEvent.swift:176:23: warning: static property 'ItemIsDir' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
90 |
91 | /// A set of fileystem event flags.
92 | public struct FileSystemEventFlags: OptionSet, CustomStringConvertible, CustomDebugStringConvertible {
| `- note: consider making struct 'FileSystemEventFlags' conform to the 'Sendable' protocol
93 |
94 | // MARK: - Options
:
174 | /// The file system object at the specific path supplied in this event is a
175 | /// directory.
176 | public static let ItemIsDir = FileSystemEventFlags(rawValue: kFSEventStreamEventFlagItemIsDir)
| |- warning: static property 'ItemIsDir' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ItemIsDir' 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
177 |
178 | /// The file system object at the specific path supplied in this event is a
/Users/admin/builder/spi-builder-workspace/Sources/FileSystemEvent.swift:180:23: warning: static property 'ItemIsSymlink' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
90 |
91 | /// A set of fileystem event flags.
92 | public struct FileSystemEventFlags: OptionSet, CustomStringConvertible, CustomDebugStringConvertible {
| `- note: consider making struct 'FileSystemEventFlags' conform to the 'Sendable' protocol
93 |
94 | // MARK: - Options
:
178 | /// The file system object at the specific path supplied in this event is a
179 | /// symbolic link.
180 | public static let ItemIsSymlink = FileSystemEventFlags(rawValue: kFSEventStreamEventFlagItemIsSymlink)
| |- warning: static property 'ItemIsSymlink' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ItemIsSymlink' 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
181 |
182 | /// Indicates the event was triggered by the current process.
/Users/admin/builder/spi-builder-workspace/Sources/FileSystemEvent.swift:183:23: warning: static property 'OwnEvent' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
90 |
91 | /// A set of fileystem event flags.
92 | public struct FileSystemEventFlags: OptionSet, CustomStringConvertible, CustomDebugStringConvertible {
| `- note: consider making struct 'FileSystemEventFlags' conform to the 'Sendable' protocol
93 |
94 | // MARK: - Options
:
181 |
182 | /// Indicates the event was triggered by the current process.
183 | public static let OwnEvent = FileSystemEventFlags(rawValue: kFSEventStreamEventFlagOwnEvent)
| |- warning: static property 'OwnEvent' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'OwnEvent' 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
184 |
185 | /// Flag for if the item is a hardlink.
/Users/admin/builder/spi-builder-workspace/Sources/FileSystemEvent.swift:187:23: warning: static property 'ItemIsHardlink' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
90 |
91 | /// A set of fileystem event flags.
92 | public struct FileSystemEventFlags: OptionSet, CustomStringConvertible, CustomDebugStringConvertible {
| `- note: consider making struct 'FileSystemEventFlags' conform to the 'Sendable' protocol
93 |
94 | // MARK: - Options
:
185 | /// Flag for if the item is a hardlink.
186 | @available(iOS 9, OSX 10.10, *)
187 | public static let ItemIsHardlink = FileSystemEventFlags(rawValue: kFSEventStreamEventFlagItemIsHardlink)
| |- warning: static property 'ItemIsHardlink' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ItemIsHardlink' 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
188 |
189 | /// Flag for if the item was the last hardlink.
/Users/admin/builder/spi-builder-workspace/Sources/FileSystemEvent.swift:191:23: warning: static property 'ItemIsLastHardlink' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
90 |
91 | /// A set of fileystem event flags.
92 | public struct FileSystemEventFlags: OptionSet, CustomStringConvertible, CustomDebugStringConvertible {
| `- note: consider making struct 'FileSystemEventFlags' conform to the 'Sendable' protocol
93 |
94 | // MARK: - Options
:
189 | /// Flag for if the item was the last hardlink.
190 | @available(iOS 9, OSX 10.10, *)
191 | public static let ItemIsLastHardlink = FileSystemEventFlags(rawValue: kFSEventStreamEventFlagItemIsLastHardlink)
| |- warning: static property 'ItemIsLastHardlink' is not concurrency-safe because non-'Sendable' type 'FileSystemEventFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ItemIsLastHardlink' 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
192 |
193 | // MARK: - All Flags
/Users/admin/builder/spi-builder-workspace/Sources/FileSystemEvent.swift:196:23: warning: static property 'allFlags' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
194 |
195 | /// An array of all of the flags.
196 | public static var allFlags: [FileSystemEventFlags] = {
| |- warning: static property 'allFlags' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allFlags' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allFlags' 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
197 | var array: [FileSystemEventFlags] = [ // swiftlint:disable comma
198 | .None, .MustScanSubDirs, .UserDropped,
/Users/admin/builder/spi-builder-workspace/Sources/FileSystemEvent.swift:269:23: warning: static property 'None' is not concurrency-safe because non-'Sendable' type 'FileSystemEventStreamCreateFlags' may have shared mutable state; this is an error in the Swift 6 language mode
262 |
263 | /// Flags for creating an event stream.
264 | public struct FileSystemEventStreamCreateFlags: OptionSet, CustomStringConvertible, CustomDebugStringConvertible {
| `- note: consider making struct 'FileSystemEventStreamCreateFlags' conform to the 'Sendable' protocol
265 |
266 | // MARK: - Options
267 |
268 | /// The default.
269 | public static let None = FileSystemEventStreamCreateFlags(rawValue: kFSEventStreamCreateFlagNone)
| |- warning: static property 'None' is not concurrency-safe because non-'Sendable' type 'FileSystemEventStreamCreateFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'None' 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
270 |
271 | /// The callback function will be invoked with CF types rather than raw C
/Users/admin/builder/spi-builder-workspace/Sources/FileSystemEvent.swift:273:23: warning: static property 'UseCFTypes' is not concurrency-safe because non-'Sendable' type 'FileSystemEventStreamCreateFlags' may have shared mutable state; this is an error in the Swift 6 language mode
262 |
263 | /// Flags for creating an event stream.
264 | public struct FileSystemEventStreamCreateFlags: OptionSet, CustomStringConvertible, CustomDebugStringConvertible {
| `- note: consider making struct 'FileSystemEventStreamCreateFlags' conform to the 'Sendable' protocol
265 |
266 | // MARK: - Options
:
271 | /// The callback function will be invoked with CF types rather than raw C
272 | /// types.
273 | public static let UseCFTypes = FileSystemEventStreamCreateFlags(rawValue: kFSEventStreamCreateFlagUseCFTypes)
| |- warning: static property 'UseCFTypes' is not concurrency-safe because non-'Sendable' type 'FileSystemEventStreamCreateFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'UseCFTypes' 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
274 |
275 | /// Affects the meaning of the latency parameter.
/Users/admin/builder/spi-builder-workspace/Sources/FileSystemEvent.swift:276:23: warning: static property 'FlagNoDefer' is not concurrency-safe because non-'Sendable' type 'FileSystemEventStreamCreateFlags' may have shared mutable state; this is an error in the Swift 6 language mode
262 |
263 | /// Flags for creating an event stream.
264 | public struct FileSystemEventStreamCreateFlags: OptionSet, CustomStringConvertible, CustomDebugStringConvertible {
| `- note: consider making struct 'FileSystemEventStreamCreateFlags' conform to the 'Sendable' protocol
265 |
266 | // MARK: - Options
:
274 |
275 | /// Affects the meaning of the latency parameter.
276 | public static let FlagNoDefer = FileSystemEventStreamCreateFlags(rawValue: kFSEventStreamCreateFlagNoDefer)
| |- warning: static property 'FlagNoDefer' is not concurrency-safe because non-'Sendable' type 'FileSystemEventStreamCreateFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'FlagNoDefer' 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
277 |
278 | /// Request notifications of changes along the path to the path(s) watched.
/Users/admin/builder/spi-builder-workspace/Sources/FileSystemEvent.swift:279:23: warning: static property 'WatchRoot' is not concurrency-safe because non-'Sendable' type 'FileSystemEventStreamCreateFlags' may have shared mutable state; this is an error in the Swift 6 language mode
262 |
263 | /// Flags for creating an event stream.
264 | public struct FileSystemEventStreamCreateFlags: OptionSet, CustomStringConvertible, CustomDebugStringConvertible {
| `- note: consider making struct 'FileSystemEventStreamCreateFlags' conform to the 'Sendable' protocol
265 |
266 | // MARK: - Options
:
277 |
278 | /// Request notifications of changes along the path to the path(s) watched.
279 | public static let WatchRoot = FileSystemEventStreamCreateFlags(rawValue: kFSEventStreamCreateFlagWatchRoot)
| |- warning: static property 'WatchRoot' is not concurrency-safe because non-'Sendable' type 'FileSystemEventStreamCreateFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'WatchRoot' 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
280 |
281 | /// Don't send events that were triggered by the current process.
/Users/admin/builder/spi-builder-workspace/Sources/FileSystemEvent.swift:282:23: warning: static property 'IgnoreSelf' is not concurrency-safe because non-'Sendable' type 'FileSystemEventStreamCreateFlags' may have shared mutable state; this is an error in the Swift 6 language mode
262 |
263 | /// Flags for creating an event stream.
264 | public struct FileSystemEventStreamCreateFlags: OptionSet, CustomStringConvertible, CustomDebugStringConvertible {
| `- note: consider making struct 'FileSystemEventStreamCreateFlags' conform to the 'Sendable' protocol
265 |
266 | // MARK: - Options
:
280 |
281 | /// Don't send events that were triggered by the current process.
282 | public static let IgnoreSelf = FileSystemEventStreamCreateFlags(rawValue: kFSEventStreamCreateFlagIgnoreSelf)
| |- warning: static property 'IgnoreSelf' is not concurrency-safe because non-'Sendable' type 'FileSystemEventStreamCreateFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'IgnoreSelf' 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
283 |
284 | /// Request file-level notifications.
/Users/admin/builder/spi-builder-workspace/Sources/FileSystemEvent.swift:285:23: warning: static property 'FileEvents' is not concurrency-safe because non-'Sendable' type 'FileSystemEventStreamCreateFlags' may have shared mutable state; this is an error in the Swift 6 language mode
262 |
263 | /// Flags for creating an event stream.
264 | public struct FileSystemEventStreamCreateFlags: OptionSet, CustomStringConvertible, CustomDebugStringConvertible {
| `- note: consider making struct 'FileSystemEventStreamCreateFlags' conform to the 'Sendable' protocol
265 |
266 | // MARK: - Options
:
283 |
284 | /// Request file-level notifications.
285 | public static let FileEvents = FileSystemEventStreamCreateFlags(rawValue: kFSEventStreamCreateFlagFileEvents)
| |- warning: static property 'FileEvents' is not concurrency-safe because non-'Sendable' type 'FileSystemEventStreamCreateFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'FileEvents' 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
286 |
287 | /// Tag events that were triggered by the current process with the
/Users/admin/builder/spi-builder-workspace/Sources/FileSystemEvent.swift:289:23: warning: static property 'MarkSelf' is not concurrency-safe because non-'Sendable' type 'FileSystemEventStreamCreateFlags' may have shared mutable state; this is an error in the Swift 6 language mode
262 |
263 | /// Flags for creating an event stream.
264 | public struct FileSystemEventStreamCreateFlags: OptionSet, CustomStringConvertible, CustomDebugStringConvertible {
| `- note: consider making struct 'FileSystemEventStreamCreateFlags' conform to the 'Sendable' protocol
265 |
266 | // MARK: - Options
:
287 | /// Tag events that were triggered by the current process with the
288 | /// `OwnEvent` flag.
289 | public static let MarkSelf = FileSystemEventStreamCreateFlags(rawValue: kFSEventStreamCreateFlagMarkSelf)
| |- warning: static property 'MarkSelf' is not concurrency-safe because non-'Sendable' type 'FileSystemEventStreamCreateFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'MarkSelf' 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
290 |
291 | // MARK: - All Flags
/Users/admin/builder/spi-builder-workspace/Sources/FileSystemEvent.swift:294:23: warning: static property 'allFlags' is not concurrency-safe because non-'Sendable' type '[FileSystemEventStreamCreateFlags]' may have shared mutable state; this is an error in the Swift 6 language mode
262 |
263 | /// Flags for creating an event stream.
264 | public struct FileSystemEventStreamCreateFlags: OptionSet, CustomStringConvertible, CustomDebugStringConvertible {
| `- note: consider making struct 'FileSystemEventStreamCreateFlags' conform to the 'Sendable' protocol
265 |
266 | // MARK: - Options
:
292 |
293 | /// All of the event stream creation flags.
294 | public static let allFlags: [FileSystemEventStreamCreateFlags] = [.None, .UseCFTypes, .FlagNoDefer, .WatchRoot, .IgnoreSelf, .FileEvents, .MarkSelf]
| |- warning: static property 'allFlags' is not concurrency-safe because non-'Sendable' type '[FileSystemEventStreamCreateFlags]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'allFlags' 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
295 |
296 | /// All of the names of the event stream creation flags.
[15/38] Compiling FileKit Array+File.swift
[16/38] Compiling FileKit ArrayFile.swift
[17/38] Compiling FileKit Bundle+FileKit.swift
[18/38] Compiling FileKit Data+FileKit.swift
[19/38] Compiling FileKit DataFile.swift
[20/38] Compiling FileKit DataType.swift
[21/38] Compiling FileKit Dictionary+File.swift
[22/38] Compiling FileKit DictionaryFile.swift
[23/38] Compiling FileKit RelativePathType.swift
/Users/admin/builder/spi-builder-workspace/Sources/String+FileKit.swift:30:5: warning: var 'ReadableWritableStringEncoding' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 | import Foundation
29 |
30 | var ReadableWritableStringEncoding = String.Encoding.utf8
| |- warning: var 'ReadableWritableStringEncoding' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ReadableWritableStringEncoding' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'ReadableWritableStringEncoding' 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
31 |
32 | /// Allows String to be used as a ReadableWritable.
[24/38] Compiling FileKit String+FileKit.swift
/Users/admin/builder/spi-builder-workspace/Sources/String+FileKit.swift:30:5: warning: var 'ReadableWritableStringEncoding' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 | import Foundation
29 |
30 | var ReadableWritableStringEncoding = String.Encoding.utf8
| |- warning: var 'ReadableWritableStringEncoding' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ReadableWritableStringEncoding' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'ReadableWritableStringEncoding' 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
31 |
32 | /// Allows String to be used as a ReadableWritable.
[25/38] Compiling FileKit TextFile.swift
/Users/admin/builder/spi-builder-workspace/Sources/String+FileKit.swift:30:5: warning: var 'ReadableWritableStringEncoding' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 | import Foundation
29 |
30 | var ReadableWritableStringEncoding = String.Encoding.utf8
| |- warning: var 'ReadableWritableStringEncoding' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ReadableWritableStringEncoding' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'ReadableWritableStringEncoding' 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
31 |
32 | /// Allows String to be used as a ReadableWritable.
[26/38] Compiling FileKit Image+FileKit.swift
/Users/admin/builder/spi-builder-workspace/Sources/FileKit.swift:64:23: warning: static property 'jsonDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
62 |
63 | /// Shared json decoder instance
64 | public static var jsonDecoder = JSONDecoder()
| |- warning: static property 'jsonDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'jsonDecoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'jsonDecoder' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 | /// Shared json encoder instance
66 | public static var jsonEncoder = JSONEncoder()
/Users/admin/builder/spi-builder-workspace/Sources/FileKit.swift:66:23: warning: static property 'jsonEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
64 | public static var jsonDecoder = JSONDecoder()
65 | /// Shared json encoder instance
66 | public static var jsonEncoder = JSONEncoder()
| |- warning: static property 'jsonEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'jsonEncoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'jsonEncoder' 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
67 | /// Shared property list decoder instance
68 | public static var propertyListDecoder = PropertyListDecoder()
[27/38] Compiling FileKit ImageFile.swift
/Users/admin/builder/spi-builder-workspace/Sources/FileKit.swift:64:23: warning: static property 'jsonDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
62 |
63 | /// Shared json decoder instance
64 | public static var jsonDecoder = JSONDecoder()
| |- warning: static property 'jsonDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'jsonDecoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'jsonDecoder' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 | /// Shared json encoder instance
66 | public static var jsonEncoder = JSONEncoder()
/Users/admin/builder/spi-builder-workspace/Sources/FileKit.swift:66:23: warning: static property 'jsonEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
64 | public static var jsonDecoder = JSONDecoder()
65 | /// Shared json encoder instance
66 | public static var jsonEncoder = JSONEncoder()
| |- warning: static property 'jsonEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'jsonEncoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'jsonEncoder' 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
67 | /// Shared property list decoder instance
68 | public static var propertyListDecoder = PropertyListDecoder()
[28/38] Compiling FileKit JSONType.swift
/Users/admin/builder/spi-builder-workspace/Sources/FileKit.swift:64:23: warning: static property 'jsonDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
62 |
63 | /// Shared json decoder instance
64 | public static var jsonDecoder = JSONDecoder()
| |- warning: static property 'jsonDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'jsonDecoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'jsonDecoder' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 | /// Shared json encoder instance
66 | public static var jsonEncoder = JSONEncoder()
/Users/admin/builder/spi-builder-workspace/Sources/FileKit.swift:66:23: warning: static property 'jsonEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
64 | public static var jsonDecoder = JSONDecoder()
65 | /// Shared json encoder instance
66 | public static var jsonEncoder = JSONEncoder()
| |- warning: static property 'jsonEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'jsonEncoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'jsonEncoder' 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
67 | /// Shared property list decoder instance
68 | public static var propertyListDecoder = PropertyListDecoder()
[29/38] Compiling FileKit Path.swift
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:45:23: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'Path' may have shared mutable state; this is an error in the Swift 6 language mode
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
:
43 |
44 | /// The root path.
45 | public static let root = Path(separator)
| |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'Path' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'root' 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
46 |
47 | /// The path of the program's current working directory.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:1178:12: warning: initializer 'init(stringInterpolation:)' nearly matches defaulted requirement 'init(stringInterpolation:)' of protocol 'ExpressibleByStringInterpolation'
1176 |
1177 | /// Initializes a path from the string interpolation paths.
1178 | public init(stringInterpolation paths: Path...) {
| |- warning: initializer 'init(stringInterpolation:)' nearly matches defaulted requirement 'init(stringInterpolation:)' of protocol 'ExpressibleByStringInterpolation'
| |- note: candidate has non-matching type '(stringInterpolation: Path...)' [with StringInterpolation = DefaultStringInterpolation]
| `- note: move 'init(stringInterpolation:)' to another extension to silence this warning
1179 | self.init(paths.reduce("", { $0 + $1.rawValue }))
1180 | }
Swift.ExpressibleByStringInterpolation:3:5: note: requirement 'init(stringInterpolation:)' declared here
1 | public protocol ExpressibleByStringInterpolation : ExpressibleByStringLiteral {
2 | associatedtype StringInterpolation : StringInterpolationProtocol = DefaultStringInterpolation where Self.StringLiteralType == Self.StringInterpolation.StringLiteralType
3 | init(stringInterpolation: Self.StringInterpolation)
| `- note: requirement 'init(stringInterpolation:)' declared here
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/FileKit.swift:68:23: warning: static property 'propertyListDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
66 | public static var jsonEncoder = JSONEncoder()
67 | /// Shared property list decoder instance
68 | public static var propertyListDecoder = PropertyListDecoder()
| |- warning: static property 'propertyListDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'propertyListDecoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'propertyListDecoder' 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 | /// Shared property list encoder instance
70 | public static var propertyListEncoder = PropertyListEncoder()
/Users/admin/builder/spi-builder-workspace/Sources/FileKit.swift:70:23: warning: static property 'propertyListEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
68 | public static var propertyListDecoder = PropertyListDecoder()
69 | /// Shared property list encoder instance
70 | public static var propertyListEncoder = PropertyListEncoder()
| |- warning: static property 'propertyListEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'propertyListEncoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'propertyListEncoder' 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
71 |
72 | }
[30/38] Compiling FileKit Process+FileKit.swift
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:45:23: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'Path' may have shared mutable state; this is an error in the Swift 6 language mode
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
:
43 |
44 | /// The root path.
45 | public static let root = Path(separator)
| |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'Path' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'root' 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
46 |
47 | /// The path of the program's current working directory.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:1178:12: warning: initializer 'init(stringInterpolation:)' nearly matches defaulted requirement 'init(stringInterpolation:)' of protocol 'ExpressibleByStringInterpolation'
1176 |
1177 | /// Initializes a path from the string interpolation paths.
1178 | public init(stringInterpolation paths: Path...) {
| |- warning: initializer 'init(stringInterpolation:)' nearly matches defaulted requirement 'init(stringInterpolation:)' of protocol 'ExpressibleByStringInterpolation'
| |- note: candidate has non-matching type '(stringInterpolation: Path...)' [with StringInterpolation = DefaultStringInterpolation]
| `- note: move 'init(stringInterpolation:)' to another extension to silence this warning
1179 | self.init(paths.reduce("", { $0 + $1.rawValue }))
1180 | }
Swift.ExpressibleByStringInterpolation:3:5: note: requirement 'init(stringInterpolation:)' declared here
1 | public protocol ExpressibleByStringInterpolation : ExpressibleByStringLiteral {
2 | associatedtype StringInterpolation : StringInterpolationProtocol = DefaultStringInterpolation where Self.StringLiteralType == Self.StringInterpolation.StringLiteralType
3 | init(stringInterpolation: Self.StringInterpolation)
| `- note: requirement 'init(stringInterpolation:)' declared here
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/FileKit.swift:68:23: warning: static property 'propertyListDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
66 | public static var jsonEncoder = JSONEncoder()
67 | /// Shared property list decoder instance
68 | public static var propertyListDecoder = PropertyListDecoder()
| |- warning: static property 'propertyListDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'propertyListDecoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'propertyListDecoder' 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 | /// Shared property list encoder instance
70 | public static var propertyListEncoder = PropertyListEncoder()
/Users/admin/builder/spi-builder-workspace/Sources/FileKit.swift:70:23: warning: static property 'propertyListEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
68 | public static var propertyListDecoder = PropertyListDecoder()
69 | /// Shared property list encoder instance
70 | public static var propertyListEncoder = PropertyListEncoder()
| |- warning: static property 'propertyListEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'propertyListEncoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'propertyListEncoder' 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
71 |
72 | }
[31/38] Compiling FileKit PropertyListType.swift
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:45:23: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'Path' may have shared mutable state; this is an error in the Swift 6 language mode
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
:
43 |
44 | /// The root path.
45 | public static let root = Path(separator)
| |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'Path' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'root' 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
46 |
47 | /// The path of the program's current working directory.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:1178:12: warning: initializer 'init(stringInterpolation:)' nearly matches defaulted requirement 'init(stringInterpolation:)' of protocol 'ExpressibleByStringInterpolation'
1176 |
1177 | /// Initializes a path from the string interpolation paths.
1178 | public init(stringInterpolation paths: Path...) {
| |- warning: initializer 'init(stringInterpolation:)' nearly matches defaulted requirement 'init(stringInterpolation:)' of protocol 'ExpressibleByStringInterpolation'
| |- note: candidate has non-matching type '(stringInterpolation: Path...)' [with StringInterpolation = DefaultStringInterpolation]
| `- note: move 'init(stringInterpolation:)' to another extension to silence this warning
1179 | self.init(paths.reduce("", { $0 + $1.rawValue }))
1180 | }
Swift.ExpressibleByStringInterpolation:3:5: note: requirement 'init(stringInterpolation:)' declared here
1 | public protocol ExpressibleByStringInterpolation : ExpressibleByStringLiteral {
2 | associatedtype StringInterpolation : StringInterpolationProtocol = DefaultStringInterpolation where Self.StringLiteralType == Self.StringInterpolation.StringLiteralType
3 | init(stringInterpolation: Self.StringInterpolation)
| `- note: requirement 'init(stringInterpolation:)' declared here
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/FileKit.swift:68:23: warning: static property 'propertyListDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
66 | public static var jsonEncoder = JSONEncoder()
67 | /// Shared property list decoder instance
68 | public static var propertyListDecoder = PropertyListDecoder()
| |- warning: static property 'propertyListDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'propertyListDecoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'propertyListDecoder' 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 | /// Shared property list encoder instance
70 | public static var propertyListEncoder = PropertyListEncoder()
/Users/admin/builder/spi-builder-workspace/Sources/FileKit.swift:70:23: warning: static property 'propertyListEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
68 | public static var propertyListDecoder = PropertyListDecoder()
69 | /// Shared property list encoder instance
70 | public static var propertyListEncoder = PropertyListEncoder()
| |- warning: static property 'propertyListEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'propertyListEncoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'propertyListEncoder' 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
71 |
72 | }
[32/38] Compiling FileKit NSDictionary+FileKit.swift
[33/38] Compiling FileKit NSString+FileKit.swift
[34/38] Compiling FileKit Operators.swift
[35/38] Compiling FileKit FileKit.swift
/Users/admin/builder/spi-builder-workspace/Sources/FileKit.swift:64:23: warning: static property 'jsonDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
62 |
63 | /// Shared json decoder instance
64 | public static var jsonDecoder = JSONDecoder()
| |- warning: static property 'jsonDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'jsonDecoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'jsonDecoder' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 | /// Shared json encoder instance
66 | public static var jsonEncoder = JSONEncoder()
/Users/admin/builder/spi-builder-workspace/Sources/FileKit.swift:66:23: warning: static property 'jsonEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
64 | public static var jsonDecoder = JSONDecoder()
65 | /// Shared json encoder instance
66 | public static var jsonEncoder = JSONEncoder()
| |- warning: static property 'jsonEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'jsonEncoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'jsonEncoder' 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
67 | /// Shared property list decoder instance
68 | public static var propertyListDecoder = PropertyListDecoder()
/Users/admin/builder/spi-builder-workspace/Sources/FileKit.swift:68:23: warning: static property 'propertyListDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
66 | public static var jsonEncoder = JSONEncoder()
67 | /// Shared property list decoder instance
68 | public static var propertyListDecoder = PropertyListDecoder()
| |- warning: static property 'propertyListDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'propertyListDecoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'propertyListDecoder' 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 | /// Shared property list encoder instance
70 | public static var propertyListEncoder = PropertyListEncoder()
/Users/admin/builder/spi-builder-workspace/Sources/FileKit.swift:70:23: warning: static property 'propertyListEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
68 | public static var propertyListDecoder = PropertyListDecoder()
69 | /// Shared property list encoder instance
70 | public static var propertyListEncoder = PropertyListEncoder()
| |- warning: static property 'propertyListEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'propertyListEncoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'propertyListEncoder' 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
71 |
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:79:14: warning: associated value 'conversion' of 'Sendable'-conforming enum 'ReasonError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
77 | enum ReasonError: Error {
78 | /// Failed to read or convert to specific type.
79 | case conversion(Any)
| `- warning: associated value 'conversion' of 'Sendable'-conforming enum 'ReasonError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
80 | /// A file stream/handle is alread closed.
81 | case closed
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:36:10: warning: associated value 'fileDoesNotExist(path:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
34 |
35 | /// A file does not exist.
36 | case fileDoesNotExist(path: Path)
| `- warning: associated value 'fileDoesNotExist(path:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
37 |
38 | /// A file already exists at operation destination.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:39:10: warning: associated value 'fileAlreadyExists(path:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
37 |
38 | /// A file already exists at operation destination.
39 | case fileAlreadyExists(path: Path)
| `- warning: associated value 'fileAlreadyExists(path:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
40 |
41 | /// Could not change the current directory.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:42:10: warning: associated value 'changeDirectoryFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
40 |
41 | /// Could not change the current directory.
42 | case changeDirectoryFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'changeDirectoryFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
43 |
44 | /// A symbolic link could not be created.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:42:10: warning: associated value 'changeDirectoryFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
40 |
41 | /// Could not change the current directory.
42 | case changeDirectoryFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'changeDirectoryFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
43 |
44 | /// A symbolic link could not be created.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:45:10: warning: associated value 'createSymlinkFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
43 |
44 | /// A symbolic link could not be created.
45 | case createSymlinkFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'createSymlinkFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
46 |
47 | /// A hard link could not be created.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:45:10: warning: associated value 'createSymlinkFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
43 |
44 | /// A symbolic link could not be created.
45 | case createSymlinkFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'createSymlinkFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
46 |
47 | /// A hard link could not be created.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:48:10: warning: associated value 'createHardlinkFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
46 |
47 | /// A hard link could not be created.
48 | case createHardlinkFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'createHardlinkFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
49 |
50 | /// A file could not be created.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:48:10: warning: associated value 'createHardlinkFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
46 |
47 | /// A hard link could not be created.
48 | case createHardlinkFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'createHardlinkFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
49 |
50 | /// A file could not be created.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:51:10: warning: associated value 'createFileFail(path:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
49 |
50 | /// A file could not be created.
51 | case createFileFail(path: Path)
| `- warning: associated value 'createFileFail(path:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
52 |
53 | /// A directory could not be created.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:54:10: warning: associated value 'createDirectoryFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
52 |
53 | /// A directory could not be created.
54 | case createDirectoryFail(path: Path, error: Error)
| `- warning: associated value 'createDirectoryFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
55 |
56 | /// A file could not be deleted.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:57:10: warning: associated value 'deleteFileFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
55 |
56 | /// A file could not be deleted.
57 | case deleteFileFail(path: Path, error: Error)
| `- warning: associated value 'deleteFileFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
58 |
59 | /// A file could not be read from.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:60:10: warning: associated value 'readFromFileFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
58 |
59 | /// A file could not be read from.
60 | case readFromFileFail(path: Path, error: Error)
| `- warning: associated value 'readFromFileFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
61 |
62 | /// A file could not be written to.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:63:10: warning: associated value 'writeToFileFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
61 |
62 | /// A file could not be written to.
63 | case writeToFileFail(path: Path, error: Error)
| `- warning: associated value 'writeToFileFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
64 |
65 | /// A file could not be moved.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:66:10: warning: associated value 'moveFileFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
64 |
65 | /// A file could not be moved.
66 | case moveFileFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'moveFileFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
67 |
68 | /// A file could not be copied.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:66:10: warning: associated value 'moveFileFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
64 |
65 | /// A file could not be moved.
66 | case moveFileFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'moveFileFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
67 |
68 | /// A file could not be copied.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:69:10: warning: associated value 'copyFileFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
67 |
68 | /// A file could not be copied.
69 | case copyFileFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'copyFileFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
70 |
71 | /// One or many attributes could not be changed.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:69:10: warning: associated value 'copyFileFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
67 |
68 | /// A file could not be copied.
69 | case copyFileFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'copyFileFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
70 |
71 | /// One or many attributes could not be changed.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:72:10: warning: associated value 'attributesChangeFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
70 |
71 | /// One or many attributes could not be changed.
72 | case attributesChangeFail(path: Path, error: Error)
| `- warning: associated value 'attributesChangeFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
73 |
74 | // MARK: - Reason
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FilePermissions.swift:34:23: warning: static property 'read' is not concurrency-safe because non-'Sendable' type 'FilePermissions' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// The permissions of a file.
31 | public struct FilePermissions: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'FilePermissions' conform to the 'Sendable' protocol
32 |
33 | /// The file can be read from.
34 | public static let read = FilePermissions(rawValue: 1)
| |- warning: static property 'read' is not concurrency-safe because non-'Sendable' type 'FilePermissions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'read' 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
35 |
36 | /// The file can be written to.
/Users/admin/builder/spi-builder-workspace/Sources/FilePermissions.swift:37:23: warning: static property 'write' is not concurrency-safe because non-'Sendable' type 'FilePermissions' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// The permissions of a file.
31 | public struct FilePermissions: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'FilePermissions' conform to the 'Sendable' protocol
32 |
33 | /// The file can be read from.
:
35 |
36 | /// The file can be written to.
37 | public static let write = FilePermissions(rawValue: 2)
| |- warning: static property 'write' is not concurrency-safe because non-'Sendable' type 'FilePermissions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'write' 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
38 |
39 | /// The file can be executed.
/Users/admin/builder/spi-builder-workspace/Sources/FilePermissions.swift:40:23: warning: static property 'execute' is not concurrency-safe because non-'Sendable' type 'FilePermissions' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// The permissions of a file.
31 | public struct FilePermissions: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'FilePermissions' conform to the 'Sendable' protocol
32 |
33 | /// The file can be read from.
:
38 |
39 | /// The file can be executed.
40 | public static let execute = FilePermissions(rawValue: 4)
| |- warning: static property 'execute' is not concurrency-safe because non-'Sendable' type 'FilePermissions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'execute' 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
41 |
42 | /// All FilePermissions
/Users/admin/builder/spi-builder-workspace/Sources/FilePermissions.swift:43:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[FilePermissions]' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// The permissions of a file.
31 | public struct FilePermissions: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'FilePermissions' conform to the 'Sendable' protocol
32 |
33 | /// The file can be read from.
:
41 |
42 | /// All FilePermissions
43 | public static let all: [FilePermissions] = [.read, .write, .execute]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[FilePermissions]' 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
44 |
45 | /// The raw integer value of `self`.
[36/38] Compiling FileKit FileKitError.swift
/Users/admin/builder/spi-builder-workspace/Sources/FileKit.swift:64:23: warning: static property 'jsonDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
62 |
63 | /// Shared json decoder instance
64 | public static var jsonDecoder = JSONDecoder()
| |- warning: static property 'jsonDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'jsonDecoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'jsonDecoder' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 | /// Shared json encoder instance
66 | public static var jsonEncoder = JSONEncoder()
/Users/admin/builder/spi-builder-workspace/Sources/FileKit.swift:66:23: warning: static property 'jsonEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
64 | public static var jsonDecoder = JSONDecoder()
65 | /// Shared json encoder instance
66 | public static var jsonEncoder = JSONEncoder()
| |- warning: static property 'jsonEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'jsonEncoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'jsonEncoder' 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
67 | /// Shared property list decoder instance
68 | public static var propertyListDecoder = PropertyListDecoder()
/Users/admin/builder/spi-builder-workspace/Sources/FileKit.swift:68:23: warning: static property 'propertyListDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
66 | public static var jsonEncoder = JSONEncoder()
67 | /// Shared property list decoder instance
68 | public static var propertyListDecoder = PropertyListDecoder()
| |- warning: static property 'propertyListDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'propertyListDecoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'propertyListDecoder' 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 | /// Shared property list encoder instance
70 | public static var propertyListEncoder = PropertyListEncoder()
/Users/admin/builder/spi-builder-workspace/Sources/FileKit.swift:70:23: warning: static property 'propertyListEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
68 | public static var propertyListDecoder = PropertyListDecoder()
69 | /// Shared property list encoder instance
70 | public static var propertyListEncoder = PropertyListEncoder()
| |- warning: static property 'propertyListEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'propertyListEncoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'propertyListEncoder' 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
71 |
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:79:14: warning: associated value 'conversion' of 'Sendable'-conforming enum 'ReasonError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
77 | enum ReasonError: Error {
78 | /// Failed to read or convert to specific type.
79 | case conversion(Any)
| `- warning: associated value 'conversion' of 'Sendable'-conforming enum 'ReasonError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
80 | /// A file stream/handle is alread closed.
81 | case closed
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:36:10: warning: associated value 'fileDoesNotExist(path:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
34 |
35 | /// A file does not exist.
36 | case fileDoesNotExist(path: Path)
| `- warning: associated value 'fileDoesNotExist(path:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
37 |
38 | /// A file already exists at operation destination.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:39:10: warning: associated value 'fileAlreadyExists(path:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
37 |
38 | /// A file already exists at operation destination.
39 | case fileAlreadyExists(path: Path)
| `- warning: associated value 'fileAlreadyExists(path:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
40 |
41 | /// Could not change the current directory.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:42:10: warning: associated value 'changeDirectoryFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
40 |
41 | /// Could not change the current directory.
42 | case changeDirectoryFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'changeDirectoryFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
43 |
44 | /// A symbolic link could not be created.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:42:10: warning: associated value 'changeDirectoryFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
40 |
41 | /// Could not change the current directory.
42 | case changeDirectoryFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'changeDirectoryFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
43 |
44 | /// A symbolic link could not be created.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:45:10: warning: associated value 'createSymlinkFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
43 |
44 | /// A symbolic link could not be created.
45 | case createSymlinkFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'createSymlinkFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
46 |
47 | /// A hard link could not be created.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:45:10: warning: associated value 'createSymlinkFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
43 |
44 | /// A symbolic link could not be created.
45 | case createSymlinkFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'createSymlinkFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
46 |
47 | /// A hard link could not be created.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:48:10: warning: associated value 'createHardlinkFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
46 |
47 | /// A hard link could not be created.
48 | case createHardlinkFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'createHardlinkFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
49 |
50 | /// A file could not be created.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:48:10: warning: associated value 'createHardlinkFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
46 |
47 | /// A hard link could not be created.
48 | case createHardlinkFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'createHardlinkFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
49 |
50 | /// A file could not be created.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:51:10: warning: associated value 'createFileFail(path:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
49 |
50 | /// A file could not be created.
51 | case createFileFail(path: Path)
| `- warning: associated value 'createFileFail(path:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
52 |
53 | /// A directory could not be created.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:54:10: warning: associated value 'createDirectoryFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
52 |
53 | /// A directory could not be created.
54 | case createDirectoryFail(path: Path, error: Error)
| `- warning: associated value 'createDirectoryFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
55 |
56 | /// A file could not be deleted.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:57:10: warning: associated value 'deleteFileFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
55 |
56 | /// A file could not be deleted.
57 | case deleteFileFail(path: Path, error: Error)
| `- warning: associated value 'deleteFileFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
58 |
59 | /// A file could not be read from.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:60:10: warning: associated value 'readFromFileFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
58 |
59 | /// A file could not be read from.
60 | case readFromFileFail(path: Path, error: Error)
| `- warning: associated value 'readFromFileFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
61 |
62 | /// A file could not be written to.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:63:10: warning: associated value 'writeToFileFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
61 |
62 | /// A file could not be written to.
63 | case writeToFileFail(path: Path, error: Error)
| `- warning: associated value 'writeToFileFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
64 |
65 | /// A file could not be moved.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:66:10: warning: associated value 'moveFileFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
64 |
65 | /// A file could not be moved.
66 | case moveFileFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'moveFileFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
67 |
68 | /// A file could not be copied.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:66:10: warning: associated value 'moveFileFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
64 |
65 | /// A file could not be moved.
66 | case moveFileFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'moveFileFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
67 |
68 | /// A file could not be copied.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:69:10: warning: associated value 'copyFileFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
67 |
68 | /// A file could not be copied.
69 | case copyFileFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'copyFileFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
70 |
71 | /// One or many attributes could not be changed.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:69:10: warning: associated value 'copyFileFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
67 |
68 | /// A file could not be copied.
69 | case copyFileFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'copyFileFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
70 |
71 | /// One or many attributes could not be changed.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:72:10: warning: associated value 'attributesChangeFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
70 |
71 | /// One or many attributes could not be changed.
72 | case attributesChangeFail(path: Path, error: Error)
| `- warning: associated value 'attributesChangeFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
73 |
74 | // MARK: - Reason
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FilePermissions.swift:34:23: warning: static property 'read' is not concurrency-safe because non-'Sendable' type 'FilePermissions' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// The permissions of a file.
31 | public struct FilePermissions: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'FilePermissions' conform to the 'Sendable' protocol
32 |
33 | /// The file can be read from.
34 | public static let read = FilePermissions(rawValue: 1)
| |- warning: static property 'read' is not concurrency-safe because non-'Sendable' type 'FilePermissions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'read' 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
35 |
36 | /// The file can be written to.
/Users/admin/builder/spi-builder-workspace/Sources/FilePermissions.swift:37:23: warning: static property 'write' is not concurrency-safe because non-'Sendable' type 'FilePermissions' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// The permissions of a file.
31 | public struct FilePermissions: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'FilePermissions' conform to the 'Sendable' protocol
32 |
33 | /// The file can be read from.
:
35 |
36 | /// The file can be written to.
37 | public static let write = FilePermissions(rawValue: 2)
| |- warning: static property 'write' is not concurrency-safe because non-'Sendable' type 'FilePermissions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'write' 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
38 |
39 | /// The file can be executed.
/Users/admin/builder/spi-builder-workspace/Sources/FilePermissions.swift:40:23: warning: static property 'execute' is not concurrency-safe because non-'Sendable' type 'FilePermissions' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// The permissions of a file.
31 | public struct FilePermissions: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'FilePermissions' conform to the 'Sendable' protocol
32 |
33 | /// The file can be read from.
:
38 |
39 | /// The file can be executed.
40 | public static let execute = FilePermissions(rawValue: 4)
| |- warning: static property 'execute' is not concurrency-safe because non-'Sendable' type 'FilePermissions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'execute' 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
41 |
42 | /// All FilePermissions
/Users/admin/builder/spi-builder-workspace/Sources/FilePermissions.swift:43:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[FilePermissions]' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// The permissions of a file.
31 | public struct FilePermissions: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'FilePermissions' conform to the 'Sendable' protocol
32 |
33 | /// The file can be read from.
:
41 |
42 | /// All FilePermissions
43 | public static let all: [FilePermissions] = [.read, .write, .execute]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[FilePermissions]' 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
44 |
45 | /// The raw integer value of `self`.
[37/38] Compiling FileKit FilePermissions.swift
/Users/admin/builder/spi-builder-workspace/Sources/FileKit.swift:64:23: warning: static property 'jsonDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
62 |
63 | /// Shared json decoder instance
64 | public static var jsonDecoder = JSONDecoder()
| |- warning: static property 'jsonDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'jsonDecoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'jsonDecoder' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 | /// Shared json encoder instance
66 | public static var jsonEncoder = JSONEncoder()
/Users/admin/builder/spi-builder-workspace/Sources/FileKit.swift:66:23: warning: static property 'jsonEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
64 | public static var jsonDecoder = JSONDecoder()
65 | /// Shared json encoder instance
66 | public static var jsonEncoder = JSONEncoder()
| |- warning: static property 'jsonEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'jsonEncoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'jsonEncoder' 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
67 | /// Shared property list decoder instance
68 | public static var propertyListDecoder = PropertyListDecoder()
/Users/admin/builder/spi-builder-workspace/Sources/FileKit.swift:68:23: warning: static property 'propertyListDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
66 | public static var jsonEncoder = JSONEncoder()
67 | /// Shared property list decoder instance
68 | public static var propertyListDecoder = PropertyListDecoder()
| |- warning: static property 'propertyListDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'propertyListDecoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'propertyListDecoder' 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 | /// Shared property list encoder instance
70 | public static var propertyListEncoder = PropertyListEncoder()
/Users/admin/builder/spi-builder-workspace/Sources/FileKit.swift:70:23: warning: static property 'propertyListEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
68 | public static var propertyListDecoder = PropertyListDecoder()
69 | /// Shared property list encoder instance
70 | public static var propertyListEncoder = PropertyListEncoder()
| |- warning: static property 'propertyListEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'propertyListEncoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'propertyListEncoder' 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
71 |
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:79:14: warning: associated value 'conversion' of 'Sendable'-conforming enum 'ReasonError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
77 | enum ReasonError: Error {
78 | /// Failed to read or convert to specific type.
79 | case conversion(Any)
| `- warning: associated value 'conversion' of 'Sendable'-conforming enum 'ReasonError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
80 | /// A file stream/handle is alread closed.
81 | case closed
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:36:10: warning: associated value 'fileDoesNotExist(path:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
34 |
35 | /// A file does not exist.
36 | case fileDoesNotExist(path: Path)
| `- warning: associated value 'fileDoesNotExist(path:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
37 |
38 | /// A file already exists at operation destination.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:39:10: warning: associated value 'fileAlreadyExists(path:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
37 |
38 | /// A file already exists at operation destination.
39 | case fileAlreadyExists(path: Path)
| `- warning: associated value 'fileAlreadyExists(path:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
40 |
41 | /// Could not change the current directory.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:42:10: warning: associated value 'changeDirectoryFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
40 |
41 | /// Could not change the current directory.
42 | case changeDirectoryFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'changeDirectoryFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
43 |
44 | /// A symbolic link could not be created.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:42:10: warning: associated value 'changeDirectoryFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
40 |
41 | /// Could not change the current directory.
42 | case changeDirectoryFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'changeDirectoryFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
43 |
44 | /// A symbolic link could not be created.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:45:10: warning: associated value 'createSymlinkFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
43 |
44 | /// A symbolic link could not be created.
45 | case createSymlinkFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'createSymlinkFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
46 |
47 | /// A hard link could not be created.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:45:10: warning: associated value 'createSymlinkFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
43 |
44 | /// A symbolic link could not be created.
45 | case createSymlinkFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'createSymlinkFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
46 |
47 | /// A hard link could not be created.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:48:10: warning: associated value 'createHardlinkFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
46 |
47 | /// A hard link could not be created.
48 | case createHardlinkFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'createHardlinkFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
49 |
50 | /// A file could not be created.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:48:10: warning: associated value 'createHardlinkFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
46 |
47 | /// A hard link could not be created.
48 | case createHardlinkFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'createHardlinkFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
49 |
50 | /// A file could not be created.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:51:10: warning: associated value 'createFileFail(path:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
49 |
50 | /// A file could not be created.
51 | case createFileFail(path: Path)
| `- warning: associated value 'createFileFail(path:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
52 |
53 | /// A directory could not be created.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:54:10: warning: associated value 'createDirectoryFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
52 |
53 | /// A directory could not be created.
54 | case createDirectoryFail(path: Path, error: Error)
| `- warning: associated value 'createDirectoryFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
55 |
56 | /// A file could not be deleted.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:57:10: warning: associated value 'deleteFileFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
55 |
56 | /// A file could not be deleted.
57 | case deleteFileFail(path: Path, error: Error)
| `- warning: associated value 'deleteFileFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
58 |
59 | /// A file could not be read from.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:60:10: warning: associated value 'readFromFileFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
58 |
59 | /// A file could not be read from.
60 | case readFromFileFail(path: Path, error: Error)
| `- warning: associated value 'readFromFileFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
61 |
62 | /// A file could not be written to.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:63:10: warning: associated value 'writeToFileFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
61 |
62 | /// A file could not be written to.
63 | case writeToFileFail(path: Path, error: Error)
| `- warning: associated value 'writeToFileFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
64 |
65 | /// A file could not be moved.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:66:10: warning: associated value 'moveFileFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
64 |
65 | /// A file could not be moved.
66 | case moveFileFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'moveFileFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
67 |
68 | /// A file could not be copied.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:66:10: warning: associated value 'moveFileFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
64 |
65 | /// A file could not be moved.
66 | case moveFileFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'moveFileFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
67 |
68 | /// A file could not be copied.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:69:10: warning: associated value 'copyFileFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
67 |
68 | /// A file could not be copied.
69 | case copyFileFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'copyFileFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
70 |
71 | /// One or many attributes could not be changed.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:69:10: warning: associated value 'copyFileFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
67 |
68 | /// A file could not be copied.
69 | case copyFileFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'copyFileFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
70 |
71 | /// One or many attributes could not be changed.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:72:10: warning: associated value 'attributesChangeFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
70 |
71 | /// One or many attributes could not be changed.
72 | case attributesChangeFail(path: Path, error: Error)
| `- warning: associated value 'attributesChangeFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
73 |
74 | // MARK: - Reason
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FilePermissions.swift:34:23: warning: static property 'read' is not concurrency-safe because non-'Sendable' type 'FilePermissions' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// The permissions of a file.
31 | public struct FilePermissions: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'FilePermissions' conform to the 'Sendable' protocol
32 |
33 | /// The file can be read from.
34 | public static let read = FilePermissions(rawValue: 1)
| |- warning: static property 'read' is not concurrency-safe because non-'Sendable' type 'FilePermissions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'read' 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
35 |
36 | /// The file can be written to.
/Users/admin/builder/spi-builder-workspace/Sources/FilePermissions.swift:37:23: warning: static property 'write' is not concurrency-safe because non-'Sendable' type 'FilePermissions' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// The permissions of a file.
31 | public struct FilePermissions: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'FilePermissions' conform to the 'Sendable' protocol
32 |
33 | /// The file can be read from.
:
35 |
36 | /// The file can be written to.
37 | public static let write = FilePermissions(rawValue: 2)
| |- warning: static property 'write' is not concurrency-safe because non-'Sendable' type 'FilePermissions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'write' 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
38 |
39 | /// The file can be executed.
/Users/admin/builder/spi-builder-workspace/Sources/FilePermissions.swift:40:23: warning: static property 'execute' is not concurrency-safe because non-'Sendable' type 'FilePermissions' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// The permissions of a file.
31 | public struct FilePermissions: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'FilePermissions' conform to the 'Sendable' protocol
32 |
33 | /// The file can be read from.
:
38 |
39 | /// The file can be executed.
40 | public static let execute = FilePermissions(rawValue: 4)
| |- warning: static property 'execute' is not concurrency-safe because non-'Sendable' type 'FilePermissions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'execute' 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
41 |
42 | /// All FilePermissions
/Users/admin/builder/spi-builder-workspace/Sources/FilePermissions.swift:43:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[FilePermissions]' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// The permissions of a file.
31 | public struct FilePermissions: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'FilePermissions' conform to the 'Sendable' protocol
32 |
33 | /// The file can be read from.
:
41 |
42 | /// All FilePermissions
43 | public static let all: [FilePermissions] = [.read, .write, .execute]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[FilePermissions]' 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
44 |
45 | /// The raw integer value of `self`.
[38/38] Compiling FileKit FileProtection.swift
/Users/admin/builder/spi-builder-workspace/Sources/FileKit.swift:64:23: warning: static property 'jsonDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
62 |
63 | /// Shared json decoder instance
64 | public static var jsonDecoder = JSONDecoder()
| |- warning: static property 'jsonDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'jsonDecoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'jsonDecoder' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 | /// Shared json encoder instance
66 | public static var jsonEncoder = JSONEncoder()
/Users/admin/builder/spi-builder-workspace/Sources/FileKit.swift:66:23: warning: static property 'jsonEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
64 | public static var jsonDecoder = JSONDecoder()
65 | /// Shared json encoder instance
66 | public static var jsonEncoder = JSONEncoder()
| |- warning: static property 'jsonEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'jsonEncoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'jsonEncoder' 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
67 | /// Shared property list decoder instance
68 | public static var propertyListDecoder = PropertyListDecoder()
/Users/admin/builder/spi-builder-workspace/Sources/FileKit.swift:68:23: warning: static property 'propertyListDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
66 | public static var jsonEncoder = JSONEncoder()
67 | /// Shared property list decoder instance
68 | public static var propertyListDecoder = PropertyListDecoder()
| |- warning: static property 'propertyListDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'propertyListDecoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'propertyListDecoder' 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 | /// Shared property list encoder instance
70 | public static var propertyListEncoder = PropertyListEncoder()
/Users/admin/builder/spi-builder-workspace/Sources/FileKit.swift:70:23: warning: static property 'propertyListEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
68 | public static var propertyListDecoder = PropertyListDecoder()
69 | /// Shared property list encoder instance
70 | public static var propertyListEncoder = PropertyListEncoder()
| |- warning: static property 'propertyListEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'propertyListEncoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'propertyListEncoder' 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
71 |
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:79:14: warning: associated value 'conversion' of 'Sendable'-conforming enum 'ReasonError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
77 | enum ReasonError: Error {
78 | /// Failed to read or convert to specific type.
79 | case conversion(Any)
| `- warning: associated value 'conversion' of 'Sendable'-conforming enum 'ReasonError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
80 | /// A file stream/handle is alread closed.
81 | case closed
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:36:10: warning: associated value 'fileDoesNotExist(path:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
34 |
35 | /// A file does not exist.
36 | case fileDoesNotExist(path: Path)
| `- warning: associated value 'fileDoesNotExist(path:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
37 |
38 | /// A file already exists at operation destination.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:39:10: warning: associated value 'fileAlreadyExists(path:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
37 |
38 | /// A file already exists at operation destination.
39 | case fileAlreadyExists(path: Path)
| `- warning: associated value 'fileAlreadyExists(path:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
40 |
41 | /// Could not change the current directory.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:42:10: warning: associated value 'changeDirectoryFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
40 |
41 | /// Could not change the current directory.
42 | case changeDirectoryFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'changeDirectoryFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
43 |
44 | /// A symbolic link could not be created.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:42:10: warning: associated value 'changeDirectoryFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
40 |
41 | /// Could not change the current directory.
42 | case changeDirectoryFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'changeDirectoryFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
43 |
44 | /// A symbolic link could not be created.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:45:10: warning: associated value 'createSymlinkFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
43 |
44 | /// A symbolic link could not be created.
45 | case createSymlinkFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'createSymlinkFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
46 |
47 | /// A hard link could not be created.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:45:10: warning: associated value 'createSymlinkFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
43 |
44 | /// A symbolic link could not be created.
45 | case createSymlinkFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'createSymlinkFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
46 |
47 | /// A hard link could not be created.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:48:10: warning: associated value 'createHardlinkFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
46 |
47 | /// A hard link could not be created.
48 | case createHardlinkFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'createHardlinkFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
49 |
50 | /// A file could not be created.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:48:10: warning: associated value 'createHardlinkFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
46 |
47 | /// A hard link could not be created.
48 | case createHardlinkFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'createHardlinkFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
49 |
50 | /// A file could not be created.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:51:10: warning: associated value 'createFileFail(path:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
49 |
50 | /// A file could not be created.
51 | case createFileFail(path: Path)
| `- warning: associated value 'createFileFail(path:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
52 |
53 | /// A directory could not be created.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:54:10: warning: associated value 'createDirectoryFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
52 |
53 | /// A directory could not be created.
54 | case createDirectoryFail(path: Path, error: Error)
| `- warning: associated value 'createDirectoryFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
55 |
56 | /// A file could not be deleted.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:57:10: warning: associated value 'deleteFileFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
55 |
56 | /// A file could not be deleted.
57 | case deleteFileFail(path: Path, error: Error)
| `- warning: associated value 'deleteFileFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
58 |
59 | /// A file could not be read from.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:60:10: warning: associated value 'readFromFileFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
58 |
59 | /// A file could not be read from.
60 | case readFromFileFail(path: Path, error: Error)
| `- warning: associated value 'readFromFileFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
61 |
62 | /// A file could not be written to.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:63:10: warning: associated value 'writeToFileFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
61 |
62 | /// A file could not be written to.
63 | case writeToFileFail(path: Path, error: Error)
| `- warning: associated value 'writeToFileFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
64 |
65 | /// A file could not be moved.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:66:10: warning: associated value 'moveFileFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
64 |
65 | /// A file could not be moved.
66 | case moveFileFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'moveFileFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
67 |
68 | /// A file could not be copied.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:66:10: warning: associated value 'moveFileFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
64 |
65 | /// A file could not be moved.
66 | case moveFileFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'moveFileFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
67 |
68 | /// A file could not be copied.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:69:10: warning: associated value 'copyFileFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
67 |
68 | /// A file could not be copied.
69 | case copyFileFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'copyFileFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
70 |
71 | /// One or many attributes could not be changed.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:69:10: warning: associated value 'copyFileFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
67 |
68 | /// A file could not be copied.
69 | case copyFileFail(from: Path, to: Path, error: Error)
| `- warning: associated value 'copyFileFail(from:to:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
70 |
71 | /// One or many attributes could not be changed.
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FileKitError.swift:72:10: warning: associated value 'attributesChangeFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
70 |
71 | /// One or many attributes could not be changed.
72 | case attributesChangeFail(path: Path, error: Error)
| `- warning: associated value 'attributesChangeFail(path:error:)' of 'Sendable'-conforming enum 'FileKitError' has non-sendable type 'Path'; this is an error in the Swift 6 language mode
73 |
74 | // MARK: - Reason
/Users/admin/builder/spi-builder-workspace/Sources/Path.swift:37:15: note: consider making struct 'Path' conform to the 'Sendable' protocol
35 | ///
36 |
37 | public struct Path {
| `- note: consider making struct 'Path' conform to the 'Sendable' protocol
38 |
39 | // MARK: - Static Methods and Properties
/Users/admin/builder/spi-builder-workspace/Sources/FilePermissions.swift:34:23: warning: static property 'read' is not concurrency-safe because non-'Sendable' type 'FilePermissions' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// The permissions of a file.
31 | public struct FilePermissions: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'FilePermissions' conform to the 'Sendable' protocol
32 |
33 | /// The file can be read from.
34 | public static let read = FilePermissions(rawValue: 1)
| |- warning: static property 'read' is not concurrency-safe because non-'Sendable' type 'FilePermissions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'read' 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
35 |
36 | /// The file can be written to.
/Users/admin/builder/spi-builder-workspace/Sources/FilePermissions.swift:37:23: warning: static property 'write' is not concurrency-safe because non-'Sendable' type 'FilePermissions' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// The permissions of a file.
31 | public struct FilePermissions: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'FilePermissions' conform to the 'Sendable' protocol
32 |
33 | /// The file can be read from.
:
35 |
36 | /// The file can be written to.
37 | public static let write = FilePermissions(rawValue: 2)
| |- warning: static property 'write' is not concurrency-safe because non-'Sendable' type 'FilePermissions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'write' 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
38 |
39 | /// The file can be executed.
/Users/admin/builder/spi-builder-workspace/Sources/FilePermissions.swift:40:23: warning: static property 'execute' is not concurrency-safe because non-'Sendable' type 'FilePermissions' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// The permissions of a file.
31 | public struct FilePermissions: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'FilePermissions' conform to the 'Sendable' protocol
32 |
33 | /// The file can be read from.
:
38 |
39 | /// The file can be executed.
40 | public static let execute = FilePermissions(rawValue: 4)
| |- warning: static property 'execute' is not concurrency-safe because non-'Sendable' type 'FilePermissions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'execute' 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
41 |
42 | /// All FilePermissions
/Users/admin/builder/spi-builder-workspace/Sources/FilePermissions.swift:43:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[FilePermissions]' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// The permissions of a file.
31 | public struct FilePermissions: OptionSet, CustomStringConvertible {
| `- note: consider making struct 'FilePermissions' conform to the 'Sendable' protocol
32 |
33 | /// The file can be read from.
:
41 |
42 | /// All FilePermissions
43 | public static let all: [FilePermissions] = [.read, .write, .execute]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[FilePermissions]' 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
44 |
45 | /// The raw integer value of `self`.
Build complete! (20.47s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "FileKit",
"name" : "FileKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "FileKit",
"targets" : [
"FileKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "FileKitTests",
"module_type" : "SwiftTarget",
"name" : "FileKitTests",
"path" : "Tests",
"sources" : [
"FileKitTests.swift"
],
"target_dependencies" : [
"FileKit"
],
"type" : "test"
},
{
"c99name" : "FileKit",
"module_type" : "SwiftTarget",
"name" : "FileKit",
"path" : "Sources",
"product_memberships" : [
"FileKit"
],
"sources" : [
"Array+File.swift",
"ArrayFile.swift",
"Bundle+FileKit.swift",
"Data+FileKit.swift",
"DataFile.swift",
"DataType.swift",
"Dictionary+File.swift",
"DictionaryFile.swift",
"DirectoryEnumerator.swift",
"DispatchEvent.swift",
"DispatchWatcher.swift",
"File.swift",
"FileKit.swift",
"FileKitError.swift",
"FilePermissions.swift",
"FileProtection.swift",
"FileSystemEvent.swift",
"FileSystemEventStream.swift",
"FileSystemWatcher.swift",
"FileType.swift",
"Image+FileKit.swift",
"ImageFile.swift",
"JSONType.swift",
"NSArray+FileKit.swift",
"NSData+FileKit.swift",
"NSDataFile.swift",
"NSDictionary+FileKit.swift",
"NSString+FileKit.swift",
"Operators.swift",
"Path.swift",
"Process+FileKit.swift",
"PropertyListType.swift",
"RelativePathType.swift",
"String+FileKit.swift",
"TextFile.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Done.