]> Cypherpunks.ru repositories - goredo.git/blob - doc/features.texi
Ability to rely on mtime, instead of ctime
[goredo.git] / doc / features.texi
1 @node Features
2 @unnumbered Features
3
4 Notable features that differentiate @command{goredo} from many other
5 implementations.
6
7 @itemize
8
9 @item explicit useful and convenient checks from @command{apenwarr/redo}:
10     @itemize
11     @item check that @file{$1} was not touched during .do execution
12     @item check that @file{stdout} and @file{$3} are not written simultaneously
13     @item check that generated target was not modified "externally" outside
14       the redo, preventing its overwriting, but continuing the build
15     @end itemize
16 @item recursive, indented and serialized logs display ability, with
17     priority to the depth and bad return codes, like in @command{apenwarr/redo},
18     thanks to @url{https://apenwarr.ca/log/20181106, apenwarr's article}
19 @item all environment variables, working directory, command line
20     arguments, start/finish times, duration, participated PIDs, return
21     codes can be saved for later investigation
22 @item targets, dependency information and their directories are explicitly
23   synced (can be disabled, should work faster)
24 @item file's change is detected by comparing its size, and
25     @url{https://github.com/BLAKE3-team/BLAKE3, BLAKE3} hash. Also as an
26     optimization, by default if file's @code{ctime} is same, then hash
27     check is skipped. Optionally you can disable that behaviour, or even
28     enable trust to file's @code{mtime}
29 @item files creation is @code{umask}-friendly (unlike @code{mkstemp()}
30     used in @command{redo-c})
31 @item parallel build with jobs limit, optionally in infinite mode
32 @item optional coloured messages
33 @item verbose debug messages, including out-of-date determination, PIDs,
34   lock and jobserver acquirings/releases
35 @item displaying of each target's execution time
36 @item each target's @file{stderr} can be prefixed with the PID
37 @item optional statusline with currently running/waiting/done jobs
38 @item target's @file{stderr} can be stored on the disk with
39     @url{http://cr.yp.to/libtai/tai64.html, TAI64N} timestamp prefixes
40     for each line. To convert them to localtime you can use either
41     @command{tai64nlocal} utility from
42     @url{http://cr.yp.to/daemontools.html, daemontools}, or similar one:
43     @code{go get go.cypherpunks.ru/tai64n/cmd/tai64nlocal}
44 @item Either GNU Make or bmake @ref{Jobserver, jobserver} compatibility support
45
46 @end itemize