aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/strace.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-05-17 13:07:12 +0900
committerOphestra <cat@gensokyo.uk>2026-05-17 15:56:53 +0900
commit30eb0d6a613ad268f6805ccbcdcabf158e7f526f (patch)
tree07e55baa52748fd139e183017eeb43f5f64cee59 /internal/rosa/strace.go
parentc2ff9c9fa55ea569a5e70ee90d2eb0b2ee2a0540 (diff)
internal/rosa: key metadata by string
For upcoming azalea integration. The API is quite ugly right now to ease migration. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/strace.go')
-rw-r--r--internal/rosa/strace.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/rosa/strace.go b/internal/rosa/strace.go
index 9aa0ca4a..bf7f2750 100644
--- a/internal/rosa/strace.go
+++ b/internal/rosa/strace.go
@@ -2,12 +2,12 @@ package rosa
import "hakurei.app/internal/pkg"
-func (t Toolchain) newStrace() (pkg.Artifact, string) {
+func (t Toolchain) newStrace(s *S) (pkg.Artifact, string) {
const (
version = "6.19"
checksum = "XJFJJ9XLh_1rHS3m_QNjLKzkkBAooE-QT9p9lJNNWowAmd54IJop_fI4-IFtjeeL"
)
- return t.NewPackage("strace", version, pkg.NewHTTPGet(
+ return s.NewPackage(t, "strace", version, pkg.NewHTTPGet(
nil, "https://strace.io/files/"+version+"/strace-"+version+".tar.xz",
mustDecode(checksum),
), &PackageAttr{
@@ -37,7 +37,7 @@ sed -i 's/unsigned int msg_len;$/uint32_t msg_len;/g' \
), version
}
func init() {
- artifactsM[Strace] = Metadata{
+ native.MustRegister(&Artifact{
f: Toolchain.newStrace,
Name: "strace",
@@ -45,5 +45,5 @@ func init() {
Website: "https://strace.io/",
ID: 4897,
- }
+ })
}