internal/rosa/package: migrate nss
Test / Create distribution (push) Successful in 1m4s
Test / Sandbox (push) Successful in 3m2s
Test / ShareFS (push) Successful in 3m46s
Test / Hakurei (push) Successful in 3m54s
Test / Sandbox (race detector) (push) Successful in 5m24s
Test / Hakurei (race detector) (push) Successful in 6m34s
Test / Flake checks (push) Successful in 1m23s

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
cat
2026-05-21 15:36:10 +09:00
parent 1acb5b0105
commit cbf18b302d
18 changed files with 196 additions and 209 deletions
+6 -4
View File
@@ -7,8 +7,10 @@ import (
"hakurei.app/internal/pkg"
)
// Git is the package used by [Toolchain.NewViaGit].
var Git = H("git")
var (
_git = H("git")
_nssCACert = H("nss-cacert")
)
// NewViaGit returns a [pkg.Artifact] for cloning a git repository.
func (t Toolchain) NewViaGit(
@@ -19,8 +21,8 @@ func (t Toolchain) NewViaGit(
path.Base(url),
".git",
)+"-src-"+path.Base(rev), THostNet, t.Append(nil,
nssCACert,
Git,
_nssCACert,
_git,
), &checksum, nil, `
git \
-c advice.detachedHead=false \