Open PaulGrandperrin opened 1 year ago
comma doesn't create any directories.
The more appropriate repo to report this in should be nix-index
but only if you've tested the newest version of nix-index, which you can do by using the flake in https://github.com/nix-community/nix-index-database which is where comma-with-db comes from.
Cc @Mic92
Does the error goes away if you set XDG_CACHE_HOME to some writable directory?
Hang on. This issue should get resolved when upgrading to nix-index 0.1.6: https://github.com/nix-community/nix-index-database/blob/9d2bcc47110b3b6217dfebd6761ba20bc78aedf2/nix-index-wrapper.nix#L24
Stable is on 0.1.5, so you would need to get it from unstable, backport it yourself or upgrade to nixos unstable.
Then https://github.com/nix-community/nix-index-database/blob/9d2bcc47110b3b6217dfebd6761ba20bc78aedf2/comma-wrapper.nix#L28 is wrong? And should be checking nix-index version
This is the nix-index version: https://github.com/nix-community/nix-index-database/blob/9d2bcc47110b3b6217dfebd6761ba20bc78aedf2/comma-wrapper.nix#L25
This is what the wrapper looks like:
#! /nix/store/vqvj60h076bhqj6977caz0pfxs6543nb-bash-5.2-p15/bin/bash -e
export NIX_INDEX_DATABASE='/nix/store/mdpqxk0k4mgisd4p4r3haha4szk347kh-nix-index-with-db-0.1.7/share/cache/nix-index'
exec "/nix/store/g5w2prb7nml7kwvnn6572z3h8hq39cs8-nix-index-0.1.7/bin/nix-locate" "$@"
Hi, I'm running comma from nixos-23.05 and I get this error: