Config: ignore an empty VICTORY_CONFIG #634
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!634
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-634"
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?
@davutsimsekk on GitHub · 2026-11-25 03:37 UTC · original
davutsimsekk:fix/config-empty-env→main· +19 −1 · 1 files · 1 commits · openAn empty
VICTORY_CONFIG(VICTORY_CONFIG=) was kept asSome(""), so every command failed withVICTORY_CONFIG points at , which does not exist. The other path variables already ignore empty values.This treats an empty config path as unset and falls back to
./victory.tomlor the defaults. A non-empty path, including a missing one, behaves as before.Test
empty_config_env_is_ignoredchecksSome("")becomesNoneand a real path is kept, without touching the process environment.cargo test -p victory-core --lib: 12 passed, 0 failedcargo clippy -p victory-core --all-targets --locked -- -D warnings: cleanrustfmt --edition 2024 --check crates/victory-core/src/config.rs: cleanView 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.