diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-01-25 01:32:21 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-01-25 01:43:18 +0900 |
| commit | 20790af71ec9a69a462ecaaa7fc308e3b685383d (patch) | |
| tree | e7cfdd8fec51c5dc37db88ad887c07dee947b600 /internal/rosa/git.go | |
| parent | 43b8a40fc0e8d99bf29531d33f1f57d0c6e9df5e (diff) | |
internal/rosa: lazy initialise all artifacts
This improves performance, though not as drastically as lazy initialising llvm.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/git.go')
| -rw-r--r-- | internal/rosa/git.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/internal/rosa/git.go b/internal/rosa/git.go index 84070240..4508d3b3 100644 --- a/internal/rosa/git.go +++ b/internal/rosa/git.go @@ -4,20 +4,19 @@ import ( "hakurei.app/internal/pkg" ) -// NewGit returns a [pkg.Artifact] containing an installation of git. -func (t Toolchain) NewGit() pkg.Artifact { +func (t Toolchain) newGit() pkg.Artifact { const ( version = "2.52.0" checksum = "uH3J1HAN_c6PfGNJd2OBwW4zo36n71wmkdvityYnrh8Ak0D1IifiAvEWz9Vi9DmS" ) return t.New("git-"+version, stage3Concat(t, []pkg.Artifact{}, - t.NewMake(), - t.NewPerl(), - t.NewM4(), - t.NewAutoconf(), - t.NewGettext(), + t.Load(Make), + t.Load(Perl), + t.Load(M4), + t.Load(Autoconf), + t.Load(Gettext), - t.NewZlib(), + t.Load(Zlib), ), nil, nil, ` chmod -R +w /usr/src/git && cd /usr/src/git make configure @@ -31,3 +30,4 @@ make DESTDIR=/work install pkg.TarGzip, ))) } +func init() { artifactsF[Git] = Toolchain.newGit } |
