From 851ad012cb265f730abab3875711b49ee3fbbf7c Mon Sep 17 00:00:00 2001 From: Cody Ray Date: Thu, 5 Feb 2026 05:41:12 +0800 Subject: [PATCH] fix(imagestore): normalize paths to prevent panic on Windows (#3775) --- pkg/storage/imagestore/imagestore.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/storage/imagestore/imagestore.go b/pkg/storage/imagestore/imagestore.go index da2a6c09..b7a4d3d1 100644 --- a/pkg/storage/imagestore/imagestore.go +++ b/pkg/storage/imagestore/imagestore.go @@ -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])