fix(imagestore): normalize paths to prevent panic on Windows (#3775)

This commit is contained in:
Cody Ray
2026-02-05 05:41:12 +08:00
committed by GitHub
parent 3c8030b2c7
commit 851ad012cb
+1
View File
@@ -1308,6 +1308,7 @@ func (is *ImageStore) GetAllDedupeReposCandidates(digest godigest.Digest) ([]str
blobPath, _ = filepath.Rel(is.rootDir, blobPath)
}
blobPath = filepath.ToSlash(blobPath)
blobsDirIndex := strings.LastIndex(blobPath, "/blobs/")
repos = append(repos, blobPath[:blobsDirIndex])