mirror of https://github.com/astral-sh/uv
Rename `packages` to `changes`
This commit is contained in:
parent
cc91e47595
commit
f026d1748a
|
|
@ -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<PackageChangeReport>,
|
||||
changes: Vec<PackageChangeReport>,
|
||||
|
||||
// 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;
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue