diff --git a/crates/uv/tests/it/lock.rs b/crates/uv/tests/it/lock.rs index fa68c22945d9e..92bebd6fa8d55 100644 --- a/crates/uv/tests/it/lock.rs +++ b/crates/uv/tests/it/lock.rs @@ -10765,6 +10765,7 @@ fn lock_mismatched_sources() -> Result<()> { /// /// See: #[test] +#[cfg(feature = "git")] fn lock_mismatched_versions() -> Result<()> { let context = TestContext::new("3.12"); diff --git a/crates/uv/tests/it/pip_install.rs b/crates/uv/tests/it/pip_install.rs index 167e959025f96..7728d97439f48 100644 --- a/crates/uv/tests/it/pip_install.rs +++ b/crates/uv/tests/it/pip_install.rs @@ -6812,6 +6812,7 @@ fn verify_hashes_editable() -> Result<()> { } #[test] +#[cfg(feature = "git")] fn tool_uv_sources() -> Result<()> { let context = TestContext::new("3.12"); // Use a subdir to test path normalization. @@ -8260,6 +8261,7 @@ fn cyclic_build_dependency() { } #[test] +#[cfg(feature = "git")] fn direct_url_json_git_default() -> Result<()> { let context = TestContext::new("3.12"); let requirements_txt = context.temp_dir.child("requirements.txt"); @@ -8297,6 +8299,7 @@ fn direct_url_json_git_default() -> Result<()> { } #[test] +#[cfg(feature = "git")] fn direct_url_json_git_tag() -> Result<()> { let context = TestContext::new("3.12"); let requirements_txt = context.temp_dir.child("requirements.txt"); diff --git a/crates/uv/tests/it/run.rs b/crates/uv/tests/it/run.rs index d2dbc41ce01a0..63e4ca7bc6c53 100644 --- a/crates/uv/tests/it/run.rs +++ b/crates/uv/tests/it/run.rs @@ -581,6 +581,7 @@ fn run_pythonw_script() -> Result<()> { /// Run a PEP 723-compatible script with `tool.uv` metadata. #[test] +#[cfg(feature = "git")] fn run_pep723_script_metadata() -> Result<()> { let context = TestContext::new("3.12"); diff --git a/crates/uv/tests/it/sync.rs b/crates/uv/tests/it/sync.rs index 025bb503b5b12..2c5b3f3b972a6 100644 --- a/crates/uv/tests/it/sync.rs +++ b/crates/uv/tests/it/sync.rs @@ -3183,6 +3183,7 @@ fn sync_custom_environment_path() -> Result<()> { } #[test] +#[cfg(feature = "git")] fn sync_workspace_custom_environment_path() -> Result<()> { let context = TestContext::new("3.12"); @@ -5276,6 +5277,7 @@ fn sync_derivation_chain_group() -> Result<()> { /// See: #[test] +#[cfg(feature = "git")] fn sync_stale_egg_info() -> Result<()> { let context = TestContext::new("3.13");