v0.2.2 fixes: split only text sources, report a mode change once, don't block on open
Test / test (push) Canceled after 0s

This commit is contained in:
lixen committed 2026-10-03 23:47:22 -04:00
1 parent 2a47be454d
commit 4d3c91406b
21 files changed
+368 -62

No files matched your search

+2 -2
View File
@@ -96,8 +96,8 @@ func (b *Builder) Build() (*Config, error) {
// 2. Load configuration
loadErr := b.cfg.loadWithOptions(b.file, b.args, b.opts)
if loadErr != nil && !errors.Is(loadErr, ErrConfigNotFound) {
// Return on fatal load errors. ErrConfigNotFound is not fatal.
return nil, wrapError(ErrFileAccess, loadErr)
// Return on fatal load errors, labelled by source. ErrConfigNotFound is not fatal.
return nil, loadErr
}
// 3. Run non-typed validators