Skip to content

Commit

Permalink
Don't use the OS environment when creating config for docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Aug 30, 2023
1 parent 94fbab2 commit 45c9bbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hugolib/config.go
Expand Up @@ -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)
}
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 45c9bbc

Please sign in to comment.