mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:45:54 +01:00
[PR #1315] [MERGED] exe_sha: report the explicit hash source when --expect overrides --manifest (EXE-SHA-SOURCE) #1345
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1345
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1315
Author: @fin-github
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @QemmHD
Base:
main← Head:codex/exe-sha-source📝 Commits (1)
1d983bcexe_sha: report --expect as the explicit hash source📊 Changes
2 files changed (+12 additions, -4 deletions)
View changed files
📝
tests/test_exe_sha.py(+11 -3)📝
tools/exe_sha.py(+1 -1)📄 Description
Claimed in the coordination issue as: EXE-SHA-SOURCE (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7145320825)
What and why
When both options are supplied, the tool compares the file with the hash from
--expect. The text verdict and JSONsourcenow identify--expect. Previously both could credit a manifest the tool never read, even when the file was missing. The regression covers an existing manifest with a different size and hash and a missing manifest, in both output formats.Tested
Windows 11 (build 26200.9974), Python 3.14.4. Synthetic files only.
upstream/mainat4a50cafc7with only the test change,python -I tests/test_exe_sha.py -vran 11 tests and failed all four new subtests.python -I tests/test_exe_sha.py -vpassed all 11 tests and all four new subtests.python -I tests/test_text_write_line_endings.pypassed all 3 tests.python -I scripts/check_no_game_data.py tools/exe_sha.py tests/test_exe_sha.pyandgit diff --checkexited 0.GPUs tested: no GPU
AI-assisted (Codex)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.