moby/builder/dockerfile
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
..
buildargs.go builder/dockerfile: add "ALL_PROXY" to list of default build args 2021-04-24 18:25:16 +02:00
buildargs_test.go builder/dockerfile: add "ALL_PROXY" to list of default build args 2021-04-24 18:25:16 +02:00
builder.go builder: Don't store context in struct 2022-11-03 12:22:46 +01:00
builder_unix.go Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02:00
builder_windows.go Add canonical import comment 2018-02-05 16:51:57 -05:00
containerbackend.go imageservice: Add context to various methods 2022-11-03 12:22:40 +01:00
copy.go pkg/ioutils: TempDir: move to pkg/longpath 2022-12-20 23:24:12 +01:00
copy_test.go pkg/containerfs: Remove NewLocalDriver() 2022-09-23 16:25:22 -04:00
copy_unix.go builder: use filepath.WalkDir instead of filepath.Walk 2022-10-09 17:00:23 +02:00
copy_windows.go builder/dockerfile: make normalizeDest() platform-specific again 2021-07-27 23:14:40 +02:00
dispatchers.go images: Pass context to commit related operations 2023-01-18 12:23:32 +01:00
dispatchers_test.go pkg/system: deprecate DefaultPathEnv, move to oci 2022-11-29 17:02:50 +01:00
dispatchers_unix.go Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02:00
dispatchers_unix_test.go Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02:00
dispatchers_windows.go all: replace strings.Replace with strings.ReplaceAll 2022-05-09 19:45:40 +08:00
dispatchers_windows_test.go Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02:00
evaluator.go pkg/system: deprecate DefaultPathEnv, move to oci 2022-11-29 17:02:50 +01:00
evaluator_test.go [chore] clean up reexec.Init() calls 2023-05-09 19:13:17 -04:00
imagecontext.go builder: Don't store context in struct 2022-11-03 12:22:46 +01:00
imagecontext_test.go builder: Don't store context in struct 2022-11-03 12:22:46 +01:00
imageprobe.go imageservice: Add context to various methods 2022-11-03 12:22:40 +01:00
internals.go images: Pass context to commit related operations 2023-01-18 12:23:32 +01:00
internals_linux.go imageservice: Add context to various methods 2022-11-03 12:22:40 +01:00
internals_linux_test.go imageservice: Add context to various methods 2022-11-03 12:22:40 +01:00
internals_test.go builder: fix empty-lines (revive) 2022-09-28 01:58:50 +02:00
internals_windows.go builder: Don't store context in struct 2022-11-03 12:22:46 +01:00
internals_windows_test.go Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02:00
metrics.go goimports: fix imports 2019-09-18 12:56:54 +02:00
mockbackend_test.go images: Pass context to commit related operations 2023-01-18 12:23:32 +01:00
utils_test.go refactor: move from io/ioutil to io and os package 2021-08-27 14:56:57 +08:00