Skip to content

Windows build stamp: EOL-normalize the manifest the tauri-cli rewrites + keep the tree-state diagnostics (#513) - #516

Merged
ryan-johnson2 merged 2 commits into
develfrom
build-stamp-probe
Sep 1, 2026
Merged

Windows build stamp: EOL-normalize the manifest the tauri-cli rewrites + keep the tree-state diagnostics (#513)#516
ryan-johnson2 merged 2 commits into
develfrom
build-stamp-probe

Conversation

@ryan-johnson2

Copy link
Copy Markdown
Contributor

Follow-up to #515 — the Windows leg still stamped -dirty after the lockfile fix.

The new tree-state diagnostic steps (first commit, worth keeping permanently) named the culprit in probe run 33456672440: M src-tauri/Cargo.toml, Windows only. The Tauri CLI re-serializes the manifest during tauri build — a semantic no-op that is byte-identical on Linux/macOS but written CRLF on Windows, where the EOL-only rewrite read as a tracked modification at stamp time.

Fix: .gitattributes pins src-tauri/Cargo.toml text eol=lf, so git normalizes line endings when comparing and a pure EOL rewrite is not dirt — while a material manifest rewrite still is, which is exactly the distinction the build stamp wants. The file is already LF in the index, so no renormalization churn.

With this, all three portables from the same dispatch should stamp the identical clean 0.4.0-dev-<hash> (linux/macOS already did on run 33353894379).

🤖 Generated with Claude Code

https://claude.ai/code/session_01VdCtnsbcVyBLmc5xo5dHEX

ryan-johnson2 and others added 2 commits August 31, 2026 19:54
…'s dirty diagnosis (#513)

A -dirty stamp is only debuggable if the log says WHAT was dirty. Before/after
`git status --porcelain` around the Tauri build names the mutation (the stale
lock re-lock was found by archaeology, #515; the Windows leg's residue gets
named by this pair).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VdCtnsbcVyBLmc5xo5dHEX
…li rewrite isn't "dirt" (#513)

The probe run's tree-state step named the Windows leg's residue: ` M
src-tauri/Cargo.toml`. The Tauri CLI re-serializes the manifest during
`tauri build` — byte-identical on Linux/macOS, CRLF on Windows — and the
EOL-only rewrite read as a tracked modification, stamping the Windows
portable -dirty while the other two legs came out clean. `text eol=lf`
makes git normalize when comparing, so only a MATERIAL manifest rewrite
counts as dirt, which is the distinction the stamp wants.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VdCtnsbcVyBLmc5xo5dHEX
@ryan-johnson2
ryan-johnson2 merged commit db0c4a9 into devel Sep 1, 2026
4 checks passed
@ryan-johnson2
ryan-johnson2 deleted the build-stamp-probe branch September 1, 2026 01:06
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.

1 participant