mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
parent
f441f67512
commit
0df7bd62df
1 changed files with 2 additions and 2 deletions
4
deps/deps.go
vendored
4
deps/deps.go
vendored
|
@ -94,7 +94,7 @@ type Deps struct {
|
||||||
BuildStartListeners *Listeners
|
BuildStartListeners *Listeners
|
||||||
|
|
||||||
// Atomic flags set during a build.
|
// Atomic flags set during a build.
|
||||||
BuildFlags BuildFlags
|
BuildFlags *BuildFlags
|
||||||
|
|
||||||
*globalErrHandler
|
*globalErrHandler
|
||||||
}
|
}
|
||||||
|
@ -274,6 +274,7 @@ func New(cfg DepsCfg) (*Deps, error) {
|
||||||
Site: cfg.Site,
|
Site: cfg.Site,
|
||||||
FileCaches: fileCaches,
|
FileCaches: fileCaches,
|
||||||
BuildStartListeners: &Listeners{},
|
BuildStartListeners: &Listeners{},
|
||||||
|
BuildFlags: &BuildFlags{},
|
||||||
Timeout: time.Duration(timeoutms) * time.Millisecond,
|
Timeout: time.Duration(timeoutms) * time.Millisecond,
|
||||||
globalErrHandler: &globalErrHandler{},
|
globalErrHandler: &globalErrHandler{},
|
||||||
}
|
}
|
||||||
|
@ -330,7 +331,6 @@ func (d Deps) ForLanguage(cfg DepsCfg, onCreated func(d *Deps) error) (*Deps, er
|
||||||
}
|
}
|
||||||
|
|
||||||
d.BuildStartListeners = &Listeners{}
|
d.BuildStartListeners = &Listeners{}
|
||||||
d.BuildFlags = BuildFlags{}
|
|
||||||
|
|
||||||
return &d, nil
|
return &d, nil
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue