aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/ninja.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-05-19 00:03:42 +0900
committerOphestra <cat@gensokyo.uk>2026-05-19 00:44:24 +0900
commit8807cbc7305e424725b2be8eed7ecd9234f7772e (patch)
tree5998f055396505becf0f99fcba3c86514f00650b /internal/rosa/ninja.go
parent0e95573f187f64de1a46f27af67325e57037b9a9 (diff)
internal/rosa: create metadata alongside artifact
This enables deferring evaluation of azalea-based packages and fixes the longstanding quirk of version being disjoint from other metadata. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/ninja.go')
-rw-r--r--internal/rosa/ninja.go8
1 files changed, 3 insertions, 5 deletions
diff --git a/internal/rosa/ninja.go b/internal/rosa/ninja.go
index d34d7841..1040219c 100644
--- a/internal/rosa/ninja.go
+++ b/internal/rosa/ninja.go
@@ -7,8 +7,8 @@ func (t Toolchain) newNinja() (pkg.Artifact, string) {
version = "1.13.2"
checksum = "ygKWMa0YV2lWKiFro5hnL-vcKbc_-RACZuPu0Io8qDvgQlZ0dxv7hPNSFkt4214v"
)
- python, _ := t.Load(Python)
- bash, _ := t.Load(Bash)
+ _, python := t.Load(Python)
+ _, bash := t.Load(Bash)
return t.New("ninja-"+version, 0, []pkg.Artifact{
python,
bash,
@@ -39,9 +39,7 @@ cp ninja /work/system/bin/
))), version
}
func init() {
- native.MustRegister(&Artifact{
- f: Toolchain.newNinja,
-
+ native.mustRegister(Toolchain.newNinja, &Metadata{
Name: "ninja",
Description: "a small build system with a focus on speed",
Website: "https://ninja-build.org/",