oppiliappan / statix

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

config error: path error: stream did not contain valid UTF-8 #9

Closed SenchoPens closed 2 years ago

SenchoPens commented 2 years ago

Hi! Thanks for putting effort in this useful tool. I have an issue: after running nix shell git+https://git.peppe.rs/languages/statix, in my config directory:

$ statix check
config error: path error: stream did not contain valid UTF-8
oppiliappan commented 2 years ago

Hmm, seems to be caused by your secrets.nix file. The error produced is incorrect though, definitely not a path error.

oppiliappan commented 2 years ago

This has been fixed in v0.3.0. Files with invalid utf8 don't abruptly stop check anymore.