From 72a19f8877dc0a1ec6d62b2e277ac3905c6dfb24 Mon Sep 17 00:00:00 2001 From: Ibuki Date: Wed, 8 Mar 2023 09:29:45 +0900 Subject: [PATCH] fix(1398): Unnecessary log output for specific build images (#450) * fix: unnecessary log output for specific images * go fmt --- executor/executor.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/executor/executor.go b/executor/executor.go index fa19844..5b7cf1d 100644 --- a/executor/executor.go +++ b/executor/executor.go @@ -263,7 +263,12 @@ func Run(path string, env []string, emitter screwdriver.Emitter, build screwdriv c.Dir = path c.Env = append(env, c.Env...) - f, err := pty.Start(c) + // Set up the Cols of the virtual terminal + winSize := &pty.Winsize{ + Cols: 200, + } + + f, err := pty.StartWithSize(c, winSize) if err != nil { return fmt.Errorf("Cannot start shell: %v", err) }