Skip to content

Commit

Permalink
fix uv remove warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ibraheemdev committed Jun 18, 2024
1 parent ddbd1e2 commit 8f103b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions crates/uv/src/commands/project/remove.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ pub(crate) async fn remove(
.filter(|deps| !deps.is_empty())
.is_some()
{
uv_warnings::warn_user!("`{req}` is not a development dependency; try calling `uv add` without the `--dev` flag");
uv_warnings::warn_user!("`{req}` is not a development dependency; try calling `uv remove` without the `--dev` flag");
}

anyhow::bail!("The dependency `{req}` could not be found in `dev-dependencies`");
Expand All @@ -65,7 +65,7 @@ pub(crate) async fn remove(
.is_some()
{
uv_warnings::warn_user!(
"`{req}` is a development dependency; try calling `uv add --dev`"
"`{req}` is a development dependency; try calling `uv remove --dev`"
);
}

Expand Down
6 changes: 3 additions & 3 deletions crates/uv/tests/edit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ fn add_remove_dev() -> Result<()> {
----- stderr -----
warning: `uv remove` is experimental and may change without warning.
warning: `anyio` is a development dependency; try calling `uv add --dev`
warning: `anyio` is a development dependency; try calling `uv remove --dev`
error: The dependency `anyio` could not be found in `dependencies`
"###);

Expand Down Expand Up @@ -619,8 +619,8 @@ fn add_remove_workspace() -> Result<()> {
----- stdout -----
----- stderr -----
Using Python 3.12.[X] interpreter at: /usr/bin/python3
Creating virtualenv at: [TEMP_DIR]/root/[VENV]/
Using Python 3.12.[X] interpreter at: [PYTHON-3.12]
Creating virtualenv at: [TEMP_DIR]/root/.venv
Resolved 2 packages in [TIME]
Downloaded 2 packages in [TIME]
Installed 2 packages in [TIME]
Expand Down

0 comments on commit 8f103b3

Please sign in to comment.