diff --git a/crates/uv/tests/it/edit.rs b/crates/uv/tests/it/edit.rs index 03360edf7..65a9dd023 100644 --- a/crates/uv/tests/it/edit.rs +++ b/crates/uv/tests/it/edit.rs @@ -13667,6 +13667,7 @@ fn add_build_dependencies_respect_locked_versions() -> Result<()> { ----- stdout ----- ----- stderr ----- + warning: The `build-dependency-strategy` setting is experimental and may change without warning. Pass `--preview-features prefer-locked-builds` to disable this warning. Resolved [N] packages in [TIME] "); @@ -13677,6 +13678,7 @@ fn add_build_dependencies_respect_locked_versions() -> Result<()> { ----- stdout ----- ----- stderr ----- + warning: The `build-dependency-strategy` setting is experimental and may change without warning. Pass `--preview-features prefer-locked-builds` to disable this warning. Added `child` to workspace members Resolved [N] packages in [TIME] × Failed to build `child @ file://[TEMP_DIR]/child` @@ -13697,6 +13699,7 @@ fn add_build_dependencies_respect_locked_versions() -> Result<()> { ----- stdout ----- ----- stderr ----- + warning: The `build-dependency-strategy` setting is experimental and may change without warning. Pass `--preview-features prefer-locked-builds` to disable this warning. Added `child` to workspace members Resolved [N] packages in [TIME] Prepared [N] packages in [TIME] @@ -13738,6 +13741,7 @@ fn add_build_dependencies_respect_locked_versions() -> Result<()> { ----- stdout ----- ----- stderr ----- + warning: The `build-dependency-strategy` setting is experimental and may change without warning. Pass `--preview-features prefer-locked-builds` to disable this warning. Resolved [N] packages in [TIME] Prepared [N] packages in [TIME] Uninstalled [N] packages in [TIME] @@ -13776,8 +13780,10 @@ fn add_build_dependencies_respect_locked_versions() -> Result<()> { ----- stderr ----- Resolved [N] packages in [TIME] Prepared [N] packages in [TIME] + Uninstalled [N] packages in [TIME] Installed [N] packages in [TIME] - + typing-extensions==4.12.2 + ~ child==0.1.0 (from file://[TEMP_DIR]/child) + + typing-extensions==4.10.0 "); Ok(()) diff --git a/crates/uv/tests/it/show_settings.rs b/crates/uv/tests/it/show_settings.rs index 65555ba56..d0a90780e 100644 --- a/crates/uv/tests/it/show_settings.rs +++ b/crates/uv/tests/it/show_settings.rs @@ -3317,6 +3317,7 @@ fn resolve_tool() -> anyhow::Result<()> { find_links: None, index_strategy: None, keyring_provider: None, + build_dependency_strategy: None, resolution: Some( LowestDirect, ), @@ -3373,6 +3374,7 @@ fn resolve_tool() -> anyhow::Result<()> { resolution: LowestDirect, sources: Enabled, upgrade: None, + build_dependency_strategy: Latest, }, compile_bytecode: false, reinstall: None, @@ -4384,7 +4386,7 @@ fn resolve_config_file() -> anyhow::Result<()> { | 1 | [project] | ^^^^^^^ - unknown field `project`, expected one of `required-version`, `native-tls`, `offline`, `no-cache`, `cache-dir`, `preview`, `python-preference`, `python-downloads`, `concurrent-downloads`, `concurrent-builds`, `concurrent-installs`, `index`, `index-url`, `extra-index-url`, `no-index`, `find-links`, `index-strategy`, `keyring-provider`, `allow-insecure-host`, `resolution`, `prerelease`, `fork-strategy`, `dependency-metadata`, `config-settings`, `config-settings-package`, `no-build-isolation`, `no-build-isolation-package`, `exclude-newer`, `link-mode`, `compile-bytecode`, `no-sources`, `upgrade`, `upgrade-package`, `reinstall`, `reinstall-package`, `no-build`, `no-build-package`, `no-binary`, `no-binary-package`, `python-install-mirror`, `pypy-install-mirror`, `python-downloads-json-url`, `publish-url`, `trusted-publishing`, `check-url`, `add-bounds`, `pip`, `cache-keys`, `override-dependencies`, `constraint-dependencies`, `build-constraint-dependencies`, `environments`, `required-environments`, `conflicts`, `workspace`, `sources`, `managed`, `package`, `default-groups`, `dependency-groups`, `dev-dependencies`, `build-backend` + unknown field `project`, expected one of `required-version`, `native-tls`, `offline`, `no-cache`, `cache-dir`, `preview`, `python-preference`, `python-downloads`, `concurrent-downloads`, `concurrent-builds`, `concurrent-installs`, `index`, `index-url`, `extra-index-url`, `no-index`, `find-links`, `index-strategy`, `keyring-provider`, `allow-insecure-host`, `resolution`, `prerelease`, `fork-strategy`, `dependency-metadata`, `config-settings`, `config-settings-package`, `no-build-isolation`, `no-build-isolation-package`, `exclude-newer`, `link-mode`, `compile-bytecode`, `no-sources`, `upgrade`, `upgrade-package`, `reinstall`, `reinstall-package`, `no-build`, `no-build-package`, `no-binary`, `no-binary-package`, `build-dependency-strategy`, `python-install-mirror`, `pypy-install-mirror`, `python-downloads-json-url`, `publish-url`, `trusted-publishing`, `check-url`, `add-bounds`, `pip`, `cache-keys`, `override-dependencies`, `constraint-dependencies`, `build-constraint-dependencies`, `environments`, `required-environments`, `conflicts`, `workspace`, `sources`, `managed`, `package`, `default-groups`, `dependency-groups`, `dev-dependencies`, `build-backend` " ); @@ -7320,7 +7322,7 @@ fn preview_features() { show_settings: true, preview: Preview { flags: PreviewFeatures( - PYTHON_INSTALL_DEFAULT | PYTHON_UPGRADE | JSON_OUTPUT | PYLOCK | ADD_BOUNDS, + PYTHON_INSTALL_DEFAULT | PYTHON_UPGRADE | JSON_OUTPUT | PYLOCK | ADD_BOUNDS | PREFER_LOCKED_BUILDS, ), }, python_preference: Managed, @@ -7390,6 +7392,7 @@ fn preview_features() { resolution: Highest, sources: Enabled, upgrade: None, + build_dependency_strategy: Latest, }, compile_bytecode: false, reinstall: None, @@ -7492,6 +7495,7 @@ fn preview_features() { resolution: Highest, sources: Enabled, upgrade: None, + build_dependency_strategy: Latest, }, compile_bytecode: false, reinstall: None, @@ -7524,7 +7528,7 @@ fn preview_features() { show_settings: true, preview: Preview { flags: PreviewFeatures( - PYTHON_INSTALL_DEFAULT | PYTHON_UPGRADE | JSON_OUTPUT | PYLOCK | ADD_BOUNDS, + PYTHON_INSTALL_DEFAULT | PYTHON_UPGRADE | JSON_OUTPUT | PYLOCK | ADD_BOUNDS | PREFER_LOCKED_BUILDS, ), }, python_preference: Managed, @@ -7594,6 +7598,7 @@ fn preview_features() { resolution: Highest, sources: Enabled, upgrade: None, + build_dependency_strategy: Latest, }, compile_bytecode: false, reinstall: None, @@ -7696,6 +7701,7 @@ fn preview_features() { resolution: Highest, sources: Enabled, upgrade: None, + build_dependency_strategy: Latest, }, compile_bytecode: false, reinstall: None, @@ -7798,6 +7804,7 @@ fn preview_features() { resolution: Highest, sources: Enabled, upgrade: None, + build_dependency_strategy: Latest, }, compile_bytecode: false, reinstall: None, @@ -7902,6 +7909,7 @@ fn preview_features() { resolution: Highest, sources: Enabled, upgrade: None, + build_dependency_strategy: Latest, }, compile_bytecode: false, reinstall: None,