Open tmplt opened 6 months ago
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/nix-flakes-and-line-endings/22065/10
MWE can very likely be reduced: git init
; trivially build a file containing CRLF; observe different hash depending on git attributes?
Describe the bug
On WSL2, CRLF line endings break flake build unless git attributes are overridden, usually resulting in a confusing
$'\r': command not found
error.Steps To Reproduce
In a NixOS-WSL instance, run
Expected behavior
devenv should be built without having to override git EOL attributes.
nix-env --version
outputnix-env (Nix) 2.18.1
Additional context
Previously reported at https://discourse.nixos.org/t/nix-flakes-and-line-endings/22065, but not strictly WSL2-related.
Priorities
Add :+1: to issues you find important.