From 4669adfe2a28a8413479c61f99efbe4c53293093 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 d619c9d22e795..37a1a3b6df41d 100644 --- a/client/llb/exec.go +++ b/client/llb/exec.go @@ -725,8 +725,7 @@ func SecretAsEnv(v bool) SecretOption { si.Env = nil return } - envDefault := "" - si.Env = &envDefault + si.Env = &si.Target }) }