-
Notifications
You must be signed in to change notification settings - Fork 379
fix: input globs normalisation and force reinstall #4931
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
base: main
Are you sure you want to change the base?
Conversation
| // If a simple rename fails (e.g., across filesystems), fall back to copy+remove. | ||
| if let Err(_e) = fs_err::rename(&package_path, &dest_path) { | ||
| fs_err::copy(&package_path, &dest_path).into_diagnostic()?; | ||
| fs_err::remove_file(&package_path).into_diagnostic()?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need to remove cached artefact
ruben-arts
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't test it yet but, could you take a look at the tests? The error seems related.
|
|
||
|
|
||
| @pytest.mark.slow | ||
| def test_install_source_package_with_force_reinstall( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you reduce the impact of this test on our CI time, this is taking 16s where only one test is slower than that.
Some ideas would be a really basic python package
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only by moving this test to the pixi-integration-tests repo
|
|
||
|
|
||
| @pytest.mark.slow | ||
| def test_install_source_package_with_force_reinstall( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can make this test use the in-memory backend instead of actually installing something?
Description
This PR contains two fixes inside (and one improvement)
recipe/..which would be ignored. Instead, they should be normalized as "" ( current dir ) for which we will use ** glob.--force-reinstallnow indeed triggers entire source rebuild.pixi build( which will bypass using cache ), we now cache the result of a build. This was discovered when testing the global installFixes #4844
How Has This Been Tested?
Checklist: