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

Make --reinstall imply --refresh #5425

Merged
merged 3 commits into from
Jul 25, 2024
Merged

Conversation

charliermarsh
Copy link
Member

Summary

It's hard for me to imagine a scenario in which a user passed --reinstall, but wanted us to keep respecting cached data for a package. For example, to actually "rebuild and reinstall" an editable today, you have to pass both --reinstall and --refresh.

This PR makes --reinstall imply --refresh, so we always validate that the cached data is fresh.

Closes #5424.

@charliermarsh charliermarsh added enhancement New feature or improvement to existing functionality cli Related to the command line interface labels Jul 24, 2024
@charliermarsh
Copy link
Member Author

I guess it's still confusing that --refresh foo doesn't trigger a reinstall of foo if foo is editable.

@charliermarsh
Copy link
Member Author

But still an improvement.

Copy link
Member

@konstin konstin left a comment

Choose a reason for hiding this comment

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

That simplifies the different between --reinstall and --refresh a lot

Base automatically changed from charlie/cache-editable to main July 25, 2024 13:45
@charliermarsh charliermarsh merged commit d091932 into main Jul 25, 2024
55 checks passed
@charliermarsh charliermarsh deleted the charlie/refresh-reinstall branch July 25, 2024 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Related to the command line interface enhancement New feature or improvement to existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

--reinstall should imply --refresh
3 participants