From 43d60484bb76a53ec11f8e0f5fa74c624b0e69b3 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Wed, 26 Oct 2022 02:16:02 +0900 Subject: [PATCH] wip --- tools/codegen/src/main.rs | 2 ++ tools/manifest.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/codegen/src/main.rs b/tools/codegen/src/main.rs index af6c70463..fdb27ce06 100644 --- a/tools/codegen/src/main.rs +++ b/tools/codegen/src/main.rs @@ -402,6 +402,7 @@ impl<'de> Deserialize<'de> for Version { #[derive(Debug, Clone, Serialize, Deserialize)] struct Manifest { + // TODO: only serialize version if key != version? version: Version, #[serde(flatten)] download_info: BTreeMap, @@ -419,6 +420,7 @@ struct ManifestDownloadInfo { bin: Option, } +// TODO: add version_range field and remove latest_only function #[derive(Debug, Deserialize)] struct BaseManifest { /// Link to the GitHub repository. diff --git a/tools/manifest.sh b/tools/manifest.sh index bce3a24d8..0f31a0651 100755 --- a/tools/manifest.sh +++ b/tools/manifest.sh @@ -15,5 +15,5 @@ fi for manifest in tools/codegen/base/*.json; do package="$(basename "${manifest%.*}")" - cargo run --release -p install-action-internal-codegen -- "${package}" latest + cargo run --release -p install-action-internal-codegen -- "${package}" #latest done