From edcc9a7708c0367c16114d9d30259a195679135c Mon Sep 17 00:00:00 2001 From: jakecoffman Date: Mon, 10 Oct 2022 08:05:20 -0500 Subject: [PATCH] add debug environment variable when debugging --- internal/infra/updater.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/infra/updater.go b/internal/infra/updater.go index adceec4..41fe6c4 100644 --- a/internal/infra/updater.go +++ b/internal/infra/updater.go @@ -178,7 +178,7 @@ func (u *Updater) RunShell(ctx context.Context, proxyURL string, apiPort int) er AttachStderr: true, Tty: true, User: dependabot, - Env: userEnv(proxyURL, apiPort), + Env: append(userEnv(proxyURL, apiPort), "DEBUG=1"), Cmd: []string{"/bin/bash"}, }) if err != nil {