From 7974dfa08319f6381473778dcbc9f28d33b0ae31 Mon Sep 17 00:00:00 2001 From: Matt Loberg Date: Tue, 21 May 2024 13:10:53 -0500 Subject: [PATCH] fix: include base env vars during exec We are missing some env vars that are set on the image --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index 9cf55aa..eefe973 100644 --- a/main.go +++ b/main.go @@ -156,6 +156,8 @@ func run(name string, args, env []string) error { return fmt.Errorf("could not find %s: %w", name, err) } + env = append(os.Environ(), env...) + if err := syscall.Exec(bin, args, env); err != nil { return fmt.Errorf("could not execute %s %s: %w", name, strings.Join(args, " "), err) }