Skip to content

Keep service-worker asset hashes stable on Windows - #92

Merged
ralyodio merged 1 commit into
profullstack:masterfrom
SummusStuprator:codex/windows-shell-line-endings
Sep 12, 2026
Merged

Keep service-worker asset hashes stable on Windows#92
ralyodio merged 1 commit into
profullstack:masterfrom
SummusStuprator:codex/windows-shell-line-endings

Conversation

@SummusStuprator

@SummusStuprator SummusStuprator commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

With core.autocrlf=true, Windows checkouts rewrite the cached CSS/SVG assets to CRLF. The service-worker hash test then computes 4b79fdda instead of the committed bb197f9b even though no asset content was edited. This breaks the test suite and encourages platform-specific cache-version changes.

Declare LF checkout bytes for web/public CSS and SVG files using .gitattributes. This preserves the actual byte-based cache check; no asset or VERSION change is needed.

Validation: reproduced the failure on Windows, verified the upstream Git blobs produce bb197f9b, then forced a checkout of all three shell assets with core.autocrlf=true after applying these attributes. All three service-worker tests pass. git check-attr confirms text and eol=lf for each asset.

Prepared and tested by an AI coding assistant with the account owner's authorization.

@ralyodio
ralyodio merged commit f89f50a into profullstack:master Sep 12, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants