mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
Don't use the OS environment when creating config for docs
This commit is contained in:
parent
94fbab2a88
commit
45c9bbc6ca
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue