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
commit d5a7353357
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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: