mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
parent
2c7c361091
commit
e28bd4c0f8
1 changed files with 8 additions and 0 deletions
8
cache/filecache/filecache.go
vendored
8
cache/filecache/filecache.go
vendored
|
@ -334,6 +334,14 @@ func NewCaches(p *helpers.PathSpec) (Caches, error) {
|
||||||
cfs = fs
|
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
|
baseDir := v.Dir
|
||||||
|
|
||||||
if err := cfs.MkdirAll(baseDir, 0777); err != nil && !os.IsExist(err) {
|
if err := cfs.MkdirAll(baseDir, 0777); err != nil && !os.IsExist(err) {
|
||||||
|
|
Loading…
Reference in a new issue