Skip to content

Commit ba65daf

Browse files
authored
Merge pull request #1480 from alguimodd/s3-reupload-fix
feat(s3): add publishedPrefix to pathCache to avoid reupload of files
2 parents 132c923 + b8455f6 commit ba65daf

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ List of contributors, in chronological order:
7070
* Gordian Schoenherr (https://github.com/schoenherrg)
7171
* Silke Hofstra (https://github.com/silkeh)
7272
* Itay Porezky (https://github.com/itayporezky)
73+
* Alejandro Guijarro Monerris (https://github.com/alguimodd)
7374
* JupiterRider (https://github.com/JupiterRider)
7475
* Agustin Henze (https://github.com/agustinhenze)
7576
* Tobias Assarsson (https://github.com/daedaluz)

s3/public.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ func (storage *PublishedStorage) LinkFromPool(publishedPrefix, publishedRelPath,
346346
storage.pathCache = make(map[string]string, len(paths))
347347

348348
for i := range paths {
349-
storage.pathCache[filepath.Join("pool", paths[i])] = md5s[i]
349+
storage.pathCache[filepath.Join(publishedPrefix, "pool", paths[i])] = md5s[i]
350350
}
351351
}
352352

0 commit comments

Comments
 (0)