feat(cli): show yanked binary variants in listings
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 7s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 51s

This commit is contained in:
faumaray committed 2026-12-03 23:10:08 +03:00
1 parent 4e5bdab8cd
commit 349ec257f5
8 files changed
+44 -11

No files matched your search

@@ -71,10 +71,12 @@ struct BinaryReleaseInfo {
[[nodiscard]] Void::Result::Result<std::string, Void::Result::Error>
publish_binary_variant(const BinaryPublishOptions &options);
// Lists the binary variants stored for one release.
// Lists the binary variants stored for one release. Yanked variants are hidden by default so
// callers never select them; pass `include_yanked` for inspection/listing.
[[nodiscard]] Void::Result::Result<std::vector<BinaryReleaseInfo>, Void::Result::Error>
fetch_binary_variants(std::string_view registry_url, std::string_view package_name,
std::string_view version, const RegistryAuth &auth = {});
std::string_view version, const RegistryAuth &auth = {},
bool include_yanked = false);
// Downloads a prebuilt binary artifact from an absolute http(s) URL into `dest_file`,
// rejecting any content whose SHA-256 differs from `expected_sha256` (verified before writing).