Config: ignore an empty VICTORY_CONFIG #634
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from fxceless/victory-fork. Originally posted by davutsimsekk on 2026-11-25T03:37:06Z.
An 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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.