mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-12 20:13:59 +02:00
lazy: Reset error in Reset
To prevent sticky errors on server rebuilds. Fixes #7043 Closes #9194
This commit is contained in:
@@ -136,6 +136,7 @@ func (ini *Init) shouldInitialize() bool {
|
||||
// Reset resets the current and all its dependencies.
|
||||
func (ini *Init) Reset() {
|
||||
mu := ini.init.ResetWithLock()
|
||||
ini.err = nil
|
||||
defer mu.Unlock()
|
||||
for _, d := range ini.children {
|
||||
d.Reset()
|
||||
|
Reference in New Issue
Block a user