mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 02:48:17 +00:00
Add debug message when skipping Python downloads (#14509)
# Description Several users, myself included, had some issues with Anki (recently migrated to uv). https://forums.ankiweb.net/t/bug-anki-25-07-fails-to-launch-on-linux/63475 zanieb came in and gave us pointers, including looking at our uv logs. https://github.com/ankitects/anki/pull/4074#issuecomment-3046992777 log: https://github.com/Grinkers/uv/pull/1#issuecomment-3047538135 The actual issue was that I had a system config in /etc/uv/uv.toml but uv wasn't giving useful feedback for its combining/unification. A higher level issue is that there's nice logs, however logging is initialized after! We want to log files read, but need to read the files to know what log level to use.7e48292fac/crates/uv-settings/src/lib.rs (L68)
7e48292fac/crates/uv/src/lib.rs (L354)
zanieb mentioned there's https://github.com/astral-sh/uv/issues/13123, so consider this a +1 to that. ## Result The end of the output will be: ``` DEBUG Downloads disabled. Skipping... DEBUG Released lock at `/tmp/uv-823c7b0e73da3e08.lock` error: No interpreter found for Python 3.13.5 in managed installations ``` Sorry for the minuscule sized PR. Feel free to close if there's a bigger logging pass. --------- Co-authored-by: Zanie Blue <contact@zanie.dev>
This commit is contained in:
parent
57338e558c
commit
1958aa26bd
1 changed files with 1 additions and 0 deletions
|
@ -112,6 +112,7 @@ impl PythonInstallation {
|
|||
&& client_builder.connectivity.is_online();
|
||||
|
||||
if !downloads_enabled {
|
||||
debug!("Python downloads are disabled. Skipping check for available downloads...");
|
||||
return Err(err);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue