diff options
author | Bjørn Erik Pedersen <[email protected]> | 2020-01-23 20:11:53 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2020-01-23 20:11:53 +0100 |
commit | 0df7bd62df460a49544845d5332f33b2020b48a1 (patch) | |
tree | a26864a8518828a5363fe1628d0cf5bb58338bff /deps/deps.go | |
parent | f441f675126ef1123d9f94429872dd683b40e011 (diff) | |
download | hugo-0df7bd62df460a49544845d5332f33b2020b48a1.tar.gz hugo-0df7bd62df460a49544845d5332f33b2020b48a1.zip |
deps: Make the build flags shared between sites
Updates #6789
Diffstat (limited to 'deps/deps.go')
-rw-r--r-- | deps/deps.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/deps/deps.go b/deps/deps.go index 092a0b887..8f3d81632 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 |