summaryrefslogtreecommitdiffstats
path: root/hugolib/hugo_sites.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-10-17 11:54:55 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-10-18 12:13:13 +0200
commitba35e69856900b6fc92681aa841cdcaefbb4b121 (patch)
treeb9ffc699a99b2d6d947e1d53c383a1352ce93980 /hugolib/hugo_sites.go
parentc7957c90e83ff2b2cc958bd61486a244f0fd8891 (diff)
Add a cross process build lock and use it in the archetype content builder
Fixes #9048
Diffstat (limited to 'hugolib/hugo_sites.go')
-rw-r--r--hugolib/hugo_sites.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/hugolib/hugo_sites.go b/hugolib/hugo_sites.go
index 141019a85..91703091b 100644
--- a/hugolib/hugo_sites.go
+++ b/hugolib/hugo_sites.go
@@ -70,9 +70,6 @@ type HugoSites struct {
// If this is running in the dev server.
running bool
- // Serializes rebuilds when server is running.
- runningMu sync.Mutex
-
// Render output formats for all sites.
renderFormats output.Formats
@@ -682,6 +679,9 @@ type BuildCfg struct {
// Can be set to build only with a sub set of the content source.
ContentInclusionFilter *glob.FilenameFilter
+ // Set when the buildlock is already acquired (e.g. the archetype content builder).
+ NoBuildLock bool
+
testCounters *testCounters
}