aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/gnu.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-04-13 15:18:49 +0900
committerOphestra <cat@gensokyo.uk>2026-04-13 15:20:51 +0900
commiteeaf26e7a24c5c51c64fc333284015224e851e8c (patch)
tree88c24355b0b4d9ea3bf2b5548c63282d50c44729 /internal/rosa/gnu.go
parentb587caf2e863902eb04a6540462db5852fd1a0b5 (diff)
internal/rosa: wrapper around git helper
This results in much cleaner call site for the majority of use cases. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/gnu.go')
-rw-r--r--internal/rosa/gnu.go10
1 files changed, 4 insertions, 6 deletions
diff --git a/internal/rosa/gnu.go b/internal/rosa/gnu.go
index 61f64122..3bbc612f 100644
--- a/internal/rosa/gnu.go
+++ b/internal/rosa/gnu.go
@@ -888,10 +888,9 @@ func (t Toolchain) newGnuTLS() (pkg.Artifact, string) {
}
}
- return t.NewPackage("gnutls", version, t.NewViaGit(
+ return t.NewPackage("gnutls", version, t.newTagRemote(
"https://gitlab.com/gnutls/gnutls.git",
- "refs/tags/"+version,
- mustDecode(checksum),
+ version, checksum,
), &PackageAttr{
Patches: []KV{
{"bootstrap-remove-gtk-doc", `diff --git a/bootstrap.conf b/bootstrap.conf
@@ -1146,10 +1145,9 @@ func (t Toolchain) newMPC() (pkg.Artifact, string) {
version = "1.4.0"
checksum = "TbrxLiE3ipQrHz_F3Xzz4zqBAnkMWyjhNwIK6wh9360RZ39xMt8rxfW3LxA9SnvU"
)
- return t.NewPackage("mpc", version, t.NewViaGit(
+ return t.NewPackage("mpc", version, t.newTagRemote(
"https://gitlab.inria.fr/mpc/mpc.git",
- "refs/tags/"+version,
- mustDecode(checksum),
+ version, checksum,
), &PackageAttr{
// does not find mpc-impl.h otherwise
EnterSource: true,