moby/builder
Cory Snider 4e0319c878 [chore] clean up reexec.Init() calls
Now that most uses of reexec have been replaced with non-reexec
solutions, most of the reexec.Init() calls peppered throughout the test
suites are unnecessary. Furthermore, most of the reexec.Init() calls in
test code neglects to check the return value to determine whether to
exit, which would result in the reexec'ed subprocesses proceeding to run
the tests, which would reexec another subprocess which would proceed to
run the tests, recursively. (That would explain why every reexec
callback used to unconditionally call os.Exit() instead of returning...)

Remove unneeded reexec.Init() calls from test and example code which no
longer needs it, and fix the reexec.Init() calls which are not inert to
exit after a reexec callback is invoked.

Signed-off-by: Cory Snider <csnider@mirantis.com>
2023-05-09 19:13:17 -04:00
..
builder-next Use the image service instead of the reference store for tagging 2023-04-26 15:10:01 +02:00
dockerfile [chore] clean up reexec.Init() calls 2023-05-09 19:13:17 -04:00
remotecontext [chore] clean up reexec.Init() calls 2023-05-09 19:13:17 -04:00
builder.go images: Pass context to commit related operations 2023-01-18 12:23:32 +01:00