Skip to content

MINOR: Renormalize Maven wrapper line endings - #3993

Open
dossett wants to merge 1 commit into
apache:masterfrom
dossett:renormalize-mvnw-cmd
Open

dossett wants to merge 1 commit into
apache:masterfrom
dossett:renormalize-mvnw-cmd

Conversation

@dossett

@dossett dossett commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

dependabot is sometimes rewriting mvnw.cmd in a way that doesn't respect .gitattributes. As a result, a fresh clone of the repo will show that this file has uncommitted changes, which is annoying. There is an open PR for dependabot to fix this, but until then we'll have to fix this and/or intervene with dependabot's PRs that break this.

CODEX summary follows


Dependabot's Maven 3.10.0 → 3.10.1 update (#3981) committed mvnw.cmd with CRLF line endings, conflicting with the repository's * text eol=lf rule. Fresh checkouts consequently report the file as modified. This repeats the problem previously corrected in #3732.

Dependabot's handling of Git attributes is tracked in dependabot/dependabot-core#10193, with a general fix proposed in dependabot/dependabot-core#15697. This cleanup restores the expected committed form while that upstream fix is pending.

What changes are included in this PR?

Renormalize mvnw.cmd from CRLF to LF. Script content, permissions, and dependency versions are unchanged.

Are these changes tested?

Both checks pass:

  • git diff --check HEAD^ HEAD -- mvnw.cmd
  • git diff --ignore-cr-at-eol --exit-code HEAD^ HEAD -- mvnw.cmd

The comparison ignoring CR characters is empty. No build or runtime tests were run because the change only normalizes line endings.

Are there any user-facing changes?

Fresh checkouts no longer show a spurious modification to mvnw.cmd.

@dossett
dossett marked this pull request as ready for review November 24, 2026 14:12
@Fokko
Fokko self-requested a review November 24, 2026 14:41

@Fokko Fokko left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @dossett! Nice cleanup, and sorry for the friction this dependabot quirk keeps causing.

I verified locally that the content is byte-for-byte identical modulo line endings:

git diff --ignore-cr-at-eol --exit-code HEAD^ HEAD -- mvnw.cmd

Both of your checks come back clean as well, and this matches the * text eol=lf rule in .gitattributes, so the repo convention is restored. CI is green. LGTM!

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.

2 participants