Repository navigation
Fix curb on Windows by setting LF line endings, and never fail a release on formatting - #4925
Merged
Merged
Conversation
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]>
reakaleek
approved these changes
Nov 18, 2026
akira28
approved these changes
Nov 18, 2026
…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]>
Contributor
Docs preview (local build)Handbook preview: https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/4925/ |
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]>
The shared `[*.{fs,fsx,cs,vb}]` section already sets `end_of_line = lf`.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Mpdreamz
enabled auto-merge (squash)
November 18, 2026 08:46
Mpdreamz
disabled auto-merge
November 18, 2026 08:49
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Curb expects LF in C# files on every system, the release publish skips the curb check, and the
lintjob runs the curb version pinned indotnet-tools.json.Affects: Automation
Prompt summary: The Windows release build fails with
CURB0001on files that are formatted. Find the cause, fix it, and make CI use the curb version fromdotnet-tools.json.Why
The
release (windows-latest)job of run 44133713545 failed withCURB0001on files that are formatted. A Windows build with curb enabled showedChecked 47 file(s) - 47 would change: curb flagged every file of a project. #4891 set*.cs text eol=lfin.gitattributes, so Windows checks C# files out with LF..editorconfigsets noend_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. Thelintjob also runs curb 0.9.0, whiledotnet-tools.jsonand the MSBuild package use 0.15.1.What
Line endings
.editorconfigsetsend_of_line = lffor C# and F# files, matching.gitattributes. With this change the Windows build, run with curb enabled on this PR, reported0 would changefor every project. A local test shows curb honours the setting: LF files are changed underend_of_line = crlfand formatted underend_of_line = lf.Release publish
The
Publish Binariesstep inrelease.ymlsetsCurb_Bypass: true. Formatting is checked locally and in CI, so it never fails a release.Lint image
The
lintjob inci.ymluses theghcr.io/nullean/curb0.15.1 image, pinned by digest, in place of 0.9.0.Out of scope: The per-project check stays bypassed in the PR
buildjob. Thelintjob is Linux-only, so PR checks do not runcurbon Windows.Replaces #4924.