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

Expose configuration option to select which link type to use #3214

Open
chaubold opened this issue Feb 26, 2025 · 1 comment
Open

Expose configuration option to select which link type to use #3214

chaubold opened this issue Feb 26, 2025 · 1 comment

Comments

@chaubold
Copy link

Problem description

Environments are constructed by linking the respective packages from the cache in the environment folder. If multiple environments use the same packages, they all link to the same package in the cache.

Rattler currently uses reflinks or hardlinks by default, and thus also Pixi.

In a Docker container, there can be an issue with hardlinks though:

If multiple environments are created with separate RUN commands in the Dockerfile, they end up in separate layers. Hardlinking between Docker image layers does not work, so Docker duplicates the files and creates full copies, blowing up the image size.

It would be great to have an option to force Pixi to use symlinks, because these do work across Docker image layers. I've created a corresponding feature request in rattler which could then be exposed by Pixi.

@chaubold
Copy link
Author

I found a feature request that goes in a similar direction, maybe they can be addressed together: #3149

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

1 participant