mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-11 00:26:04 +00:00
Make warnings user-facing (#628)
## Summary Now, `puffin_warnings::warn_once` and `puffin_warnings::warn` will go to `stderr`, as long as the user isn't running under `--quiet`. Previously, these went through `tracing`, and so were only visible when running under `--verbose`.
This commit is contained in:
parent
490fb55ac5
commit
a24eb57e93
16 changed files with 95 additions and 66 deletions
|
|
@ -9,8 +9,8 @@ use pep508_rs::MarkerEnvironment;
|
|||
use platform_tags::{TagPriority, Tags};
|
||||
use puffin_client::SimpleMetadata;
|
||||
use puffin_interpreter::Interpreter;
|
||||
use puffin_macros::warn_once;
|
||||
use puffin_normalize::PackageName;
|
||||
use puffin_warnings::warn_once;
|
||||
use pypi_types::Yanked;
|
||||
|
||||
use crate::file::{DistFile, SdistFile, WheelFile};
|
||||
|
|
@ -64,7 +64,7 @@ impl VersionMap {
|
|||
}
|
||||
None => {
|
||||
warn_once!(
|
||||
"{} is missing an upload date, but user provided {}",
|
||||
"{} is missing an upload date, but user provided: {}",
|
||||
file.filename,
|
||||
exclude_newer,
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue