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/util-linux.go | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'internal/rosa/util-linux.go') diff --git a/internal/rosa/util-linux.go b/internal/rosa/util-linux.go index d6f4aba5..a1c72471 100644 --- a/internal/rosa/util-linux.go +++ b/internal/rosa/util-linux.go @@ -6,7 +6,7 @@ import ( "hakurei.app/internal/pkg" ) -func (t Toolchain) newUtilLinux() pkg.Artifact { +func (t Toolchain) newUtilLinux() (pkg.Artifact, string) { const ( version = "2.41.3" checksum = "gPTd5JJ2ho_Rd0qainuogcLiiWwKSXEZPXN3yCCRl0m0KBgMaqwFuMjYgu9z8zCH" @@ -44,6 +44,14 @@ ln -s ../system/bin/bash /bin/ Bash, KernelHeaders, - ) + ), version +} +func init() { + artifactsM[UtilLinux] = Metadata{ + f: Toolchain.newUtilLinux, + + Name: "util-linux", + Description: "a random collection of Linux utilities", + Website: "https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git", + } } -func init() { artifactsF[UtilLinux] = Toolchain.newUtilLinux } -- cgit v1.3.1