From 2b083b39d3c5266a3187963dc8621abcc33238fb Mon Sep 17 00:00:00 2001 From: a-palchikov Date: Thu, 8 Aug 2024 20:20:25 +0200 Subject: [PATCH] Keep the old behavior with manual LLB construction and secrets as environment variables Signed-off-by: a-palchikov --- client/llb/exec.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/llb/exec.go b/client/llb/exec.go index f668cf8dbf9a7..93404db261c22 100644 --- a/client/llb/exec.go +++ b/client/llb/exec.go @@ -723,8 +723,7 @@ func SecretAsEnv(v bool) SecretOption { si.Env = nil return } - envDefault := "" - si.Env = &envDefault + si.Env = &si.Target }) }