From 1c842d65e5236e409326e3f7c9c725fb0e994d7d Mon Sep 17 00:00:00 2001 From: Ryan Fowler Date: Sun, 30 Aug 2026 20:34:20 +0000 Subject: [PATCH] fix: stop fake protoc child recursion --- internal/proto/compile_test.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/internal/proto/compile_test.go b/internal/proto/compile_test.go index cadc5735..7210f56b 100644 --- a/internal/proto/compile_test.go +++ b/internal/proto/compile_test.go @@ -494,6 +494,12 @@ func descriptorPath() string { } func main() { + if len(os.Args) > 1 && os.Args[1] == "-child-pipe-worker" { + for { + time.Sleep(time.Hour) + } + } + switch os.Getenv("FETCH_FAKE_PROTOC_MODE") { case "stdout-flood": _, _ = os.Stdout.Write([]byte(strings.Repeat("x", 1<<20))) @@ -526,10 +532,6 @@ func main() { if path := os.Getenv("FETCH_FAKE_PROTOC_CHILD_PID_FILE"); path != "" { _ = os.WriteFile(path, []byte(fmt.Sprint(child.Process.Pid)), 0600) } - case "-child-pipe-worker": - for { - time.Sleep(time.Hour) - } case "hang": for { time.Sleep(time.Hour)