diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-05-21 16:10:55 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-05-21 16:11:38 +0900 |
| commit | 6546ddc64bcbf73c7419bac7af596b924005dbc3 (patch) | |
| tree | 5e09262421b52a2ce626200c79d67f36fac74b94 /internal/rosa/perl.go | |
| parent | cbf18b302d51c3e667ebe06cfebb14b90ccc93b7 (diff) | |
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 <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/perl.go')
| -rw-r--r-- | internal/rosa/perl.go | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/internal/rosa/perl.go b/internal/rosa/perl.go index c17ce109..aa0c817b 100644 --- a/internal/rosa/perl.go +++ b/internal/rosa/perl.go @@ -26,11 +26,8 @@ func (*MakeMakerHelper) wantsWrite() bool { return true } // scriptEarly is a noop. func (*MakeMakerHelper) scriptEarly() string { return "" } -// createDir returns false. -func (*MakeMakerHelper) createDir() bool { return false } - -// wantsDir returns the zero value. -func (*MakeMakerHelper) wantsDir() string { return "" } +// wantsDir requests the source directory. +func (*MakeMakerHelper) wantsDir() (string, bool) { return "", false } // script generates Makefile.PL-based build and test commands. func (attr *MakeMakerHelper) script(t Toolchain, _ string) string { |
