-
Notifications
You must be signed in to change notification settings - Fork 2.2k
prisma format ends the file with a single CRLF on windows #8548
Copy link
Copy link
Open
Labels
bug/2-confirmedBug has been reproduced and confirmed.Bug has been reproduced and confirmed.good first issueAlways wanted to get involved in an open source project but don’t know where to begin? Welcome!Always wanted to get involved in an open source project but don’t know where to begin? Welcome!kind/bugA reported bug.A reported bug.tech/typescriptIssue for tech TypeScript.Issue for tech TypeScript.topic: prisma formatCLI: prisma formatCLI: prisma formattopic: windows
Metadata
Metadata
Assignees
Labels
bug/2-confirmedBug has been reproduced and confirmed.Bug has been reproduced and confirmed.good first issueAlways wanted to get involved in an open source project but don’t know where to begin? Welcome!Always wanted to get involved in an open source project but don’t know where to begin? Welcome!kind/bugA reported bug.A reported bug.tech/typescriptIssue for tech TypeScript.Issue for tech TypeScript.topic: prisma formatCLI: prisma formatCLI: prisma formattopic: windows
Bug description
On windows, I run
prisma formatand note the unusual file ending. The lines are all LF, but the very last line is CRLF.This causes issue on my Linux CI where it formats it ending in LF's only, causing a diff to occur and the build to fail.
How to reproduce
Expected behavior
LF's only - no CR's to exist at all
Prisma information
Environment & setup
Node 16
Windows/Linux
Prisma Version