mirror of
https://github.com/taiki-e/install-action.git
synced 2026-05-09 22:30:28 +00:00
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:
@@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"repository": "https://github.com/orium/cargo-rdme",
|
"repository": "https://github.com/orium/cargo-rdme",
|
||||||
"tag_prefix": "v",
|
"tag_prefix": "v",
|
||||||
|
"broken": ["1.4.3"],
|
||||||
"platform": {
|
"platform": {
|
||||||
"x86_64_linux_musl": {
|
"x86_64_linux_musl": {
|
||||||
"asset_name": "${package}_v${version}_${rust_target}.tar.bz2"
|
"asset_name": "${package}_v${version}_${rust_target}.tar.bz2"
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ fn main() -> Result<()> {
|
|||||||
}
|
}
|
||||||
releases.append(&mut r);
|
releases.append(&mut r);
|
||||||
}
|
}
|
||||||
let releases: BTreeMap<_, _> = releases
|
let mut releases: BTreeMap<_, _> = releases
|
||||||
.iter()
|
.iter()
|
||||||
.filter_map(|release| {
|
.filter_map(|release| {
|
||||||
if release.prerelease {
|
if release.prerelease {
|
||||||
@@ -78,6 +78,9 @@ fn main() -> Result<()> {
|
|||||||
Some((Reverse(semver_version.ok()?), (version, release)))
|
Some((Reverse(semver_version.ok()?), (version, release)))
|
||||||
})
|
})
|
||||||
.collect();
|
.collect();
|
||||||
|
for broken in &base_info.broken {
|
||||||
|
releases.remove(&Reverse(broken.clone()));
|
||||||
|
}
|
||||||
|
|
||||||
let mut crates_io_info = None;
|
let mut crates_io_info = None;
|
||||||
base_info.rust_crate =
|
base_info.rust_crate =
|
||||||
@@ -695,6 +698,8 @@ struct BaseManifest {
|
|||||||
/// Path to binary in archive. Default to `${tool}${exe}`.
|
/// Path to binary in archive. Default to `${tool}${exe}`.
|
||||||
bin: Option<String>,
|
bin: Option<String>,
|
||||||
signing: Option<Signing>,
|
signing: Option<Signing>,
|
||||||
|
#[serde(default)]
|
||||||
|
broken: Vec<semver::Version>,
|
||||||
platform: BTreeMap<HostPlatform, BaseManifestPlatformInfo>,
|
platform: BTreeMap<HostPlatform, BaseManifestPlatformInfo>,
|
||||||
version_range: Option<String>,
|
version_range: Option<String>,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user