aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/rosa.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-07-27 18:24:38 +0900
committerOphestra <cat@gensokyo.uk>2026-07-27 18:24:38 +0900
commit95aa7c205ccff964ddd2302b8639a4853864e780 (patch)
treeccb63b42924e77ea2b3d04822d86b2ae844c5e24 /internal/rosa/rosa.go
parentbd0cc3656f117093548d964b2868aa6f7e7d5d42 (diff)
internal/rosa: remove calls to low-level exec helper
This method predates the helper infrastructure, it is awkward to use and difficult to maintain for the replacement bootstrap mechanism. This change prepares for its removal. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/rosa.go')
-rw-r--r--internal/rosa/rosa.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/internal/rosa/rosa.go b/internal/rosa/rosa.go
index 456f82e7..77dc1592 100644
--- a/internal/rosa/rosa.go
+++ b/internal/rosa/rosa.go
@@ -363,9 +363,14 @@ function apply {
buf.WriteString("'\n")
}
}
- return t.New(name+"-src", 0, t.Append(nil,
+
+ return t.NewPackage(name+"-src", Unversioned, nil, &PackageAttr{
+ Paths: paths,
+ }, &GenericHelper{
+ Build: buf.String(),
+ },
_patch,
- ), nil, nil, buf.String(), paths...)
+ )
}
// helperInPlace is a special directory value for omitting the cd statement.