aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/util-linux.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-03-04 18:01:18 +0900
committerOphestra <cat@gensokyo.uk>2026-03-05 00:20:27 +0900
commitd2c6d486b06073aa88ee1912d3587f657cd57304 (patch)
tree42e7df590ee8cda255e4cd35f9bd5ff7f9b2f94f /internal/rosa/util-linux.go
parent6fdd800b2b421b32e7db373b576433126c4652a2 (diff)
internal/rosa: provide package metadata
This had to be done out-of-band because there was no way to efficiently represent these within Artifact. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/util-linux.go')
-rw-r--r--internal/rosa/util-linux.go14
1 files changed, 11 insertions, 3 deletions
diff --git a/internal/rosa/util-linux.go b/internal/rosa/util-linux.go
index d6f4aba5..a1c72471 100644
--- a/internal/rosa/util-linux.go
+++ b/internal/rosa/util-linux.go
@@ -6,7 +6,7 @@ import (
"hakurei.app/internal/pkg"
)
-func (t Toolchain) newUtilLinux() pkg.Artifact {
+func (t Toolchain) newUtilLinux() (pkg.Artifact, string) {
const (
version = "2.41.3"
checksum = "gPTd5JJ2ho_Rd0qainuogcLiiWwKSXEZPXN3yCCRl0m0KBgMaqwFuMjYgu9z8zCH"
@@ -44,6 +44,14 @@ ln -s ../system/bin/bash /bin/
Bash,
KernelHeaders,
- )
+ ), version
+}
+func init() {
+ artifactsM[UtilLinux] = Metadata{
+ f: Toolchain.newUtilLinux,
+
+ Name: "util-linux",
+ Description: "a random collection of Linux utilities",
+ Website: "https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git",
+ }
}
-func init() { artifactsF[UtilLinux] = Toolchain.newUtilLinux }