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

feat: Allow user to set the cache directory #683

Merged
merged 1 commit into from
Jan 18, 2024

Conversation

ruben-arts
Copy link
Contributor

Closes #681

This adds the ability to set the cache dir using an environment variable:

export PIXI_CACHE_DIR=/path/to/cache
# OR 
export RATTLER_CACHE_DIR=/path/to/cache

I added the RATTLER_CACHE_DIR so that we could use that in all our libraries so that it gets shared (like it does before this change)
I added the PIXI_CACHE_DIR to not confuse users that don't have any knowledge that rattler is our backend.

@baszalmstra baszalmstra merged commit 7b2cc5f into prefix-dev:main Jan 18, 2024
9 checks passed
@amirhosseindavoody
Copy link

Thanks for adding this feature.

Is there a central list of all pixi related environment variables?

@ruben-arts
Copy link
Contributor Author

Thanks for adding this feature.

Is there a central list of all pixi related environment variables?

No sorry, the docs could use some extra love

@amirhosseindavoody
Copy link

I'll see if I can add the doc page.

Is there a guideline for documentation contributions?

@ruben-arts
Copy link
Contributor Author

Cool, no it's mostly me writing down what I can think of. Some outsider help would be awesome. Open to ideas!

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

Successfully merging this pull request may close these issues.

Change default cache directory
4 participants