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 19, 2024
1 parent 148ad5b commit 2aec29e
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 @@ -721,6 +721,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 2aec29e

Please sign in to comment.