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

Enable env var to define cache dir #321

Merged
merged 6 commits into from
Dec 1, 2024

Conversation

Chemaclass
Copy link
Member

@Chemaclass Chemaclass commented Dec 1, 2024

📚 Description

Related: NixOS/nixpkgs#314348 (comment)

A cache directory is being created in the Nix store which is immutable.
Is there a way to configure this cache directory with an environment variable or some other thing?

This PR introduces an env variable that would override the full path of the cache dir where gacela cache files are stored.

🔖 Changes

  • Added GACELA_CACHE_DIR env variable to override where to place the cache files

🖼️ Demo

Using phel connected to my local gacela project with this PR changes to reproduce it and test it as well:

Screenshot 2024-12-01 at 11 54 12

@Chemaclass Chemaclass added the enhancement New feature or request label Dec 1, 2024
@Chemaclass Chemaclass self-assigned this Dec 1, 2024
@Chemaclass Chemaclass merged commit 9daba4c into main Dec 1, 2024
13 checks passed
@Chemaclass Chemaclass deleted the feat/custom-env-gacela-cache-dir branch December 1, 2024 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

2 participants