Build Information
Successful build of Pathman, reference master (e8d3e2
), with Swift 6.0 for Linux on 27 Nov 2024 11:57:34 UTC.
Swift 6 data race errors: 115
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
Build Log
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/host/spi-builder-workspace/Sources/Pathman/File/FilePath+StandardStreams.swift:9:20: warning: reference to var 'stdin' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
7 | let cStdout = Glibc.stdout
8 | let cStderr = Glibc.stderr
9 | let cStdin = Glibc.stdin
| `- warning: reference to var 'stdin' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
10 | #else
11 | import struct Darwin.FILE
SwiftGlibc.stdin:1:12: note: var declared here
1 | public var stdin: UnsafeMutablePointer<FILE>!
| `- note: var declared here
/host/spi-builder-workspace/Sources/Pathman/File/FilePath+StandardStreams.swift:21:12: warning: let 'stdout' is not concurrency-safe because non-'Sendable' type 'FileStream' (aka 'Open<FilePath>') may have shared mutable state; this is an error in the Swift 6 language mode
19 | #endif
20 |
21 | public let stdout: FileStream = {
| |- warning: let 'stdout' is not concurrency-safe because non-'Sendable' type 'FileStream' (aka 'Open<FilePath>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stdout' 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
22 | FileStream(descriptor: cStdout !! "No stdout stream!",
23 | fileDescriptor: fileno(cStdout),
/host/spi-builder-workspace/Sources/Pathman/Open/Open.swift:11:20: note: generic class 'Open' does not conform to the 'Sendable' protocol
9 | #endif
10 |
11 | public final class Open<PathType: Openable>: UpdatableStatable, Ownable, Permissionable {
| `- note: generic class 'Open' does not conform to the 'Sendable' protocol
12 | public let path: PathType
13 | public private(set) var descriptor: PathType.Descriptor?
/host/spi-builder-workspace/Sources/Pathman/File/FilePath+StandardStreams.swift:27:12: warning: let 'stderr' is not concurrency-safe because non-'Sendable' type 'FileStream' (aka 'Open<FilePath>') may have shared mutable state; this is an error in the Swift 6 language mode
25 | }()
26 |
27 | public let stderr: FileStream = {
| |- warning: let 'stderr' is not concurrency-safe because non-'Sendable' type 'FileStream' (aka 'Open<FilePath>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stderr' 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
28 | FileStream(descriptor: cStderr !! "No stderr stream!",
29 | fileDescriptor: fileno(cStderr),
/host/spi-builder-workspace/Sources/Pathman/Open/Open.swift:11:20: note: generic class 'Open' does not conform to the 'Sendable' protocol
9 | #endif
10 |
11 | public final class Open<PathType: Openable>: UpdatableStatable, Ownable, Permissionable {
| `- note: generic class 'Open' does not conform to the 'Sendable' protocol
12 | public let path: PathType
13 | public private(set) var descriptor: PathType.Descriptor?
/host/spi-builder-workspace/Sources/Pathman/File/FilePath+StandardStreams.swift:33:12: warning: let 'stdin' is not concurrency-safe because non-'Sendable' type 'FileStream' (aka 'Open<FilePath>') may have shared mutable state; this is an error in the Swift 6 language mode
31 | }()
32 |
33 | public let stdin: FileStream = {
| |- warning: let 'stdin' is not concurrency-safe because non-'Sendable' type 'FileStream' (aka 'Open<FilePath>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stdin' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 | FileStream(descriptor: cStdin !! "No stdin stream!",
35 | fileDescriptor: fileno(cStdin),
/host/spi-builder-workspace/Sources/Pathman/Open/Open.swift:11:20: note: generic class 'Open' does not conform to the 'Sendable' protocol
9 | #endif
10 |
11 | public final class Open<PathType: Openable>: UpdatableStatable, Ownable, Permissionable {
| `- note: generic class 'Open' does not conform to the 'Sendable' protocol
12 | public let path: PathType
13 | public private(set) var descriptor: PathType.Descriptor?
/host/spi-builder-workspace/Sources/Pathman/Glob/Globbing.swift:9:13: warning: var 'globalGlob' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | /// A reusable Glob struct
9 | private var globalGlob = Glob()
| |- warning: var 'globalGlob' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalGlob' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalGlob' 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
10 |
11 | /** Locates all paths matching the pattern specified
[107/120] Compiling Pathman Connection+Writable.swift
/host/spi-builder-workspace/Sources/Pathman/Connection/Connection.swift:10:23: warning: static property 'emptyWriteFlags' is not concurrency-safe because non-'Sendable' type 'SendFlags' may have shared mutable state; this is an error in the Swift 6 language mode
8 | public static var defaultByteCount: ByteRepresentable = 32.kb
9 | public static let emptyReadFlags: ReceiveFlags = .none
10 | public static let emptyWriteFlags: SendFlags = .none
| |- warning: static property 'emptyWriteFlags' is not concurrency-safe because non-'Sendable' type 'SendFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'emptyWriteFlags' 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
11 |
12 | let opened: Open<SocketPath>
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/send/SendFlags.swift:14:15: note: consider making struct 'SendFlags' conform to the 'Sendable' protocol
12 | #endif
13 |
14 | public struct SendFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'SendFlags' conform to the 'Sendable' protocol
15 | public let rawValue: OptionInt
16 |
/host/spi-builder-workspace/Sources/Pathman/Connection/Connection.swift:8:23: warning: static property 'defaultByteCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
6 | public let openOptions: SocketPath.OpenOptions
7 |
8 | public static var defaultByteCount: ByteRepresentable = 32.kb
| |- warning: static property 'defaultByteCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultByteCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultByteCount' 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
9 | public static let emptyReadFlags: ReceiveFlags = .none
10 | public static let emptyWriteFlags: SendFlags = .none
/host/spi-builder-workspace/Sources/Pathman/Connection/Connection.swift:9:23: warning: static property 'emptyReadFlags' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | public static var defaultByteCount: ByteRepresentable = 32.kb
9 | public static let emptyReadFlags: ReceiveFlags = .none
| |- warning: static property 'emptyReadFlags' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'emptyReadFlags' 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
10 | public static let emptyWriteFlags: SendFlags = .none
11 |
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/recv/ReceiveFlags.swift:16:15: note: consider making struct 'ReceiveFlags' conform to the 'Sendable' protocol
14 | #endif
15 |
16 | public struct ReceiveFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'ReceiveFlags' conform to the 'Sendable' protocol
17 | public let rawValue: OptionInt
18 |
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/recv/ReceiveFlags.swift:66:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' may have shared mutable state; this is an error in the Swift 6 language mode
14 | #endif
15 |
16 | public struct ReceiveFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'ReceiveFlags' conform to the 'Sendable' protocol
17 | public let rawValue: OptionInt
18 |
:
64 | public static let waitAll = ReceiveFlags(integerLiteral: MSG_WAITALL)
65 |
66 | public static let none: ReceiveFlags = 0
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' 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
67 |
68 | public init(rawValue: OptionInt) {
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/send/SendFlags.swift:70:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'SendFlags' may have shared mutable state; this is an error in the Swift 6 language mode
12 | #endif
13 |
14 | public struct SendFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'SendFlags' conform to the 'Sendable' protocol
15 | public let rawValue: OptionInt
16 |
:
68 | public static let outOfBound = SendFlags(integerLiteral: MSG_OOB)
69 |
70 | public static let none: SendFlags = 0
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'SendFlags' 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
71 |
72 | public init(rawValue: OptionInt) {
/host/spi-builder-workspace/Sources/Pathman/Protocols/Copyable.swift:8:23: warning: static property 'recursive' is not concurrency-safe because non-'Sendable' type 'CopyOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | public struct CopyOptions: OptionSet {
| `- note: consider making struct 'CopyOptions' conform to the 'Sendable' protocol
2 | public let rawValue: Int
3 |
:
6 | its contents as opposed to just its immediate children
7 | */
8 | public static let recursive = CopyOptions(rawValue: 1)
| |- warning: static property 'recursive' is not concurrency-safe because non-'Sendable' type 'CopyOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'recursive' 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
9 | /// If the path to copy is a directory, this option will copy the hidden files as well
10 | public static let includeHidden = CopyOptions(rawValue: 1 << 1)
/host/spi-builder-workspace/Sources/Pathman/Protocols/Creatable.swift:8:23: warning: static property 'createIntermediates' is not concurrency-safe because non-'Sendable' type 'CreateOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import struct Foundation.Data
2 |
3 | public struct CreateOptions: RawRepresentable, OptionSet, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'CreateOptions' conform to the 'Sendable' protocol
4 | public typealias IntegerLiteralType = UInt8
5 | public let rawValue: IntegerLiteralType
6 |
7 | /// Automatically creating any missing intermediate directories of the path
8 | public static let createIntermediates = CreateOptions(rawValue: 1 << 0)
| |- warning: static property 'createIntermediates' is not concurrency-safe because non-'Sendable' type 'CreateOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'createIntermediates' 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
9 |
10 | public init(rawValue: IntegerLiteralType) {
/host/spi-builder-workspace/Sources/Pathman/CInterop/mode_t/FileMode.swift:47:23: warning: static property 'allPermissions' is not concurrency-safe because non-'Sendable' type 'FileMode' may have shared mutable state; this is an error in the Swift 6 language mode
1 | /// A swift wrapper around the C mode_t type, which is used to hold/manipulate information about a Path's permissions
2 | public struct FileMode: OptionSet, ExpressibleByIntegerLiteral, ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'FileMode' conform to the 'Sendable' protocol
3 | public typealias IntegerLiteralType = OSUInt
4 | public typealias StringLiteralType = String
:
45 | public static let all: FileMode = 0o7777
46 | /// A FileMode with all permissions and no bits on
47 | public static let allPermissions: FileMode = 0o0777
| |- warning: static property 'allPermissions' is not concurrency-safe because non-'Sendable' type 'FileMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'allPermissions' 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
48 | /// A FileMode with no permissions and all bits on
49 | public static let allBits: FileMode = 0o7000
/host/spi-builder-workspace/Sources/Pathman/Protocols/DirectoryEnumerable.swift:4:23: warning: static property 'includeHidden' is not concurrency-safe because non-'Sendable' type 'DirectoryEnumerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | public struct DirectoryEnumerationOptions: OptionSet, Hashable {
| `- note: consider making struct 'DirectoryEnumerationOptions' conform to the 'Sendable' protocol
2 | public let rawValue: UInt8
3 |
4 | public static let includeHidden = DirectoryEnumerationOptions(rawValue: 1 << 0)
| |- warning: static property 'includeHidden' is not concurrency-safe because non-'Sendable' type 'DirectoryEnumerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'includeHidden' 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
5 |
6 | public init(rawValue: UInt8) {
/host/spi-builder-workspace/Sources/Pathman/Errors/Generic.swift:28:45: warning: cannot use struct 'Encoding' here; 'FoundationEssentials' was not imported by this file
26 | /// Errors thrown during String conversions from Data
27 | public enum StringError: Error {
28 | case notConvertibleToData(using: String.Encoding)
| `- warning: cannot use struct 'Encoding' here; 'FoundationEssentials' was not imported by this file
29 | }
30 |
FoundationEssentials.String:3:19: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | extension String {
3 | public struct Encoding : RawRepresentable, Sendable, Equatable {
| `- note: type declared here
4 | public var rawValue: UInt
5 | public init(rawValue: UInt)
/host/spi-builder-workspace/Sources/Pathman/Errors/Generic.swift:41:10: warning: associated value 'uncopyablePath' of 'Sendable'-conforming enum 'CopyError' has non-sendable type 'GenericPath'; this is an error in the Swift 6 language mode
39 |
40 | public enum CopyError: Error {
41 | case uncopyablePath(GenericPath)
| `- warning: associated value 'uncopyablePath' of 'Sendable'-conforming enum 'CopyError' has non-sendable type 'GenericPath'; this is an error in the Swift 6 language mode
42 | case nonEmptyDirectory
43 | case pathDoesNotExist
/host/spi-builder-workspace/Sources/Pathman/Path/Path+Generic.swift:2:15: note: consider making struct 'GenericPath' conform to the 'Sendable' protocol
1 | /// A type used to express filesystem paths
2 | public struct GenericPath: Path, ExpressibleByStringLiteral, ExpressibleByArrayLiteral, Comparable {
| `- note: consider making struct 'GenericPath' conform to the 'Sendable' protocol
3 | public static let pathType: PathType = .unknown
4 |
[108/120] Compiling Pathman Connection.swift
/host/spi-builder-workspace/Sources/Pathman/Connection/Connection.swift:10:23: warning: static property 'emptyWriteFlags' is not concurrency-safe because non-'Sendable' type 'SendFlags' may have shared mutable state; this is an error in the Swift 6 language mode
8 | public static var defaultByteCount: ByteRepresentable = 32.kb
9 | public static let emptyReadFlags: ReceiveFlags = .none
10 | public static let emptyWriteFlags: SendFlags = .none
| |- warning: static property 'emptyWriteFlags' is not concurrency-safe because non-'Sendable' type 'SendFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'emptyWriteFlags' 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
11 |
12 | let opened: Open<SocketPath>
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/send/SendFlags.swift:14:15: note: consider making struct 'SendFlags' conform to the 'Sendable' protocol
12 | #endif
13 |
14 | public struct SendFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'SendFlags' conform to the 'Sendable' protocol
15 | public let rawValue: OptionInt
16 |
/host/spi-builder-workspace/Sources/Pathman/Connection/Connection.swift:8:23: warning: static property 'defaultByteCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
6 | public let openOptions: SocketPath.OpenOptions
7 |
8 | public static var defaultByteCount: ByteRepresentable = 32.kb
| |- warning: static property 'defaultByteCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultByteCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultByteCount' 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
9 | public static let emptyReadFlags: ReceiveFlags = .none
10 | public static let emptyWriteFlags: SendFlags = .none
/host/spi-builder-workspace/Sources/Pathman/Connection/Connection.swift:9:23: warning: static property 'emptyReadFlags' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | public static var defaultByteCount: ByteRepresentable = 32.kb
9 | public static let emptyReadFlags: ReceiveFlags = .none
| |- warning: static property 'emptyReadFlags' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'emptyReadFlags' 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
10 | public static let emptyWriteFlags: SendFlags = .none
11 |
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/recv/ReceiveFlags.swift:16:15: note: consider making struct 'ReceiveFlags' conform to the 'Sendable' protocol
14 | #endif
15 |
16 | public struct ReceiveFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'ReceiveFlags' conform to the 'Sendable' protocol
17 | public let rawValue: OptionInt
18 |
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/recv/ReceiveFlags.swift:66:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' may have shared mutable state; this is an error in the Swift 6 language mode
14 | #endif
15 |
16 | public struct ReceiveFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'ReceiveFlags' conform to the 'Sendable' protocol
17 | public let rawValue: OptionInt
18 |
:
64 | public static let waitAll = ReceiveFlags(integerLiteral: MSG_WAITALL)
65 |
66 | public static let none: ReceiveFlags = 0
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' 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
67 |
68 | public init(rawValue: OptionInt) {
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/send/SendFlags.swift:70:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'SendFlags' may have shared mutable state; this is an error in the Swift 6 language mode
12 | #endif
13 |
14 | public struct SendFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'SendFlags' conform to the 'Sendable' protocol
15 | public let rawValue: OptionInt
16 |
:
68 | public static let outOfBound = SendFlags(integerLiteral: MSG_OOB)
69 |
70 | public static let none: SendFlags = 0
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'SendFlags' 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
71 |
72 | public init(rawValue: OptionInt) {
/host/spi-builder-workspace/Sources/Pathman/Protocols/Copyable.swift:8:23: warning: static property 'recursive' is not concurrency-safe because non-'Sendable' type 'CopyOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | public struct CopyOptions: OptionSet {
| `- note: consider making struct 'CopyOptions' conform to the 'Sendable' protocol
2 | public let rawValue: Int
3 |
:
6 | its contents as opposed to just its immediate children
7 | */
8 | public static let recursive = CopyOptions(rawValue: 1)
| |- warning: static property 'recursive' is not concurrency-safe because non-'Sendable' type 'CopyOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'recursive' 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
9 | /// If the path to copy is a directory, this option will copy the hidden files as well
10 | public static let includeHidden = CopyOptions(rawValue: 1 << 1)
/host/spi-builder-workspace/Sources/Pathman/Protocols/Creatable.swift:8:23: warning: static property 'createIntermediates' is not concurrency-safe because non-'Sendable' type 'CreateOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import struct Foundation.Data
2 |
3 | public struct CreateOptions: RawRepresentable, OptionSet, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'CreateOptions' conform to the 'Sendable' protocol
4 | public typealias IntegerLiteralType = UInt8
5 | public let rawValue: IntegerLiteralType
6 |
7 | /// Automatically creating any missing intermediate directories of the path
8 | public static let createIntermediates = CreateOptions(rawValue: 1 << 0)
| |- warning: static property 'createIntermediates' is not concurrency-safe because non-'Sendable' type 'CreateOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'createIntermediates' 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
9 |
10 | public init(rawValue: IntegerLiteralType) {
/host/spi-builder-workspace/Sources/Pathman/CInterop/mode_t/FileMode.swift:47:23: warning: static property 'allPermissions' is not concurrency-safe because non-'Sendable' type 'FileMode' may have shared mutable state; this is an error in the Swift 6 language mode
1 | /// A swift wrapper around the C mode_t type, which is used to hold/manipulate information about a Path's permissions
2 | public struct FileMode: OptionSet, ExpressibleByIntegerLiteral, ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'FileMode' conform to the 'Sendable' protocol
3 | public typealias IntegerLiteralType = OSUInt
4 | public typealias StringLiteralType = String
:
45 | public static let all: FileMode = 0o7777
46 | /// A FileMode with all permissions and no bits on
47 | public static let allPermissions: FileMode = 0o0777
| |- warning: static property 'allPermissions' is not concurrency-safe because non-'Sendable' type 'FileMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'allPermissions' 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
48 | /// A FileMode with no permissions and all bits on
49 | public static let allBits: FileMode = 0o7000
/host/spi-builder-workspace/Sources/Pathman/Protocols/DirectoryEnumerable.swift:4:23: warning: static property 'includeHidden' is not concurrency-safe because non-'Sendable' type 'DirectoryEnumerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | public struct DirectoryEnumerationOptions: OptionSet, Hashable {
| `- note: consider making struct 'DirectoryEnumerationOptions' conform to the 'Sendable' protocol
2 | public let rawValue: UInt8
3 |
4 | public static let includeHidden = DirectoryEnumerationOptions(rawValue: 1 << 0)
| |- warning: static property 'includeHidden' is not concurrency-safe because non-'Sendable' type 'DirectoryEnumerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'includeHidden' 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
5 |
6 | public init(rawValue: UInt8) {
/host/spi-builder-workspace/Sources/Pathman/Errors/Generic.swift:28:45: warning: cannot use struct 'Encoding' here; 'FoundationEssentials' was not imported by this file
26 | /// Errors thrown during String conversions from Data
27 | public enum StringError: Error {
28 | case notConvertibleToData(using: String.Encoding)
| `- warning: cannot use struct 'Encoding' here; 'FoundationEssentials' was not imported by this file
29 | }
30 |
FoundationEssentials.String:3:19: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | extension String {
3 | public struct Encoding : RawRepresentable, Sendable, Equatable {
| `- note: type declared here
4 | public var rawValue: UInt
5 | public init(rawValue: UInt)
/host/spi-builder-workspace/Sources/Pathman/Errors/Generic.swift:41:10: warning: associated value 'uncopyablePath' of 'Sendable'-conforming enum 'CopyError' has non-sendable type 'GenericPath'; this is an error in the Swift 6 language mode
39 |
40 | public enum CopyError: Error {
41 | case uncopyablePath(GenericPath)
| `- warning: associated value 'uncopyablePath' of 'Sendable'-conforming enum 'CopyError' has non-sendable type 'GenericPath'; this is an error in the Swift 6 language mode
42 | case nonEmptyDirectory
43 | case pathDoesNotExist
/host/spi-builder-workspace/Sources/Pathman/Path/Path+Generic.swift:2:15: note: consider making struct 'GenericPath' conform to the 'Sendable' protocol
1 | /// A type used to express filesystem paths
2 | public struct GenericPath: Path, ExpressibleByStringLiteral, ExpressibleByArrayLiteral, Comparable {
| `- note: consider making struct 'GenericPath' conform to the 'Sendable' protocol
3 | public static let pathType: PathType = .unknown
4 |
[109/120] Compiling Pathman DirectoryPath+Copyable.swift
/host/spi-builder-workspace/Sources/Pathman/Connection/Connection.swift:10:23: warning: static property 'emptyWriteFlags' is not concurrency-safe because non-'Sendable' type 'SendFlags' may have shared mutable state; this is an error in the Swift 6 language mode
8 | public static var defaultByteCount: ByteRepresentable = 32.kb
9 | public static let emptyReadFlags: ReceiveFlags = .none
10 | public static let emptyWriteFlags: SendFlags = .none
| |- warning: static property 'emptyWriteFlags' is not concurrency-safe because non-'Sendable' type 'SendFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'emptyWriteFlags' 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
11 |
12 | let opened: Open<SocketPath>
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/send/SendFlags.swift:14:15: note: consider making struct 'SendFlags' conform to the 'Sendable' protocol
12 | #endif
13 |
14 | public struct SendFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'SendFlags' conform to the 'Sendable' protocol
15 | public let rawValue: OptionInt
16 |
/host/spi-builder-workspace/Sources/Pathman/Connection/Connection.swift:8:23: warning: static property 'defaultByteCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
6 | public let openOptions: SocketPath.OpenOptions
7 |
8 | public static var defaultByteCount: ByteRepresentable = 32.kb
| |- warning: static property 'defaultByteCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultByteCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultByteCount' 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
9 | public static let emptyReadFlags: ReceiveFlags = .none
10 | public static let emptyWriteFlags: SendFlags = .none
/host/spi-builder-workspace/Sources/Pathman/Connection/Connection.swift:9:23: warning: static property 'emptyReadFlags' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | public static var defaultByteCount: ByteRepresentable = 32.kb
9 | public static let emptyReadFlags: ReceiveFlags = .none
| |- warning: static property 'emptyReadFlags' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'emptyReadFlags' 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
10 | public static let emptyWriteFlags: SendFlags = .none
11 |
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/recv/ReceiveFlags.swift:16:15: note: consider making struct 'ReceiveFlags' conform to the 'Sendable' protocol
14 | #endif
15 |
16 | public struct ReceiveFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'ReceiveFlags' conform to the 'Sendable' protocol
17 | public let rawValue: OptionInt
18 |
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/recv/ReceiveFlags.swift:66:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' may have shared mutable state; this is an error in the Swift 6 language mode
14 | #endif
15 |
16 | public struct ReceiveFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'ReceiveFlags' conform to the 'Sendable' protocol
17 | public let rawValue: OptionInt
18 |
:
64 | public static let waitAll = ReceiveFlags(integerLiteral: MSG_WAITALL)
65 |
66 | public static let none: ReceiveFlags = 0
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' 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
67 |
68 | public init(rawValue: OptionInt) {
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/send/SendFlags.swift:70:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'SendFlags' may have shared mutable state; this is an error in the Swift 6 language mode
12 | #endif
13 |
14 | public struct SendFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'SendFlags' conform to the 'Sendable' protocol
15 | public let rawValue: OptionInt
16 |
:
68 | public static let outOfBound = SendFlags(integerLiteral: MSG_OOB)
69 |
70 | public static let none: SendFlags = 0
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'SendFlags' 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
71 |
72 | public init(rawValue: OptionInt) {
/host/spi-builder-workspace/Sources/Pathman/Protocols/Copyable.swift:8:23: warning: static property 'recursive' is not concurrency-safe because non-'Sendable' type 'CopyOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | public struct CopyOptions: OptionSet {
| `- note: consider making struct 'CopyOptions' conform to the 'Sendable' protocol
2 | public let rawValue: Int
3 |
:
6 | its contents as opposed to just its immediate children
7 | */
8 | public static let recursive = CopyOptions(rawValue: 1)
| |- warning: static property 'recursive' is not concurrency-safe because non-'Sendable' type 'CopyOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'recursive' 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
9 | /// If the path to copy is a directory, this option will copy the hidden files as well
10 | public static let includeHidden = CopyOptions(rawValue: 1 << 1)
/host/spi-builder-workspace/Sources/Pathman/Protocols/Creatable.swift:8:23: warning: static property 'createIntermediates' is not concurrency-safe because non-'Sendable' type 'CreateOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import struct Foundation.Data
2 |
3 | public struct CreateOptions: RawRepresentable, OptionSet, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'CreateOptions' conform to the 'Sendable' protocol
4 | public typealias IntegerLiteralType = UInt8
5 | public let rawValue: IntegerLiteralType
6 |
7 | /// Automatically creating any missing intermediate directories of the path
8 | public static let createIntermediates = CreateOptions(rawValue: 1 << 0)
| |- warning: static property 'createIntermediates' is not concurrency-safe because non-'Sendable' type 'CreateOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'createIntermediates' 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
9 |
10 | public init(rawValue: IntegerLiteralType) {
/host/spi-builder-workspace/Sources/Pathman/CInterop/mode_t/FileMode.swift:47:23: warning: static property 'allPermissions' is not concurrency-safe because non-'Sendable' type 'FileMode' may have shared mutable state; this is an error in the Swift 6 language mode
1 | /// A swift wrapper around the C mode_t type, which is used to hold/manipulate information about a Path's permissions
2 | public struct FileMode: OptionSet, ExpressibleByIntegerLiteral, ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'FileMode' conform to the 'Sendable' protocol
3 | public typealias IntegerLiteralType = OSUInt
4 | public typealias StringLiteralType = String
:
45 | public static let all: FileMode = 0o7777
46 | /// A FileMode with all permissions and no bits on
47 | public static let allPermissions: FileMode = 0o0777
| |- warning: static property 'allPermissions' is not concurrency-safe because non-'Sendable' type 'FileMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'allPermissions' 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
48 | /// A FileMode with no permissions and all bits on
49 | public static let allBits: FileMode = 0o7000
/host/spi-builder-workspace/Sources/Pathman/Protocols/DirectoryEnumerable.swift:4:23: warning: static property 'includeHidden' is not concurrency-safe because non-'Sendable' type 'DirectoryEnumerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | public struct DirectoryEnumerationOptions: OptionSet, Hashable {
| `- note: consider making struct 'DirectoryEnumerationOptions' conform to the 'Sendable' protocol
2 | public let rawValue: UInt8
3 |
4 | public static let includeHidden = DirectoryEnumerationOptions(rawValue: 1 << 0)
| |- warning: static property 'includeHidden' is not concurrency-safe because non-'Sendable' type 'DirectoryEnumerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'includeHidden' 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
5 |
6 | public init(rawValue: UInt8) {
/host/spi-builder-workspace/Sources/Pathman/Errors/Generic.swift:28:45: warning: cannot use struct 'Encoding' here; 'FoundationEssentials' was not imported by this file
26 | /// Errors thrown during String conversions from Data
27 | public enum StringError: Error {
28 | case notConvertibleToData(using: String.Encoding)
| `- warning: cannot use struct 'Encoding' here; 'FoundationEssentials' was not imported by this file
29 | }
30 |
FoundationEssentials.String:3:19: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | extension String {
3 | public struct Encoding : RawRepresentable, Sendable, Equatable {
| `- note: type declared here
4 | public var rawValue: UInt
5 | public init(rawValue: UInt)
/host/spi-builder-workspace/Sources/Pathman/Errors/Generic.swift:41:10: warning: associated value 'uncopyablePath' of 'Sendable'-conforming enum 'CopyError' has non-sendable type 'GenericPath'; this is an error in the Swift 6 language mode
39 |
40 | public enum CopyError: Error {
41 | case uncopyablePath(GenericPath)
| `- warning: associated value 'uncopyablePath' of 'Sendable'-conforming enum 'CopyError' has non-sendable type 'GenericPath'; this is an error in the Swift 6 language mode
42 | case nonEmptyDirectory
43 | case pathDoesNotExist
/host/spi-builder-workspace/Sources/Pathman/Path/Path+Generic.swift:2:15: note: consider making struct 'GenericPath' conform to the 'Sendable' protocol
1 | /// A type used to express filesystem paths
2 | public struct GenericPath: Path, ExpressibleByStringLiteral, ExpressibleByArrayLiteral, Comparable {
| `- note: consider making struct 'GenericPath' conform to the 'Sendable' protocol
3 | public static let pathType: PathType = .unknown
4 |
[110/120] Compiling Pathman DirectoryPath+Creatable.swift
/host/spi-builder-workspace/Sources/Pathman/Connection/Connection.swift:10:23: warning: static property 'emptyWriteFlags' is not concurrency-safe because non-'Sendable' type 'SendFlags' may have shared mutable state; this is an error in the Swift 6 language mode
8 | public static var defaultByteCount: ByteRepresentable = 32.kb
9 | public static let emptyReadFlags: ReceiveFlags = .none
10 | public static let emptyWriteFlags: SendFlags = .none
| |- warning: static property 'emptyWriteFlags' is not concurrency-safe because non-'Sendable' type 'SendFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'emptyWriteFlags' 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
11 |
12 | let opened: Open<SocketPath>
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/send/SendFlags.swift:14:15: note: consider making struct 'SendFlags' conform to the 'Sendable' protocol
12 | #endif
13 |
14 | public struct SendFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'SendFlags' conform to the 'Sendable' protocol
15 | public let rawValue: OptionInt
16 |
/host/spi-builder-workspace/Sources/Pathman/Connection/Connection.swift:8:23: warning: static property 'defaultByteCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
6 | public let openOptions: SocketPath.OpenOptions
7 |
8 | public static var defaultByteCount: ByteRepresentable = 32.kb
| |- warning: static property 'defaultByteCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultByteCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultByteCount' 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
9 | public static let emptyReadFlags: ReceiveFlags = .none
10 | public static let emptyWriteFlags: SendFlags = .none
/host/spi-builder-workspace/Sources/Pathman/Connection/Connection.swift:9:23: warning: static property 'emptyReadFlags' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | public static var defaultByteCount: ByteRepresentable = 32.kb
9 | public static let emptyReadFlags: ReceiveFlags = .none
| |- warning: static property 'emptyReadFlags' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'emptyReadFlags' 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
10 | public static let emptyWriteFlags: SendFlags = .none
11 |
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/recv/ReceiveFlags.swift:16:15: note: consider making struct 'ReceiveFlags' conform to the 'Sendable' protocol
14 | #endif
15 |
16 | public struct ReceiveFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'ReceiveFlags' conform to the 'Sendable' protocol
17 | public let rawValue: OptionInt
18 |
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/recv/ReceiveFlags.swift:66:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' may have shared mutable state; this is an error in the Swift 6 language mode
14 | #endif
15 |
16 | public struct ReceiveFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'ReceiveFlags' conform to the 'Sendable' protocol
17 | public let rawValue: OptionInt
18 |
:
64 | public static let waitAll = ReceiveFlags(integerLiteral: MSG_WAITALL)
65 |
66 | public static let none: ReceiveFlags = 0
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' 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
67 |
68 | public init(rawValue: OptionInt) {
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/send/SendFlags.swift:70:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'SendFlags' may have shared mutable state; this is an error in the Swift 6 language mode
12 | #endif
13 |
14 | public struct SendFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'SendFlags' conform to the 'Sendable' protocol
15 | public let rawValue: OptionInt
16 |
:
68 | public static let outOfBound = SendFlags(integerLiteral: MSG_OOB)
69 |
70 | public static let none: SendFlags = 0
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'SendFlags' 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
71 |
72 | public init(rawValue: OptionInt) {
/host/spi-builder-workspace/Sources/Pathman/Protocols/Copyable.swift:8:23: warning: static property 'recursive' is not concurrency-safe because non-'Sendable' type 'CopyOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | public struct CopyOptions: OptionSet {
| `- note: consider making struct 'CopyOptions' conform to the 'Sendable' protocol
2 | public let rawValue: Int
3 |
:
6 | its contents as opposed to just its immediate children
7 | */
8 | public static let recursive = CopyOptions(rawValue: 1)
| |- warning: static property 'recursive' is not concurrency-safe because non-'Sendable' type 'CopyOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'recursive' 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
9 | /// If the path to copy is a directory, this option will copy the hidden files as well
10 | public static let includeHidden = CopyOptions(rawValue: 1 << 1)
/host/spi-builder-workspace/Sources/Pathman/Protocols/Creatable.swift:8:23: warning: static property 'createIntermediates' is not concurrency-safe because non-'Sendable' type 'CreateOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import struct Foundation.Data
2 |
3 | public struct CreateOptions: RawRepresentable, OptionSet, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'CreateOptions' conform to the 'Sendable' protocol
4 | public typealias IntegerLiteralType = UInt8
5 | public let rawValue: IntegerLiteralType
6 |
7 | /// Automatically creating any missing intermediate directories of the path
8 | public static let createIntermediates = CreateOptions(rawValue: 1 << 0)
| |- warning: static property 'createIntermediates' is not concurrency-safe because non-'Sendable' type 'CreateOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'createIntermediates' 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
9 |
10 | public init(rawValue: IntegerLiteralType) {
/host/spi-builder-workspace/Sources/Pathman/CInterop/mode_t/FileMode.swift:47:23: warning: static property 'allPermissions' is not concurrency-safe because non-'Sendable' type 'FileMode' may have shared mutable state; this is an error in the Swift 6 language mode
1 | /// A swift wrapper around the C mode_t type, which is used to hold/manipulate information about a Path's permissions
2 | public struct FileMode: OptionSet, ExpressibleByIntegerLiteral, ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'FileMode' conform to the 'Sendable' protocol
3 | public typealias IntegerLiteralType = OSUInt
4 | public typealias StringLiteralType = String
:
45 | public static let all: FileMode = 0o7777
46 | /// A FileMode with all permissions and no bits on
47 | public static let allPermissions: FileMode = 0o0777
| |- warning: static property 'allPermissions' is not concurrency-safe because non-'Sendable' type 'FileMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'allPermissions' 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
48 | /// A FileMode with no permissions and all bits on
49 | public static let allBits: FileMode = 0o7000
/host/spi-builder-workspace/Sources/Pathman/Protocols/DirectoryEnumerable.swift:4:23: warning: static property 'includeHidden' is not concurrency-safe because non-'Sendable' type 'DirectoryEnumerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | public struct DirectoryEnumerationOptions: OptionSet, Hashable {
| `- note: consider making struct 'DirectoryEnumerationOptions' conform to the 'Sendable' protocol
2 | public let rawValue: UInt8
3 |
4 | public static let includeHidden = DirectoryEnumerationOptions(rawValue: 1 << 0)
| |- warning: static property 'includeHidden' is not concurrency-safe because non-'Sendable' type 'DirectoryEnumerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'includeHidden' 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
5 |
6 | public init(rawValue: UInt8) {
/host/spi-builder-workspace/Sources/Pathman/Errors/Generic.swift:28:45: warning: cannot use struct 'Encoding' here; 'FoundationEssentials' was not imported by this file
26 | /// Errors thrown during String conversions from Data
27 | public enum StringError: Error {
28 | case notConvertibleToData(using: String.Encoding)
| `- warning: cannot use struct 'Encoding' here; 'FoundationEssentials' was not imported by this file
29 | }
30 |
FoundationEssentials.String:3:19: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | extension String {
3 | public struct Encoding : RawRepresentable, Sendable, Equatable {
| `- note: type declared here
4 | public var rawValue: UInt
5 | public init(rawValue: UInt)
/host/spi-builder-workspace/Sources/Pathman/Errors/Generic.swift:41:10: warning: associated value 'uncopyablePath' of 'Sendable'-conforming enum 'CopyError' has non-sendable type 'GenericPath'; this is an error in the Swift 6 language mode
39 |
40 | public enum CopyError: Error {
41 | case uncopyablePath(GenericPath)
| `- warning: associated value 'uncopyablePath' of 'Sendable'-conforming enum 'CopyError' has non-sendable type 'GenericPath'; this is an error in the Swift 6 language mode
42 | case nonEmptyDirectory
43 | case pathDoesNotExist
/host/spi-builder-workspace/Sources/Pathman/Path/Path+Generic.swift:2:15: note: consider making struct 'GenericPath' conform to the 'Sendable' protocol
1 | /// A type used to express filesystem paths
2 | public struct GenericPath: Path, ExpressibleByStringLiteral, ExpressibleByArrayLiteral, Comparable {
| `- note: consider making struct 'GenericPath' conform to the 'Sendable' protocol
3 | public static let pathType: PathType = .unknown
4 |
[111/120] Compiling Pathman DirectoryPath+Deletable.swift
/host/spi-builder-workspace/Sources/Pathman/Connection/Connection.swift:10:23: warning: static property 'emptyWriteFlags' is not concurrency-safe because non-'Sendable' type 'SendFlags' may have shared mutable state; this is an error in the Swift 6 language mode
8 | public static var defaultByteCount: ByteRepresentable = 32.kb
9 | public static let emptyReadFlags: ReceiveFlags = .none
10 | public static let emptyWriteFlags: SendFlags = .none
| |- warning: static property 'emptyWriteFlags' is not concurrency-safe because non-'Sendable' type 'SendFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'emptyWriteFlags' 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
11 |
12 | let opened: Open<SocketPath>
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/send/SendFlags.swift:14:15: note: consider making struct 'SendFlags' conform to the 'Sendable' protocol
12 | #endif
13 |
14 | public struct SendFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'SendFlags' conform to the 'Sendable' protocol
15 | public let rawValue: OptionInt
16 |
/host/spi-builder-workspace/Sources/Pathman/Connection/Connection.swift:8:23: warning: static property 'defaultByteCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
6 | public let openOptions: SocketPath.OpenOptions
7 |
8 | public static var defaultByteCount: ByteRepresentable = 32.kb
| |- warning: static property 'defaultByteCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultByteCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultByteCount' 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
9 | public static let emptyReadFlags: ReceiveFlags = .none
10 | public static let emptyWriteFlags: SendFlags = .none
/host/spi-builder-workspace/Sources/Pathman/Connection/Connection.swift:9:23: warning: static property 'emptyReadFlags' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | public static var defaultByteCount: ByteRepresentable = 32.kb
9 | public static let emptyReadFlags: ReceiveFlags = .none
| |- warning: static property 'emptyReadFlags' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'emptyReadFlags' 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
10 | public static let emptyWriteFlags: SendFlags = .none
11 |
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/recv/ReceiveFlags.swift:16:15: note: consider making struct 'ReceiveFlags' conform to the 'Sendable' protocol
14 | #endif
15 |
16 | public struct ReceiveFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'ReceiveFlags' conform to the 'Sendable' protocol
17 | public let rawValue: OptionInt
18 |
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/recv/ReceiveFlags.swift:66:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' may have shared mutable state; this is an error in the Swift 6 language mode
14 | #endif
15 |
16 | public struct ReceiveFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'ReceiveFlags' conform to the 'Sendable' protocol
17 | public let rawValue: OptionInt
18 |
:
64 | public static let waitAll = ReceiveFlags(integerLiteral: MSG_WAITALL)
65 |
66 | public static let none: ReceiveFlags = 0
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' 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
67 |
68 | public init(rawValue: OptionInt) {
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/send/SendFlags.swift:70:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'SendFlags' may have shared mutable state; this is an error in the Swift 6 language mode
12 | #endif
13 |
14 | public struct SendFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'SendFlags' conform to the 'Sendable' protocol
15 | public let rawValue: OptionInt
16 |
:
68 | public static let outOfBound = SendFlags(integerLiteral: MSG_OOB)
69 |
70 | public static let none: SendFlags = 0
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'SendFlags' 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
71 |
72 | public init(rawValue: OptionInt) {
/host/spi-builder-workspace/Sources/Pathman/Protocols/Copyable.swift:8:23: warning: static property 'recursive' is not concurrency-safe because non-'Sendable' type 'CopyOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | public struct CopyOptions: OptionSet {
| `- note: consider making struct 'CopyOptions' conform to the 'Sendable' protocol
2 | public let rawValue: Int
3 |
:
6 | its contents as opposed to just its immediate children
7 | */
8 | public static let recursive = CopyOptions(rawValue: 1)
| |- warning: static property 'recursive' is not concurrency-safe because non-'Sendable' type 'CopyOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'recursive' 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
9 | /// If the path to copy is a directory, this option will copy the hidden files as well
10 | public static let includeHidden = CopyOptions(rawValue: 1 << 1)
/host/spi-builder-workspace/Sources/Pathman/Protocols/Creatable.swift:8:23: warning: static property 'createIntermediates' is not concurrency-safe because non-'Sendable' type 'CreateOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import struct Foundation.Data
2 |
3 | public struct CreateOptions: RawRepresentable, OptionSet, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'CreateOptions' conform to the 'Sendable' protocol
4 | public typealias IntegerLiteralType = UInt8
5 | public let rawValue: IntegerLiteralType
6 |
7 | /// Automatically creating any missing intermediate directories of the path
8 | public static let createIntermediates = CreateOptions(rawValue: 1 << 0)
| |- warning: static property 'createIntermediates' is not concurrency-safe because non-'Sendable' type 'CreateOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'createIntermediates' 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
9 |
10 | public init(rawValue: IntegerLiteralType) {
/host/spi-builder-workspace/Sources/Pathman/CInterop/mode_t/FileMode.swift:47:23: warning: static property 'allPermissions' is not concurrency-safe because non-'Sendable' type 'FileMode' may have shared mutable state; this is an error in the Swift 6 language mode
1 | /// A swift wrapper around the C mode_t type, which is used to hold/manipulate information about a Path's permissions
2 | public struct FileMode: OptionSet, ExpressibleByIntegerLiteral, ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'FileMode' conform to the 'Sendable' protocol
3 | public typealias IntegerLiteralType = OSUInt
4 | public typealias StringLiteralType = String
:
45 | public static let all: FileMode = 0o7777
46 | /// A FileMode with all permissions and no bits on
47 | public static let allPermissions: FileMode = 0o0777
| |- warning: static property 'allPermissions' is not concurrency-safe because non-'Sendable' type 'FileMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'allPermissions' 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
48 | /// A FileMode with no permissions and all bits on
49 | public static let allBits: FileMode = 0o7000
/host/spi-builder-workspace/Sources/Pathman/Protocols/DirectoryEnumerable.swift:4:23: warning: static property 'includeHidden' is not concurrency-safe because non-'Sendable' type 'DirectoryEnumerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | public struct DirectoryEnumerationOptions: OptionSet, Hashable {
| `- note: consider making struct 'DirectoryEnumerationOptions' conform to the 'Sendable' protocol
2 | public let rawValue: UInt8
3 |
4 | public static let includeHidden = DirectoryEnumerationOptions(rawValue: 1 << 0)
| |- warning: static property 'includeHidden' is not concurrency-safe because non-'Sendable' type 'DirectoryEnumerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'includeHidden' 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
5 |
6 | public init(rawValue: UInt8) {
/host/spi-builder-workspace/Sources/Pathman/Errors/Generic.swift:28:45: warning: cannot use struct 'Encoding' here; 'FoundationEssentials' was not imported by this file
26 | /// Errors thrown during String conversions from Data
27 | public enum StringError: Error {
28 | case notConvertibleToData(using: String.Encoding)
| `- warning: cannot use struct 'Encoding' here; 'FoundationEssentials' was not imported by this file
29 | }
30 |
FoundationEssentials.String:3:19: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | extension String {
3 | public struct Encoding : RawRepresentable, Sendable, Equatable {
| `- note: type declared here
4 | public var rawValue: UInt
5 | public init(rawValue: UInt)
/host/spi-builder-workspace/Sources/Pathman/Errors/Generic.swift:41:10: warning: associated value 'uncopyablePath' of 'Sendable'-conforming enum 'CopyError' has non-sendable type 'GenericPath'; this is an error in the Swift 6 language mode
39 |
40 | public enum CopyError: Error {
41 | case uncopyablePath(GenericPath)
| `- warning: associated value 'uncopyablePath' of 'Sendable'-conforming enum 'CopyError' has non-sendable type 'GenericPath'; this is an error in the Swift 6 language mode
42 | case nonEmptyDirectory
43 | case pathDoesNotExist
/host/spi-builder-workspace/Sources/Pathman/Path/Path+Generic.swift:2:15: note: consider making struct 'GenericPath' conform to the 'Sendable' protocol
1 | /// A type used to express filesystem paths
2 | public struct GenericPath: Path, ExpressibleByStringLiteral, ExpressibleByArrayLiteral, Comparable {
| `- note: consider making struct 'GenericPath' conform to the 'Sendable' protocol
3 | public static let pathType: PathType = .unknown
4 |
[112/120] Compiling Pathman DirectoryPath+DirectoryEnumerable.swift
/host/spi-builder-workspace/Sources/Pathman/Connection/Connection.swift:10:23: warning: static property 'emptyWriteFlags' is not concurrency-safe because non-'Sendable' type 'SendFlags' may have shared mutable state; this is an error in the Swift 6 language mode
8 | public static var defaultByteCount: ByteRepresentable = 32.kb
9 | public static let emptyReadFlags: ReceiveFlags = .none
10 | public static let emptyWriteFlags: SendFlags = .none
| |- warning: static property 'emptyWriteFlags' is not concurrency-safe because non-'Sendable' type 'SendFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'emptyWriteFlags' 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
11 |
12 | let opened: Open<SocketPath>
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/send/SendFlags.swift:14:15: note: consider making struct 'SendFlags' conform to the 'Sendable' protocol
12 | #endif
13 |
14 | public struct SendFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'SendFlags' conform to the 'Sendable' protocol
15 | public let rawValue: OptionInt
16 |
/host/spi-builder-workspace/Sources/Pathman/Connection/Connection.swift:8:23: warning: static property 'defaultByteCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
6 | public let openOptions: SocketPath.OpenOptions
7 |
8 | public static var defaultByteCount: ByteRepresentable = 32.kb
| |- warning: static property 'defaultByteCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultByteCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultByteCount' 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
9 | public static let emptyReadFlags: ReceiveFlags = .none
10 | public static let emptyWriteFlags: SendFlags = .none
/host/spi-builder-workspace/Sources/Pathman/Connection/Connection.swift:9:23: warning: static property 'emptyReadFlags' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | public static var defaultByteCount: ByteRepresentable = 32.kb
9 | public static let emptyReadFlags: ReceiveFlags = .none
| |- warning: static property 'emptyReadFlags' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'emptyReadFlags' 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
10 | public static let emptyWriteFlags: SendFlags = .none
11 |
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/recv/ReceiveFlags.swift:16:15: note: consider making struct 'ReceiveFlags' conform to the 'Sendable' protocol
14 | #endif
15 |
16 | public struct ReceiveFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'ReceiveFlags' conform to the 'Sendable' protocol
17 | public let rawValue: OptionInt
18 |
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/recv/ReceiveFlags.swift:66:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' may have shared mutable state; this is an error in the Swift 6 language mode
14 | #endif
15 |
16 | public struct ReceiveFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'ReceiveFlags' conform to the 'Sendable' protocol
17 | public let rawValue: OptionInt
18 |
:
64 | public static let waitAll = ReceiveFlags(integerLiteral: MSG_WAITALL)
65 |
66 | public static let none: ReceiveFlags = 0
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' 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
67 |
68 | public init(rawValue: OptionInt) {
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/send/SendFlags.swift:70:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'SendFlags' may have shared mutable state; this is an error in the Swift 6 language mode
12 | #endif
13 |
14 | public struct SendFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'SendFlags' conform to the 'Sendable' protocol
15 | public let rawValue: OptionInt
16 |
:
68 | public static let outOfBound = SendFlags(integerLiteral: MSG_OOB)
69 |
70 | public static let none: SendFlags = 0
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'SendFlags' 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
71 |
72 | public init(rawValue: OptionInt) {
/host/spi-builder-workspace/Sources/Pathman/Protocols/Copyable.swift:8:23: warning: static property 'recursive' is not concurrency-safe because non-'Sendable' type 'CopyOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | public struct CopyOptions: OptionSet {
| `- note: consider making struct 'CopyOptions' conform to the 'Sendable' protocol
2 | public let rawValue: Int
3 |
:
6 | its contents as opposed to just its immediate children
7 | */
8 | public static let recursive = CopyOptions(rawValue: 1)
| |- warning: static property 'recursive' is not concurrency-safe because non-'Sendable' type 'CopyOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'recursive' 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
9 | /// If the path to copy is a directory, this option will copy the hidden files as well
10 | public static let includeHidden = CopyOptions(rawValue: 1 << 1)
/host/spi-builder-workspace/Sources/Pathman/Protocols/Creatable.swift:8:23: warning: static property 'createIntermediates' is not concurrency-safe because non-'Sendable' type 'CreateOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import struct Foundation.Data
2 |
3 | public struct CreateOptions: RawRepresentable, OptionSet, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'CreateOptions' conform to the 'Sendable' protocol
4 | public typealias IntegerLiteralType = UInt8
5 | public let rawValue: IntegerLiteralType
6 |
7 | /// Automatically creating any missing intermediate directories of the path
8 | public static let createIntermediates = CreateOptions(rawValue: 1 << 0)
| |- warning: static property 'createIntermediates' is not concurrency-safe because non-'Sendable' type 'CreateOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'createIntermediates' 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
9 |
10 | public init(rawValue: IntegerLiteralType) {
/host/spi-builder-workspace/Sources/Pathman/CInterop/mode_t/FileMode.swift:47:23: warning: static property 'allPermissions' is not concurrency-safe because non-'Sendable' type 'FileMode' may have shared mutable state; this is an error in the Swift 6 language mode
1 | /// A swift wrapper around the C mode_t type, which is used to hold/manipulate information about a Path's permissions
2 | public struct FileMode: OptionSet, ExpressibleByIntegerLiteral, ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'FileMode' conform to the 'Sendable' protocol
3 | public typealias IntegerLiteralType = OSUInt
4 | public typealias StringLiteralType = String
:
45 | public static let all: FileMode = 0o7777
46 | /// A FileMode with all permissions and no bits on
47 | public static let allPermissions: FileMode = 0o0777
| |- warning: static property 'allPermissions' is not concurrency-safe because non-'Sendable' type 'FileMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'allPermissions' 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
48 | /// A FileMode with no permissions and all bits on
49 | public static let allBits: FileMode = 0o7000
/host/spi-builder-workspace/Sources/Pathman/Protocols/DirectoryEnumerable.swift:4:23: warning: static property 'includeHidden' is not concurrency-safe because non-'Sendable' type 'DirectoryEnumerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | public struct DirectoryEnumerationOptions: OptionSet, Hashable {
| `- note: consider making struct 'DirectoryEnumerationOptions' conform to the 'Sendable' protocol
2 | public let rawValue: UInt8
3 |
4 | public static let includeHidden = DirectoryEnumerationOptions(rawValue: 1 << 0)
| |- warning: static property 'includeHidden' is not concurrency-safe because non-'Sendable' type 'DirectoryEnumerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'includeHidden' 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
5 |
6 | public init(rawValue: UInt8) {
/host/spi-builder-workspace/Sources/Pathman/Errors/Generic.swift:28:45: warning: cannot use struct 'Encoding' here; 'FoundationEssentials' was not imported by this file
26 | /// Errors thrown during String conversions from Data
27 | public enum StringError: Error {
28 | case notConvertibleToData(using: String.Encoding)
| `- warning: cannot use struct 'Encoding' here; 'FoundationEssentials' was not imported by this file
29 | }
30 |
FoundationEssentials.String:3:19: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | extension String {
3 | public struct Encoding : RawRepresentable, Sendable, Equatable {
| `- note: type declared here
4 | public var rawValue: UInt
5 | public init(rawValue: UInt)
/host/spi-builder-workspace/Sources/Pathman/Errors/Generic.swift:41:10: warning: associated value 'uncopyablePath' of 'Sendable'-conforming enum 'CopyError' has non-sendable type 'GenericPath'; this is an error in the Swift 6 language mode
39 |
40 | public enum CopyError: Error {
41 | case uncopyablePath(GenericPath)
| `- warning: associated value 'uncopyablePath' of 'Sendable'-conforming enum 'CopyError' has non-sendable type 'GenericPath'; this is an error in the Swift 6 language mode
42 | case nonEmptyDirectory
43 | case pathDoesNotExist
/host/spi-builder-workspace/Sources/Pathman/Path/Path+Generic.swift:2:15: note: consider making struct 'GenericPath' conform to the 'Sendable' protocol
1 | /// A type used to express filesystem paths
2 | public struct GenericPath: Path, ExpressibleByStringLiteral, ExpressibleByArrayLiteral, Comparable {
| `- note: consider making struct 'GenericPath' conform to the 'Sendable' protocol
3 | public static let pathType: PathType = .unknown
4 |
[113/120] Compiling Pathman DirectoryPath+Openable.swift
/host/spi-builder-workspace/Sources/Pathman/Connection/Connection.swift:10:23: warning: static property 'emptyWriteFlags' is not concurrency-safe because non-'Sendable' type 'SendFlags' may have shared mutable state; this is an error in the Swift 6 language mode
8 | public static var defaultByteCount: ByteRepresentable = 32.kb
9 | public static let emptyReadFlags: ReceiveFlags = .none
10 | public static let emptyWriteFlags: SendFlags = .none
| |- warning: static property 'emptyWriteFlags' is not concurrency-safe because non-'Sendable' type 'SendFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'emptyWriteFlags' 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
11 |
12 | let opened: Open<SocketPath>
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/send/SendFlags.swift:14:15: note: consider making struct 'SendFlags' conform to the 'Sendable' protocol
12 | #endif
13 |
14 | public struct SendFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'SendFlags' conform to the 'Sendable' protocol
15 | public let rawValue: OptionInt
16 |
/host/spi-builder-workspace/Sources/Pathman/Connection/Connection.swift:8:23: warning: static property 'defaultByteCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
6 | public let openOptions: SocketPath.OpenOptions
7 |
8 | public static var defaultByteCount: ByteRepresentable = 32.kb
| |- warning: static property 'defaultByteCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultByteCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultByteCount' 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
9 | public static let emptyReadFlags: ReceiveFlags = .none
10 | public static let emptyWriteFlags: SendFlags = .none
/host/spi-builder-workspace/Sources/Pathman/Connection/Connection.swift:9:23: warning: static property 'emptyReadFlags' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | public static var defaultByteCount: ByteRepresentable = 32.kb
9 | public static let emptyReadFlags: ReceiveFlags = .none
| |- warning: static property 'emptyReadFlags' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'emptyReadFlags' 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
10 | public static let emptyWriteFlags: SendFlags = .none
11 |
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/recv/ReceiveFlags.swift:16:15: note: consider making struct 'ReceiveFlags' conform to the 'Sendable' protocol
14 | #endif
15 |
16 | public struct ReceiveFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'ReceiveFlags' conform to the 'Sendable' protocol
17 | public let rawValue: OptionInt
18 |
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/recv/ReceiveFlags.swift:66:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' may have shared mutable state; this is an error in the Swift 6 language mode
14 | #endif
15 |
16 | public struct ReceiveFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'ReceiveFlags' conform to the 'Sendable' protocol
17 | public let rawValue: OptionInt
18 |
:
64 | public static let waitAll = ReceiveFlags(integerLiteral: MSG_WAITALL)
65 |
66 | public static let none: ReceiveFlags = 0
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' 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
67 |
68 | public init(rawValue: OptionInt) {
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/send/SendFlags.swift:70:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'SendFlags' may have shared mutable state; this is an error in the Swift 6 language mode
12 | #endif
13 |
14 | public struct SendFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'SendFlags' conform to the 'Sendable' protocol
15 | public let rawValue: OptionInt
16 |
:
68 | public static let outOfBound = SendFlags(integerLiteral: MSG_OOB)
69 |
70 | public static let none: SendFlags = 0
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'SendFlags' 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
71 |
72 | public init(rawValue: OptionInt) {
/host/spi-builder-workspace/Sources/Pathman/Protocols/Copyable.swift:8:23: warning: static property 'recursive' is not concurrency-safe because non-'Sendable' type 'CopyOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | public struct CopyOptions: OptionSet {
| `- note: consider making struct 'CopyOptions' conform to the 'Sendable' protocol
2 | public let rawValue: Int
3 |
:
6 | its contents as opposed to just its immediate children
7 | */
8 | public static let recursive = CopyOptions(rawValue: 1)
| |- warning: static property 'recursive' is not concurrency-safe because non-'Sendable' type 'CopyOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'recursive' 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
9 | /// If the path to copy is a directory, this option will copy the hidden files as well
10 | public static let includeHidden = CopyOptions(rawValue: 1 << 1)
/host/spi-builder-workspace/Sources/Pathman/Protocols/Creatable.swift:8:23: warning: static property 'createIntermediates' is not concurrency-safe because non-'Sendable' type 'CreateOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import struct Foundation.Data
2 |
3 | public struct CreateOptions: RawRepresentable, OptionSet, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'CreateOptions' conform to the 'Sendable' protocol
4 | public typealias IntegerLiteralType = UInt8
5 | public let rawValue: IntegerLiteralType
6 |
7 | /// Automatically creating any missing intermediate directories of the path
8 | public static let createIntermediates = CreateOptions(rawValue: 1 << 0)
| |- warning: static property 'createIntermediates' is not concurrency-safe because non-'Sendable' type 'CreateOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'createIntermediates' 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
9 |
10 | public init(rawValue: IntegerLiteralType) {
/host/spi-builder-workspace/Sources/Pathman/CInterop/mode_t/FileMode.swift:47:23: warning: static property 'allPermissions' is not concurrency-safe because non-'Sendable' type 'FileMode' may have shared mutable state; this is an error in the Swift 6 language mode
1 | /// A swift wrapper around the C mode_t type, which is used to hold/manipulate information about a Path's permissions
2 | public struct FileMode: OptionSet, ExpressibleByIntegerLiteral, ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'FileMode' conform to the 'Sendable' protocol
3 | public typealias IntegerLiteralType = OSUInt
4 | public typealias StringLiteralType = String
:
45 | public static let all: FileMode = 0o7777
46 | /// A FileMode with all permissions and no bits on
47 | public static let allPermissions: FileMode = 0o0777
| |- warning: static property 'allPermissions' is not concurrency-safe because non-'Sendable' type 'FileMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'allPermissions' 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
48 | /// A FileMode with no permissions and all bits on
49 | public static let allBits: FileMode = 0o7000
/host/spi-builder-workspace/Sources/Pathman/Protocols/DirectoryEnumerable.swift:4:23: warning: static property 'includeHidden' is not concurrency-safe because non-'Sendable' type 'DirectoryEnumerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | public struct DirectoryEnumerationOptions: OptionSet, Hashable {
| `- note: consider making struct 'DirectoryEnumerationOptions' conform to the 'Sendable' protocol
2 | public let rawValue: UInt8
3 |
4 | public static let includeHidden = DirectoryEnumerationOptions(rawValue: 1 << 0)
| |- warning: static property 'includeHidden' is not concurrency-safe because non-'Sendable' type 'DirectoryEnumerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'includeHidden' 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
5 |
6 | public init(rawValue: UInt8) {
/host/spi-builder-workspace/Sources/Pathman/Errors/Generic.swift:28:45: warning: cannot use struct 'Encoding' here; 'FoundationEssentials' was not imported by this file
26 | /// Errors thrown during String conversions from Data
27 | public enum StringError: Error {
28 | case notConvertibleToData(using: String.Encoding)
| `- warning: cannot use struct 'Encoding' here; 'FoundationEssentials' was not imported by this file
29 | }
30 |
FoundationEssentials.String:3:19: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | extension String {
3 | public struct Encoding : RawRepresentable, Sendable, Equatable {
| `- note: type declared here
4 | public var rawValue: UInt
5 | public init(rawValue: UInt)
/host/spi-builder-workspace/Sources/Pathman/Errors/Generic.swift:41:10: warning: associated value 'uncopyablePath' of 'Sendable'-conforming enum 'CopyError' has non-sendable type 'GenericPath'; this is an error in the Swift 6 language mode
39 |
40 | public enum CopyError: Error {
41 | case uncopyablePath(GenericPath)
| `- warning: associated value 'uncopyablePath' of 'Sendable'-conforming enum 'CopyError' has non-sendable type 'GenericPath'; this is an error in the Swift 6 language mode
42 | case nonEmptyDirectory
43 | case pathDoesNotExist
/host/spi-builder-workspace/Sources/Pathman/Path/Path+Generic.swift:2:15: note: consider making struct 'GenericPath' conform to the 'Sendable' protocol
1 | /// A type used to express filesystem paths
2 | public struct GenericPath: Path, ExpressibleByStringLiteral, ExpressibleByArrayLiteral, Comparable {
| `- note: consider making struct 'GenericPath' conform to the 'Sendable' protocol
3 | public static let pathType: PathType = .unknown
4 |
[114/120] Compiling Pathman DirectoryPath.swift
/host/spi-builder-workspace/Sources/Pathman/Connection/Connection.swift:10:23: warning: static property 'emptyWriteFlags' is not concurrency-safe because non-'Sendable' type 'SendFlags' may have shared mutable state; this is an error in the Swift 6 language mode
8 | public static var defaultByteCount: ByteRepresentable = 32.kb
9 | public static let emptyReadFlags: ReceiveFlags = .none
10 | public static let emptyWriteFlags: SendFlags = .none
| |- warning: static property 'emptyWriteFlags' is not concurrency-safe because non-'Sendable' type 'SendFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'emptyWriteFlags' 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
11 |
12 | let opened: Open<SocketPath>
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/send/SendFlags.swift:14:15: note: consider making struct 'SendFlags' conform to the 'Sendable' protocol
12 | #endif
13 |
14 | public struct SendFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'SendFlags' conform to the 'Sendable' protocol
15 | public let rawValue: OptionInt
16 |
/host/spi-builder-workspace/Sources/Pathman/Connection/Connection.swift:8:23: warning: static property 'defaultByteCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
6 | public let openOptions: SocketPath.OpenOptions
7 |
8 | public static var defaultByteCount: ByteRepresentable = 32.kb
| |- warning: static property 'defaultByteCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultByteCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultByteCount' 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
9 | public static let emptyReadFlags: ReceiveFlags = .none
10 | public static let emptyWriteFlags: SendFlags = .none
/host/spi-builder-workspace/Sources/Pathman/Connection/Connection.swift:9:23: warning: static property 'emptyReadFlags' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | public static var defaultByteCount: ByteRepresentable = 32.kb
9 | public static let emptyReadFlags: ReceiveFlags = .none
| |- warning: static property 'emptyReadFlags' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'emptyReadFlags' 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
10 | public static let emptyWriteFlags: SendFlags = .none
11 |
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/recv/ReceiveFlags.swift:16:15: note: consider making struct 'ReceiveFlags' conform to the 'Sendable' protocol
14 | #endif
15 |
16 | public struct ReceiveFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'ReceiveFlags' conform to the 'Sendable' protocol
17 | public let rawValue: OptionInt
18 |
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/recv/ReceiveFlags.swift:66:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' may have shared mutable state; this is an error in the Swift 6 language mode
14 | #endif
15 |
16 | public struct ReceiveFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'ReceiveFlags' conform to the 'Sendable' protocol
17 | public let rawValue: OptionInt
18 |
:
64 | public static let waitAll = ReceiveFlags(integerLiteral: MSG_WAITALL)
65 |
66 | public static let none: ReceiveFlags = 0
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' 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
67 |
68 | public init(rawValue: OptionInt) {
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/send/SendFlags.swift:70:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'SendFlags' may have shared mutable state; this is an error in the Swift 6 language mode
12 | #endif
13 |
14 | public struct SendFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'SendFlags' conform to the 'Sendable' protocol
15 | public let rawValue: OptionInt
16 |
:
68 | public static let outOfBound = SendFlags(integerLiteral: MSG_OOB)
69 |
70 | public static let none: SendFlags = 0
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'SendFlags' 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
71 |
72 | public init(rawValue: OptionInt) {
/host/spi-builder-workspace/Sources/Pathman/Protocols/Copyable.swift:8:23: warning: static property 'recursive' is not concurrency-safe because non-'Sendable' type 'CopyOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | public struct CopyOptions: OptionSet {
| `- note: consider making struct 'CopyOptions' conform to the 'Sendable' protocol
2 | public let rawValue: Int
3 |
:
6 | its contents as opposed to just its immediate children
7 | */
8 | public static let recursive = CopyOptions(rawValue: 1)
| |- warning: static property 'recursive' is not concurrency-safe because non-'Sendable' type 'CopyOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'recursive' 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
9 | /// If the path to copy is a directory, this option will copy the hidden files as well
10 | public static let includeHidden = CopyOptions(rawValue: 1 << 1)
/host/spi-builder-workspace/Sources/Pathman/Protocols/Creatable.swift:8:23: warning: static property 'createIntermediates' is not concurrency-safe because non-'Sendable' type 'CreateOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import struct Foundation.Data
2 |
3 | public struct CreateOptions: RawRepresentable, OptionSet, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'CreateOptions' conform to the 'Sendable' protocol
4 | public typealias IntegerLiteralType = UInt8
5 | public let rawValue: IntegerLiteralType
6 |
7 | /// Automatically creating any missing intermediate directories of the path
8 | public static let createIntermediates = CreateOptions(rawValue: 1 << 0)
| |- warning: static property 'createIntermediates' is not concurrency-safe because non-'Sendable' type 'CreateOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'createIntermediates' 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
9 |
10 | public init(rawValue: IntegerLiteralType) {
/host/spi-builder-workspace/Sources/Pathman/CInterop/mode_t/FileMode.swift:47:23: warning: static property 'allPermissions' is not concurrency-safe because non-'Sendable' type 'FileMode' may have shared mutable state; this is an error in the Swift 6 language mode
1 | /// A swift wrapper around the C mode_t type, which is used to hold/manipulate information about a Path's permissions
2 | public struct FileMode: OptionSet, ExpressibleByIntegerLiteral, ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'FileMode' conform to the 'Sendable' protocol
3 | public typealias IntegerLiteralType = OSUInt
4 | public typealias StringLiteralType = String
:
45 | public static let all: FileMode = 0o7777
46 | /// A FileMode with all permissions and no bits on
47 | public static let allPermissions: FileMode = 0o0777
| |- warning: static property 'allPermissions' is not concurrency-safe because non-'Sendable' type 'FileMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'allPermissions' 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
48 | /// A FileMode with no permissions and all bits on
49 | public static let allBits: FileMode = 0o7000
/host/spi-builder-workspace/Sources/Pathman/Protocols/DirectoryEnumerable.swift:4:23: warning: static property 'includeHidden' is not concurrency-safe because non-'Sendable' type 'DirectoryEnumerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | public struct DirectoryEnumerationOptions: OptionSet, Hashable {
| `- note: consider making struct 'DirectoryEnumerationOptions' conform to the 'Sendable' protocol
2 | public let rawValue: UInt8
3 |
4 | public static let includeHidden = DirectoryEnumerationOptions(rawValue: 1 << 0)
| |- warning: static property 'includeHidden' is not concurrency-safe because non-'Sendable' type 'DirectoryEnumerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'includeHidden' 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
5 |
6 | public init(rawValue: UInt8) {
/host/spi-builder-workspace/Sources/Pathman/Errors/Generic.swift:28:45: warning: cannot use struct 'Encoding' here; 'FoundationEssentials' was not imported by this file
26 | /// Errors thrown during String conversions from Data
27 | public enum StringError: Error {
28 | case notConvertibleToData(using: String.Encoding)
| `- warning: cannot use struct 'Encoding' here; 'FoundationEssentials' was not imported by this file
29 | }
30 |
FoundationEssentials.String:3:19: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | extension String {
3 | public struct Encoding : RawRepresentable, Sendable, Equatable {
| `- note: type declared here
4 | public var rawValue: UInt
5 | public init(rawValue: UInt)
/host/spi-builder-workspace/Sources/Pathman/Errors/Generic.swift:41:10: warning: associated value 'uncopyablePath' of 'Sendable'-conforming enum 'CopyError' has non-sendable type 'GenericPath'; this is an error in the Swift 6 language mode
39 |
40 | public enum CopyError: Error {
41 | case uncopyablePath(GenericPath)
| `- warning: associated value 'uncopyablePath' of 'Sendable'-conforming enum 'CopyError' has non-sendable type 'GenericPath'; this is an error in the Swift 6 language mode
42 | case nonEmptyDirectory
43 | case pathDoesNotExist
/host/spi-builder-workspace/Sources/Pathman/Path/Path+Generic.swift:2:15: note: consider making struct 'GenericPath' conform to the 'Sendable' protocol
1 | /// A type used to express filesystem paths
2 | public struct GenericPath: Path, ExpressibleByStringLiteral, ExpressibleByArrayLiteral, Comparable {
| `- note: consider making struct 'GenericPath' conform to the 'Sendable' protocol
3 | public static let pathType: PathType = .unknown
4 |
[115/120] Compiling Pathman OpenDirectory.swift
/host/spi-builder-workspace/Sources/Pathman/Connection/Connection.swift:10:23: warning: static property 'emptyWriteFlags' is not concurrency-safe because non-'Sendable' type 'SendFlags' may have shared mutable state; this is an error in the Swift 6 language mode
8 | public static var defaultByteCount: ByteRepresentable = 32.kb
9 | public static let emptyReadFlags: ReceiveFlags = .none
10 | public static let emptyWriteFlags: SendFlags = .none
| |- warning: static property 'emptyWriteFlags' is not concurrency-safe because non-'Sendable' type 'SendFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'emptyWriteFlags' 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
11 |
12 | let opened: Open<SocketPath>
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/send/SendFlags.swift:14:15: note: consider making struct 'SendFlags' conform to the 'Sendable' protocol
12 | #endif
13 |
14 | public struct SendFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'SendFlags' conform to the 'Sendable' protocol
15 | public let rawValue: OptionInt
16 |
/host/spi-builder-workspace/Sources/Pathman/Connection/Connection.swift:8:23: warning: static property 'defaultByteCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
6 | public let openOptions: SocketPath.OpenOptions
7 |
8 | public static var defaultByteCount: ByteRepresentable = 32.kb
| |- warning: static property 'defaultByteCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultByteCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultByteCount' 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
9 | public static let emptyReadFlags: ReceiveFlags = .none
10 | public static let emptyWriteFlags: SendFlags = .none
/host/spi-builder-workspace/Sources/Pathman/Connection/Connection.swift:9:23: warning: static property 'emptyReadFlags' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | public static var defaultByteCount: ByteRepresentable = 32.kb
9 | public static let emptyReadFlags: ReceiveFlags = .none
| |- warning: static property 'emptyReadFlags' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'emptyReadFlags' 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
10 | public static let emptyWriteFlags: SendFlags = .none
11 |
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/recv/ReceiveFlags.swift:16:15: note: consider making struct 'ReceiveFlags' conform to the 'Sendable' protocol
14 | #endif
15 |
16 | public struct ReceiveFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'ReceiveFlags' conform to the 'Sendable' protocol
17 | public let rawValue: OptionInt
18 |
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/recv/ReceiveFlags.swift:66:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' may have shared mutable state; this is an error in the Swift 6 language mode
14 | #endif
15 |
16 | public struct ReceiveFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'ReceiveFlags' conform to the 'Sendable' protocol
17 | public let rawValue: OptionInt
18 |
:
64 | public static let waitAll = ReceiveFlags(integerLiteral: MSG_WAITALL)
65 |
66 | public static let none: ReceiveFlags = 0
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' 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
67 |
68 | public init(rawValue: OptionInt) {
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/send/SendFlags.swift:70:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'SendFlags' may have shared mutable state; this is an error in the Swift 6 language mode
12 | #endif
13 |
14 | public struct SendFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'SendFlags' conform to the 'Sendable' protocol
15 | public let rawValue: OptionInt
16 |
:
68 | public static let outOfBound = SendFlags(integerLiteral: MSG_OOB)
69 |
70 | public static let none: SendFlags = 0
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'SendFlags' 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
71 |
72 | public init(rawValue: OptionInt) {
/host/spi-builder-workspace/Sources/Pathman/Protocols/Copyable.swift:8:23: warning: static property 'recursive' is not concurrency-safe because non-'Sendable' type 'CopyOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | public struct CopyOptions: OptionSet {
| `- note: consider making struct 'CopyOptions' conform to the 'Sendable' protocol
2 | public let rawValue: Int
3 |
:
6 | its contents as opposed to just its immediate children
7 | */
8 | public static let recursive = CopyOptions(rawValue: 1)
| |- warning: static property 'recursive' is not concurrency-safe because non-'Sendable' type 'CopyOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'recursive' 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
9 | /// If the path to copy is a directory, this option will copy the hidden files as well
10 | public static let includeHidden = CopyOptions(rawValue: 1 << 1)
/host/spi-builder-workspace/Sources/Pathman/Protocols/Creatable.swift:8:23: warning: static property 'createIntermediates' is not concurrency-safe because non-'Sendable' type 'CreateOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import struct Foundation.Data
2 |
3 | public struct CreateOptions: RawRepresentable, OptionSet, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'CreateOptions' conform to the 'Sendable' protocol
4 | public typealias IntegerLiteralType = UInt8
5 | public let rawValue: IntegerLiteralType
6 |
7 | /// Automatically creating any missing intermediate directories of the path
8 | public static let createIntermediates = CreateOptions(rawValue: 1 << 0)
| |- warning: static property 'createIntermediates' is not concurrency-safe because non-'Sendable' type 'CreateOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'createIntermediates' 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
9 |
10 | public init(rawValue: IntegerLiteralType) {
/host/spi-builder-workspace/Sources/Pathman/CInterop/mode_t/FileMode.swift:47:23: warning: static property 'allPermissions' is not concurrency-safe because non-'Sendable' type 'FileMode' may have shared mutable state; this is an error in the Swift 6 language mode
1 | /// A swift wrapper around the C mode_t type, which is used to hold/manipulate information about a Path's permissions
2 | public struct FileMode: OptionSet, ExpressibleByIntegerLiteral, ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'FileMode' conform to the 'Sendable' protocol
3 | public typealias IntegerLiteralType = OSUInt
4 | public typealias StringLiteralType = String
:
45 | public static let all: FileMode = 0o7777
46 | /// A FileMode with all permissions and no bits on
47 | public static let allPermissions: FileMode = 0o0777
| |- warning: static property 'allPermissions' is not concurrency-safe because non-'Sendable' type 'FileMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'allPermissions' 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
48 | /// A FileMode with no permissions and all bits on
49 | public static let allBits: FileMode = 0o7000
/host/spi-builder-workspace/Sources/Pathman/Protocols/DirectoryEnumerable.swift:4:23: warning: static property 'includeHidden' is not concurrency-safe because non-'Sendable' type 'DirectoryEnumerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | public struct DirectoryEnumerationOptions: OptionSet, Hashable {
| `- note: consider making struct 'DirectoryEnumerationOptions' conform to the 'Sendable' protocol
2 | public let rawValue: UInt8
3 |
4 | public static let includeHidden = DirectoryEnumerationOptions(rawValue: 1 << 0)
| |- warning: static property 'includeHidden' is not concurrency-safe because non-'Sendable' type 'DirectoryEnumerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'includeHidden' 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
5 |
6 | public init(rawValue: UInt8) {
/host/spi-builder-workspace/Sources/Pathman/Errors/Generic.swift:28:45: warning: cannot use struct 'Encoding' here; 'FoundationEssentials' was not imported by this file
26 | /// Errors thrown during String conversions from Data
27 | public enum StringError: Error {
28 | case notConvertibleToData(using: String.Encoding)
| `- warning: cannot use struct 'Encoding' here; 'FoundationEssentials' was not imported by this file
29 | }
30 |
FoundationEssentials.String:3:19: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | extension String {
3 | public struct Encoding : RawRepresentable, Sendable, Equatable {
| `- note: type declared here
4 | public var rawValue: UInt
5 | public init(rawValue: UInt)
/host/spi-builder-workspace/Sources/Pathman/Errors/Generic.swift:41:10: warning: associated value 'uncopyablePath' of 'Sendable'-conforming enum 'CopyError' has non-sendable type 'GenericPath'; this is an error in the Swift 6 language mode
39 |
40 | public enum CopyError: Error {
41 | case uncopyablePath(GenericPath)
| `- warning: associated value 'uncopyablePath' of 'Sendable'-conforming enum 'CopyError' has non-sendable type 'GenericPath'; this is an error in the Swift 6 language mode
42 | case nonEmptyDirectory
43 | case pathDoesNotExist
/host/spi-builder-workspace/Sources/Pathman/Path/Path+Generic.swift:2:15: note: consider making struct 'GenericPath' conform to the 'Sendable' protocol
1 | /// A type used to express filesystem paths
2 | public struct GenericPath: Path, ExpressibleByStringLiteral, ExpressibleByArrayLiteral, Comparable {
| `- note: consider making struct 'GenericPath' conform to the 'Sendable' protocol
3 | public static let pathType: PathType = .unknown
4 |
[116/120] Compiling Pathman DirectoryEnumerable+Deletable.swift
/host/spi-builder-workspace/Sources/Pathman/Connection/Connection.swift:10:23: warning: static property 'emptyWriteFlags' is not concurrency-safe because non-'Sendable' type 'SendFlags' may have shared mutable state; this is an error in the Swift 6 language mode
8 | public static var defaultByteCount: ByteRepresentable = 32.kb
9 | public static let emptyReadFlags: ReceiveFlags = .none
10 | public static let emptyWriteFlags: SendFlags = .none
| |- warning: static property 'emptyWriteFlags' is not concurrency-safe because non-'Sendable' type 'SendFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'emptyWriteFlags' 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
11 |
12 | let opened: Open<SocketPath>
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/send/SendFlags.swift:14:15: note: consider making struct 'SendFlags' conform to the 'Sendable' protocol
12 | #endif
13 |
14 | public struct SendFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'SendFlags' conform to the 'Sendable' protocol
15 | public let rawValue: OptionInt
16 |
/host/spi-builder-workspace/Sources/Pathman/Connection/Connection.swift:8:23: warning: static property 'defaultByteCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
6 | public let openOptions: SocketPath.OpenOptions
7 |
8 | public static var defaultByteCount: ByteRepresentable = 32.kb
| |- warning: static property 'defaultByteCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultByteCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultByteCount' 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
9 | public static let emptyReadFlags: ReceiveFlags = .none
10 | public static let emptyWriteFlags: SendFlags = .none
/host/spi-builder-workspace/Sources/Pathman/Connection/Connection.swift:9:23: warning: static property 'emptyReadFlags' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | public static var defaultByteCount: ByteRepresentable = 32.kb
9 | public static let emptyReadFlags: ReceiveFlags = .none
| |- warning: static property 'emptyReadFlags' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'emptyReadFlags' 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
10 | public static let emptyWriteFlags: SendFlags = .none
11 |
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/recv/ReceiveFlags.swift:16:15: note: consider making struct 'ReceiveFlags' conform to the 'Sendable' protocol
14 | #endif
15 |
16 | public struct ReceiveFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'ReceiveFlags' conform to the 'Sendable' protocol
17 | public let rawValue: OptionInt
18 |
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/recv/ReceiveFlags.swift:66:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' may have shared mutable state; this is an error in the Swift 6 language mode
14 | #endif
15 |
16 | public struct ReceiveFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'ReceiveFlags' conform to the 'Sendable' protocol
17 | public let rawValue: OptionInt
18 |
:
64 | public static let waitAll = ReceiveFlags(integerLiteral: MSG_WAITALL)
65 |
66 | public static let none: ReceiveFlags = 0
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' 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
67 |
68 | public init(rawValue: OptionInt) {
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/send/SendFlags.swift:70:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'SendFlags' may have shared mutable state; this is an error in the Swift 6 language mode
12 | #endif
13 |
14 | public struct SendFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'SendFlags' conform to the 'Sendable' protocol
15 | public let rawValue: OptionInt
16 |
:
68 | public static let outOfBound = SendFlags(integerLiteral: MSG_OOB)
69 |
70 | public static let none: SendFlags = 0
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'SendFlags' 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
71 |
72 | public init(rawValue: OptionInt) {
/host/spi-builder-workspace/Sources/Pathman/Protocols/Copyable.swift:8:23: warning: static property 'recursive' is not concurrency-safe because non-'Sendable' type 'CopyOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | public struct CopyOptions: OptionSet {
| `- note: consider making struct 'CopyOptions' conform to the 'Sendable' protocol
2 | public let rawValue: Int
3 |
:
6 | its contents as opposed to just its immediate children
7 | */
8 | public static let recursive = CopyOptions(rawValue: 1)
| |- warning: static property 'recursive' is not concurrency-safe because non-'Sendable' type 'CopyOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'recursive' 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
9 | /// If the path to copy is a directory, this option will copy the hidden files as well
10 | public static let includeHidden = CopyOptions(rawValue: 1 << 1)
/host/spi-builder-workspace/Sources/Pathman/Protocols/Creatable.swift:8:23: warning: static property 'createIntermediates' is not concurrency-safe because non-'Sendable' type 'CreateOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import struct Foundation.Data
2 |
3 | public struct CreateOptions: RawRepresentable, OptionSet, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'CreateOptions' conform to the 'Sendable' protocol
4 | public typealias IntegerLiteralType = UInt8
5 | public let rawValue: IntegerLiteralType
6 |
7 | /// Automatically creating any missing intermediate directories of the path
8 | public static let createIntermediates = CreateOptions(rawValue: 1 << 0)
| |- warning: static property 'createIntermediates' is not concurrency-safe because non-'Sendable' type 'CreateOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'createIntermediates' 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
9 |
10 | public init(rawValue: IntegerLiteralType) {
/host/spi-builder-workspace/Sources/Pathman/CInterop/mode_t/FileMode.swift:47:23: warning: static property 'allPermissions' is not concurrency-safe because non-'Sendable' type 'FileMode' may have shared mutable state; this is an error in the Swift 6 language mode
1 | /// A swift wrapper around the C mode_t type, which is used to hold/manipulate information about a Path's permissions
2 | public struct FileMode: OptionSet, ExpressibleByIntegerLiteral, ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'FileMode' conform to the 'Sendable' protocol
3 | public typealias IntegerLiteralType = OSUInt
4 | public typealias StringLiteralType = String
:
45 | public static let all: FileMode = 0o7777
46 | /// A FileMode with all permissions and no bits on
47 | public static let allPermissions: FileMode = 0o0777
| |- warning: static property 'allPermissions' is not concurrency-safe because non-'Sendable' type 'FileMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'allPermissions' 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
48 | /// A FileMode with no permissions and all bits on
49 | public static let allBits: FileMode = 0o7000
/host/spi-builder-workspace/Sources/Pathman/Protocols/DirectoryEnumerable.swift:4:23: warning: static property 'includeHidden' is not concurrency-safe because non-'Sendable' type 'DirectoryEnumerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | public struct DirectoryEnumerationOptions: OptionSet, Hashable {
| `- note: consider making struct 'DirectoryEnumerationOptions' conform to the 'Sendable' protocol
2 | public let rawValue: UInt8
3 |
4 | public static let includeHidden = DirectoryEnumerationOptions(rawValue: 1 << 0)
| |- warning: static property 'includeHidden' is not concurrency-safe because non-'Sendable' type 'DirectoryEnumerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'includeHidden' 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
5 |
6 | public init(rawValue: UInt8) {
/host/spi-builder-workspace/Sources/Pathman/Errors/Generic.swift:28:45: warning: cannot use struct 'Encoding' here; 'FoundationEssentials' was not imported by this file
26 | /// Errors thrown during String conversions from Data
27 | public enum StringError: Error {
28 | case notConvertibleToData(using: String.Encoding)
| `- warning: cannot use struct 'Encoding' here; 'FoundationEssentials' was not imported by this file
29 | }
30 |
FoundationEssentials.String:3:19: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | extension String {
3 | public struct Encoding : RawRepresentable, Sendable, Equatable {
| `- note: type declared here
4 | public var rawValue: UInt
5 | public init(rawValue: UInt)
/host/spi-builder-workspace/Sources/Pathman/Errors/Generic.swift:41:10: warning: associated value 'uncopyablePath' of 'Sendable'-conforming enum 'CopyError' has non-sendable type 'GenericPath'; this is an error in the Swift 6 language mode
39 |
40 | public enum CopyError: Error {
41 | case uncopyablePath(GenericPath)
| `- warning: associated value 'uncopyablePath' of 'Sendable'-conforming enum 'CopyError' has non-sendable type 'GenericPath'; this is an error in the Swift 6 language mode
42 | case nonEmptyDirectory
43 | case pathDoesNotExist
/host/spi-builder-workspace/Sources/Pathman/Path/Path+Generic.swift:2:15: note: consider making struct 'GenericPath' conform to the 'Sendable' protocol
1 | /// A type used to express filesystem paths
2 | public struct GenericPath: Path, ExpressibleByStringLiteral, ExpressibleByArrayLiteral, Comparable {
| `- note: consider making struct 'GenericPath' conform to the 'Sendable' protocol
3 | public static let pathType: PathType = .unknown
4 |
[117/120] Compiling Pathman DirectoryEnumerable+Ownable.swift
/host/spi-builder-workspace/Sources/Pathman/Connection/Connection.swift:10:23: warning: static property 'emptyWriteFlags' is not concurrency-safe because non-'Sendable' type 'SendFlags' may have shared mutable state; this is an error in the Swift 6 language mode
8 | public static var defaultByteCount: ByteRepresentable = 32.kb
9 | public static let emptyReadFlags: ReceiveFlags = .none
10 | public static let emptyWriteFlags: SendFlags = .none
| |- warning: static property 'emptyWriteFlags' is not concurrency-safe because non-'Sendable' type 'SendFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'emptyWriteFlags' 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
11 |
12 | let opened: Open<SocketPath>
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/send/SendFlags.swift:14:15: note: consider making struct 'SendFlags' conform to the 'Sendable' protocol
12 | #endif
13 |
14 | public struct SendFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'SendFlags' conform to the 'Sendable' protocol
15 | public let rawValue: OptionInt
16 |
/host/spi-builder-workspace/Sources/Pathman/Connection/Connection.swift:8:23: warning: static property 'defaultByteCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
6 | public let openOptions: SocketPath.OpenOptions
7 |
8 | public static var defaultByteCount: ByteRepresentable = 32.kb
| |- warning: static property 'defaultByteCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultByteCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultByteCount' 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
9 | public static let emptyReadFlags: ReceiveFlags = .none
10 | public static let emptyWriteFlags: SendFlags = .none
/host/spi-builder-workspace/Sources/Pathman/Connection/Connection.swift:9:23: warning: static property 'emptyReadFlags' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | public static var defaultByteCount: ByteRepresentable = 32.kb
9 | public static let emptyReadFlags: ReceiveFlags = .none
| |- warning: static property 'emptyReadFlags' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'emptyReadFlags' 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
10 | public static let emptyWriteFlags: SendFlags = .none
11 |
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/recv/ReceiveFlags.swift:16:15: note: consider making struct 'ReceiveFlags' conform to the 'Sendable' protocol
14 | #endif
15 |
16 | public struct ReceiveFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'ReceiveFlags' conform to the 'Sendable' protocol
17 | public let rawValue: OptionInt
18 |
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/recv/ReceiveFlags.swift:66:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' may have shared mutable state; this is an error in the Swift 6 language mode
14 | #endif
15 |
16 | public struct ReceiveFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'ReceiveFlags' conform to the 'Sendable' protocol
17 | public let rawValue: OptionInt
18 |
:
64 | public static let waitAll = ReceiveFlags(integerLiteral: MSG_WAITALL)
65 |
66 | public static let none: ReceiveFlags = 0
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' 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
67 |
68 | public init(rawValue: OptionInt) {
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/send/SendFlags.swift:70:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'SendFlags' may have shared mutable state; this is an error in the Swift 6 language mode
12 | #endif
13 |
14 | public struct SendFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'SendFlags' conform to the 'Sendable' protocol
15 | public let rawValue: OptionInt
16 |
:
68 | public static let outOfBound = SendFlags(integerLiteral: MSG_OOB)
69 |
70 | public static let none: SendFlags = 0
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'SendFlags' 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
71 |
72 | public init(rawValue: OptionInt) {
/host/spi-builder-workspace/Sources/Pathman/Protocols/Copyable.swift:8:23: warning: static property 'recursive' is not concurrency-safe because non-'Sendable' type 'CopyOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | public struct CopyOptions: OptionSet {
| `- note: consider making struct 'CopyOptions' conform to the 'Sendable' protocol
2 | public let rawValue: Int
3 |
:
6 | its contents as opposed to just its immediate children
7 | */
8 | public static let recursive = CopyOptions(rawValue: 1)
| |- warning: static property 'recursive' is not concurrency-safe because non-'Sendable' type 'CopyOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'recursive' 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
9 | /// If the path to copy is a directory, this option will copy the hidden files as well
10 | public static let includeHidden = CopyOptions(rawValue: 1 << 1)
/host/spi-builder-workspace/Sources/Pathman/Protocols/Creatable.swift:8:23: warning: static property 'createIntermediates' is not concurrency-safe because non-'Sendable' type 'CreateOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import struct Foundation.Data
2 |
3 | public struct CreateOptions: RawRepresentable, OptionSet, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'CreateOptions' conform to the 'Sendable' protocol
4 | public typealias IntegerLiteralType = UInt8
5 | public let rawValue: IntegerLiteralType
6 |
7 | /// Automatically creating any missing intermediate directories of the path
8 | public static let createIntermediates = CreateOptions(rawValue: 1 << 0)
| |- warning: static property 'createIntermediates' is not concurrency-safe because non-'Sendable' type 'CreateOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'createIntermediates' 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
9 |
10 | public init(rawValue: IntegerLiteralType) {
/host/spi-builder-workspace/Sources/Pathman/CInterop/mode_t/FileMode.swift:47:23: warning: static property 'allPermissions' is not concurrency-safe because non-'Sendable' type 'FileMode' may have shared mutable state; this is an error in the Swift 6 language mode
1 | /// A swift wrapper around the C mode_t type, which is used to hold/manipulate information about a Path's permissions
2 | public struct FileMode: OptionSet, ExpressibleByIntegerLiteral, ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'FileMode' conform to the 'Sendable' protocol
3 | public typealias IntegerLiteralType = OSUInt
4 | public typealias StringLiteralType = String
:
45 | public static let all: FileMode = 0o7777
46 | /// A FileMode with all permissions and no bits on
47 | public static let allPermissions: FileMode = 0o0777
| |- warning: static property 'allPermissions' is not concurrency-safe because non-'Sendable' type 'FileMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'allPermissions' 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
48 | /// A FileMode with no permissions and all bits on
49 | public static let allBits: FileMode = 0o7000
/host/spi-builder-workspace/Sources/Pathman/Protocols/DirectoryEnumerable.swift:4:23: warning: static property 'includeHidden' is not concurrency-safe because non-'Sendable' type 'DirectoryEnumerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | public struct DirectoryEnumerationOptions: OptionSet, Hashable {
| `- note: consider making struct 'DirectoryEnumerationOptions' conform to the 'Sendable' protocol
2 | public let rawValue: UInt8
3 |
4 | public static let includeHidden = DirectoryEnumerationOptions(rawValue: 1 << 0)
| |- warning: static property 'includeHidden' is not concurrency-safe because non-'Sendable' type 'DirectoryEnumerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'includeHidden' 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
5 |
6 | public init(rawValue: UInt8) {
/host/spi-builder-workspace/Sources/Pathman/Errors/Generic.swift:28:45: warning: cannot use struct 'Encoding' here; 'FoundationEssentials' was not imported by this file
26 | /// Errors thrown during String conversions from Data
27 | public enum StringError: Error {
28 | case notConvertibleToData(using: String.Encoding)
| `- warning: cannot use struct 'Encoding' here; 'FoundationEssentials' was not imported by this file
29 | }
30 |
FoundationEssentials.String:3:19: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | extension String {
3 | public struct Encoding : RawRepresentable, Sendable, Equatable {
| `- note: type declared here
4 | public var rawValue: UInt
5 | public init(rawValue: UInt)
/host/spi-builder-workspace/Sources/Pathman/Errors/Generic.swift:41:10: warning: associated value 'uncopyablePath' of 'Sendable'-conforming enum 'CopyError' has non-sendable type 'GenericPath'; this is an error in the Swift 6 language mode
39 |
40 | public enum CopyError: Error {
41 | case uncopyablePath(GenericPath)
| `- warning: associated value 'uncopyablePath' of 'Sendable'-conforming enum 'CopyError' has non-sendable type 'GenericPath'; this is an error in the Swift 6 language mode
42 | case nonEmptyDirectory
43 | case pathDoesNotExist
/host/spi-builder-workspace/Sources/Pathman/Path/Path+Generic.swift:2:15: note: consider making struct 'GenericPath' conform to the 'Sendable' protocol
1 | /// A type used to express filesystem paths
2 | public struct GenericPath: Path, ExpressibleByStringLiteral, ExpressibleByArrayLiteral, Comparable {
| `- note: consider making struct 'GenericPath' conform to the 'Sendable' protocol
3 | public static let pathType: PathType = .unknown
4 |
[118/120] Compiling Pathman DirectoryEnumerable+Permissionable.swift
/host/spi-builder-workspace/Sources/Pathman/Connection/Connection.swift:10:23: warning: static property 'emptyWriteFlags' is not concurrency-safe because non-'Sendable' type 'SendFlags' may have shared mutable state; this is an error in the Swift 6 language mode
8 | public static var defaultByteCount: ByteRepresentable = 32.kb
9 | public static let emptyReadFlags: ReceiveFlags = .none
10 | public static let emptyWriteFlags: SendFlags = .none
| |- warning: static property 'emptyWriteFlags' is not concurrency-safe because non-'Sendable' type 'SendFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'emptyWriteFlags' 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
11 |
12 | let opened: Open<SocketPath>
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/send/SendFlags.swift:14:15: note: consider making struct 'SendFlags' conform to the 'Sendable' protocol
12 | #endif
13 |
14 | public struct SendFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'SendFlags' conform to the 'Sendable' protocol
15 | public let rawValue: OptionInt
16 |
/host/spi-builder-workspace/Sources/Pathman/Connection/Connection.swift:8:23: warning: static property 'defaultByteCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
6 | public let openOptions: SocketPath.OpenOptions
7 |
8 | public static var defaultByteCount: ByteRepresentable = 32.kb
| |- warning: static property 'defaultByteCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultByteCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultByteCount' 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
9 | public static let emptyReadFlags: ReceiveFlags = .none
10 | public static let emptyWriteFlags: SendFlags = .none
/host/spi-builder-workspace/Sources/Pathman/Connection/Connection.swift:9:23: warning: static property 'emptyReadFlags' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | public static var defaultByteCount: ByteRepresentable = 32.kb
9 | public static let emptyReadFlags: ReceiveFlags = .none
| |- warning: static property 'emptyReadFlags' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'emptyReadFlags' 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
10 | public static let emptyWriteFlags: SendFlags = .none
11 |
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/recv/ReceiveFlags.swift:16:15: note: consider making struct 'ReceiveFlags' conform to the 'Sendable' protocol
14 | #endif
15 |
16 | public struct ReceiveFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'ReceiveFlags' conform to the 'Sendable' protocol
17 | public let rawValue: OptionInt
18 |
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/recv/ReceiveFlags.swift:66:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' may have shared mutable state; this is an error in the Swift 6 language mode
14 | #endif
15 |
16 | public struct ReceiveFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'ReceiveFlags' conform to the 'Sendable' protocol
17 | public let rawValue: OptionInt
18 |
:
64 | public static let waitAll = ReceiveFlags(integerLiteral: MSG_WAITALL)
65 |
66 | public static let none: ReceiveFlags = 0
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' 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
67 |
68 | public init(rawValue: OptionInt) {
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/send/SendFlags.swift:70:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'SendFlags' may have shared mutable state; this is an error in the Swift 6 language mode
12 | #endif
13 |
14 | public struct SendFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'SendFlags' conform to the 'Sendable' protocol
15 | public let rawValue: OptionInt
16 |
:
68 | public static let outOfBound = SendFlags(integerLiteral: MSG_OOB)
69 |
70 | public static let none: SendFlags = 0
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'SendFlags' 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
71 |
72 | public init(rawValue: OptionInt) {
/host/spi-builder-workspace/Sources/Pathman/Protocols/Copyable.swift:8:23: warning: static property 'recursive' is not concurrency-safe because non-'Sendable' type 'CopyOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | public struct CopyOptions: OptionSet {
| `- note: consider making struct 'CopyOptions' conform to the 'Sendable' protocol
2 | public let rawValue: Int
3 |
:
6 | its contents as opposed to just its immediate children
7 | */
8 | public static let recursive = CopyOptions(rawValue: 1)
| |- warning: static property 'recursive' is not concurrency-safe because non-'Sendable' type 'CopyOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'recursive' 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
9 | /// If the path to copy is a directory, this option will copy the hidden files as well
10 | public static let includeHidden = CopyOptions(rawValue: 1 << 1)
/host/spi-builder-workspace/Sources/Pathman/Protocols/Creatable.swift:8:23: warning: static property 'createIntermediates' is not concurrency-safe because non-'Sendable' type 'CreateOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import struct Foundation.Data
2 |
3 | public struct CreateOptions: RawRepresentable, OptionSet, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'CreateOptions' conform to the 'Sendable' protocol
4 | public typealias IntegerLiteralType = UInt8
5 | public let rawValue: IntegerLiteralType
6 |
7 | /// Automatically creating any missing intermediate directories of the path
8 | public static let createIntermediates = CreateOptions(rawValue: 1 << 0)
| |- warning: static property 'createIntermediates' is not concurrency-safe because non-'Sendable' type 'CreateOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'createIntermediates' 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
9 |
10 | public init(rawValue: IntegerLiteralType) {
/host/spi-builder-workspace/Sources/Pathman/CInterop/mode_t/FileMode.swift:47:23: warning: static property 'allPermissions' is not concurrency-safe because non-'Sendable' type 'FileMode' may have shared mutable state; this is an error in the Swift 6 language mode
1 | /// A swift wrapper around the C mode_t type, which is used to hold/manipulate information about a Path's permissions
2 | public struct FileMode: OptionSet, ExpressibleByIntegerLiteral, ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'FileMode' conform to the 'Sendable' protocol
3 | public typealias IntegerLiteralType = OSUInt
4 | public typealias StringLiteralType = String
:
45 | public static let all: FileMode = 0o7777
46 | /// A FileMode with all permissions and no bits on
47 | public static let allPermissions: FileMode = 0o0777
| |- warning: static property 'allPermissions' is not concurrency-safe because non-'Sendable' type 'FileMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'allPermissions' 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
48 | /// A FileMode with no permissions and all bits on
49 | public static let allBits: FileMode = 0o7000
/host/spi-builder-workspace/Sources/Pathman/Protocols/DirectoryEnumerable.swift:4:23: warning: static property 'includeHidden' is not concurrency-safe because non-'Sendable' type 'DirectoryEnumerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | public struct DirectoryEnumerationOptions: OptionSet, Hashable {
| `- note: consider making struct 'DirectoryEnumerationOptions' conform to the 'Sendable' protocol
2 | public let rawValue: UInt8
3 |
4 | public static let includeHidden = DirectoryEnumerationOptions(rawValue: 1 << 0)
| |- warning: static property 'includeHidden' is not concurrency-safe because non-'Sendable' type 'DirectoryEnumerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'includeHidden' 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
5 |
6 | public init(rawValue: UInt8) {
/host/spi-builder-workspace/Sources/Pathman/Errors/Generic.swift:28:45: warning: cannot use struct 'Encoding' here; 'FoundationEssentials' was not imported by this file
26 | /// Errors thrown during String conversions from Data
27 | public enum StringError: Error {
28 | case notConvertibleToData(using: String.Encoding)
| `- warning: cannot use struct 'Encoding' here; 'FoundationEssentials' was not imported by this file
29 | }
30 |
FoundationEssentials.String:3:19: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | extension String {
3 | public struct Encoding : RawRepresentable, Sendable, Equatable {
| `- note: type declared here
4 | public var rawValue: UInt
5 | public init(rawValue: UInt)
/host/spi-builder-workspace/Sources/Pathman/Errors/Generic.swift:41:10: warning: associated value 'uncopyablePath' of 'Sendable'-conforming enum 'CopyError' has non-sendable type 'GenericPath'; this is an error in the Swift 6 language mode
39 |
40 | public enum CopyError: Error {
41 | case uncopyablePath(GenericPath)
| `- warning: associated value 'uncopyablePath' of 'Sendable'-conforming enum 'CopyError' has non-sendable type 'GenericPath'; this is an error in the Swift 6 language mode
42 | case nonEmptyDirectory
43 | case pathDoesNotExist
/host/spi-builder-workspace/Sources/Pathman/Path/Path+Generic.swift:2:15: note: consider making struct 'GenericPath' conform to the 'Sendable' protocol
1 | /// A type used to express filesystem paths
2 | public struct GenericPath: Path, ExpressibleByStringLiteral, ExpressibleByArrayLiteral, Comparable {
| `- note: consider making struct 'GenericPath' conform to the 'Sendable' protocol
3 | public static let pathType: PathType = .unknown
4 |
[119/120] Compiling Pathman ErrNo.swift
/host/spi-builder-workspace/Sources/Pathman/Connection/Connection.swift:10:23: warning: static property 'emptyWriteFlags' is not concurrency-safe because non-'Sendable' type 'SendFlags' may have shared mutable state; this is an error in the Swift 6 language mode
8 | public static var defaultByteCount: ByteRepresentable = 32.kb
9 | public static let emptyReadFlags: ReceiveFlags = .none
10 | public static let emptyWriteFlags: SendFlags = .none
| |- warning: static property 'emptyWriteFlags' is not concurrency-safe because non-'Sendable' type 'SendFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'emptyWriteFlags' 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
11 |
12 | let opened: Open<SocketPath>
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/send/SendFlags.swift:14:15: note: consider making struct 'SendFlags' conform to the 'Sendable' protocol
12 | #endif
13 |
14 | public struct SendFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'SendFlags' conform to the 'Sendable' protocol
15 | public let rawValue: OptionInt
16 |
/host/spi-builder-workspace/Sources/Pathman/Connection/Connection.swift:8:23: warning: static property 'defaultByteCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
6 | public let openOptions: SocketPath.OpenOptions
7 |
8 | public static var defaultByteCount: ByteRepresentable = 32.kb
| |- warning: static property 'defaultByteCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultByteCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultByteCount' 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
9 | public static let emptyReadFlags: ReceiveFlags = .none
10 | public static let emptyWriteFlags: SendFlags = .none
/host/spi-builder-workspace/Sources/Pathman/Connection/Connection.swift:9:23: warning: static property 'emptyReadFlags' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | public static var defaultByteCount: ByteRepresentable = 32.kb
9 | public static let emptyReadFlags: ReceiveFlags = .none
| |- warning: static property 'emptyReadFlags' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'emptyReadFlags' 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
10 | public static let emptyWriteFlags: SendFlags = .none
11 |
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/recv/ReceiveFlags.swift:16:15: note: consider making struct 'ReceiveFlags' conform to the 'Sendable' protocol
14 | #endif
15 |
16 | public struct ReceiveFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'ReceiveFlags' conform to the 'Sendable' protocol
17 | public let rawValue: OptionInt
18 |
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/recv/ReceiveFlags.swift:66:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' may have shared mutable state; this is an error in the Swift 6 language mode
14 | #endif
15 |
16 | public struct ReceiveFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'ReceiveFlags' conform to the 'Sendable' protocol
17 | public let rawValue: OptionInt
18 |
:
64 | public static let waitAll = ReceiveFlags(integerLiteral: MSG_WAITALL)
65 |
66 | public static let none: ReceiveFlags = 0
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' 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
67 |
68 | public init(rawValue: OptionInt) {
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/send/SendFlags.swift:70:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'SendFlags' may have shared mutable state; this is an error in the Swift 6 language mode
12 | #endif
13 |
14 | public struct SendFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'SendFlags' conform to the 'Sendable' protocol
15 | public let rawValue: OptionInt
16 |
:
68 | public static let outOfBound = SendFlags(integerLiteral: MSG_OOB)
69 |
70 | public static let none: SendFlags = 0
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'SendFlags' 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
71 |
72 | public init(rawValue: OptionInt) {
/host/spi-builder-workspace/Sources/Pathman/Protocols/Copyable.swift:8:23: warning: static property 'recursive' is not concurrency-safe because non-'Sendable' type 'CopyOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | public struct CopyOptions: OptionSet {
| `- note: consider making struct 'CopyOptions' conform to the 'Sendable' protocol
2 | public let rawValue: Int
3 |
:
6 | its contents as opposed to just its immediate children
7 | */
8 | public static let recursive = CopyOptions(rawValue: 1)
| |- warning: static property 'recursive' is not concurrency-safe because non-'Sendable' type 'CopyOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'recursive' 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
9 | /// If the path to copy is a directory, this option will copy the hidden files as well
10 | public static let includeHidden = CopyOptions(rawValue: 1 << 1)
/host/spi-builder-workspace/Sources/Pathman/Protocols/Creatable.swift:8:23: warning: static property 'createIntermediates' is not concurrency-safe because non-'Sendable' type 'CreateOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import struct Foundation.Data
2 |
3 | public struct CreateOptions: RawRepresentable, OptionSet, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'CreateOptions' conform to the 'Sendable' protocol
4 | public typealias IntegerLiteralType = UInt8
5 | public let rawValue: IntegerLiteralType
6 |
7 | /// Automatically creating any missing intermediate directories of the path
8 | public static let createIntermediates = CreateOptions(rawValue: 1 << 0)
| |- warning: static property 'createIntermediates' is not concurrency-safe because non-'Sendable' type 'CreateOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'createIntermediates' 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
9 |
10 | public init(rawValue: IntegerLiteralType) {
/host/spi-builder-workspace/Sources/Pathman/CInterop/mode_t/FileMode.swift:47:23: warning: static property 'allPermissions' is not concurrency-safe because non-'Sendable' type 'FileMode' may have shared mutable state; this is an error in the Swift 6 language mode
1 | /// A swift wrapper around the C mode_t type, which is used to hold/manipulate information about a Path's permissions
2 | public struct FileMode: OptionSet, ExpressibleByIntegerLiteral, ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'FileMode' conform to the 'Sendable' protocol
3 | public typealias IntegerLiteralType = OSUInt
4 | public typealias StringLiteralType = String
:
45 | public static let all: FileMode = 0o7777
46 | /// A FileMode with all permissions and no bits on
47 | public static let allPermissions: FileMode = 0o0777
| |- warning: static property 'allPermissions' is not concurrency-safe because non-'Sendable' type 'FileMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'allPermissions' 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
48 | /// A FileMode with no permissions and all bits on
49 | public static let allBits: FileMode = 0o7000
/host/spi-builder-workspace/Sources/Pathman/Protocols/DirectoryEnumerable.swift:4:23: warning: static property 'includeHidden' is not concurrency-safe because non-'Sendable' type 'DirectoryEnumerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | public struct DirectoryEnumerationOptions: OptionSet, Hashable {
| `- note: consider making struct 'DirectoryEnumerationOptions' conform to the 'Sendable' protocol
2 | public let rawValue: UInt8
3 |
4 | public static let includeHidden = DirectoryEnumerationOptions(rawValue: 1 << 0)
| |- warning: static property 'includeHidden' is not concurrency-safe because non-'Sendable' type 'DirectoryEnumerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'includeHidden' 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
5 |
6 | public init(rawValue: UInt8) {
/host/spi-builder-workspace/Sources/Pathman/Errors/Generic.swift:28:45: warning: cannot use struct 'Encoding' here; 'FoundationEssentials' was not imported by this file
26 | /// Errors thrown during String conversions from Data
27 | public enum StringError: Error {
28 | case notConvertibleToData(using: String.Encoding)
| `- warning: cannot use struct 'Encoding' here; 'FoundationEssentials' was not imported by this file
29 | }
30 |
FoundationEssentials.String:3:19: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | extension String {
3 | public struct Encoding : RawRepresentable, Sendable, Equatable {
| `- note: type declared here
4 | public var rawValue: UInt
5 | public init(rawValue: UInt)
/host/spi-builder-workspace/Sources/Pathman/Errors/Generic.swift:41:10: warning: associated value 'uncopyablePath' of 'Sendable'-conforming enum 'CopyError' has non-sendable type 'GenericPath'; this is an error in the Swift 6 language mode
39 |
40 | public enum CopyError: Error {
41 | case uncopyablePath(GenericPath)
| `- warning: associated value 'uncopyablePath' of 'Sendable'-conforming enum 'CopyError' has non-sendable type 'GenericPath'; this is an error in the Swift 6 language mode
42 | case nonEmptyDirectory
43 | case pathDoesNotExist
/host/spi-builder-workspace/Sources/Pathman/Path/Path+Generic.swift:2:15: note: consider making struct 'GenericPath' conform to the 'Sendable' protocol
1 | /// A type used to express filesystem paths
2 | public struct GenericPath: Path, ExpressibleByStringLiteral, ExpressibleByArrayLiteral, Comparable {
| `- note: consider making struct 'GenericPath' conform to the 'Sendable' protocol
3 | public static let pathType: PathType = .unknown
4 |
[120/120] Compiling Pathman Generic.swift
/host/spi-builder-workspace/Sources/Pathman/Connection/Connection.swift:10:23: warning: static property 'emptyWriteFlags' is not concurrency-safe because non-'Sendable' type 'SendFlags' may have shared mutable state; this is an error in the Swift 6 language mode
8 | public static var defaultByteCount: ByteRepresentable = 32.kb
9 | public static let emptyReadFlags: ReceiveFlags = .none
10 | public static let emptyWriteFlags: SendFlags = .none
| |- warning: static property 'emptyWriteFlags' is not concurrency-safe because non-'Sendable' type 'SendFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'emptyWriteFlags' 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
11 |
12 | let opened: Open<SocketPath>
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/send/SendFlags.swift:14:15: note: consider making struct 'SendFlags' conform to the 'Sendable' protocol
12 | #endif
13 |
14 | public struct SendFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'SendFlags' conform to the 'Sendable' protocol
15 | public let rawValue: OptionInt
16 |
/host/spi-builder-workspace/Sources/Pathman/Connection/Connection.swift:8:23: warning: static property 'defaultByteCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
6 | public let openOptions: SocketPath.OpenOptions
7 |
8 | public static var defaultByteCount: ByteRepresentable = 32.kb
| |- warning: static property 'defaultByteCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultByteCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultByteCount' 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
9 | public static let emptyReadFlags: ReceiveFlags = .none
10 | public static let emptyWriteFlags: SendFlags = .none
/host/spi-builder-workspace/Sources/Pathman/Connection/Connection.swift:9:23: warning: static property 'emptyReadFlags' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | public static var defaultByteCount: ByteRepresentable = 32.kb
9 | public static let emptyReadFlags: ReceiveFlags = .none
| |- warning: static property 'emptyReadFlags' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'emptyReadFlags' 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
10 | public static let emptyWriteFlags: SendFlags = .none
11 |
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/recv/ReceiveFlags.swift:16:15: note: consider making struct 'ReceiveFlags' conform to the 'Sendable' protocol
14 | #endif
15 |
16 | public struct ReceiveFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'ReceiveFlags' conform to the 'Sendable' protocol
17 | public let rawValue: OptionInt
18 |
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/recv/ReceiveFlags.swift:66:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' may have shared mutable state; this is an error in the Swift 6 language mode
14 | #endif
15 |
16 | public struct ReceiveFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'ReceiveFlags' conform to the 'Sendable' protocol
17 | public let rawValue: OptionInt
18 |
:
64 | public static let waitAll = ReceiveFlags(integerLiteral: MSG_WAITALL)
65 |
66 | public static let none: ReceiveFlags = 0
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ReceiveFlags' 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
67 |
68 | public init(rawValue: OptionInt) {
/host/spi-builder-workspace/Sources/Pathman/CInterop/flags/send/SendFlags.swift:70:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'SendFlags' may have shared mutable state; this is an error in the Swift 6 language mode
12 | #endif
13 |
14 | public struct SendFlags: OptionSet, ExpressibleByIntegerLiteral, Hashable {
| `- note: consider making struct 'SendFlags' conform to the 'Sendable' protocol
15 | public let rawValue: OptionInt
16 |
:
68 | public static let outOfBound = SendFlags(integerLiteral: MSG_OOB)
69 |
70 | public static let none: SendFlags = 0
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'SendFlags' 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
71 |
72 | public init(rawValue: OptionInt) {
/host/spi-builder-workspace/Sources/Pathman/Protocols/Copyable.swift:8:23: warning: static property 'recursive' is not concurrency-safe because non-'Sendable' type 'CopyOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | public struct CopyOptions: OptionSet {
| `- note: consider making struct 'CopyOptions' conform to the 'Sendable' protocol
2 | public let rawValue: Int
3 |
:
6 | its contents as opposed to just its immediate children
7 | */
8 | public static let recursive = CopyOptions(rawValue: 1)
| |- warning: static property 'recursive' is not concurrency-safe because non-'Sendable' type 'CopyOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'recursive' 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
9 | /// If the path to copy is a directory, this option will copy the hidden files as well
10 | public static let includeHidden = CopyOptions(rawValue: 1 << 1)
/host/spi-builder-workspace/Sources/Pathman/Protocols/Creatable.swift:8:23: warning: static property 'createIntermediates' is not concurrency-safe because non-'Sendable' type 'CreateOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import struct Foundation.Data
2 |
3 | public struct CreateOptions: RawRepresentable, OptionSet, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'CreateOptions' conform to the 'Sendable' protocol
4 | public typealias IntegerLiteralType = UInt8
5 | public let rawValue: IntegerLiteralType
6 |
7 | /// Automatically creating any missing intermediate directories of the path
8 | public static let createIntermediates = CreateOptions(rawValue: 1 << 0)
| |- warning: static property 'createIntermediates' is not concurrency-safe because non-'Sendable' type 'CreateOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'createIntermediates' 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
9 |
10 | public init(rawValue: IntegerLiteralType) {
/host/spi-builder-workspace/Sources/Pathman/CInterop/mode_t/FileMode.swift:47:23: warning: static property 'allPermissions' is not concurrency-safe because non-'Sendable' type 'FileMode' may have shared mutable state; this is an error in the Swift 6 language mode
1 | /// A swift wrapper around the C mode_t type, which is used to hold/manipulate information about a Path's permissions
2 | public struct FileMode: OptionSet, ExpressibleByIntegerLiteral, ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'FileMode' conform to the 'Sendable' protocol
3 | public typealias IntegerLiteralType = OSUInt
4 | public typealias StringLiteralType = String
:
45 | public static let all: FileMode = 0o7777
46 | /// A FileMode with all permissions and no bits on
47 | public static let allPermissions: FileMode = 0o0777
| |- warning: static property 'allPermissions' is not concurrency-safe because non-'Sendable' type 'FileMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'allPermissions' 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
48 | /// A FileMode with no permissions and all bits on
49 | public static let allBits: FileMode = 0o7000
/host/spi-builder-workspace/Sources/Pathman/Protocols/DirectoryEnumerable.swift:4:23: warning: static property 'includeHidden' is not concurrency-safe because non-'Sendable' type 'DirectoryEnumerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
1 | public struct DirectoryEnumerationOptions: OptionSet, Hashable {
| `- note: consider making struct 'DirectoryEnumerationOptions' conform to the 'Sendable' protocol
2 | public let rawValue: UInt8
3 |
4 | public static let includeHidden = DirectoryEnumerationOptions(rawValue: 1 << 0)
| |- warning: static property 'includeHidden' is not concurrency-safe because non-'Sendable' type 'DirectoryEnumerationOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'includeHidden' 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
5 |
6 | public init(rawValue: UInt8) {
/host/spi-builder-workspace/Sources/Pathman/Errors/Generic.swift:28:45: warning: cannot use struct 'Encoding' here; 'FoundationEssentials' was not imported by this file
26 | /// Errors thrown during String conversions from Data
27 | public enum StringError: Error {
28 | case notConvertibleToData(using: String.Encoding)
| `- warning: cannot use struct 'Encoding' here; 'FoundationEssentials' was not imported by this file
29 | }
30 |
FoundationEssentials.String:3:19: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | extension String {
3 | public struct Encoding : RawRepresentable, Sendable, Equatable {
| `- note: type declared here
4 | public var rawValue: UInt
5 | public init(rawValue: UInt)
/host/spi-builder-workspace/Sources/Pathman/Errors/Generic.swift:41:10: warning: associated value 'uncopyablePath' of 'Sendable'-conforming enum 'CopyError' has non-sendable type 'GenericPath'; this is an error in the Swift 6 language mode
39 |
40 | public enum CopyError: Error {
41 | case uncopyablePath(GenericPath)
| `- warning: associated value 'uncopyablePath' of 'Sendable'-conforming enum 'CopyError' has non-sendable type 'GenericPath'; this is an error in the Swift 6 language mode
42 | case nonEmptyDirectory
43 | case pathDoesNotExist
/host/spi-builder-workspace/Sources/Pathman/Path/Path+Generic.swift:2:15: note: consider making struct 'GenericPath' conform to the 'Sendable' protocol
1 | /// A type used to express filesystem paths
2 | public struct GenericPath: Path, ExpressibleByStringLiteral, ExpressibleByArrayLiteral, Comparable {
| `- note: consider making struct 'GenericPath' conform to the 'Sendable' protocol
3 | public static let pathType: PathType = .unknown
4 |
Build complete! (16.29s)
Build complete.
{
"dependencies" : [
{
"identity" : "errno",
"requirement" : {
"range" : [
{
"lower_bound" : "0.5.1",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Ponyboy47/ErrNo"
},
{
"identity" : "cdirent",
"requirement" : {
"range" : [
{
"lower_bound" : "0.1.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Ponyboy47/Cdirent"
},
{
"identity" : "cglob",
"requirement" : {
"range" : [
{
"lower_bound" : "0.1.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Ponyboy47/Cglob"
},
{
"identity" : "swiftshell",
"requirement" : {
"range" : [
{
"lower_bound" : "5.0.1",
"upper_bound" : "6.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/kareman/SwiftShell"
}
],
"manifest_display_name" : "Pathman",
"name" : "Pathman",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "Pathman",
"targets" : [
"Pathman"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "PathmanTests",
"module_type" : "SwiftTarget",
"name" : "PathmanTests",
"path" : "Tests/PathmanTests",
"product_dependencies" : [
"SwiftShell"
],
"sources" : [
"Binding Tests.swift",
"ChmodTests.swift",
"ChownTests.swift",
"CopyTests.swift",
"CreateDeleteTests.swift",
"FileBitsTests.swift",
"FileModeTests.swift",
"FilePermissionsTests.swift",
"GlobTests.swift",
"LinkTests.swift",
"MoveTests.swift",
"OpenTests.swift",
"PathCollectionTests.swift",
"PathTests.swift",
"StatTests.swift",
"TemporaryTests.swift",
"UtilityTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"Pathman"
],
"type" : "test"
},
{
"c99name" : "Pathman",
"module_type" : "SwiftTarget",
"name" : "Pathman",
"path" : "Sources/Pathman",
"product_dependencies" : [
"ErrNo",
"Cdirent",
"Cglob"
],
"product_memberships" : [
"Pathman"
],
"sources" : [
"Binding/Binding+Accept.swift",
"Binding/Binding+Listen.swift",
"Binding/Binding.swift",
"CInterop/ByteRepresentable.swift",
"CInterop/PlatformCTypes.swift",
"CInterop/flags/glob/GlobFlags.swift",
"CInterop/flags/open/OpenFileMode.swift",
"CInterop/flags/recv/ReceiveFlags.swift",
"CInterop/flags/send/SendFlags.swift",
"CInterop/mode_t/FileBits.swift",
"CInterop/mode_t/FileMode.swift",
"CInterop/mode_t/FilePermissions.swift",
"CInterop/mode_t/PathType.swift",
"CInterop/mode_t/UMask.swift",
"CInterop/readdir/DirectoryChildren+Iterator.swift",
"CInterop/readdir/DirectoryChildren+Sortable.swift",
"CInterop/readdir/DirectoryChildren.swift",
"CInterop/seek/Offset.swift",
"CInterop/socket/SocketDomain.swift",
"CInterop/socket/SocketType.swift",
"CInterop/stat/StatAttributes.swift",
"CInterop/stdio/setbuf.swift",
"CharacterPath/CharacterPath+Openable.swift",
"CharacterPath/CharacterPath+Readable.swift",
"CharacterPath/CharacterPath+Writable.swift",
"CharacterPath/CharacterPath.swift",
"CharacterPath/OpenCharacter.swift",
"Connection/Connection+Readable.swift",
"Connection/Connection+Writable.swift",
"Connection/Connection.swift",
"Directory/DirectoryPath+Copyable.swift",
"Directory/DirectoryPath+Creatable.swift",
"Directory/DirectoryPath+Deletable.swift",
"Directory/DirectoryPath+DirectoryEnumerable.swift",
"Directory/DirectoryPath+Openable.swift",
"Directory/DirectoryPath.swift",
"Directory/OpenDirectory.swift",
"DirectoryEnumerable/DirectoryEnumerable+Deletable.swift",
"DirectoryEnumerable/DirectoryEnumerable+Ownable.swift",
"DirectoryEnumerable/DirectoryEnumerable+Permissionable.swift",
"Errors/ErrNo.swift",
"Errors/Generic.swift",
"File/FilePath+Copyable.swift",
"File/FilePath+Creatable.swift",
"File/FilePath+Openable.swift",
"File/FilePath+Readable.swift",
"File/FilePath+Seekable.swift",
"File/FilePath+StandardStreams.swift",
"File/FilePath+Writable.swift",
"File/FilePath.swift",
"File/OpenFile.swift",
"Glob/Glob.swift",
"Glob/Globbing.swift",
"Open/Open+Copyable.swift",
"Open/Open+Readable.swift",
"Open/Open+Seekable.swift",
"Open/Open+Writable.swift",
"Open/Open.swift",
"Openable/Openable+Copyable.swift",
"Path/Path+Absolute.swift",
"Path/Path+Ancester.swift",
"Path/Path+Codable.swift",
"Path/Path+Comparable.swift",
"Path/Path+Deletable.swift",
"Path/Path+Equatable.swift",
"Path/Path+Generic.swift",
"Path/Path+HomeDirectory.swift",
"Path/Path+Iterator.swift",
"Path/Path+Links.swift",
"Path/Path+Movable.swift",
"Path/Path+Ownable.swift",
"Path/Path+Permissionable.swift",
"Path/Path+Relative.swift",
"Path/Path+Temporary.swift",
"Protocols/Copyable.swift",
"Protocols/Creatable.swift",
"Protocols/Deletable.swift",
"Protocols/DirectoryEnumerable.swift",
"Protocols/Movable.swift",
"Protocols/Openable.swift",
"Protocols/Ownable.swift",
"Protocols/Path.swift",
"Protocols/Permissionable.swift",
"Protocols/Readable.swift",
"Protocols/Seekable.swift",
"Protocols/Stat.swift",
"Protocols/StatDescriptor.swift",
"Protocols/StatPath.swift",
"Protocols/Statable.swift",
"Protocols/Writable.swift",
"Readable/Readable+Helpers.swift",
"Readable/Readable+UnusedHelpers.swift",
"Readable/ReadableByOpened+Helpers.swift",
"Socket/OpenSocket.swift",
"Socket/SocketPath+Bindable.swift",
"Socket/SocketPath+Connectable.swift",
"Socket/SocketPath+Openable.swift",
"Socket/SocketPath+Readable.swift",
"Socket/SocketPath+Writable.swift",
"Socket/SocketPath.swift",
"Stat/StatInfo.swift",
"Stat/StatOptions.swift",
"Stat/Statable+Attributes.swift",
"Stat/Statable+Ownable.swift",
"Stat/Statable+Permissionable.swift",
"Utilities/NilCoalescing.swift",
"Utilities/Toggled.swift",
"Writable/Writable+Helpers.swift",
"Writable/WritableByOpened+Helpers.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.