Skip to content

Commit

Permalink
Fix Jekyll import
Browse files Browse the repository at this point in the history
Fixes #6131
  • Loading branch information
bep committed Jul 30, 2019
1 parent 2c7c361 commit e28bd4c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cache/filecache/filecache.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e28bd4c

Please sign in to comment.