internal/rosa: create metadata alongside artifact

This enables deferring evaluation of azalea-based packages and fixes the longstanding quirk of version being disjoint from other metadata.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-05-19 00:03:42 +09:00
parent 0e95573f18
commit 8807cbc730
88 changed files with 612 additions and 874 deletions

View File

@@ -39,9 +39,7 @@ index d223ac2..a7878d0 100644
), version
}
func init() {
native.MustRegister(&Artifact{
f: Toolchain.newLibmnl,
native.mustRegister(Toolchain.newLibmnl, &Metadata{
Name: "libmnl",
Description: "a minimalistic user-space library oriented to Netlink developers",
Website: "https://www.netfilter.org/projects/libmnl/",
@@ -77,9 +75,7 @@ func (t Toolchain) newLibnftnl() (pkg.Artifact, string) {
), version
}
func init() {
native.MustRegister(&Artifact{
f: Toolchain.newLibnftnl,
native.mustRegister(Toolchain.newLibnftnl, &Metadata{
Name: "libnftnl",
Description: "a userspace library providing a low-level netlink API to the in-kernel nf_tables subsystem",
Website: "https://www.netfilter.org/projects/libnftnl/",
@@ -131,9 +127,7 @@ chmod +w /etc/ && ln -s ../usr/src/iptables/etc/ethertypes /etc/
), version
}
func init() {
native.MustRegister(&Artifact{
f: Toolchain.newIPTables,
native.mustRegister(Toolchain.newIPTables, &Metadata{
Name: "iptables",
Description: "the userspace command line program used to configure the Linux 2.4.x and later packet filtering ruleset",
Website: "https://www.netfilter.org/projects/iptables/",