-
Notifications
You must be signed in to change notification settings - Fork 458
Description
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
pixi install
Error: x failed to fetch scikit-learn-1.7.2-py312h91ac024_0.conda
|-> failed to interact with the package cache layer.
|-> package cache layer error: failed to rename temp directory 'C:\Dev\pixi-cache\pkgs.scikit-learn-1.7.2-
| py312h91ac024_0in0Z0R' to 'C:\Dev\pixi-cache\pkgs\scikit-learn-1.7.2-py312h91ac024_0': failed to rename file
| from C:\Dev\pixi-cache\pkgs.scikit-learn-1.7.2-py312h91ac024_0in0Z0R to C:\Dev\pixi-cache\pkgs\scikit-learn-
| 1.7.2-py312h91ac024_0: Access is denied. (os error 5)
`-> failed to rename temp directory 'C:\Dev\pixi-cache\pkgs.scikit-learn-1.7.2-py312h91ac024_0in0Z0R' to
'C:\Dev\pixi-cache\pkgs\scikit-learn-1.7.2-py312h91ac024_0': failed to rename file from C:\Dev\pixi-
cache\pkgs.scikit-learn-1.7.2-py312h91ac024_0in0Z0R to C:\Dev\pixi-cache\pkgs\scikit-learn-1.7.2-
py312h91ac024_0: Access is denied. (os error 5)
Issue description
On Windows, pixi install failed while fetching a package due to a cache-layer rename failure.
The failure occurs when Pixi tries to rename a temporary package directory to the final package-cache directory, and Windows returns:
Access is denied. (os error 5)
Clearing the cache solved the issue, so this seems like a Pixi cache-handling robustness bug rather than a package-content issue.
This also happens in the default cache directory.
Expected behavior
pixi install