getgrit / gritql

GritQL is a query language for searching, linting, and modifying code.
https://docs.grit.io/
MIT License
3.04k stars 71 forks source link

Read-only filesystem error #535

Open musjj opened 4 hours ago

musjj commented 4 hours ago

I'm trying to run gritql on NixOS, but I'm getting this error:

$ grit apply ...
Error: Read-only file system (os error 30)

Of course, I'm not currently in a read-only filesystem, but in my normal project directory.

Is gritql trying to modify files in the installation directory here? If so, this means that gritql currently cannot be packaged in most Linux distributions.

morgante commented 3 hours ago

Can you try running grit init first?

Please share the output of grit doctor.

musjj commented 3 hours ago

Both of the commands returns the same error unfortunately:

$ grit doctor
Error: Read-only file system (os error 30)

$ grit init
Error: Read-only file system (os error 30)

But --help works:

$ grit --help
Software maintenance on autopilot, from grit.io
...