ww test: allow -c with persistent workdirs

This commit is contained in:
2026-08-20 20:40:01 +09:00
parent db5782eff9
commit 77168fd891
5 changed files with 66 additions and 45 deletions

View File

@@ -1853,15 +1853,6 @@ export fn packagecommand(args: []str) int = {
pkgusage();
return 2;
};
// -c suppresses execution and requests a caller-visible binary. Keep it
// separate from -w until compile-only persistent-action ownership is wired;
// -o without -c already permits a retained copy beside a persistent store.
if (workroot.len != 0 && compileonly && !buildonly) {
pkgputln(os.STDERR_FILENO,
"wwtest package: -w conflicts with -c");
return 2;
};
let ds: pkgdiscover;
let emptypaths: []str;
ds.paths = emptypaths;