--from-file does not accept \r\n line separators on Windows #1860
Closed
Description
Describe the bug
PS > Get-Content -Raw .\helmfile.yaml | yq --from-file patch.yq
Error: 7:2: invalid input text "\r\n|\nselect(.kind..."
where patch.yq
has Windows Style CrLf
line endings.
Also note that yq
seems to be very sensitive of the Encoding of the file specified via --from-file
. It does not accept UTF-16 files (which my PowerShell produces by default), and it does not accept a UTF-8 file with BOM.
Version of yq: 4.35.2
Operating system: Windows 10 22H2
Installed via: binary release
Command
The command you ran:
Get-Content -Raw .\helmfile.yaml | yq --from-file patch.yq