Skip to content

Commit cfdce07

Browse files
authored
Ensure file path isn't percent encoded in the plugin (#2086)
Motivation: In Swift 6, SwiftPM deprecated its Path based API for plugins and moved to Foundation's URL. On Darwin, getting the path of a URL percent encodes it which leads to build issues in Xcode. Modifications: - Make sure the path isn't percent encoded Result: - Plugin works again - Resolves #2085
1 parent 183fe93 commit cfdce07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Plugins/GRPCSwiftPlugin/plugin.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ struct PathLike: CustomStringConvertible {
319319
#if compiler(<6.0)
320320
return String(describing: self.value)
321321
#elseif canImport(Darwin)
322-
return self.value.path()
322+
return self.value.path(percentEncoded: false)
323323
#else
324324
return self.value.path
325325
#endif

0 commit comments

Comments
 (0)