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/python.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'internal/rosa/python.go') diff --git a/internal/rosa/python.go b/internal/rosa/python.go index af4580e8..d868efe3 100644 --- a/internal/rosa/python.go +++ b/internal/rosa/python.go @@ -48,11 +48,8 @@ func (attr *PipHelper) wantsWrite() bool { return attr.wantsChmod() } // scriptEarly is a noop. func (*PipHelper) scriptEarly() string { return "" } -// createDir returns false. -func (*PipHelper) createDir() bool { return false } - // wantsDir requests a new directory in TMPDIR. -func (*PipHelper) wantsDir() string { return `"$(mktemp -d)"` } +func (*PipHelper) wantsDir() (string, bool) { return `"$(mktemp -d)"`, false } // script generates the pip3 install command. func (attr *PipHelper) script(_ Toolchain, name string) string { -- cgit v1.3.1