diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-08-30 19:14:04 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-08-30 19:22:44 +0200 |
commit | 45c9bbc6ca9b43f33dbf290cb09badb818379d97 (patch) | |
tree | f30eac009e2719c730235e7f5e2bedd855fba203 /hugolib | |
parent | 94fbab2a8865737c8fb7fe1469215a688ba21314 (diff) |
Don't use the OS environment when creating config for docs
Diffstat (limited to 'hugolib')
-rw-r--r-- | hugolib/config.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hugolib/config.go b/hugolib/config.go index af3f0647f..70dd790fe 100644 --- a/hugolib/config.go +++ b/hugolib/config.go @@ -25,7 +25,7 @@ import ( // DefaultConfig returns the default configuration. func DefaultConfig() *allconfig.Config { fs := afero.NewMemMapFs() - all, err := allconfig.LoadConfig(allconfig.ConfigSourceDescriptor{Fs: fs}) + all, err := allconfig.LoadConfig(allconfig.ConfigSourceDescriptor{Fs: fs, Environ: []string{"none"}}) if err != nil { panic(err) } @@ -176,7 +176,7 @@ module github.com/bep/mymod return nil, err } - conf, err := allconfig.LoadConfig(allconfig.ConfigSourceDescriptor{Fs: fs, Flags: cfg}) + conf, err := allconfig.LoadConfig(allconfig.ConfigSourceDescriptor{Fs: fs, Flags: cfg, Environ: []string{"none"}}) if err != nil { return nil, err } |