Synthetica9 / nix-linter

Linter for the Nix expression language
BSD 3-Clause "New" or "Revised" License
158 stars 16 forks source link

Failure when linting `(x: import x)` #70

Open kip93 opened 1 year ago

kip93 commented 1 year ago

I was having an issue linting one of my expressions and managed to narrow it down. When running on the expression (x: import x) it fails with the error:

Possible nix-linter: <stdout>: commitAndReleaseBuffer: invalid argument (invalid character)

But when doing it on (x: import x {}) it works just fine.

Tested using 0.2.0.4 (nix run nixpkgs/release-22.11#nix-linter -- default.nix).