Log when the cache is disabled (#15828)

## Summary

This strikes me as fairly reasonable.

Closes https://github.com/astral-sh/uv/issues/15822.
This commit is contained in:
Charlie Marsh 2025-09-13 21:57:10 -04:00 committed by GitHub
parent f59d00b479
commit 0a2a7bc445
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -428,6 +428,9 @@ async fn run(mut cli: Cli) -> Result<ExitStatus> {
show_settings!(cache_settings, false);
// Configure the cache.
if cache_settings.no_cache {
debug!("Disabling the uv cache due to `--no-cache`");
}
let cache = Cache::from_settings(cache_settings.no_cache, cache_settings.cache_dir)?;
// Configure the global network settings.