Reject derived outputs inside the source tree #523
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from Belobug/VIctory-Belobug-AMD. Originally posted by nufu88pa on 2026-11-27T08:28:34Z.
Fixes #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.
Imported from Belobug/VIctory-Belobug-AMD. Originally posted by MamaLeVrai on 2026-11-27T11:40:21Z.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.