Skip to content

Fix curb on Windows by setting LF line endings, and never fail a release on formatting - #4925

Merged
Mpdreamz merged 5 commits into
mainfrom
feature/curb-windows-diagnostics
Nov 18, 2026
Merged

Mpdreamz merged 5 commits into
mainfrom
feature/curb-windows-diagnostics

Conversation

@Mpdreamz

@Mpdreamz Mpdreamz commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Curb expects LF in C# files on every system, the release publish skips the curb check, and the lint job runs the curb version pinned in dotnet-tools.json.

Affects: Automation

Prompt summary: The Windows release build fails with CURB0001 on files that are formatted. Find the cause, fix it, and make CI use the curb version from dotnet-tools.json.

Why

The release (windows-latest) job of run 44133713545 failed with CURB0001 on files that are formatted. A Windows build with curb enabled showed Checked 47 file(s) - 47 would change: curb flagged every file of a project. #4891 set *.cs text eol=lf in .gitattributes, so Windows checks C# files out with LF. .editorconfig sets no end_of_line, so curb expects the platform default, CRLF on Windows. The release before #4891 had no Windows job, so 44133713545 was the first Windows release since. The lint job also runs curb 0.9.0, while dotnet-tools.json and the MSBuild package use 0.15.1.

What

Line endings

.editorconfig sets end_of_line = lf for C# and F# files, matching .gitattributes. With this change the Windows build, run with curb enabled on this PR, reported 0 would change for every project. A local test shows curb honours the setting: LF files are changed under end_of_line = crlf and formatted under end_of_line = lf.

Release publish

The Publish Binaries step in release.yml sets Curb_Bypass: true. Formatting is checked locally and in CI, so it never fails a release.

Lint image

The lint job in ci.yml uses the ghcr.io/nullean/curb 0.15.1 image, pinned by digest, in place of 0.9.0.

Out of scope: The per-project check stays bypassed in the PR build job. The lint job is Linux-only, so PR checks do not run curb on Windows.

Replaces #4924.

The Windows release publish failed with `CURB0001` on files that are formatted, and PR checks never run `curb` on Windows, so the cause is invisible. The Windows `build` job now keeps the check and sets `Curb_LogLevel` to `high`.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@Mpdreamz
Mpdreamz requested a review from a team as a code owner November 18, 2026 08:28
@Mpdreamz Mpdreamz added the automation packaging, ci/cd. label Nov 18, 2026
@Mpdreamz
Mpdreamz requested a review from technige November 18, 2026 08:28
…s on Windows

The Windows build reported CURB0001 on five files that are formatted and have LF endings in the checkout. .editorconfig set no end_of_line for them, so curb can fall back to the platform's CRLF there.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
`.gitattributes` has checked out `*.cs` with LF on every system since #4891, but `.editorconfig` set no `end_of_line`, so curb expects the platform default. On Windows that is CRLF, and curb reports every C# file as unformatted (`CURB0001`).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@Mpdreamz Mpdreamz changed the title Run the curb check on the Windows build with high log output Fix curb reporting every C# file on Windows, and check it on the Windows build Nov 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

The Windows build keeps `Curb_Bypass` as before. The release publish sets it too, so formatting never fails a release, and the `lint` job runs the curb version pinned in `dotnet-tools.json`.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@Mpdreamz Mpdreamz changed the title Fix curb reporting every C# file on Windows, and check it on the Windows build Fix curb on Windows by setting LF line endings, and never fail a release on formatting Nov 18, 2026
The shared `[*.{fs,fsx,cs,vb}]` section already sets `end_of_line = lf`.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@Mpdreamz
Mpdreamz enabled auto-merge (squash) November 18, 2026 08:46
@Mpdreamz
Mpdreamz disabled auto-merge November 18, 2026 08:49
@Mpdreamz
Mpdreamz merged commit eb2c66b into main Nov 18, 2026
46 checks passed
@Mpdreamz
Mpdreamz deleted the feature/curb-windows-diagnostics branch November 18, 2026 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automation packaging, ci/cd.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants