Reject derived outputs inside the source tree #523
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/Belobug--VIctory-Belobug-AMD!523
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-523"
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?
@nufu88pa on GitHub · 2026-11-27 08:28 UTC · original
nufu88pa:fix/derived-output-policy→a-publier· +95 −3 · 4 files · 1 commits · openFixes #510.
Changes
Apply the existing
ensure_outside_repocheck before frame recording, replay image export, replay shader retranslation, and untranslated-shader list output. Retranslation also checks the capture’s siblingcontainersdirectory before creating either output directory.Verification
All three regression tests passed on Windows with Rust 1.98.1. The tests use temporary directories and require no game files or GPU.
cargo test --locked -p victory --features diagnostics --test derived_output_policycargo test --locked -p victory-gpu --features diagnostics --lib recorder_rejects_a_destination_inside_the_source_treegit diff --checkPrepared with assistance from Codex.
@MamaLeVrai on GitHub · 2026-11-27 11:40 UTC · original
Tested on an RX 6950 XT (RDNA 2), driver 32.0.21045.29003, Windows 11 build 26300, Rust 1.98.1, release. At
3dca74f:victory-gpu396 passed, 0 failed, 34 ignored;victorybins 25 passed.AI-assisted (Claude Code); no game data.
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.