mirror of
https://github.com/taiki-e/install-action.git
synced 2026-04-24 16:20:48 +00:00
codegen: Fix handling of latest_only tool
This commit is contained in:
@@ -287,9 +287,10 @@ fn main() -> Result<()> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if latest_only {
|
if latest_only {
|
||||||
|
let ManifestRef::Ref { version } = manifests.map.first_key_value().unwrap().1.clone() else { unreachable!() };
|
||||||
manifests
|
manifests
|
||||||
.map
|
.map
|
||||||
.retain(|k, m| k.0 == Version::latest() || matches!(m, ManifestRef::Real(..)));
|
.retain(|k, _| k.0 == Version::latest() || k.0 == version);
|
||||||
}
|
}
|
||||||
|
|
||||||
let original_manifests = manifests.clone();
|
let original_manifests = manifests.clone();
|
||||||
|
|||||||
Reference in New Issue
Block a user