Skip to content

Commit cabea07

Browse files
committed
Fix werror issue
1 parent 78bf5e1 commit cabea07

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

Plugins/UpdateModule/UpdateModuleCommand.swift

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,16 @@ import Foundation
1111
struct UpdateModuleCommand: CommandPlugin {
1212
func performCommand(context: PackagePlugin.PluginContext, arguments: [String]) async throws {
1313
let process = Process()
14-
15-
let path = try context.tool(named: "zsh").path.string
16-
let url: URL?
1714
#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, *) {
1917
URL(filePath: path)
2018
} else {
2119
URL(string: "file://\(path)")
2220
}
2321
#else
24-
url = URL(string: "file://\(path)")
22+
let path = try context.tool(named: "zsh").path.string
23+
let url = URL(string: "file://\(path)")
2524
#endif
2625
process.executableURL = url
2726
process.arguments = ["AG/update.sh"]

Sources/OpenGraph/Attribute/Attribute/OGAttribute.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ extension OGAttribute {
7878

7979
// MARK: CustomStringConvertible
8080

81-
extension OGAttribute: CustomStringConvertible {
81+
extension OGAttribute: @retroactive CustomStringConvertible {
8282
@inlinable
8383
public var description: String { "#\(rawValue)" }
8484
}

Sources/OpenGraph/Attribute/Weak/OGWeakAttribute.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ extension OGWeakAttribute {
3535
}
3636
}
3737

38-
extension OGWeakAttribute: Hashable {
38+
extension OGWeakAttribute: @retroactive Hashable {
3939
@_alwaysEmitIntoClient
4040
public static func == (lhs: OGWeakAttribute, rhs: OGWeakAttribute) -> Bool {
4141
lhs.raw_attribute == rhs.raw_attribute && lhs.subgraph_id == rhs.subgraph_id
@@ -53,7 +53,7 @@ extension OGWeakAttribute: Hashable {
5353
}
5454
}
5555

56-
extension OGWeakAttribute: CustomStringConvertible {
56+
extension OGWeakAttribute: @retroactive CustomStringConvertible {
5757
@_alwaysEmitIntoClient
5858
public var description: String { attribute?.description ?? "nil" }
5959
}

Sources/OpenGraph/Runtime/OGTypeID.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public func OGTypeApplyFields2(
2323
body: (UnsafePointer<Int8>, Int, Any.Type) -> Bool
2424
) -> Bool
2525

26-
extension OGTypeID: Hashable, CustomStringConvertible {
26+
extension OGTypeID: @retroactive Hashable, @retroactive CustomStringConvertible {
2727
@inlinable
2828
@inline(__always)
2929
public init(_ type: Any.Type) {

0 commit comments

Comments
 (0)