setup rejects unchanged Mesa checkout after patch snapshot format change #112

Closed
opened 2026-12-01 21:20:26 +00:00 by github-bot · 0 comments
Owner

@⁠oguska on GitHub · 2026-12-01 21:15 UTC · original

Problem

Running ./setup.sh can stop with:

deps/mesa has changes the patch does not: keep them with tools/patch.sh mesa

This can happen even when the Mesa worktree still matches the snapshot saved by setup.

Cause

Older .git/um-patch snapshots contain abbreviated Git object IDs in diff index lines. The current patched helper generates full object IDs. When the patch stamp changes, setup compares these diffs byte-for-byte and treats the formatting difference as a local modification. Regenerating the patch is not appropriate when the repository patch itself has changed: it may overwrite the newer patch with the older checkout contents.

Expected behavior

Accept an unchanged checkout against either legacy abbreviated or current full-index snapshots, while still refusing to discard real local changes.

**@⁠oguska** on GitHub · 2026-12-01 21:15 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/112) ## Problem Running `./setup.sh` can stop with: ``` deps/mesa has changes the patch does not: keep them with tools/patch.sh mesa ``` This can happen even when the Mesa worktree still matches the snapshot saved by setup. ## Cause Older `.git/um-patch` snapshots contain abbreviated Git object IDs in diff `index` lines. The current `patched` helper generates full object IDs. When the patch stamp changes, setup compares these diffs byte-for-byte and treats the formatting difference as a local modification. Regenerating the patch is not appropriate when the repository patch itself has changed: it may overwrite the newer patch with the older checkout contents. ## Expected behavior Accept an unchanged checkout against either legacy abbreviated or current full-index snapshots, while still refusing to discard real local changes.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 21:20:27 +00:00
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/lobomfz--VIctory-xmem#112
No description provided.