Skip to content

Commit

Permalink
issues/711: normalize path for proto schemas locations for Windows OS
Browse files Browse the repository at this point in the history
  • Loading branch information
DimaVilda committed Dec 15, 2024
1 parent e7df880 commit 78cf18d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,10 @@ private Map<String, ProtoFile> loadFilesWithLocations() {
// relative path will be used as "import" statement
String relativePath = baseLocation.relativize(path).toString();
var protoFileElement = ProtoParser.Companion.parse(
Location.get(baseLocation.toString(), relativePath),
Location.get(
baseLocation.toString().replace('\\', '/'),
relativePath.replace('\\', '/')
),
readFileAsString(path)
);
filesByLocations.put(relativePath, ProtoFile.Companion.get(protoFileElement));
Expand Down

0 comments on commit 78cf18d

Please sign in to comment.