basefs: add noBuildLock flag

If the flag is enabled, `.hugo_build.lock` will not be created.
This ensures safe running on read-only filesystem etc.
Close #9780
This commit is contained in:
satotake
2022-05-23 02:14:17 +09:00
committed by Bjørn Erik Pedersen
parent 2fc2e9c871
commit 6f7fbe03b1
3 changed files with 24 additions and 9 deletions

View File

@@ -200,6 +200,7 @@ func initializeFlags(cmd *cobra.Command, cfg config.Provider) {
"forceSyncStatic",
"noTimes",
"noChmod",
"noBuildLock",
"ignoreVendorPaths",
"templateMetrics",
"templateMetricsHints",