Allow uv pip sync to clear an environment with opt-in (#4517)

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

Open to some deliberation about the opt-in strategy here.
This commit is contained in:
Zanie Blue 2024-07-02 09:14:27 -04:00 committed by GitHub
parent d9f389a58d
commit 2c0cb6e021
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 116 additions and 7 deletions

View file

@ -165,6 +165,7 @@ pub struct PipOptions {
pub extra: Option<Vec<ExtraName>>,
pub all_extras: Option<bool>,
pub no_deps: Option<bool>,
pub allow_empty_requirements: Option<bool>,
pub resolution: Option<ResolutionMode>,
pub prerelease: Option<PreReleaseMode>,
pub output_file: Option<PathBuf>,