This commit is contained in:
हिमांशु 2025-07-05 16:57:37 +05:30 committed by GitHub
commit 26d6e2ae70
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 0 deletions

View file

@ -3583,6 +3583,10 @@ pub struct AddArgs {
#[arg(long, env = EnvVars::UV_NO_SYNC, value_parser = clap::builder::BoolishValueParser::new(), conflicts_with = "frozen")]
pub no_sync: bool,
/// Disable file locking (flock) operations
#[arg(long, env = EnvVars::UV_UNSAGE_IGNORE_FLOCK, value_parser = clap::builder::BoolishValueParser::new())]
pub unsage_ignore_flock: bool,
/// Assert that the `uv.lock` will remain unchanged.
///
/// Requires that the lockfile is up-to-date. If the lockfile is missing or needs to be updated,

View file

@ -149,6 +149,9 @@ impl EnvVars {
/// Disable use of uv-managed Python versions.
pub const UV_NO_MANAGED_PYTHON: &'static str = "UV_NO_MANAGED_PYTHON";
/// Disable file locking (flock) operations or ignore
pub const UV_UNSAGE_IGNORE_FLOCK: &'static str = "UV_UNSAGE_IGNORE_FLOCK";
/// Equivalent to the
/// [`python-downloads`](../reference/settings.md#python-downloads) setting and, when disabled, the
/// `--no-python-downloads` option. Whether uv should allow Python downloads.

View file

@ -1353,6 +1353,7 @@ impl AddSettings {
tag,
branch,
no_sync,
unsage_ignore_flock,
locked,
frozen,
active,