mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-24 05:35:04 +00:00
Make --frozen
and --no-sources
conflicting options (#12671)
Alternatively, we could just warn. Closes https://github.com/astral-sh/uv/issues/12653.
This commit is contained in:
parent
f401d9ba8f
commit
8bb5b63009
1 changed files with 6 additions and 6 deletions
|
@ -3024,7 +3024,7 @@ pub struct RunArgs {
|
|||
/// source of truth. If the lockfile is missing, uv will exit with an error. If the
|
||||
/// `pyproject.toml` includes changes to dependencies that have not been included in the
|
||||
/// lockfile yet, they will not be present in the environment.
|
||||
#[arg(long, env = EnvVars::UV_FROZEN, value_parser = clap::builder::BoolishValueParser::new(), conflicts_with = "locked")]
|
||||
#[arg(long, env = EnvVars::UV_FROZEN, value_parser = clap::builder::BoolishValueParser::new(), conflicts_with_all = ["locked", "upgrade", "no_sources"])]
|
||||
pub frozen: bool,
|
||||
|
||||
/// Run the given path as a Python script.
|
||||
|
@ -3272,7 +3272,7 @@ pub struct SyncArgs {
|
|||
/// source of truth. If the lockfile is missing, uv will exit with an error. If the
|
||||
/// `pyproject.toml` includes changes to dependencies that have not been included in the
|
||||
/// lockfile yet, they will not be present in the environment.
|
||||
#[arg(long, env = EnvVars::UV_FROZEN, value_parser = clap::builder::BoolishValueParser::new(), conflicts_with = "locked")]
|
||||
#[arg(long, env = EnvVars::UV_FROZEN, value_parser = clap::builder::BoolishValueParser::new(), conflicts_with_all = ["locked", "upgrade", "no_sources"])]
|
||||
pub frozen: bool,
|
||||
|
||||
/// Perform a dry run, without writing the lockfile or modifying the project environment.
|
||||
|
@ -3526,7 +3526,7 @@ pub struct AddArgs {
|
|||
/// Add dependencies without re-locking the project.
|
||||
///
|
||||
/// The project environment will not be synced.
|
||||
#[arg(long, env = EnvVars::UV_FROZEN, value_parser = clap::builder::BoolishValueParser::new(), conflicts_with = "locked")]
|
||||
#[arg(long, env = EnvVars::UV_FROZEN, value_parser = clap::builder::BoolishValueParser::new(), conflicts_with_all = ["locked", "upgrade", "no_sources"])]
|
||||
pub frozen: bool,
|
||||
|
||||
/// Prefer the active virtual environment over the project's virtual environment.
|
||||
|
@ -3631,7 +3631,7 @@ pub struct RemoveArgs {
|
|||
/// Remove dependencies without re-locking the project.
|
||||
///
|
||||
/// The project environment will not be synced.
|
||||
#[arg(long, env = EnvVars::UV_FROZEN, value_parser = clap::builder::BoolishValueParser::new(), conflicts_with = "locked")]
|
||||
#[arg(long, env = EnvVars::UV_FROZEN, value_parser = clap::builder::BoolishValueParser::new(), conflicts_with_all = ["locked", "upgrade", "no_sources"])]
|
||||
pub frozen: bool,
|
||||
|
||||
#[command(flatten)]
|
||||
|
@ -3753,7 +3753,7 @@ pub struct TreeArgs {
|
|||
/// Display the requirements without locking the project.
|
||||
///
|
||||
/// If the lockfile is missing, uv will exit with an error.
|
||||
#[arg(long, env = EnvVars::UV_FROZEN, value_parser = clap::builder::BoolishValueParser::new(), conflicts_with = "locked")]
|
||||
#[arg(long, env = EnvVars::UV_FROZEN, value_parser = clap::builder::BoolishValueParser::new(), conflicts_with_all = ["locked", "upgrade", "no_sources"])]
|
||||
pub frozen: bool,
|
||||
|
||||
#[command(flatten)]
|
||||
|
@ -3983,7 +3983,7 @@ pub struct ExportArgs {
|
|||
/// Do not update the `uv.lock` before exporting.
|
||||
///
|
||||
/// If a `uv.lock` does not exist, uv will exit with an error.
|
||||
#[arg(long, env = EnvVars::UV_FROZEN, value_parser = clap::builder::BoolishValueParser::new(), conflicts_with = "locked")]
|
||||
#[arg(long, env = EnvVars::UV_FROZEN, value_parser = clap::builder::BoolishValueParser::new(), conflicts_with_all = ["locked", "upgrade", "no_sources"])]
|
||||
pub frozen: bool,
|
||||
|
||||
#[command(flatten)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue