m/cup
1
0
mirror of https://github.com/sergi0g/cup.git synced 2025-11-16 09:03:46 -05:00

Serialize current and local values to avoid having to recompute them when fetching API data. Also fixes the bug where the versions aren't displayed in the CLI output for remote servers

This commit is contained in:
Sergio
2025-02-21 17:09:00 +02:00
parent 685219ea62
commit 4d691dd5fa
2 changed files with 2 additions and 2 deletions

View File

@@ -37,9 +37,7 @@ pub enum UpdateInfo {
pub struct VersionUpdateInfo {
pub version_update_type: String,
pub new_tag: String,
#[serde(skip_serializing, skip_deserializing)]
pub current_version: String,
#[serde(skip_serializing, skip_deserializing)]
pub new_version: String,
}

View File

@@ -33,6 +33,8 @@ interface VersionInfo {
type: "version";
version_update_type: "major" | "minor" | "patch";
new_tag: string;
current_version: string;
new_version: string;
}
interface DigestInfo {