aboutsummaryrefslogtreecommitdiffhomepage
path: root/commands/hugobuilder.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/hugobuilder.go')
-rw-r--r--commands/hugobuilder.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/hugobuilder.go b/commands/hugobuilder.go
index d15d47326..42bf68a37 100644
--- a/commands/hugobuilder.go
+++ b/commands/hugobuilder.go
@@ -1047,7 +1047,7 @@ func (c *hugoBuilder) loadConfig(cd *simplecobra.Commandeer, running bool) error
"fastRenderMode": c.fastRenderMode,
})
- conf, err := c.r.ConfigFromProvider(c.r.configVersionID.Load(), flagsToCfg(cd, cfg))
+ conf, err := c.r.ConfigFromProvider(configKey{counter: c.r.configVersionID.Load()}, flagsToCfg(cd, cfg))
if err != nil {
return err
}
@@ -1116,7 +1116,7 @@ func (c *hugoBuilder) reloadConfig() error {
if err := c.withConfE(func(conf *commonConfig) error {
oldConf := conf
- newConf, err := c.r.ConfigFromConfig(c.r.configVersionID.Load(), conf)
+ newConf, err := c.r.ConfigFromConfig(configKey{counter: c.r.configVersionID.Load()}, conf)
if err != nil {
return err
}