Merge pull request #1480 from alguimodd/s3-reupload-fix

feat(s3): add publishedPrefix to pathCache to avoid reupload of files
This commit is contained in:
André Roth
2025-11-11 19:00:31 +01:00
committed by GitHub
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -70,6 +70,7 @@ List of contributors, in chronological order:
* Gordian Schoenherr (https://github.com/schoenherrg)
* Silke Hofstra (https://github.com/silkeh)
* Itay Porezky (https://github.com/itayporezky)
* Alejandro Guijarro Monerris (https://github.com/alguimodd)
* JupiterRider (https://github.com/JupiterRider)
* Agustin Henze (https://github.com/agustinhenze)
* Tobias Assarsson (https://github.com/daedaluz)
+1 -1
View File
@@ -346,7 +346,7 @@ func (storage *PublishedStorage) LinkFromPool(publishedPrefix, publishedRelPath,
storage.pathCache = make(map[string]string, len(paths))
for i := range paths {
storage.pathCache[filepath.Join("pool", paths[i])] = md5s[i]
storage.pathCache[filepath.Join(publishedPrefix, "pool", paths[i])] = md5s[i]
}
}