Skip to content

Commit

Permalink
cache/filecache: Skip resource cache init if the fs is missing
Browse files Browse the repository at this point in the history
Fixes #6113
  • Loading branch information
bep committed Jul 26, 2019
1 parent b4827fb commit da4c4a7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cache/filecache/filecache.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit da4c4a7

Please sign in to comment.