commands: Fix server panic regression

And now with a proper server test.

Fixes #9518
Fixes #9530
Fixes #9539
This commit is contained in:
Bjørn Erik Pedersen
2022-02-21 19:12:04 +01:00
parent 4ada09415d
commit aebde49b88
4 changed files with 45 additions and 15 deletions

View File

@@ -390,6 +390,9 @@ func newHugoSites(cfg deps.DepsCfg, sites ...*Site) (*HugoSites, error) {
}
h.Deps = sites[0].Deps
if h.Deps == nil {
return nil, initErr
}
// Only needed in server mode.
// TODO(bep) clean up the running vs watching terms