From 20790af71ec9a69a462ecaaa7fc308e3b685383d Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 25 Jan 2026 01:32:21 +0900 Subject: internal/rosa: lazy initialise all artifacts This improves performance, though not as drastically as lazy initialising llvm. Signed-off-by: Ophestra --- internal/rosa/rsync.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/rosa/rsync.go') diff --git a/internal/rosa/rsync.go b/internal/rosa/rsync.go index 6f5f34bc..c43244ba 100644 --- a/internal/rosa/rsync.go +++ b/internal/rosa/rsync.go @@ -2,14 +2,13 @@ package rosa import "hakurei.app/internal/pkg" -// NewRsync returns a [pkg.Artifact] containing an installation of rsync. -func (t Toolchain) NewRsync() pkg.Artifact { +func (t Toolchain) newRsync() pkg.Artifact { const ( version = "3.4.1" checksum = "VBlTsBWd9z3r2-ex7GkWeWxkUc5OrlgDzikAC0pK7ufTjAJ0MbmC_N04oSVTGPiv" ) return t.New("rsync-"+version, []pkg.Artifact{ - t.NewMake(), + t.Load(Make), }, nil, nil, ` cd "$(mktemp -d)" /usr/src/rsync/configure --prefix=/system \ @@ -27,3 +26,4 @@ make DESTDIR=/work install pkg.TarGzip, ))) } +func init() { artifactsF[Rsync] = Toolchain.newRsync } -- cgit v1.3.1