Skip to content

enforce unix line endings for all text files#1611

Open
hankem wants to merge 1 commit intomainfrom
use-unix-line-endings
Open

enforce unix line endings for all text files#1611
hankem wants to merge 1 commit intomainfrom
use-unix-line-endings

Conversation

@hankem
Copy link
Copy Markdown
Member

@hankem hankem commented May 8, 2026

Restoring @StefanGraeber's original suggestion of #1602:
Only configuring the line endings of Java files in 0ce7916 was actually not enough as the build itself modifies them using archunit.header.template, which needs to use LF line endings as well.

(I merged #1602 despite spotless failures on Windows, as it seemed plausible that these were caused by .gitattributes settings only applying when git writes files to the working tree – not when switching the branch; a behavior I had observed locally. Therefore, I assumed that the CI build for #1602 might still have used the line endings from main, and that the failure would heal itself once the .gitattributes are on main. However, that assumption turned out to be incorrect. 🙈)

Restoring Stefan Gräber's original suggestion of #1602:
Only configuring the line endings of Java files in 0ce7916
was actually not enough as the build itself modifies them using `archunit.header.template`,
which needs to use LF line endings as well.

Signed-off-by: Manfred Hanke <Manfred.Hanke@tngtech.com>
@hankem hankem requested a review from StefanGraeber May 8, 2026 18:41
@hankem hankem changed the title enforce unix line endings for all files enforce unix line endings for all text files May 8, 2026
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