Make LazyFileReader use the Afero source fs

Fixes #2317
This commit is contained in:
Bjørn Erik Pedersen
2016-07-30 15:14:41 +02:00
parent 9489272681
commit a0859dc672
4 changed files with 30 additions and 22 deletions

View File

@@ -836,7 +836,7 @@ func (s *Site) reReadFile(absFilePath string) (*source.File, error) {
jww.INFO.Println("rereading", absFilePath)
var file *source.File
reader, err := source.NewLazyFileReader(absFilePath)
reader, err := source.NewLazyFileReader(hugofs.Source(), absFilePath)
if err != nil {
return nil, err
}