Core: normalize trailing .. and Windows verbatim paths in policy::resolve #1163
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1163"
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 Marvisak/VIctory. Originally posted by geiyiliyabumo on 2026-11-24T16:18:40Z.
Summary
Fixes #793
Full verification details and change notes are documented in #793 (commit
8a0ac65, based onmainffe310e).Verification (Windows 11 x64 MSVC)
rustfmt --edition 2024 --checkon edited files: PASScargo xtask policy: PASS (zero game files/data)cargo clippy --all-targets --locked -- -D warnings(default +--features diagnosticswhere applicable): PASSAI-assisted; synthetic tests only, no game files.
Imported from Marvisak/VIctory. Originally posted by Zipettte on 2026-11-24T18:01:00Z.
Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at
8a0ac65:cargo test -p victory-corepasses, 15 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).Tested with AI assistance (Claude).
Imported from Marvisak/VIctory. Originally posted by Calvix2k on 2026-11-24T21:18:26Z.
Verified head
8a0ac65locally on Windows 10 x64 (Rust 1.98.1 MSVC):cargo test -p victory-core --locked -- --test-threads=1— 15 passed, 0 failed, including the trailing../., absent-drive and verbatim\\?\cases.cargo clippy -p victory-core --all-targets --all-features --locked -- -D warnings— clean.cargo xtask policy— 154 files ok.The two normalization bugs from #793 reproduce and are fixed here: absent paths ending in
..now reportInsideRepo/Okinstead ofIo, and<outside>/not-yet-created/../<repo>/cacheno longer slips past the repo check under the verbatim prefix.Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:33:17Z.
Automated triage for the maintainers. Closing because another open pull request covers the same change.
See #937.
If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.
Pull request closed