internal/rosa/go: migrate to generic helper

The go toolchain predates all abstractions currently available. This migration causes rebuilds due to internal cleanups affecting the final build script.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-05-21 19:47:55 +09:00
parent 25d9edfc64
commit 0914569e62
3 changed files with 114 additions and 98 deletions

View File

@@ -18,7 +18,8 @@ go build -o /bin/hostname /usr/src/hostname/main.go
return t.NewPackage(name, hakureiVersion, t.NewPatchedSource(
"hakurei-"+hakureiVersion, hakureiSource, false, hakureiPatches...,
), &PackageAttr{
Writable: true,
EnterSource: true,
Writable: true,
Env: []string{
"CGO_ENABLED=1",
"GOCACHE=/tmp/gocache",
@@ -42,6 +43,7 @@ func main() {
`),
))},
}, &GenericHelper{
InPlace: true,
Build: hostname + `
HAKUREI_VERSION='v` + hakureiVersion + `'
` + build,