netfs-redirect = "always" does not redirect pkgs cache to local node storage
Checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pixi, using
pixi --version.
Reproducible example
Commands I ran and their output:
pixi install
WARN cache for DetachedEnvironments at /cephyr/users/username/Vera/.cache/rattler/cache/envs is on a network/parallel filesystem (NFS/SMB/FUSE/BeeGFS/Lustre/GPFS/CephFS), redirected to /local/tmp.10281875/pixi-cache-username/envs for this run. Set [cache.detached-environments] in config.toml or PIXI_CACHE_DIR to override, or [cache.netfs-redirect] = "never" to keep the original path.
WARN cache for Repodata at /cephyr/users/username/Vera/.cache/rattler/cache/repodata is on a network/parallel filesystem (NFS/SMB/FUSE/BeeGFS/Lustre/GPFS/CephFS), redirected to /local/tmp.10281875/pixi-cache-username/repodata for this run. Set [cache.repodata] in config.toml or PIXI_CACHE_DIR to override, or [cache.netfs-redirect] = "never" to keep the original path.
WARN cache for PypiWheels at /cephyr/users/username/Vera/.cache/rattler/cache/uv-cache is on a network/parallel filesystem (NFS/SMB/FUSE/BeeGFS/Lustre/GPFS/CephFS), redirected to /local/tmp.10281875/pixi-cache-username/uv-cache for this run. Set [cache.pypi-wheels] in config.toml or PIXI_CACHE_DIR to override, or [cache.netfs-redirect] = "never" to keep the original path.
⠂ preparing packages [────────────────────] 0/319 llvmlite (+318) @ 0B/s
***Removing the rest***
pixi.toml/pyproject.toml file that reproduces my issue:
detached-environments = true
[cache]
netfs-redirect = "always"pixi info output:
WARN cache for DetachedEnvironments at /cephyr/users/username/Vera/.cache/rattler/cache/envs is on a network/parallel filesystem (NFS/SMB/FUSE/BeeGFS/Lustre/GPFS/CephFS), redirected to /local/tmp.10281875/pixi-cache-username/envs for this run. Set [cache.detached-environments] in config.toml or PIXI_CACHE_DIR to override, or [cache.netfs-redirect] = "never" to keep the original path.
System
------------
Pixi version: 0.80.0
TLS backend: rustls
Platform: linux-64
Virtual packages: __unix=0=0
: __linux=5.14.0=0
: __glibc=2.39=0
: __archspec=1=zen4
Cache dir: /cephyr/users/username/.cache/rattler/cache
Auth storage: /cephyr/users/username/Vera/.rattler/credentials.json
Config locations: /cephyr/users/username/Vera/.pixi/config.toml
Other files (e.g. script files, source files, etc.):
Issue description
Setting netfs-redirect = "always" does not redirect the pkgs-cache to the node local storage when the default is on a network file system (cephyr). All other caches appear to be redirected to the local node storage.
Expected behavior
From the documentation I expected that all caches would be redirected to local node storage when setting netfs-redirect = "always".
A current workaround is to manually set the PIXI_CACHE_DIR, but having pixi doing this automatically is very neat.
Source: prefix-dev/pixi