diff --git a/crates/uv/tests/lock.rs b/crates/uv/tests/lock.rs index 7dfd3ea9e33a..8800531998b1 100644 --- a/crates/uv/tests/lock.rs +++ b/crates/uv/tests/lock.rs @@ -1442,13 +1442,14 @@ fn lock_dependency_extra() -> Result<()> { // Re-run with `--locked`. uv_snapshot!(context.filters(), context.lock().arg("--locked"), @r###" - success: true - exit_code: 0 + success: false + exit_code: 2 ----- stdout ----- ----- stderr ----- warning: `uv lock` is experimental and may change without warning Resolved 10 packages in [TIME] + error: The lockfile at `uv.lock` needs to be updated, but `--locked` was provided. To update the lockfile, run `uv lock`. "###); // Install from the lockfile. @@ -1689,13 +1690,14 @@ fn lock_conditional_dependency_extra() -> Result<()> { // Re-run with `--locked`. uv_snapshot!(context.filters(), context.lock().arg("--locked"), @r###" - success: true - exit_code: 0 + success: false + exit_code: 2 ----- stdout ----- ----- stderr ----- warning: `uv lock` is experimental and may change without warning Resolved 7 packages in [TIME] + error: The lockfile at `uv.lock` needs to be updated, but `--locked` was provided. To update the lockfile, run `uv lock`. "###); // Install from the lockfile. @@ -1724,13 +1726,14 @@ fn lock_conditional_dependency_extra() -> Result<()> { // Re-run with `--locked`. uv_snapshot!(context.filters(), context.lock().arg("--locked"), @r###" - success: true - exit_code: 0 + success: false + exit_code: 2 ----- stdout ----- ----- stderr ----- warning: `uv lock` is experimental and may change without warning Resolved 7 packages in [TIME] + error: The lockfile at `uv.lock` needs to be updated, but `--locked` was provided. To update the lockfile, run `uv lock`. "###); // Install from the lockfile. @@ -1891,6 +1894,7 @@ fn lock_dependency_non_existent_extra() -> Result<()> { source = { editable = "." } dependencies = [ { name = "flask" }, + { name = "flask" }, ] [[package]]