1
0
forked from rosa/hakurei

internal/rosa: expose supported architectures

This information is useful to external tooling and makes a lot more sense in this package than cmd/mbf. This change also fixes non-native artifact resolution during clean.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-06-09 16:01:12 +09:00
parent 69908e5a41
commit ce06539eca
4 changed files with 60 additions and 26 deletions
+2 -3
View File
@@ -443,12 +443,11 @@ func (t Toolchain) appendHandle(a []pkg.Artifact, pv pa, p ArtifactH) []pkg.Arti
}
pv[p] = struct{}{}
meta, _ := t.MustLoad(p)
meta, u := t.MustLoad(p)
for _, d := range meta.Dependencies {
a = t.appendHandle(a, pv, d)
}
_, d := t.MustLoad(p)
return append(a, d)
return append(a, u)
}
// Append recursively appends multiple [Artifact] named by their handles, and