mirror of
https://github.com/mudler/LocalAI.git
synced 2026-09-21 13:44:55 -04:00
GetImageDigest calls name.ParseReference, which cannot parse the oci:// scheme. Self-hosted registries must set the scheme to be recognised by LooksLikeOCI, so without stripping it they silently lose upgrade detection. Strips the prefix at the call site, matching what the other two call sites already do (pkg/downloader/uri.go, gallery/importers/llama-cpp.go). Supersedes #12120 (DCO not signed by contributor, branch had unrelated history needing rebase). Assisted-by: MAKI:regolo/glm5.2 Signed-off-by: Ettore Di Giacinto <mudler@localai.io> Co-authored-by: Ettore Di Giacinto <mudler@localai.io>