cache/filecache: Add a cache prune func

Fixes #5439
This commit is contained in:
Bjørn Erik Pedersen
2018-11-14 12:06:46 +01:00
parent 33502667fb
commit 3c29c5af8e
6 changed files with 233 additions and 96 deletions

View File

@@ -192,7 +192,10 @@ func newDeps(cfg config.Provider) *deps.Deps {
logger := loggers.NewErrorLogger()
p, _ := paths.New(fs, cfg)
fileCaches, _ := filecache.NewCachesFromPaths(p)
fileCaches, err := filecache.NewCachesFromPaths(p)
if err != nil {
panic(err)
}
return &deps.Deps{
Cfg: cfg,