fix FROM instruction erroring when referring to a file

This commit is contained in:
Jeffrey Morgan
2023-08-22 09:39:42 -07:00
parent 0a892419ad
commit a9f6c56652
5 changed files with 47 additions and 115 deletions

View File

@@ -358,11 +358,7 @@ func ListModelsHandler(c *gin.Context) {
}
tag := path[:slashIndex] + ":" + path[slashIndex+1:]
mp, err := ParseModelPath(tag, false)
if err != nil {
return err
}
mp := ParseModelPath(tag)
manifest, err := GetManifest(mp)
if err != nil {
log.Printf("skipping file: %s", fp)