getgrit / gritql

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

Read-only filesystem error #535

Closed musjj closed 1 month ago

musjj commented 1 month 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 1 month ago

Can you try running grit init first?

Please share the output of grit doctor.

musjj commented 1 month 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
...
morgante commented 1 month ago

This will be fixed in the next release. Note you will need to run grit init to initialize a local (writable) dir to store gritmodules which we download from GitHub.

collinc777 commented 2 weeks ago

I'm getting this error when trying run the gritql in the Grit: Search with GritQL window. I've previously setup nix on my mac

morgante commented 2 weeks ago

@collinc777 Can you try running grit doctor and grit apply "something" from the CLI?

collinc777 commented 2 weeks ago
grit doctor
Client environment
  OS: macos
  Architecture: aarch64
  Build SHA: 20f89f066662e963333cdf3f01eae731f7fda06f
Configuration
  Expected location: /opt/homebrew/lib/node_modules/@getgrit/cli/node_modules/manifests.json
  Config: local config at /Users/collincaram/projects/scadmin/.grit
  Existing Grit modules dir: /Users/collincaram/projects/scadmin/.grit/.gritmodules
  Grit API URL: https://api2.grit.io (override by setting GRIT_API_URL)
  Grit GraphQL API URL: https://grit-prod-central.hasura.app/v1 (override by setting GRAPHQL_API_URL)
  Grit App URL: https://app.grit.io (override by setting GRIT_APP_URL)
Authentication
  You are not authenticated.
Installed binaries
  gouda: not installed. Run grit install to install missing binaries
  workflow-runner: not installed. Run grit install to install missing binaries```
  grit apply hello_world
  Processed 2499 files and found 0 matches

(The 0 matches is expected)

collinc777 commented 6 days ago

should I open another ticket?

morgante commented 6 days ago

Sure.