Skip to content

chore: Store mvnw.cmd with CRLF as-is - #7368

Merged
adangel merged 1 commit into
pmd:mainfrom
adangel:chore/fix-mvnw-cmd
Nov 19, 2026
Merged

adangel merged 1 commit into
pmd:mainfrom
adangel:chore/fix-mvnw-cmd

Conversation

@adangel

@adangel adangel commented Nov 19, 2026

Copy link
Copy Markdown
Member

Describe the PR

We no longer normalize the line endings to lf in git storage and to crlf on checkout (-text).
When dependabot updates this file, it will always store it with crlf (without using .gitattributes settings) and the file would appear always as modified. Since the file is usually not edited manually but only by wrapper:wrapper or dependabot, it's only a small risk that someone accidentally modifies the line endings to lf by manually editing the file.

Related issues

Ready?

  • Added unit tests for fixed bug/feature
  • Passing all unit tests
  • Complete build ./mvnw clean verify passes (checked automatically by github actions)
  • Added (in-code) documentation (if needed)

We no longer normalize the line endings to lf in git storage and to crlf
on checkout (-text).
When dependabot updates this file, it will always store it with crlf (without
using .gitattributes settings) and the file would appear always as modified.
Since the file is usually not edited manually but only by wrapper:wrapper or
dependabot, it's only a small risk that someone accidentally modifies the
line endings to lf by manually editing the file.

Same problem was previous addressed in pmd#7154.
Problematic PRs: pmd#7140 pmd#7359
@adangel adangel added this to the 7.30.0 milestone Nov 19, 2026
@pmd-actions-helper

Copy link
Copy Markdown
Contributor

Documentation Preview

No relevant source code has been changed, pmdtester skipped.

(comment created at 2026-11-19 08:56:45+00:00 for c3b8ac0)

@adangel
adangel merged commit 2f24462 into pmd:main Nov 19, 2026
12 checks passed
@adangel
adangel deleted the chore/fix-mvnw-cmd branch November 19, 2026 09:04
adangel added a commit to pmd/build-tools that referenced this pull request Nov 19, 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