oppiliappan / statix

lints and suggestions for the nix programming language
https://git.peppe.rs/languages/statix/about
MIT License
552 stars 21 forks source link

statix check exits always with exit code 1 #35

Closed Gerschtli closed 2 years ago

Gerschtli commented 2 years ago

Reproducible with the following steps:

$ nix build github:nerdypepper/statix
$ echo "{}" > file.nix
$ ./result/bin/statix check -- x.nix
$ ./result/bin/statix check --stdin < x.nix

The last two commands fail with exit code 1 and no output. I was not able to get a working output out of statix check so far..

Did I miss something or is this a bug?

oppiliappan commented 2 years ago

Oo, weird bug, thanks for the report, I have just pushed a fix to master, could you give that a go and let me know if it works as expected?

I was damn sure it worked as expected I tested though...

Gerschtli commented 2 years ago

Yes, that fixed it! Thank you for your quick response :) Would love to see that fix released and updated in nixpkgs :)