aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/hakurei_release.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-04-13 15:23:41 +0900
committerOphestra <cat@gensokyo.uk>2026-04-13 18:02:57 +0900
commit83b0e32c550bf47eea826be7403183bf8f412850 (patch)
treeabfe8a5c2aec066a705ba92405b8366ebcd973b2 /internal/rosa/hakurei_release.go
parenteeaf26e7a24c5c51c64fc333284015224e851e8c (diff)
internal/rosa: helpers for common url formats
This cleans up call site of NewPackage. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/hakurei_release.go')
-rw-r--r--internal/rosa/hakurei_release.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/rosa/hakurei_release.go b/internal/rosa/hakurei_release.go
index 684ee436..1746edac 100644
--- a/internal/rosa/hakurei_release.go
+++ b/internal/rosa/hakurei_release.go
@@ -7,10 +7,10 @@ import "hakurei.app/internal/pkg"
const hakureiVersion = "0.4.0"
// hakureiSource is the source code of a hakurei release.
-var hakureiSource = pkg.NewHTTPGetTar(
- nil, "https://git.gensokyo.uk/rosa/hakurei/archive/"+
+var hakureiSource = newTar(
+ "https://git.gensokyo.uk/rosa/hakurei/archive/"+
"v"+hakureiVersion+".tar.gz",
- mustDecode("wfQ9DqCW0Fw9o91wj-I55waoqzB-UqzzuC0_2h-P-1M78SgZ1WHSPCDJMth6EyC2"),
+ "wfQ9DqCW0Fw9o91wj-I55waoqzB-UqzzuC0_2h-P-1M78SgZ1WHSPCDJMth6EyC2",
pkg.TarGzip,
)