mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
parent
e8537e6dd0
commit
4a96df96d9
1 changed files with 7 additions and 0 deletions
|
@ -33,6 +33,7 @@ import (
|
||||||
"github.com/gohugoio/hugo/hugofs/files"
|
"github.com/gohugoio/hugo/hugofs/files"
|
||||||
"github.com/gohugoio/hugo/tpl"
|
"github.com/gohugoio/hugo/tpl"
|
||||||
|
|
||||||
|
"github.com/gohugoio/hugo/common/herrors"
|
||||||
"github.com/gohugoio/hugo/common/htime"
|
"github.com/gohugoio/hugo/common/htime"
|
||||||
"github.com/gohugoio/hugo/common/types"
|
"github.com/gohugoio/hugo/common/types"
|
||||||
|
|
||||||
|
@ -742,6 +743,12 @@ func (c *commandeer) handleBuildErr(err error, msg string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *commandeer) rebuildSites(events []fsnotify.Event) error {
|
func (c *commandeer) rebuildSites(events []fsnotify.Event) error {
|
||||||
|
if c.buildErr != nil {
|
||||||
|
ferrs := herrors.UnwrapFileErrorsWithErrorContext(c.buildErr)
|
||||||
|
for _, err := range ferrs {
|
||||||
|
events = append(events, fsnotify.Event{Name: err.Position().Filename, Op: fsnotify.Write})
|
||||||
|
}
|
||||||
|
}
|
||||||
c.buildErr = nil
|
c.buildErr = nil
|
||||||
visited := c.visitedURLs.PeekAllSet()
|
visited := c.visitedURLs.PeekAllSet()
|
||||||
if c.fastRenderMode {
|
if c.fastRenderMode {
|
||||||
|
|
Loading…
Reference in a new issue