-
Notifications
You must be signed in to change notification settings - Fork 180
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
Task cache issues when broken symlink in the root folder, since v0.31 #2196
Comments
I just tried to debug with rattler, but could not reproduce the issue yet. |
@visr can you please try if you can reproduce the issue with the cache disabled? |
Disabling the cache doesn't seem to help: Deltares/Ribasim#1871 |
I think this the line which reports the error: https://github.com/conda/rattler/blob/0cacc4b66903aea0ce65e1c1283314b50440f6ae/crates/rattler_package_streaming/src/write.rs#L376 |
@Hofer-Julian unfortunately that's the code that would write a package so I think this might be unrelated. |
You are right, I debugged pixi on Ribasim and this PR is to blame: #2141 Since our last release, we follow symlinks when searching for files for task caching: Line 114 in 0317e0a
But actually that is only the symptom of the problem. When running with That's the reason why the broken symlink in |
Here is a small reproducer: https://github.com/Hofer-Julian/broken_symlink_pixi |
Here is an even smaller one that works easily on macOS: [project]
authors = ["Julian Hofer <[email protected]>"]
channels = ["conda-forge"]
description = "Add a short description here"
name = "broken_symlink"
platforms = ["linux-64", "osx-64", "osx-arm64"]
version = "0.1.0"
[tasks]
mklink = { cmd = "mkdir -p .pixi/envs/default && ln -s /broken .pixi/envs/default/broken" }
test = { cmd = "echo Hello", inputs = [".gitignore"], depends-on = ["mklink"] } |
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 init . pixi add gcc_impl_linux-64==14.1.0
Issue description
I noticed today in Deltares/Ribasim#1870 that the upgrade from pixi v0.30 to v0.31 broke some of our CI jobs on Ubuntu that install rust and its dependency
gcc_impl_linux-64
via pixi. When doing pixi run of different tasks, I regularly but not always run into:I don't have a clear reproducer, but by installing only
gcc_impl_linux-64==14.1.0
I do see that the referenced file is a broken symlink:This symlink is equally broken when I install this environment with pixi v0.30, but it seems like v0.31 doesn't like broken symlinks. Might be something that needs fixing in a feedstock instead.
Expected behavior
Like pixi v0.30 no file not found errors.
The text was updated successfully, but these errors were encountered: