diff options
author | Bjørn Erik Pedersen <[email protected]> | 2019-07-30 09:14:14 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2019-07-30 09:14:14 +0200 |
commit | e28bd4c0f843f39cfcb715b6c9c7d249bad5b500 (patch) | |
tree | 87742affa4f65b38d441c0bb569731b3d5eca612 /cache | |
parent | 2c7c361091618868581c4a02352e7c37ccc12753 (diff) | |
download | hugo-e28bd4c0f843f39cfcb715b6c9c7d249bad5b500.tar.gz hugo-e28bd4c0f843f39cfcb715b6c9c7d249bad5b500.zip |
Fix Jekyll import
Fixes #6131
Diffstat (limited to 'cache')
-rw-r--r-- | cache/filecache/filecache.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cache/filecache/filecache.go b/cache/filecache/filecache.go index bf004c8f7..bc0573d52 100644 --- a/cache/filecache/filecache.go +++ b/cache/filecache/filecache.go @@ -334,6 +334,14 @@ func NewCaches(p *helpers.PathSpec) (Caches, error) { 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) { |