aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/git.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-01-24 11:48:19 +0900
committerOphestra <cat@gensokyo.uk>2026-01-24 12:23:35 +0900
commitd9ebaf20f8e71f043d2387a42d273dadc5d536b5 (patch)
treede61fc80f30a876727413461bb1e99197e28c4ac /internal/rosa/git.go
parentacee0b36328883c4d66192c181652af9d82b7bf4 (diff)
internal/rosa: stage3 special case helper
This makes it cleaner to specify non-stage3 and stage3-exclusive dependencies. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/git.go')
-rw-r--r--internal/rosa/git.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/internal/rosa/git.go b/internal/rosa/git.go
index ca10ee4c..84070240 100644
--- a/internal/rosa/git.go
+++ b/internal/rosa/git.go
@@ -10,7 +10,7 @@ func (t Toolchain) NewGit() pkg.Artifact {
version = "2.52.0"
checksum = "uH3J1HAN_c6PfGNJd2OBwW4zo36n71wmkdvityYnrh8Ak0D1IifiAvEWz9Vi9DmS"
)
- extra := []pkg.Artifact{
+ return t.New("git-"+version, stage3Concat(t, []pkg.Artifact{},
t.NewMake(),
t.NewPerl(),
t.NewM4(),
@@ -18,11 +18,7 @@ func (t Toolchain) NewGit() pkg.Artifact {
t.NewGettext(),
t.NewZlib(),
- }
- if t == toolchainStage3 {
- extra = nil
- }
- return t.New("git-"+version, extra, nil, nil, `
+ ), nil, nil, `
chmod -R +w /usr/src/git && cd /usr/src/git
make configure
./configure --prefix=/system