Invalidate cache when --config-settings change (#7139)

## Summary

If `--config-settings` are provided, we cache the built wheels under one
more subdirectory.

We _don't_ invalidate the actual source (i.e., trigger a re-download) or
metadata, though -- those can be reused even when `--config-settings`
change.

Closes https://github.com/astral-sh/uv/issues/7028.
This commit is contained in:
Charlie Marsh 2024-09-09 21:49:16 -04:00 committed by GitHub
parent fdf2ff5a51
commit a8bd0211e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 148 additions and 9 deletions

View file

@ -223,6 +223,7 @@ impl<'a> BuildContext for BuildDispatch<'a> {
&BuildOptions::default(),
self.hasher,
self.index_locations,
self.config_settings,
self.cache(),
venv,
&markers,