Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfeistel <6742251-feistel@users.noreply.gitlab.com>2021-07-26 18:30:26 +0300
committerfeistel <6742251-feistel@users.noreply.gitlab.com>2021-11-08 18:24:14 +0300
commit77a733b8af393f81c1143ca27324384b1801a090 (patch)
treec4e17cbfedb872806b3b3c73959806a79d3e3a93 /internal/testhelpers
parent81e6fdba4fa75b3e882cde818c25a2a76f531de7 (diff)
refactor: read and use file_sha256 as cache key for zip VFS
Now that the Rails API is serving the archive file_sha256 in the lookup response, we can move away from using the base URL as the key to cache the archive. Changelog: change
Diffstat (limited to 'internal/testhelpers')
-rw-r--r--internal/testhelpers/tmpdir.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/testhelpers/tmpdir.go b/internal/testhelpers/tmpdir.go
index 92987199..de104a04 100644
--- a/internal/testhelpers/tmpdir.go
+++ b/internal/testhelpers/tmpdir.go
@@ -24,7 +24,7 @@ func TmpDir(tb testing.TB, pattern string) (vfs.Root, string) {
tmpDir, err = filepath.EvalSymlinks(tmpDir)
require.NoError(tb, err)
- root, err := fs.Root(context.Background(), tmpDir)
+ root, err := fs.Root(context.Background(), tmpDir, "")
require.NoError(tb, err)
tb.Cleanup(func() {