victory config: exit nonzero on an asset-policy violation (port of upstream #1830) #1327
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!1327
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1327"
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?
@CwWwWwW on GitHub · 2026-11-26 15:33 UTC · original
CwWwWwW:port/config-policy-exit→main· +46 −0 · 1 files · 1 commits · closed without mergingProblem
victory config prints POLICY VIOLATION: ... for each configured path the asset policy refuses (a game_dir, test title, cache_dir or data_dir inside the repository), but still returns Ok(()) and exits 0. A script or user checking the configuration cannot tell the asset policy was violated, although the repository requires those paths to stay outside it (nothing from the game may be committed).
Upstream VIctory fixed this in commit 834d643 (pull request #1830, by Ingenioer); this is that fix ported to the fork.
Change
Tests
(CI note: the check job on main is currently red on the asset-policy violation; #1322 fixes that, after which this can be rebased.)
Pull request closed