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/go.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/go.go')
| -rw-r--r-- | internal/rosa/go.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/internal/rosa/go.go b/internal/rosa/go.go index c582a1c6..83f9266e 100644 --- a/internal/rosa/go.go +++ b/internal/rosa/go.go @@ -21,9 +21,9 @@ cd /work/system/go/src chmod -R +w .. ./make.bash -`, pkg.Path(AbsUsrSrc.Append("go"), false, pkg.NewHTTPGetTar( - nil, "https://dl.google.com/go/go1.4-bootstrap-20171003.tar.gz", - mustDecode(checksum), +`, pkg.Path(AbsUsrSrc.Append("go"), false, newTar( + "https://dl.google.com/go/go1.4-bootstrap-20171003.tar.gz", + checksum, pkg.TarGzip, ))) } @@ -55,9 +55,9 @@ ln -s \ ../go/bin/go \ ../go/bin/gofmt \ /work/system/bin -`, pkg.Path(AbsUsrSrc.Append("go"), false, pkg.NewHTTPGetTar( - nil, "https://go.dev/dl/go"+version+".src.tar.gz", - mustDecode(checksum), +`, pkg.Path(AbsUsrSrc.Append("go"), false, newTar( + "https://go.dev/dl/go"+version+".src.tar.gz", + checksum, pkg.TarGzip, ))) } |
