From da4c4a7789d403af3f4f4fdd5dfd3327535e4050 Mon Sep 17 00:00:00 2001 From: Bjørn Erik Pedersen Date: Fri, 26 Jul 2019 10:45:07 +0200 Subject: cache/filecache: Skip resource cache init if the fs is missing Fixes #6113 --- cache/filecache/filecache.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cache') diff --git a/cache/filecache/filecache.go b/cache/filecache/filecache.go index bf004c8f7..216c280c2 100644 --- a/cache/filecache/filecache.go +++ b/cache/filecache/filecache.go @@ -330,6 +330,9 @@ func NewCaches(p *helpers.PathSpec) (Caches, error) { if v.isResourceDir { cfs = p.BaseFs.ResourcesCache + if cfs == nil { + continue + } } else { cfs = fs } -- cgit v1.2.3