manifest-schema: Rename ManifestDownloadInfo::checksum to hash to reduce

manifest size

Before:
```
wc -c manifests/* | grep total
2808686 total
```

After:
```
wc -c manifests/* | grep total
2748178 total
```
This commit is contained in:
Taiki Endo
2026-03-21 03:42:14 +09:00
parent 9089010789
commit 7df5094d28
86 changed files with 15135 additions and 15131 deletions

View File

@@ -434,7 +434,7 @@ fn main() -> Result<()> {
download_info.insert(platform, ManifestDownloadInfo {
url: Some(url),
etag,
checksum: hash,
hash,
bin: base_download_info.bin.as_ref().or(base_info.bin.as_ref()).map(|s| {
s.map(|s| {
replace_vars(

View File

@@ -10,6 +10,10 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
## [Unreleased]
- Rename `ManifestDownloadInfo::checksum` field to `hash` to reduce manifest size.
- Remove `BaseManifest` and related types since they are unrelated to public manifests.
## [0.1.1] - 2025-09-20
- Add `HostPlatform::{powerpc64le_linux_gnu,powerpc64le_linux_musl,riscv64_linux_gnu,riscv64_linux_musl,s390x_linux_gnu,s390x_linux_musl}` ([#1133](https://github.com/taiki-e/install-action/pull/1133))

View File

@@ -1,6 +1,6 @@
[package]
name = "install-action-manifest-schema"
version = "0.1.1"
version = "0.2.0"
edition = "2021"
rust-version = "1.79" # Align to cargo-binstall: https://crates.io/crates/cargo-binstall
license = "Apache-2.0 OR MIT"

View File

@@ -224,7 +224,7 @@ pub struct ManifestDownloadInfo {
#[serde(skip_serializing_if = "Option::is_none")]
pub url: Option<String>,
pub etag: String,
pub checksum: String,
pub hash: String,
/// Path to binaries in archive. Default to `${tool}${exe}`.
#[serde(skip_serializing_if = "Option::is_none")]
pub bin: Option<StringOrArray>,