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/stage0.go | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'internal/rosa/stage0.go') diff --git a/internal/rosa/stage0.go b/internal/rosa/stage0.go index e446ffe5..b579d392 100644 --- a/internal/rosa/stage0.go +++ b/internal/rosa/stage0.go @@ -7,7 +7,7 @@ import ( "hakurei.app/internal/pkg" ) -func (t Toolchain) newStage0() pkg.Artifact { +func (t Toolchain) newStage0() (pkg.Artifact, string) { musl, compilerRT, runtimes, clang := t.NewLLVM() return t.New("rosa-stage0", 0, []pkg.Artifact{ musl, @@ -39,9 +39,16 @@ tar \ -C / \ -f /work/stage0-`+triplet()+`.tar.bz2 \ system bin usr/bin/env -`) +`), Unversioned +} +func init() { + artifactsM[Stage0] = Metadata{ + f: Toolchain.newStage0, + + Name: "rosa-stage0", + Description: "Rosa OS stage0 toolchain tarball for bootstrap", + } } -func init() { artifactsF[Stage0] = Toolchain.newStage0 } var ( // stage0 stores the tarball unpack artifact. -- cgit v1.3.1