libexpr: Deprecate CR and CRLF line endings

They are broken beyond repair, and barring a language version revision
this is our only option besides doing nothing about it.

Change-Id: I25fa4f032ca9b5ca67356946bcd889289583592e
This commit is contained in:
piegames
2025-02-28 16:17:17 +01:00
parent 5778998cfa
commit e38ad66ef7
12 changed files with 97 additions and 10 deletions
@@ -0,0 +1 @@
--extra-deprecated-features cr-line-endings
@@ -0,0 +1,7 @@
warning: CR (`\r`) and CRLF (`\r\n`) line endings found at «stdin»:7:21. Please inspect the file and normalize it to use LF (`\n`) line endings instead. Use --extra-deprecated-features cr-line-endings to silence this warning.
error: CR (`\r`) and CRLF (`\r\n`) line endings are not supported. Please inspect the file and normalize it to use LF (`\n`) line endings instead. Use --extra-deprecated-features cr-line-endings to silence this warning.
at «stdin»:14:15:
13| # translated to LF.
14| foo = "multi
| ^
15| line
+1
View File
@@ -0,0 +1 @@
parse-okay-crlf.nix
@@ -0,0 +1 @@
--extra-deprecated-features cr-line-endings
@@ -0,0 +1 @@
--extra-deprecated-features cr-line-endings
@@ -0,0 +1 @@
--extra-deprecated-features cr-line-endings