mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 19:08:04 +00:00
Avoid showing lower-bound warning outside of explicit lock and sync (#8234)
## Summary We shouldn't show these in `uv add`, especially when the thing we're adding is about to have a lower-bound put on it. Now, we only show these when the user runs `uv lock` or `uv sync`.
This commit is contained in:
parent
2153c6ac0d
commit
59003cb021
25 changed files with 117 additions and 55 deletions
8
crates/uv-configuration/src/bounds.rs
Normal file
8
crates/uv-configuration/src/bounds.rs
Normal file
|
@ -0,0 +1,8 @@
|
|||
#[derive(Debug, Default, Copy, Clone)]
|
||||
pub enum LowerBound {
|
||||
/// Allow missing lower bounds.
|
||||
#[default]
|
||||
Allow,
|
||||
/// Warn about missing lower bounds.
|
||||
Warn,
|
||||
}
|
|
@ -1,4 +1,5 @@
|
|||
pub use authentication::*;
|
||||
pub use bounds::*;
|
||||
pub use build_options::*;
|
||||
pub use concurrency::*;
|
||||
pub use config_settings::*;
|
||||
|
@ -20,6 +21,7 @@ pub use trusted_publishing::*;
|
|||
pub use vcs::*;
|
||||
|
||||
mod authentication;
|
||||
mod bounds;
|
||||
mod build_options;
|
||||
mod concurrency;
|
||||
mod config_settings;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue