mirror of
https://github.com/project-zot/zot.git
synced 2026-06-17 21:17:58 +08:00
fix(imagestore): normalize paths to prevent panic on Windows (#3775)
This commit is contained in:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user