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:
authorJaime Martinez <jmartinez@gitlab.com>2020-11-19 03:53:30 +0300
committerJaime Martinez <jmartinez@gitlab.com>2020-11-30 02:15:10 +0300
commitd28903a32e2bfa8a80547e639e941eac4843034f (patch)
treeb66ecbcf804287740fd8d3771b88e94c6ed42185 /internal/vfs
parent22ede0d8ea69bf26929825a75dad4172ef25cc26 (diff)
Log zip config
Diffstat (limited to 'internal/vfs')
-rw-r--r--internal/vfs/zip/archive_test.go7
-rw-r--r--internal/vfs/zip/vfs.go2
2 files changed, 8 insertions, 1 deletions
diff --git a/internal/vfs/zip/archive_test.go b/internal/vfs/zip/archive_test.go
index 3273edad..37e81d7a 100644
--- a/internal/vfs/zip/archive_test.go
+++ b/internal/vfs/zip/archive_test.go
@@ -19,9 +19,14 @@ import (
var (
chdirSet = false
- zipCfg = config.Default.Zip
+ zipCfg *config.ZipServing
)
+func init() {
+ config.Init()
+ zipCfg = config.Default.Zip
+}
+
func TestOpen(t *testing.T) {
zip, cleanup := openZipArchive(t, nil)
defer cleanup()
diff --git a/internal/vfs/zip/vfs.go b/internal/vfs/zip/vfs.go
index d90d4796..f853b0b9 100644
--- a/internal/vfs/zip/vfs.go
+++ b/internal/vfs/zip/vfs.go
@@ -3,6 +3,7 @@ package zip
import (
"context"
"errors"
+ "fmt"
"net/url"
"sync"
"time"
@@ -49,6 +50,7 @@ type zipVFS struct {
// New creates a zipVFS instance that can be used by a serving request
func New(cfg *config.ZipServing) vfs.VFS {
+ fmt.Printf("\n\n\n what the config?: %+v\n\n\n", cfg)
zipVFS := &zipVFS{
cacheExpirationInterval: cfg.ExpirationInterval,
cacheRefreshInterval: cfg.RefreshInterval,