diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-03-04 18:01:18 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-03-05 00:20:27 +0900 |
| commit | d2c6d486b06073aa88ee1912d3587f657cd57304 (patch) | |
| tree | 42e7df590ee8cda255e4cd35f9bd5ff7f9b2f94f /internal/rosa/stage0.go | |
| parent | 6fdd800b2b421b32e7db373b576433126c4652a2 (diff) | |
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 <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/stage0.go')
| -rw-r--r-- | internal/rosa/stage0.go | 13 |
1 files changed, 10 insertions, 3 deletions
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. |
