mirror of
https://github.com/apple/pkl.git
synced 2026-03-26 02:51:13 +01:00
Normalize paths in pkl format (#1286)
This commit is contained in:
@@ -72,8 +72,8 @@ constructor(
|
||||
path.isDirectory() ->
|
||||
Files.walk(path)
|
||||
.filter { it.extension == "pkl" || it.name == "PklProject" }
|
||||
.map(ModuleSource::path)
|
||||
else -> Stream.of(ModuleSource.path(path))
|
||||
.map { ModuleSource.path(it.toAbsolutePath().normalize()) }
|
||||
else -> Stream.of(ModuleSource.path(path.toAbsolutePath().normalize()))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user