Keep shader cache keys stable across Git checkout line endings #38
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/gamingwithhomie--larp!38
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/38/head"
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?
@Sans0001010 on GitHub · 2026-12-05 16:09 UTC · original
Sans0001010:codex/stable-shader-cache-line-endings→main· +4 −0 · 1 files · 1 commits · merged 2026-12-05 16:16 UTCProblem
The translated shader cache fingerprints the byte length and contents of the source files it embeds. The v4 and v1.0.7 tags have identical Git blobs for these inputs, but four of the 37 inputs changed from LF in the published v4 binary to CRLF in the published v1.0.7 binary. This changes the translation cache key even when the translator sources are unchanged.
Fix
Pin LF for the Rust sources that feed the fingerprint. Fresh Windows and LF checkouts then use the original LF inputs. This leaves the cache format and the translator's invalidation logic intact. A clean release checkout applies the attributes to all affected files.
Validation