File tree Expand file tree Collapse file tree 4 files changed +8
-9
lines changed Expand file tree Collapse file tree 4 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -11,17 +11,16 @@ import Foundation
11
11
struct UpdateModuleCommand : CommandPlugin {
12
12
func performCommand( context: PackagePlugin . PluginContext , arguments: [ String ] ) async throws {
13
13
let process = Process ( )
14
-
15
- let path = try context. tool ( named: " zsh " ) . path. string
16
- let url : URL ?
17
14
#if os(macOS)
18
- url = if #available( macOS 14 , * ) {
15
+ let path : String = try context. tool ( named: " zsh " ) . url. path ( )
16
+ let url : URL ? = if #available( macOS 14 , * ) {
19
17
URL ( filePath: path)
20
18
} else {
21
19
URL ( string: " file:// \( path) " )
22
20
}
23
21
#else
24
- url = URL ( string: " file:// \( path) " )
22
+ let path = try context. tool ( named: " zsh " ) . path. string
23
+ let url = URL ( string: " file:// \( path) " )
25
24
#endif
26
25
process. executableURL = url
27
26
process. arguments = [ " AG/update.sh " ]
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ extension OGAttribute {
78
78
79
79
// MARK: CustomStringConvertible
80
80
81
- extension OGAttribute : CustomStringConvertible {
81
+ extension OGAttribute : @ retroactive CustomStringConvertible {
82
82
@inlinable
83
83
public var description : String { " # \( rawValue) " }
84
84
}
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ extension OGWeakAttribute {
35
35
}
36
36
}
37
37
38
- extension OGWeakAttribute : Hashable {
38
+ extension OGWeakAttribute : @ retroactive Hashable {
39
39
@_alwaysEmitIntoClient
40
40
public static func == ( lhs: OGWeakAttribute , rhs: OGWeakAttribute ) -> Bool {
41
41
lhs. raw_attribute == rhs. raw_attribute && lhs. subgraph_id == rhs. subgraph_id
@@ -53,7 +53,7 @@ extension OGWeakAttribute: Hashable {
53
53
}
54
54
}
55
55
56
- extension OGWeakAttribute : CustomStringConvertible {
56
+ extension OGWeakAttribute : @ retroactive CustomStringConvertible {
57
57
@_alwaysEmitIntoClient
58
58
public var description : String { attribute? . description ?? " nil " }
59
59
}
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public func OGTypeApplyFields2(
23
23
body: ( UnsafePointer < Int8 > , Int , Any . Type ) -> Bool
24
24
) -> Bool
25
25
26
- extension OGTypeID: Hashable, CustomStringConvertible {
26
+ extension OGTypeID: @ retroactive Hashable , @ retroactive CustomStringConvertible {
27
27
@inlinable
28
28
@inline ( __always)
29
29
public init( _ type: Any. Type) {
You can’t perform that action at this time.
0 commit comments