From ba35e69856900b6fc92681aa841cdcaefbb4b121 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Sun, 17 Oct 2021 11:54:55 +0200 Subject: Add a cross process build lock and use it in the archetype content builder Fixes #9048 --- hugolib/hugo_sites.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'hugolib/hugo_sites.go') 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 } -- cgit v1.2.3