diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-04-13 15:23:41 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-04-13 18:02:57 +0900 |
| commit | 83b0e32c550bf47eea826be7403183bf8f412850 (patch) | |
| tree | abfe8a5c2aec066a705ba92405b8366ebcd973b2 /internal/rosa/git.go | |
| parent | eeaf26e7a24c5c51c64fc333284015224e851e8c (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/git.go')
| -rw-r--r-- | internal/rosa/git.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/rosa/git.go b/internal/rosa/git.go index 9b9fa2d6..e1e68b98 100644 --- a/internal/rosa/git.go +++ b/internal/rosa/git.go @@ -12,10 +12,10 @@ func (t Toolchain) newGit() (pkg.Artifact, string) { version = "2.53.0" checksum = "rlqSTeNgSeVKJA7nvzGqddFH8q3eFEPB4qRZft-4zth8wTHnbTbm7J90kp_obHGm" ) - return t.NewPackage("git", version, pkg.NewHTTPGetTar( - nil, "https://www.kernel.org/pub/software/scm/git/"+ + return t.NewPackage("git", version, newTar( + "https://www.kernel.org/pub/software/scm/git/"+ "git-"+version+".tar.gz", - mustDecode(checksum), + checksum, pkg.TarGzip, ), &PackageAttr{ ScriptEarly: ` |
