Add uv sync --no-install-project to skip installation of the project (#6538)
See #4028 A smaller version of https://github.com/astral-sh/uv/pull/6398 Co-authored-by: Charlie Marsh <charlie.r.marsh@gmail.com>
This commit is contained in:
@@ -2272,6 +2272,16 @@ pub struct SyncArgs {
|
||||
#[arg(long, overrides_with("inexact"), hide = true)]
|
||||
pub exact: bool,
|
||||
|
||||
/// Do not install the current project.
|
||||
///
|
||||
/// By default, the current project is installed into the environment with all of its
|
||||
/// dependencies. The `--no-install-project` option allows the project to be excluded, but all of
|
||||
/// its dependencies are still installed. This is particularly useful in situations like
|
||||
/// building Docker images where installing the project separately from its dependencies
|
||||
/// allows optimal layer caching.
|
||||
#[arg(long)]
|
||||
pub no_install_project: bool,
|
||||
|
||||
/// 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