mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 13:25:00 +00:00
Restore snapshot for sync_dry_run
(#14274)
In addition to our flake catch, keep a snapshot. Extends https://github.com/astral-sh/uv/pull/13817
This commit is contained in:
parent
1e02008d8b
commit
d27cec78b4
1 changed files with 15 additions and 0 deletions
|
@ -8173,6 +8173,8 @@ fn sync_dry_run() -> Result<()> {
|
|||
+ iniconfig==2.0.0
|
||||
");
|
||||
|
||||
// TMP: Attempt to catch this flake with verbose output
|
||||
// See https://github.com/astral-sh/uv/issues/13744
|
||||
let output = context.sync().arg("--dry-run").arg("-vv").output()?;
|
||||
let stderr = String::from_utf8_lossy(&output.stderr);
|
||||
assert!(
|
||||
|
@ -8181,6 +8183,19 @@ fn sync_dry_run() -> Result<()> {
|
|||
stderr
|
||||
);
|
||||
|
||||
uv_snapshot!(context.filters(), context.sync().arg("--dry-run"), @r"
|
||||
success: true
|
||||
exit_code: 0
|
||||
----- stdout -----
|
||||
|
||||
----- stderr -----
|
||||
Discovered existing environment at: .venv
|
||||
Resolved 2 packages in [TIME]
|
||||
Found up-to-date lockfile at: uv.lock
|
||||
Audited 1 package in [TIME]
|
||||
Would make no changes
|
||||
");
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue