shithub: hugo

Download patch

ref: 0df7bd62df460a49544845d5332f33b2020b48a1
parent: f441f675126ef1123d9f94429872dd683b40e011
author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
date: Thu Jan 23 15:11:53 EST 2020

deps: Make the build flags shared between sites

Updates #6789

--- a/deps/deps.go
+++ b/deps/deps.go
@@ -94,7 +94,7 @@
 	BuildStartListeners *Listeners
 
 	// Atomic flags set during a build.
-	BuildFlags BuildFlags
+	BuildFlags *BuildFlags
 
 	*globalErrHandler
 }
@@ -274,6 +274,7 @@
 		Site:                    cfg.Site,
 		FileCaches:              fileCaches,
 		BuildStartListeners:     &Listeners{},
+		BuildFlags:              &BuildFlags{},
 		Timeout:                 time.Duration(timeoutms) * time.Millisecond,
 		globalErrHandler:        &globalErrHandler{},
 	}
@@ -330,7 +331,6 @@
 	}
 
 	d.BuildStartListeners = &Listeners{}
-	d.BuildFlags = BuildFlags{}
 
 	return &d, nil