Skip to content

Extra trailing new-line at the end of Cargo.lock #7537

@petervaro

Description

@petervaro

Problem

I updated my toolchain (and unfortunately I don't know what the previous version was) and with the latest cargo every time it touches the Cargo.lock it adds 2 new-lines at the end of the file. (Just to be clear: it does not append 2 new-lines every time but the end result of the generation is 2 new-lines at the end of the file.)

The expectation is to have a single new-line at the end of the file.

Steps

  1. Delete Cargo.lock and possibly the target folder
  2. Run cargo build|run|test commands
  3. Inspect Cargo.lock

Notes

Output of cargo version: cargo 1.38.0 (23ef9a4ef 2019-08-20) but the same happens with cargo 1.40.0-nightly (3a9abe3f0 2019-10-15) as well

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions