Skip to content

Commit

Permalink
✨ use UV_SYNC_ALL_EXTRAS env var in uv sync command
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgafni committed Oct 24, 2024
1 parent f533fe8 commit f4e7d27
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 25 deletions.
36 changes: 12 additions & 24 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/uv-cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2768,7 +2768,7 @@ pub struct SyncArgs {
///
/// Note that all optional dependencies are always included in the resolution; this option only
/// affects the selection of packages to install.
#[arg(long, conflicts_with = "extra")]
#[arg(long, env = EnvVars::UV_SYNC_ALL_EXTRAS, conflicts_with = "extra")]
pub all_extras: bool,

#[arg(long, overrides_with("all_extras"), hide = true)]
Expand Down
3 changes: 3 additions & 0 deletions crates/uv-static/src/env_vars.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ impl EnvVars {
/// Equivalent to the `--frozen` argument. Run without updating the `uv.lock` file.
pub const UV_FROZEN: &'static str = "UV_FROZEN";

/// Equivalent to the `--all-extras` argument. Install all extras.
pub const UV_SYNC_ALL_EXTRAS: &'static str = "UV_SYNC_ALL_EXTRAS";

/// Equivalent to the `--preview` argument. Enables preview mode.
pub const UV_PREVIEW: &'static str = "UV_PREVIEW";

Expand Down

0 comments on commit f4e7d27

Please sign in to comment.