9 Prevent rare race in the code, where externally modified target may
13 @anchor{Release 2_4_0}
14 @section Release 2.4.0
17 Continue regression fixing of @command{redo-whichdo}.
20 @anchor{Release 2_3_0}
21 @section Release 2.3.0
24 Fix regressions in @command{redo-whichdo} happened after huge refactoring.
27 @anchor{Release 2_2_0}
28 @section Release 2.2.0
31 Prefix target's output lines with the name of the target.
34 @anchor{Release 2_1_0}
35 @section Release 2.1.0
38 Mistakenly path to @file{.do} file was not absolute and OS can
39 refuse to run it because it is not in @env{$PATH}.
42 @anchor{Release 2_0_0}
43 @section Release 2.0.0
46 Huge quantity of performance optimisations.
49 Fixed possible unexpected lock file closing.
52 When resulting target has the same contents, it does not replace
53 already existing one. That was done previously. But now it also
54 copies the file's mode flags to the target (for example making it
58 If @command{redo-*} command runs under control of another
59 (top-level) redo, then it does not parse the flags as options and
60 treat each argument as a target, allowing passing the targets with
61 dashes in the beginning.
64 Prevented possible concurrent stderr writing by multiple running targets.
67 @command{redo-depfix} command now always rewrites dependency files
68 and calculates checksums of the files.
71 Own binary format is used for dependency files (@file{.dep}),
72 instead of recfile (@file{.rec}) one. It is several times smaller
73 and much faster to parse. You must run @command{redo-depfix} to
74 convert all existing @file{.redo/*.rec} files to that binary format.
77 @command{redo-dep2rec} command appeared, that can convert
78 @file{.dep} to recfile on stdout.
82 @anchor{Release 1_32_0}
83 @section Release 1.32.0
86 Omit printing of the @code{resource deadlock avoided} warning when
87 trying to take the lock.
90 @anchor{Release 1_31_0}
91 @section Release 1.31.0
94 Fixed possible race when target can be built more than once.
96 Print out finished targets much more quickly.
99 @anchor{Release 1_30_0}
100 @section Release 1.30.0
103 Fixed wrong OOD-cache value of source file dependency.
104 Targets could be rebuilt without any reason.
107 @anchor{Release 1_29_0}
108 @section Release 1.29.0
111 Fix possible error when two always-ed targets are run simultaneously.
113 Updated dependant libraries.
116 @anchor{Release 1_28_0}
117 @section Release 1.28.0
120 Do not remove @file{.lock} files, that leads to possible races
121 between running targets. Although @command{nncp-cleanup lock}
122 can be used to cleanup.
124 Updated dependant libraries.
127 @anchor{Release 1_27_1}
128 @section Release 1.27.1
131 Fixed lack of @file{.redo.}-prefix in temporary file names.
134 @anchor{Release 1_27_0}
135 @section Release 1.27.0
138 Improved out-of-date check and @file{.do} files search performance,
139 because of caching their results.
142 @anchor{Release 1_26_0}
143 @section Release 1.26.0
146 Debug output contained colour-related attribute even if
147 @env{$NO_COLOR=1} was set.
149 Updated dependant libraries.
152 @anchor{Release 1_25_0}
153 @section Release 1.25.0
156 Target's lock file requires a token from the jobserver now. So
157 amount of simultaneously opened lock files depends on job slots
161 @anchor{Release 1_24_0}
162 @section Release 1.24.0
165 @command{redo-cleanup tmp} also removes temporarily (@code{$3})
169 @anchor{Release 1_23_0}
170 @section Release 1.23.0
173 @command{redo-ifchange}'s @option{-f} option forces each target
174 rebuilding. Comparing to @command{redo}, it will parallelize the
177 Inode's number is also stored as dependency information, just to
178 prevent possible @code{ctime} collision of two files.
180 Performance optimization: do not use target's temporary output file
181 at all, if its hash equals to already existing target's one. Just
182 touch existing target file instead.
185 @anchor{Release 1_22_0}
186 @section Release 1.22.0
189 @code{flock} locks replaced with POSIX @code{fcntl} ones.
190 They could be more portable.
192 @command{redo-depfix} command appeared, that traverses through all
193 @file{.redo} directories and their dependency files, checks if
194 corresponding targets has the same content but different
195 @code{ctime}/@code{mtime} values and rewrites dependencies with that
196 updated inode information.
198 With @env{$REDO_STOP_IF_MODIFIED=1} environment variable redo will
199 stop and fail if it meet externally modified file. By default user
200 is only warned about it, but building continues for convenience.
203 @anchor{Release 1_21_0}
204 @section Release 1.21.0
207 @env{$REDO_INODE_NO_TRUST} is replaced with @env{$REDO_INODE_TRUST}
208 environment variable, that takes either @code{none}, or @code{ctime}
209 (the default one), or @code{mtime} (new one). Check documentation's
210 separate page about that option.
213 @anchor{Release 1_20_0}
214 @section Release 1.20.0
217 Print warning message if both ifcreate and ifchange records were
218 discovered after the target is done.
221 @anchor{Release 1_19_0}
222 @section Release 1.19.0
225 Skip target itself, when searching for corresponding @file{.do}
226 file. For example @file{default.do} must use @file{../default.do}
230 @anchor{Release 1_18_0}
231 @section Release 1.18.0
234 Fix regression of known OODs passing since 1.3.0, that leads to
235 rebuilding of already built targets.
238 @anchor{Release 1_17_0}
239 @section Release 1.17.0
242 If @command{redo*} process is killed, then it sends @code{SIGTERM}
243 to all his children too, properly terminating the whole job queue.
246 @anchor{Release 1_16_0}
247 @section Release 1.16.0
250 Unexistent targets are considered always out-of-date, as it should be.
252 Do not panic if @env{$REDO_LOGS=1} and we were unable to start the command.
255 @anchor{Release 1_15_0}
256 @section Release 1.15.0
259 Explicitly check if @code{$1} target is touched and then fail.
260 Previously we check if @code{$1} was only altered.
263 @anchor{Release 1_14_0}
264 @section Release 1.14.0
267 Fixed @command{redo-ifcreate}'s targets proper relative paths to the target.
270 @anchor{Release 1_13_0}
271 @section Release 1.13.0
274 Use @file{.log-rec} extension, instead of @file{.log.rec}, that
275 won't collide with already existing @file{.log} and @file{.rec} in
276 @file{.redo} directory.
279 @anchor{Release 1_12_0}
280 @section Release 1.12.0
283 Fix possible lack of success finish message printing if any of
287 @anchor{Release 1_11_0}
288 @section Release 1.11.0
291 Fix nasty bug with incorrect @file{.redo/tgt.rec} files renaming.
294 @anchor{Release 1_10_0}
295 @section Release 1.10.0
298 @command{redo-cleanup} now also cleans @file{.redo/tgt.log.rec} files.
300 Recursive logs do not require @file{.redo/tgt.rec} existence anymore.
303 @anchor{Release 1_9_0}
304 @section Release 1.9.0
307 Do not enable command line options not applicable to the command.
308 For example @option{-j} option is only applicable to @command{redo}
309 and @command{redo-ifchange} commands.
312 @item @option{-dry-run} option is renamed to @option{-n}
313 @item @option{-logs} option is renamed to @option{-k}
314 @item @option{-silent} option is renamed to @option{-s}
317 When @code{stderr} logs are kept, all environment variables, working
318 directory, command line arguments, start/finish times, duration,
319 participated PIDs, return codes are saved in corresponding
320 @file{.redo/tgt.log.rec} file. Some of them can be viewed with
321 @option{-c} option to @command{redo-log}.
323 @command{redo-log}'s @option{-r} option allows recursive, indented
324 viewing of the whole redo commands invocations for the given target
328 @anchor{Release 1_8_0}
329 @section Release 1.8.0
332 Fixed possibly wrong relative path record of the dependency, when
333 redo commands are run in different directory from the @file{.do}.
335 Fixed possible failing in @command{redo-sources} if no @file{.dep}
339 @anchor{Release 1_7_0}
340 @section Release 1.7.0
343 Optional compatibility (through @env{$REDO_MAKE=@{bmake|gmake@}})
344 with either NetBSD's bmake or GNU Make jobserver protocols, being
345 able to tightly integrate @command{goredo} with the @command{make}.
348 @anchor{Release 1_6_0}
349 @section Release 1.6.0
352 @command{redo-affects} command appeared, that shows all targets that
353 will be affected by changing the specified ones.
356 @anchor{Release 1_5_0}
357 @section Release 1.5.0
360 @command{redo-ood}, @command{redo-sources} and
361 @command{redo-targets} can optionally take list of targets to apply
362 the command on, to narrow the result.
364 @command{redo-sources} mistakenly missed @file{.do} files in the output.
366 @command{redo-sources} now recursively searches for all source
367 files, not the "first" depth level ones.
370 @anchor{Release 1_4_1}
371 @section Release 1.4.1
374 Even more simpler statusline cleaning function.
377 @anchor{Release 1_4_0}
378 @section Release 1.4.0
381 Fixed proper @option{-xx} and @env{$REDO_TRACE} workability, that
382 previously was not applied to all targets.
384 Simpler statusline cleaning function, does not leading to whitespace
385 junk after long lines.
387 Updated dependant libraries.
390 @anchor{Release 1_3_0}
391 @section Release 1.3.0
394 Experimental @command{redo-sources}, @command{redo-targets} and
395 @command{redo-ood} commands.
397 Repetitive OOD determination optimization: pass all already known to
398 be OOD targets to redoing targets.
401 @anchor{Release 1_2_0}
402 @section Release 1.2.0
405 Dependency files @file{.dep} extension changed to @file{.rec}, to
406 reflect its recfile format nature and editors file type better
409 Reduce number of file descriptors kept open (1 instead of 4) while
410 waiting for job slot token.
413 @anchor{Release 1_1_0}
414 @section Release 1.1.0
417 @command{redo-cleanup} has @option{-dry-run} option.
420 @anchor{Release 1_0_0}
421 @section Release 1.0.0
424 @code{Size} is stored in the state, for faster OOD detection.
425 Previous @command{goredo} state files won't work.
427 Setting of @env{$REDO_INODE_NO_TRUST} environment variable brings no
428 trust to file inode's information (except for its size), forcing its
431 @command{redo-whichdo} resembles @code{apenwarr/redo}'s one behaviour more.
434 @anchor{Release 0_12_3}
435 @section Release 0.12.3
438 Use an updated @code{lukechampine.com/blake3} with possibly working
442 @anchor{Release 0_12_2}
443 @section Release 0.12.2
446 Try to fix failing @code{lukechampine.com/blake3} on arm64 macOS.
448 Fixed tests permissions in the tarball.
451 @anchor{Release 0_12_1}
452 @section Release 0.12.1
455 Tarball uses @file{vendor} directory without @env{$GOPATH}
456 overriding. @command{goredo} and its dependencies anyway uses Go
457 1.12+ versions, that have @file{vendor}-ing support.
460 @anchor{Release 0_12_0}
461 @section Release 0.12.0
464 Do not forget to save even output-less target as a dependency.
466 @option{-debug} option renamed to shorter @option{-d}.
469 @anchor{Release 0_11_0}
470 @section Release 0.11.0
473 Previously @env{$REDO_JOBS} overrided even explicitly specified
474 @option{-j} option. Fix that behaviour -- command line options must
475 precede environment variables.
476 @item @url{https://github.com/BLAKE3-team/BLAKE3, BLAKE3} replaces
477 BLAKE2b hashing algorithm for even better performance.
480 @anchor{Release 0_10_0}
481 @section Release 0.10.0
483 @item Initial tarballed release.