aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/ninja.go
diff options
context:
space:
mode:
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/",