feat(registry): yank binary variants and exclude them from selection
This commit is contained in:
1 parent
502f2b0c51
commit
66d2fa6a2e
9 files changed
+116
-7
No files matched your search
@@ -512,13 +512,15 @@ fetch_binary_variants(std::string_view registry_url, std::string_view package_na
|
||||
info.variant_id = get_str(*bo, "variant_id");
|
||||
info.sha256 = get_str(*bo, "sha256");
|
||||
info.size_bytes = static_cast<std::uint64_t>(get_i64(*bo, "size_bytes", 0));
|
||||
info.yanked = get_bool(*bo, "yanked", false);
|
||||
if (const auto sig = get_str(*bo, "signature"); !sig.empty()) {
|
||||
info.signature = sig;
|
||||
}
|
||||
if (const auto key = get_str(*bo, "public_key"); !key.empty()) {
|
||||
info.public_key = key;
|
||||
}
|
||||
if (!info.variant_id.empty()) {
|
||||
// Yanked variants stay listed but must never be selected for materialization.
|
||||
if (!info.variant_id.empty() && !info.yanked) {
|
||||
variants.push_back(std::move(info));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user