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

Configurable environment location #2365

Closed
opcode81 opened this issue Oct 28, 2024 · 5 comments
Closed

Configurable environment location #2365

opcode81 opened this issue Oct 28, 2024 · 5 comments

Comments

@opcode81
Copy link
Contributor

opcode81 commented Oct 28, 2024

Problem description

I am aware that it was a deliberate design decision to not allow the location to be configurable, as this "keeps your machine and your project clean and isolated from each other, and makes it easy to clean up after a project is done."

The problem with your assumptions is that while they may fit your needs, they may not align with those of others.
Environments are huge (often >10 GB), the project source code is small. I keep source code and project resources on a RAID drive for redundancy, but not the envs. You are completely shifting the balance of content in the project folders. The envs are recreatable at any time, yet typically make up over 90% of a project folder. And I back up the project folders (source code and resources) as well (they aren't usually ever "done" and ready for deletion). Why would I waste backup space on something I can recreate in two minutes and which only works on one type of platform?

I would kindly request that you reconsider this decision and allow the location to be configured.

@olivier-lacroix
Copy link
Contributor

I believe you are looking for detached environments: https://pixi.sh/latest/reference/pixi_configuration/#detached-environments

@opcode81
Copy link
Contributor Author

Thank you very much, that's what I was looking for.
I would suggest to update the documentation here, which explicitly states that it's not possible.

@olivier-lacroix
Copy link
Contributor

Ah yes indeed @opcode81 . Would you be willing to create a PR to fix this by any chance?

opcode81 added a commit to opcode81/pixi that referenced this issue Oct 29, 2024
- Remove statement about .pixi/env being the only possible location
- Add pointer to detached-environments instead
@opcode81
Copy link
Contributor Author

Sure, PR added: #2370

@olivier-lacroix
Copy link
Contributor

Thanks a lot @opcode81 !

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