Avoid un-strict syncing by-default for build isolation (#6606)

## Summary

Closes https://github.com/astral-sh/uv/issues/6580.

Closes https://github.com/astral-sh/uv/issues/6599.
This commit is contained in:
Charlie Marsh 2024-08-26 14:04:58 -04:00 committed by GitHub
parent a7850d2a1c
commit 023acbe4b0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 130 additions and 18 deletions

View file

@ -2261,10 +2261,7 @@ pub struct SyncArgs {
/// Do not remove extraneous packages present in the environment.
///
/// When enabled, uv will make the minimum necessary changes to satisfy the requirements.
///
/// By default, syncing will remove any extraneous packages from the environment, unless
/// `--no-build-isolation` is enabled, in which case extra packages are considered necessary for
/// builds.
/// By default, syncing will remove any extraneous packages from the environment
#[arg(long, overrides_with("exact"), alias = "no-exact")]
pub inexact: bool,