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

Cache directory does not exist #3

Open
aspauldingcode opened this issue Aug 15, 2024 · 1 comment
Open

Cache directory does not exist #3

aspauldingcode opened this issue Aug 15, 2024 · 1 comment

Comments

@aspauldingcode
Copy link

nix run github:niksingh710/nsearch
[err]  ..... Cache directory does not exist
[info] .... Cache directory created
[err]  ..... db is not available
[info] Updating the local Database ..\/nix/store/i4n3c09xig86wysfvapvxj3r703ny9a2-nsearch/bin/nsearch: line 58: 70820 Killed                  nix search nixpkgs --json "" 2> /dev/null > "$CACHE_DIR/db.json"

[info] .... Database updated

using nixos-asahi 24.05

@niksingh710
Copy link
Owner

rn m AFK for a week, so would not be able to resolve instanly.

But can you please provide me the output of the commands

echo $XDG_CACHE_HOME
echo $HOME

also for the mean time you can use NSEARCH_CACHE_DIR="$HOME/.cache/nsearch/" nix run github:niksingh710/nsearch

It will take a while in the first run as it will cache the db, but then it should be quick.

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

2 participants