From d2c6d486b06073aa88ee1912d3587f657cd57304 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 4 Mar 2026 18:01:18 +0900 Subject: 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 --- internal/rosa/zstd.go | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'internal/rosa/zstd.go') diff --git a/internal/rosa/zstd.go b/internal/rosa/zstd.go index 4c3a47fb..96d9b07d 100644 --- a/internal/rosa/zstd.go +++ b/internal/rosa/zstd.go @@ -2,7 +2,7 @@ package rosa import "hakurei.app/internal/pkg" -func (t Toolchain) newZstd() pkg.Artifact { +func (t Toolchain) newZstd() (pkg.Artifact, string) { const ( version = "1.5.7" checksum = "4XhfR7DwVkwo1R-TmYDAJOcx9YXv9WSFhcFUe3hWEAMmdMLPhFaznCqYIA19_xxV" @@ -18,6 +18,14 @@ func (t Toolchain) newZstd() pkg.Artifact { {"CMAKE_BUILD_TYPE", "Release"}, {"CMAKE_INSTALL_LIBDIR", "lib"}, }, - }) + }), version +} +func init() { + artifactsM[Zstd] = Metadata{ + f: Toolchain.newZstd, + + Name: "zstd", + Description: "a fast compression algorithm", + Website: "https://facebook.github.io/zstd/", + } } -func init() { artifactsF[Zstd] = Toolchain.newZstd } -- cgit v1.3.1