aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/libseccomp.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/libseccomp.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/libseccomp.go')
-rw-r--r--internal/rosa/libseccomp.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/rosa/libseccomp.go b/internal/rosa/libseccomp.go
index d4a9025d..f152cce5 100644
--- a/internal/rosa/libseccomp.go
+++ b/internal/rosa/libseccomp.go
@@ -2,12 +2,12 @@ package rosa
import "hakurei.app/internal/pkg"
-func (t Toolchain) newLibseccomp() (pkg.Artifact, string) {
+func (t Toolchain) newLibseccomp(s *S) (pkg.Artifact, string) {
const (
version = "2.6.0"
checksum = "mMu-iR71guPjFbb31u-YexBaanKE_nYPjPux-vuBiPfS_0kbwJdfCGlkofaUm-EY"
)
- return t.NewPackage("libseccomp", version, newFromGitHubRelease(
+ return s.NewPackage(t, "libseccomp", version, newFromGitHubRelease(
"seccomp/libseccomp",
"v"+version,
"libseccomp-"+version+".tar.gz",
@@ -43,7 +43,7 @@ index adccef3..65a277a 100644
), version
}
func init() {
- artifactsM[Libseccomp] = Metadata{
+ native.MustRegister(&Artifact{
f: Toolchain.newLibseccomp,
Name: "libseccomp",
@@ -51,5 +51,5 @@ func init() {
Website: "https://github.com/seccomp/libseccomp/",
ID: 13823,
- }
+ })
}