diff --git a/src/cli/add.rs b/src/cli/add.rs index 87c639fbb..2cbd03744 100644 --- a/src/cli/add.rs +++ b/src/cli/add.rs @@ -117,7 +117,7 @@ pub async fn execute(args: Args) -> miette::Result<()> { spec_type, &dependency_config.platform, &dependency_config.feature_name(), - DependencyOverwriteBehavior::OverwriteIfExplicit, + DependencyOverwriteBehavior::Overwrite, &channel_config, )?; if added { @@ -136,7 +136,7 @@ pub async fn execute(args: Args) -> miette::Result<()> { &dependency_config.platform, &dependency_config.feature_name(), Some(args.editable), - DependencyOverwriteBehavior::OverwriteIfExplicit, + DependencyOverwriteBehavior::Overwrite, )?; if added { if spec.version_or_url.is_none() { diff --git a/tests/install_tests.rs b/tests/install_tests.rs index 2274b015e..b7385eb2f 100644 --- a/tests/install_tests.rs +++ b/tests/install_tests.rs @@ -500,7 +500,7 @@ async fn minimal_lockfile_update_pypi() { assert!(lock.contains_pep508_requirement( consts::DEFAULT_ENVIRONMENT_NAME, Platform::current(), - pep508_rs::Requirement::from_str("click==7.1.2").unwrap() + pep508_rs::Requirement::from_str("click>7.1.2").unwrap() )); }