Thanks william. This does look like a problem in the tests, the real code does this
func (st *State) EnvironConfig() (*config.Config, error) { settings, err := readSettings(st, environGlobalKey) if err != nil { return nil, errors.Trace(err) } attrs := settings.Map() return config.New(config.NoDefaults, attrs) }
Thanks william. This does look like a problem in the tests, the real code does this
func (st *State) EnvironConfig() (*config.Config, error) {
return nil, errors.Trace(err) New(config. NoDefaults, attrs)
settings, err := readSettings(st, environGlobalKey)
if err != nil {
}
attrs := settings.Map()
return config.
}