aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2020-01-23 20:11:53 +0100
committerBjørn Erik Pedersen <[email protected]>2020-01-23 20:11:53 +0100
commit0df7bd62df460a49544845d5332f33b2020b48a1 (patch)
treea26864a8518828a5363fe1628d0cf5bb58338bff
parentf441f675126ef1123d9f94429872dd683b40e011 (diff)
downloadhugo-0df7bd62df460a49544845d5332f33b2020b48a1.tar.gz
hugo-0df7bd62df460a49544845d5332f33b2020b48a1.zip
deps: Make the build flags shared between sites
Updates #6789
-rw-r--r--deps/deps.go4
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