You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make source precedence a stable, documented API instead of relying on
the undocumented CaseIterable declaration order.
- Add PrioritizedConfigKeySource protocol with `static var priority`
(defaults to Array(allCases)); ConfigKeySource pins an explicit
[.commandLine, .environment], decoupling precedence from case order.
- Add overridable `sourcePriority` to ConfigValueReading (defaults to
ConfigKeySource.priority); resolvedString/Int/Double now iterate it
instead of allCases.
- Tests: pin priority order + drift guard (priority covers every case),
and a reversed-sourcePriority override resolving ENV over CLI.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments