Allow more parts of model path
This commit is contained in:
parent
7d05a6ee8f
commit
16510440e8
@ -57,6 +57,10 @@ func ParseModelPath(name string) ModelPath {
|
||||
mp.Repository = parts[1]
|
||||
case 1:
|
||||
mp.Repository = parts[0]
|
||||
default:
|
||||
mp.Registry = parts[0]
|
||||
mp.Namespace = strings.Join(parts[1:len(parts)-1], "/")
|
||||
mp.Repository = parts[len(parts)-1]
|
||||
}
|
||||
|
||||
if repo, tag, found := strings.Cut(mp.Repository, ":"); found {
|
||||
|
Loading…
x
Reference in New Issue
Block a user