1
0
forked from rosa/hakurei

internal/rosa: annotate blocked updates

These situations, while unfortunate, are inevitable at a larger scale. This change enables annotation and optional hiding of blocked updates.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-05-30 18:56:55 +09:00
parent f4215ddda5
commit 8b87e0eb76
3 changed files with 28 additions and 1 deletions

View File

@@ -5,6 +5,8 @@ package openssl {
// strange malformed tags treated as pre-releases in Anitya
latest = anityaFallback;
block = "python";
version# = "3.6.2";
source = remoteGitHubRelease {
suffix = "openssl/openssl";

View File

@@ -96,6 +96,8 @@ type Metadata struct {
//
// [Anitya]: https://release-monitoring.org/
ID int `json:"-"`
// Maintainer-facing reason of blocked update.
Blocked string `json:"block,omitempty"`
// Whether to exclude from exported functions.
Exclude bool `json:"exclude,omitempty"`
@@ -944,6 +946,7 @@ func (ctx *evalContext) pf(
k("version"): &meta.Version,
k("exclude"): &meta.Exclude,
k("anitya"): &anitya,
k("block"): &meta.Blocked,
k("latest"): &meta.latest,
k("writable"): &attr.Writable,