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