aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/config.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2020-10-29 16:22:35 +0100
committerBjørn Erik Pedersen <[email protected]>2020-10-30 09:41:04 +0100
commit8a1c637c4494751046142e0ef345fce38fc1431b (patch)
tree43847875b05e6261ca204c3c565fc84db7f63bde /hugolib/config.go
parent6d95dc9d74681cba53b46e79c6e1d58d27fcdfb0 (diff)
downloadhugo-8a1c637c4494751046142e0ef345fce38fc1431b.tar.gz
hugo-8a1c637c4494751046142e0ef345fce38fc1431b.zip
Fix setting HUGO_MODULE_PROXY etc. via env vars
Fixes #7903
Diffstat (limited to 'hugolib/config.go')
-rw-r--r--hugolib/config.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/hugolib/config.go b/hugolib/config.go
index 7500dfc72..72b51272b 100644
--- a/hugolib/config.go
+++ b/hugolib/config.go
@@ -198,6 +198,8 @@ func LoadConfig(d ConfigSourceDescriptor, doWithConfig ...func(cfg config.Provid
} else {
v.Set(key, val)
}
+ } else if nestedKey != "" {
+ owner[nestedKey] = valStr
} else {
v.Set(key, valStr)
}