From 6546ddc64bcbf73c7419bac7af596b924005dbc3 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 21 May 2026 16:10:55 +0900 Subject: internal/rosa: expose in-place behaviour in generic helper This change also combines the createDir and wantsDir methods, and replaces the non-inplace target of the generic helper with a deterministic path. Signed-off-by: Ophestra --- internal/rosa/make.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'internal/rosa/make.go') diff --git a/internal/rosa/make.go b/internal/rosa/make.go index 793509c9..a3e3d8e3 100644 --- a/internal/rosa/make.go +++ b/internal/rosa/make.go @@ -82,15 +82,12 @@ func (attr *MakeHelper) scriptEarly() string { return generate } -// createDir returns false. -func (*MakeHelper) createDir() bool { return false } - // wantsDir requests a new directory in TMPDIR, or omits the cd statement if InPlace. -func (attr *MakeHelper) wantsDir() string { +func (attr *MakeHelper) wantsDir() (string, bool) { if attr != nil && attr.InPlace { - return helperInPlace + return helperInPlace, false } - return `"$(mktemp -d)"` + return `"$(mktemp -d)"`, false } // script generates the cure script. -- cgit v1.3.1