aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/git.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-04-01 16:26:21 +0900
committerOphestra <cat@gensokyo.uk>2026-04-01 16:34:30 +0900
commitb6cbd49d8cb56c0918eda2b676744a31e4142d58 (patch)
tree1934c7415ff6acf6c0b6416e59ae1cc808801e9b /internal/rosa/git.go
parent6913b9224a1f296e8be3abdb6f1bc6277ffda292 (diff)
internal/rosa: p11-kit artifact
Another package distributed in xz only. This is fetched from the git remote directly to avoid XZ Utils. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/git.go')
-rw-r--r--internal/rosa/git.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/internal/rosa/git.go b/internal/rosa/git.go
index 142cd341..65ebd97b 100644
--- a/internal/rosa/git.go
+++ b/internal/rosa/git.go
@@ -1,6 +1,10 @@
package rosa
-import "hakurei.app/internal/pkg"
+import (
+ "path"
+
+ "hakurei.app/internal/pkg"
+)
func (t Toolchain) newGit() (pkg.Artifact, string) {
const (
@@ -90,7 +94,7 @@ func (t Toolchain) NewViaGit(
name, url, rev string,
checksum pkg.Checksum,
) pkg.Artifact {
- return t.New(name+"-"+rev, 0, t.AppendPresets(nil,
+ return t.New(name+"-"+path.Base(rev), 0, t.AppendPresets(nil,
NSSCACert,
Git,
), &checksum, nil, `