Add uv sync --no-install-package to skip installation of specific packages (#6540)
Extends #6538 / #6539 See #4028 Allows excluding arbitrary packages from the sync.
This commit is contained in:
@@ -2292,6 +2292,14 @@ pub struct SyncArgs {
|
||||
#[arg(long)]
|
||||
pub no_install_workspace: bool,
|
||||
|
||||
/// Do not install the given package(s).
|
||||
///
|
||||
/// By default, all of the project's dependencies are installed into the environment. The
|
||||
/// `--no-install-package` option allows exclusion of specific packages. Note this can result
|
||||
/// in a broken environment, and should be used with caution.
|
||||
#[arg(long)]
|
||||
pub no_install_package: Vec<PackageName>,
|
||||
|
||||
/// Assert that the `uv.lock` will remain unchanged.
|
||||
///
|
||||
/// Requires that the lockfile is up-to-date. If the lockfile is missing or
|
||||
|
||||
Reference in New Issue
Block a user