Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comma tries to create a directory in /nix/store #62

Open
PaulGrandperrin opened this issue Sep 22, 2023 · 8 comments
Open

Comma tries to create a directory in /nix/store #62

PaulGrandperrin opened this issue Sep 22, 2023 · 8 comments

Comments

@PaulGrandperrin
Copy link

Hi,
I'm running comma from nixos-23.05 and I get this error:

NIX_PATH= , distrobox                                                                                        
error: creating directory '/nix/store/849qs729ij1x7vg454851frzyb0riz5c-comma-with-db-1.6.0/share/cache/nix': Read-only file system
@Artturin
Copy link
Member

Artturin commented Sep 22, 2023

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.

@Artturin
Copy link
Member

Cc @Mic92

@Mic92
Copy link
Member

Mic92 commented Sep 23, 2023

Does the error goes away if you set XDG_CACHE_HOME to some writable directory?

@Mic92
Copy link
Member

Mic92 commented Sep 23, 2023

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

@Mic92
Copy link
Member

Mic92 commented Sep 23, 2023

Stable is on 0.1.5, so you would need to get it from unstable, backport it yourself or upgrade to nixos unstable.

@Artturin
Copy link
Member

Artturin commented Sep 23, 2023

@Mic92
Copy link
Member

Mic92 commented Sep 23, 2023

@Mic92
Copy link
Member

Mic92 commented Sep 23, 2023

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"  "$@" 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants