Merge pull request #2026 from jmorganca/mxyng/fix-windows

fix: normalize name path before splitting
This commit is contained in:
Michael Yang
2024-01-16 16:58:42 -08:00
committed by GitHub

View File

@@ -46,6 +46,7 @@ func ParseModelPath(name string) ModelPath {
name = after
}
name = strings.ReplaceAll(name, string(os.PathSeparator), "/")
parts := strings.Split(name, "/")
switch len(parts) {
case 3: