mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
Add a cross process build lock and use it in the archetype content builder
Fixes #9048
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user