diff --git a/CHANGELOG.md b/CHANGELOG.md index bb4c8688..d1c65a6e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,7 +16,9 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com - Update `release-plz@latest` to 0.3.130. -- Update `cargo-lambda@latest` to 1.8.2. +- Update `cargo-lambda@latest` to 1.8.1. + +- Downgrade `cargo-spellcheck@latest` to 0.15.1. ([#932](https://github.com/taiki-e/install-action/pull/932)) ## [2.49.43] - 2025-04-01 diff --git a/manifests/cargo-lambda.json b/manifests/cargo-lambda.json index cc4a9b25..c3b2fc2e 100644 --- a/manifests/cargo-lambda.json +++ b/manifests/cargo-lambda.json @@ -20,13 +20,13 @@ }, "license_markdown": "[MIT](https://github.com/cargo-lambda/cargo-lambda/blob/main/LICENSE)", "latest": { - "version": "1.8.2" + "version": "1.8.1" }, "1": { - "version": "1.8.2" + "version": "1.8.1" }, "1.8": { - "version": "1.8.2" + "version": "1.8.1" }, "1.8.2": { "x86_64_linux_musl": { diff --git a/manifests/cargo-spellcheck.json b/manifests/cargo-spellcheck.json index 29ba0363..38aac1f4 100644 --- a/manifests/cargo-spellcheck.json +++ b/manifests/cargo-spellcheck.json @@ -10,10 +10,10 @@ }, "license_markdown": "[LGPLv2.1](https://github.com/drahnr/cargo-spellcheck/blob/master/LICENSE-LGPL)", "latest": { - "version": "0.15.2" + "version": "0.15.1" }, "0.15": { - "version": "0.15.2" + "version": "0.15.1" }, "0.15.2": { "x86_64_linux_gnu": { diff --git a/manifests/wasmtime.json b/manifests/wasmtime.json index 9bb5a70f..7b95f7bf 100644 --- a/manifests/wasmtime.json +++ b/manifests/wasmtime.json @@ -2775,7 +2775,7 @@ } }, "0.22": { - "version": "0.22.1" + "version": "0.22.0" }, "0.22.1": { "x86_64_linux_gnu": { diff --git a/manifests/zola.json b/manifests/zola.json index 3c220c06..a02fac8d 100644 --- a/manifests/zola.json +++ b/manifests/zola.json @@ -1,5 +1,5 @@ { - "rust_crate": "zola", + "rust_crate": null, "template": { "x86_64_linux_gnu": { "url": "https://github.com/getzola/zola/releases/download/v${version}/zola-v${version}-x86_64-unknown-linux-gnu.tar.gz" diff --git a/tools/codegen/base/zola.json b/tools/codegen/base/zola.json index 9b11b03f..251cb2d3 100644 --- a/tools/codegen/base/zola.json +++ b/tools/codegen/base/zola.json @@ -1,7 +1,6 @@ { "repository": "https://github.com/getzola/zola", "tag_prefix": "v", - "rust_crate": "${package}", "asset_name": "${package}-v${version}-${rust_target}.tar.gz", "platform": { "x86_64_linux_gnu": {}, diff --git a/tools/codegen/src/main.rs b/tools/codegen/src/main.rs index 22de2629..f30b23a4 100644 --- a/tools/codegen/src/main.rs +++ b/tools/codegen/src/main.rs @@ -490,12 +490,14 @@ fn main() -> Result<()> { if let Some(crates_io_info) = &crates_io_info { if let Some(v) = crates_io_info.versions.iter().find(|v| v.num == *version) { if v.yanked { - continue; + continue; // Exclude yanked version from candidate for "latest". } + } else { + continue; // Exclude version not released on crates.io from candidate for "latest". } } if base_info.broken.contains(version) { - continue; + continue; // Exclude version marked as broken from candidate for "latest". } if !(version.major == 0 && version.minor == 0) { manifests.map.insert( @@ -618,15 +620,17 @@ fn replace_vars( platform: Option, rust_crate: Option<&str>, ) -> Result { - const RUST_SPECIFIC: &[(&str, fn(HostPlatform) -> &'static str)] = &[ + static RUST_SPECIFIC: &[(&str, fn(HostPlatform) -> &'static str)] = &[ ("${rust_target}", HostPlatform::rust_target), ("${rust_target_arch}", HostPlatform::rust_target_arch), ("${rust_target_os}", HostPlatform::rust_target_os), ]; + // zola is Rust crate, but is not released on crates.io. + static KNOWN_RUST_CRATE_NOT_IN_CRATES_IO: &[&str] = &["zola"]; let mut s = s.replace("${package}", package).replace("${tool}", package); if let Some(platform) = platform { s = s.replace("${exe}", platform.exe_suffix()); - if rust_crate.is_some() { + if rust_crate.is_some() || KNOWN_RUST_CRATE_NOT_IN_CRATES_IO.contains(&package) { for &(var, f) in RUST_SPECIFIC { s = s.replace(var, f(platform)); }