From d2c6d486b06073aa88ee1912d3587f657cd57304 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 4 Mar 2026 18:01:18 +0900 Subject: internal/rosa: provide package metadata This had to be done out-of-band because there was no way to efficiently represent these within Artifact. Signed-off-by: Ophestra --- internal/rosa/libexpat.go | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'internal/rosa/libexpat.go') diff --git a/internal/rosa/libexpat.go b/internal/rosa/libexpat.go index 3cda1226..616b486b 100644 --- a/internal/rosa/libexpat.go +++ b/internal/rosa/libexpat.go @@ -6,7 +6,7 @@ import ( "hakurei.app/internal/pkg" ) -func (t Toolchain) newLibexpat() pkg.Artifact { +func (t Toolchain) newLibexpat() (pkg.Artifact, string) { const ( version = "2.7.3" checksum = "GmkoD23nRi9cMT0cgG1XRMrZWD82UcOMzkkvP1gkwSFWCBgeSXMuoLpa8-v8kxW-" @@ -19,6 +19,14 @@ func (t Toolchain) newLibexpat() pkg.Artifact { pkg.TarBzip2, ), nil, (*MakeHelper)(nil), Bash, - ) + ), version +} +func init() { + artifactsM[Libexpat] = Metadata{ + f: Toolchain.newLibexpat, + + Name: "libexpat", + Description: "a stream-oriented XML parser library", + Website: "https://libexpat.github.io/", + } } -func init() { artifactsF[Libexpat] = Toolchain.newLibexpat } -- cgit v1.3.1