commit 937503d916d7d1aabf928be9ad7a2667b18f2f98
parent 55e0c3899fb1267d13293c78d2f978ca9b96dcda
Author: Ember Sawady <ecs@d2evs.net>
Date: Sat, 21 Sep 2024 18:34:23 +0000
cmd/hare/build: don't write commands run to cache
the build driver's deterministic, so it's pretty straightforward to
hare cache -c && hare build -vv, and the *.txt add a bunch of noise to
the cache
Signed-off-by: Ember Sawady <ecs@d2evs.net>
Diffstat:
2 files changed, 1 insertion(+), 5 deletions(-)
diff --git a/cmd/hare/build/queue.ha b/cmd/hare/build/queue.ha
@@ -143,9 +143,6 @@ fn run_task(ctx: *context, jobs: *[]job, t: *task) (bool | error) = {
let args = get_args(ctx, tmp, flags, t);
defer strings::freeall(args);
- path::set(&buf, out)?;
- write_args(ctx, path::push_ext(&buf, "txt")?, args, t)?;
-
let outdated = module::outdated(out, deps, mod.srcs.mtime);
let exec = t.kind != stage::SSA || len(mod.srcs.ha) != 0;
if (!exec || !outdated) {
diff --git a/cmd/hare/design.txt b/cmd/hare/design.txt
@@ -42,8 +42,7 @@ described below, we also direct the tool's output to <hash>.<ext>.tmp then
rename that to <hash>.<ext> when it's done
there's also <hash>.<ext>.log (the stdout/stderr of the process, for displaying
-if it errors out) and <hash>.<ext>.txt (the command that was run, for debugging
-purposes. we might add more information here in the future)
+if it errors out)
# queuing and running jobs