config: distinguish a non-file VICTORY_CONFIG from a missing one #1254
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!1254
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1254"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@RennfahrerU on GitHub · 2026-11-26 02:48 UTC · original
RennfahrerU:fix/config-not-a-file→main· +58 −11 · 1 files · 1 commits · openWhen VICTORY_CONFIG pointed at a path that existed but was not a file (for example a directory), load() reported "which does not exist" -- wrong and confusing. Report "which is not a file" in that case and keep "does not exist" for a path that is truly absent.
The file-selection logic moves into a small
locate_confighelper so it can be unit-tested without mutating the process environment, matching how the rest of this module is tested. Four tests cover the new helper.Assisted-by: AI tools
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.