Skip to content

Generate version-info files with CRLF on all platforms#3907

Merged
siegfriedpammer merged 1 commit into
masterfrom
fix-update-assemblyinfo-crlf
Jul 23, 2026
Merged

Generate version-info files with CRLF on all platforms#3907
siegfriedpammer merged 1 commit into
masterfrom
fix-update-assemblyinfo-crlf

Conversation

@siegfriedpammer

Copy link
Copy Markdown
Member

update-assemblyinfo.ps1 joins the template lines with Environment.NewLine, so on Linux the generated DecompilerVersionInfo.cs is written with LF. The repo's .cs files are CRLF, so the pre-commit format hook re-flags every line of the generated file on each commit made on a Linux machine ("Formatted 1 of N files" on every run).

Write the generated file with CRLF regardless of platform, and use the same separator in the up-to-date comparison so the change detection stays consistent. After the fix the hook reports "Formatted 0 of 1697 files" on Linux.

🤖 Generated with Claude Code

update-assemblyinfo.ps1 joined the template lines with
Environment.NewLine, so on Linux the generated DecompilerVersionInfo.cs
was written with LF and the pre-commit format hook re-flagged all of its
lines on every single commit. The repo's .cs files are CRLF; write the
generated file that way regardless of platform, and compare with the
same separator so the up-to-date check stays consistent.

Assisted-by: Claude:claude-fable-5:Claude Code
@siegfriedpammer
siegfriedpammer merged commit 579032a into master Jul 23, 2026
13 checks passed
@siegfriedpammer
siegfriedpammer deleted the fix-update-assemblyinfo-crlf branch July 23, 2026 15:01
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