Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions crates/uv/src/commands/project/add.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,6 @@ pub(crate) async fn add(
printer: Printer,
preview: Preview,
) -> Result<ExitStatus> {
if bounds.is_some() && !preview.is_enabled(PreviewFeature::AddBounds) {
warn_user_once!(
"The `bounds` option is in preview and may change in any future release. Pass `--preview-features {}` to disable this warning.",
PreviewFeature::AddBounds
);
}

if !preview.is_enabled(PreviewFeature::ExtraBuildDependencies)
&& !settings.resolver.extra_build_dependencies.is_empty()
{
Expand Down
13 changes: 5 additions & 8 deletions crates/uv/tests/it/edit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6846,7 +6846,6 @@ fn add_script_bounds() -> Result<()> {
----- stdout -----

----- stderr -----
warning: The `bounds` option is in preview and may change in any future release. Pass `--preview-features add-bounds` to disable this warning.
Resolved 3 packages in [TIME]
");

Expand Down Expand Up @@ -14098,7 +14097,6 @@ fn add_bounds() -> Result<()> {
----- stdout -----

----- stderr -----
warning: The `bounds` option is in preview and may change in any future release. Pass `--preview-features add-bounds` to disable this warning.
Resolved 2 packages in [TIME]
Prepared 1 package in [TIME]
Installed 1 package in [TIME]
Expand Down Expand Up @@ -14138,7 +14136,6 @@ fn add_bounds() -> Result<()> {
----- stdout -----

----- stderr -----
warning: The `bounds` option is in preview and may change in any future release. Pass `--preview-features add-bounds` to disable this warning.
Resolved 4 packages in [TIME]
Prepared 2 packages in [TIME]
Installed 2 packages in [TIME]
Expand All @@ -14163,7 +14160,7 @@ fn add_bounds() -> Result<()> {
);

// Existing constraints take precedence over the bounds option
uv_snapshot!(context.filters(), context.add().arg("anyio").arg("--bounds").arg("minor").arg("--preview"), @"
uv_snapshot!(context.filters(), context.add().arg("anyio").arg("--bounds").arg("minor"), @"
success: true
exit_code: 0
----- stdout -----
Expand All @@ -14190,7 +14187,7 @@ fn add_bounds() -> Result<()> {
);

// Explicit constraints take precedence over the bounds option
uv_snapshot!(context.filters(), context.add().arg("anyio==4.2").arg("idna").arg("--bounds").arg("minor").arg("--preview"), @"
uv_snapshot!(context.filters(), context.add().arg("anyio==4.2").arg("idna").arg("--bounds").arg("minor"), @"
success: true
exit_code: 0
----- stdout -----
Expand Down Expand Up @@ -14221,8 +14218,8 @@ fn add_bounds() -> Result<()> {
"#
);

// Set bounds on the CLI and use `--preview` to silence the warning.
uv_snapshot!(context.filters(), context.add().arg("sniffio").arg("--bounds").arg("minor").arg("--preview"), @"
// Set bounds on the CLI.
uv_snapshot!(context.filters(), context.add().arg("sniffio").arg("--bounds").arg("minor"), @"
success: true
exit_code: 0
----- stdout -----
Expand Down Expand Up @@ -14271,7 +14268,7 @@ fn add_bounds_requirement_over_bounds_kind() -> Result<()> {
requires-python = ">=3.12"
"#})?;

uv_snapshot!(context.filters(), context.add().arg("anyio==4.2").arg("idna").arg("--bounds").arg("minor").arg("--preview"), @"
uv_snapshot!(context.filters(), context.add().arg("anyio==4.2").arg("idna").arg("--bounds").arg("minor"), @"
success: true
exit_code: 0
----- stdout -----
Expand Down
Loading