From b6a66acfe4c39d7f258a38f181a2233c3e103766 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 21 Jan 2026 06:59:30 +0900 Subject: internal/rosa: git artifact This is required by the clang unit and regression tests. Signed-off-by: Ophestra --- internal/rosa/git.go | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 internal/rosa/git.go (limited to 'internal/rosa/git.go') diff --git a/internal/rosa/git.go b/internal/rosa/git.go new file mode 100644 index 00000000..a2c54cba --- /dev/null +++ b/internal/rosa/git.go @@ -0,0 +1,27 @@ +package rosa + +import ( + "hakurei.app/internal/pkg" +) + +// NewGit returns a [pkg.Artifact] containing an installation of git. +func (t Toolchain) NewGit() pkg.Artifact { + const ( + version = "2.52.0" + checksum = "uH3J1HAN_c6PfGNJd2OBwW4zo36n71wmkdvityYnrh8Ak0D1IifiAvEWz9Vi9DmS" + ) + return t.New("git-"+version, []pkg.Artifact{ + t.NewMake(), + }, nil, nil, ` +chmod -R +w /usr/src/git && cd /usr/src/git +make configure +./configure --prefix=/system +make "-j$(nproc)" all +make DESTDIR=/work install +`, pkg.Path(AbsUsrSrc.Append("git"), true, pkg.NewHTTPGetTar( + nil, "https://www.kernel.org/pub/software/scm/git/"+ + "git-"+version+".tar.gz", + mustDecode(checksum), + pkg.TarGzip, + ))) +} -- cgit v1.3.1