summaryrefslogtreecommitdiffstats
path: root/commands/hugo.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-03-14 12:18:42 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-03-14 12:18:42 +0100
commit0fbab7cbc5a0b57ec875858111b178160d18acb5 (patch)
treeac718d00f98bf7df0cef4d82d3e8db527f85560d /commands/hugo.go
parentf5eddf89bf6c8ea9571c16f301f6b449259e6187 (diff)
commands: Fix data race in test
Note that this is a test fix only.
Diffstat (limited to 'commands/hugo.go')
-rw-r--r--commands/hugo.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/commands/hugo.go b/commands/hugo.go
index 12575618b..1a35d1626 100644
--- a/commands/hugo.go
+++ b/commands/hugo.go
@@ -255,6 +255,7 @@ func initializeFlags(cmd *cobra.Command, cfg config.Provider) {
setValueFromFlag(cmd.Flags(), "destination", cfg, "publishDir", false)
setValueFromFlag(cmd.Flags(), "printI18nWarnings", cfg, "logI18nWarnings", false)
setValueFromFlag(cmd.Flags(), "printPathWarnings", cfg, "logPathWarnings", false)
+
}
func setValueFromFlag(flags *flag.FlagSet, key string, cfg config.Provider, targetKey string, force bool) {