ref: e28bd4c0f843f39cfcb715b6c9c7d249bad5b500
parent: 2c7c361091618868581c4a02352e7c37ccc12753
author: Bjørn Erik Pedersen <[email protected]>
date: Tue Jul 30 05:14:14 EDT 2019
Fix Jekyll import Fixes #6131
--- a/cache/filecache/filecache.go
+++ b/cache/filecache/filecache.go
@@ -334,6 +334,14 @@
cfs = fs
}
+ if cfs == nil {
+ // TODO(bep) we still have some places that do not initialize the
+ // full dependencies of a site, e.g. the import Jekyll command.
+ // That command does not need these caches, so let us just continue
+ // for now.
+ continue
+ }
+
baseDir := v.Dir
if err := cfs.MkdirAll(baseDir, 0777); err != nil && !os.IsExist(err) {