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:
Charlie Marsh 2024-10-15 17:49:40 -07:00 committed by GitHub
parent 2153c6ac0d
commit 59003cb021
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
25 changed files with 117 additions and 55 deletions

View 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,
}

View file

@ -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;