moby/builder/remotecontext
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
..
git builder/remotecontext/git: use strings.Cut() 2022-12-21 11:09:00 +01:00
urlutil gofmt GoDoc comments with go1.19 2022-07-08 19:56:23 +02:00
archive.go pkg/ioutils: TempDir: move to pkg/longpath 2022-12-20 23:24:12 +01:00
detect.go replace pkg/fileutils Matching funcs with github.com/moby/patternmatcher 2022-09-30 23:25:28 +02:00
detect_test.go builder: fix empty-lines (revive) 2022-09-28 01:58:50 +02:00
filehash.go Add canonical import comment 2018-02-05 16:51:57 -05:00
generate.go Add canonical import comment 2018-02-05 16:51:57 -05:00
git.go builder: make git config isolation opt-in 2022-10-20 16:47:18 -04:00
lazycontext.go pkg/containerfs: drop ContainerFS type alias 2022-09-23 16:56:53 -04:00
mimetype.go Add canonical import comment 2018-02-05 16:51:57 -05:00
mimetype_test.go bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-11 00:06:42 +01:00
remote.go gofmt GoDoc comments with go1.19 2022-07-08 19:56:23 +02:00
remote_test.go refactor: move from io/ioutil to io and os package 2021-08-27 14:56:57 +08:00
tarsum.go Remove uses of deprecated go-digest.NewDigestFromHex, go-digest.Digest.Hex 2022-11-08 16:42:13 +01:00
tarsum.pb.go LCOW: Implemented support for docker cp + build 2017-09-14 12:07:52 -07:00
tarsum.proto Implement incremental file sync using client session 2017-06-22 11:52:35 -07:00
tarsum_test.go [chore] clean up reexec.Init() calls 2023-05-09 19:13:17 -04:00
utils_test.go refactor: move from io/ioutil to io and os package 2021-08-27 14:56:57 +08:00