v0.2.2 fixes: split only text sources, report a mode change once, don't block on open
Test / test (push) Canceled after 0s
Test / test (push) Canceled after 0s
This commit is contained in:
21 files changed
+368
-62
No files matched your search
@@ -259,6 +259,9 @@ func (c *Config) setSourceLocked(source Source, path string, value any) error {
|
||||
if !validSource(source) {
|
||||
return wrapError(ErrTypeMismatch, fmt.Errorf("invalid source %q", source))
|
||||
}
|
||||
if source == SourceEnv || source == SourceCLI {
|
||||
value = textList(item.defaultValue, value)
|
||||
}
|
||||
if err := validateValue(item, value); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user