From: Bjørn Erik Pedersen Date: Thu, 23 Jan 2020 19:11:53 +0000 (+0100) Subject: deps: Make the build flags shared between sites X-Git-Tag: v0.63.1~3 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0df7bd62df460a49544845d5332f33b2020b48a1;p=brevno-suite%2Fhugo deps: Make the build flags shared between sites Updates #6789 --- diff --git a/deps/deps.go b/deps/deps.go index 092a0b88..8f3d8163 100644 --- a/deps/deps.go +++ b/deps/deps.go @@ -94,7 +94,7 @@ type Deps struct { BuildStartListeners *Listeners // Atomic flags set during a build. - BuildFlags BuildFlags + BuildFlags *BuildFlags *globalErrHandler } @@ -274,6 +274,7 @@ func New(cfg DepsCfg) (*Deps, error) { Site: cfg.Site, FileCaches: fileCaches, BuildStartListeners: &Listeners{}, + BuildFlags: &BuildFlags{}, Timeout: time.Duration(timeoutms) * time.Millisecond, globalErrHandler: &globalErrHandler{}, } @@ -330,7 +331,6 @@ func (d Deps) ForLanguage(cfg DepsCfg, onCreated func(d *Deps) error) (*Deps, er } d.BuildStartListeners = &Listeners{} - d.BuildFlags = BuildFlags{} return &d, nil