diff --git a/crates/uv/src/commands/project/sync.rs b/crates/uv/src/commands/project/sync.rs index 3bf80bcfa..13f9da3ec 100644 --- a/crates/uv/src/commands/project/sync.rs +++ b/crates/uv/src/commands/project/sync.rs @@ -213,7 +213,7 @@ pub(crate) async fn sync( environment: EnvironmentReport::from(&environment), action: SyncAction::from(&environment), target: TargetName::from(&target), - packages: Vec::new(), + changes: Vec::new(), }; // Show the intermediate results if relevant @@ -302,7 +302,7 @@ pub(crate) async fn sync( project: None, script: Some(ScriptReport::from(script)), sync: SyncReport { - packages: PackageChangeReport::from_changelog(&changelog), + changes: PackageChangeReport::from_changelog(&changelog), ..sync_report }, lock: None, @@ -436,7 +436,7 @@ pub(crate) async fn sync( project: target.project().map(ProjectReport::from), script: target.script().map(ScriptReport::from), sync: SyncReport { - packages: PackageChangeReport::from_changelog(&changelog), + changes: PackageChangeReport::from_changelog(&changelog), ..sync_report }, lock: Some(lock_report), @@ -1264,7 +1264,7 @@ struct SyncReport { action: SyncAction, /// The packages that changed during the sync. #[serde(default)] - packages: Vec, + changes: Vec, // We store these fields so the report can format itself self-contained, but the outer // [`Report`] is intended to include these in user-facing output @@ -1287,7 +1287,7 @@ impl SyncReport { let Self { environment, action, - packages: _, + changes: _, dry_run, target, } = self; diff --git a/crates/uv/tests/it/sync.rs b/crates/uv/tests/it/sync.rs index 6a70d07c6..fc0a52e40 100644 --- a/crates/uv/tests/it/sync.rs +++ b/crates/uv/tests/it/sync.rs @@ -421,7 +421,7 @@ fn sync_json() -> Result<()> { } }, "action": "check", - "packages": [ + "changes": [ { "name": "iniconfig", "version": "2.0.0", @@ -472,7 +472,7 @@ fn sync_json() -> Result<()> { } }, "action": "check", - "packages": [] + "changes": [] }, "lock": { "path": "[TEMP_DIR]/uv.lock", @@ -512,7 +512,7 @@ fn sync_json() -> Result<()> { } }, "action": "check", - "packages": [] + "changes": [] }, "lock": { "path": "[TEMP_DIR]/uv.lock", @@ -579,7 +579,7 @@ fn sync_json() -> Result<()> { } }, "action": "check", - "packages": [] + "changes": [] }, "lock": { "path": "[TEMP_DIR]/uv.lock", @@ -640,7 +640,7 @@ fn sync_dry_json() -> Result<()> { } }, "action": "create", - "packages": [ + "changes": [ { "name": "iniconfig", "version": "2.0.0", @@ -6874,7 +6874,7 @@ fn sync_active_script_environment_json() -> Result<()> { } }, "action": "create", - "packages": [ + "changes": [ { "name": "anyio", "version": "4.3.0", @@ -6937,7 +6937,7 @@ fn sync_active_script_environment_json() -> Result<()> { } }, "action": "create", - "packages": [ + "changes": [ { "name": "anyio", "version": "4.3.0", @@ -7013,7 +7013,7 @@ fn sync_active_script_environment_json() -> Result<()> { } }, "action": "update", - "packages": [ + "changes": [ { "name": "anyio", "version": "4.3.0",