Skip to content

Maven pom edits insert LF lines into CRLF pom.xml files (hosted and vendored) #273

Description

[agent] Filed by Claude Code on behalf of Mikola Lysenko (@mikolalysenko) while adding Maven patch SBOM annotations to depscan. Reproduced with a release build of socket-patch 3efdc31d (sha256 dc5fb57f…), a stub patch API, and real Apache Maven 2.2.1 through 4.0.0-rc-7 (13 lines) on macOS arm64 / JDK 26.

Severity: low (cosmetic; noisy diffs, and some repos enforce line endings).

Cells: crlf × all 7 modes, all 13 lines (91 cells; optional check lineEndingsPreserved false).

Repro: a CRLF-only pom.xml depending on commons-text 1.9, then scan --mode hosted or get --mode vendored. The
result has 30 lines, of which 13 end in bare \n: the whole inserted <repositories> block. The hosted version
rewrite itself keeps CRLF. Likely sources: insert_maven_repository (patch/redirect/mod.rs:6268, a \n-joined
block) and vendor/maven_repo.rs::repository_block. Other ecosystems' rewriters were not checked.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions