cache/filecache: Skip resource cache init if the fs is missing

Fixes #6113
This commit is contained in:
Bjørn Erik Pedersen 2019-07-26 10:45:07 +02:00
parent b4827fbb14
commit da4c4a7789
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -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
}