forked from rosa/hakurei
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user