Skip to content

Commit

Permalink
Reset the environment flag if requested
Browse files Browse the repository at this point in the history
Signed-off-by: a-palchikov <[email protected]>
  • Loading branch information
a-palchikov committed Aug 12, 2024
1 parent f078f26 commit abb8a48
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/llb/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,10 @@ func SecretID(id string) SecretOption {
// SecretAsEnv defines if the secret should be added as an environment variable
func SecretAsEnv(v bool) SecretOption {
return secretOptionFunc(func(si *SecretInfo) {
if !v {
si.Env = nil
return
}
envDefault := ""
si.Env = &envDefault
})
Expand Down

0 comments on commit abb8a48

Please sign in to comment.