mirror of
https://github.com/taiki-e/install-action.git
synced 2026-04-21 07:00:27 +00:00
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:
@@ -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(
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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>,
|
||||
|
||||
Reference in New Issue
Block a user