Skip to content

Preserve line breaks in poetry.lock (regression) #7527

@extrwi

Description

@extrwi
  • Poetry version: 1.3.2
  • Python version: 3.11.1
  • OS version and name: Windows 10
  • I am on the latest stable Poetry version, installed using a recommended method.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have consulted the FAQ and blog for any relevant entries or release notes.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option) and have included the output below.

Issue

When generating poetry.lock in mixed environments (e.g. Windows and Linux), CRLF gets replaced by LF and vice versa. This had already been reported and supposedly fixed before (#1488), but probably regressed during the introduction of tomli (#6562). I couldn't find any special treatment for line endings of poetry.lock in poetry's code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working as expectedstatus/triageThis issue needs to be triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions