mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
Fix module mount in sub folder
This addresses a specific issue, but is a also a major simplification of the filesystem file mounts. Fixes #6730
This commit is contained in:
@@ -124,7 +124,6 @@ func (w *Walkway) Walk() error {
|
||||
if w.checkErr(w.root, err) {
|
||||
return nil
|
||||
}
|
||||
|
||||
return w.walkFn(w.root, nil, errors.Wrapf(err, "walk: %q", w.root))
|
||||
}
|
||||
fi = info.(FileMetaInfo)
|
||||
@@ -154,6 +153,15 @@ func (w *Walkway) checkErr(filename string, err error) bool {
|
||||
logUnsupportedSymlink(filename, w.logger)
|
||||
return true
|
||||
}
|
||||
|
||||
if os.IsNotExist(err) {
|
||||
// The file may be removed in process.
|
||||
// This may be a ERROR situation, but it is not possible
|
||||
// to determine as a general case.
|
||||
w.logger.WARN.Printf("File %q not found, skipping.", filename)
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user