codegen: Mark cargo-rdme 1.4.3 as broken

As of 2024-02-13 01:30 UTC, this release only contains Windows binary.

```
Error: platform list in base manifest for cargo-rdme contains x86_64_linux_musl, but latest release (1.4.3) doesn't contain it
```
This commit is contained in:
Taiki Endo
2024-02-13 10:31:04 +09:00
parent 5794068c21
commit a86757441d
2 changed files with 7 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
{
"repository": "https://github.com/orium/cargo-rdme",
"tag_prefix": "v",
"broken": ["1.4.3"],
"platform": {
"x86_64_linux_musl": {
"asset_name": "${package}_v${version}_${rust_target}.tar.bz2"

View File

@@ -62,7 +62,7 @@ fn main() -> Result<()> {
}
releases.append(&mut r);
}
let releases: BTreeMap<_, _> = releases
let mut releases: BTreeMap<_, _> = releases
.iter()
.filter_map(|release| {
if release.prerelease {
@@ -78,6 +78,9 @@ fn main() -> Result<()> {
Some((Reverse(semver_version.ok()?), (version, release)))
})
.collect();
for broken in &base_info.broken {
releases.remove(&Reverse(broken.clone()));
}
let mut crates_io_info = None;
base_info.rust_crate =
@@ -695,6 +698,8 @@ struct BaseManifest {
/// Path to binary in archive. Default to `${tool}${exe}`.
bin: Option<String>,
signing: Option<Signing>,
#[serde(default)]
broken: Vec<semver::Version>,
platform: BTreeMap<HostPlatform, BaseManifestPlatformInfo>,
version_range: Option<String>,
}