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

fix: self-clobber when updating/downgrading packages #893

Merged
merged 6 commits into from
Oct 7, 2024

Conversation

wolfv
Copy link
Contributor

@wolfv wolfv commented Oct 4, 2024

This fixes an issue where if you install zlib=1.2 and then update to zlib=1.3 all files were detected as "clobbered".

This made changes really slow (e.g. when changing the version of Rust) because the un-clobbering is not really an optimized function and is expected to run only for a few files.

@wolfv wolfv changed the title fix self-clobber when updating/downgrading packages fix" self-clobber when updating/downgrading packages Oct 4, 2024
@wolfv wolfv changed the title fix" self-clobber when updating/downgrading packages fix: self-clobber when updating/downgrading packages Oct 4, 2024
Copy link
Collaborator

@baszalmstra baszalmstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

crates/rattler/src/install/clobber_registry.rs Outdated Show resolved Hide resolved
@wolfv
Copy link
Contributor Author

wolfv commented Oct 7, 2024

I pushed the same test here from #894 (locally it passes, as expected)>

@baszalmstra baszalmstra merged commit 7d692da into conda:main Oct 7, 2024
15 checks passed
This was referenced Oct 4, 2024
@wolfv wolfv deleted the self-clobber branch October 7, 2024 16:10
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

Successfully merging this pull request may close these issues.

2 participants