Skip to content

Commit 8b70517

Browse files
committed
chore: fix compilation for buildkit >= 0.15.0
1 parent 4259ada commit 8b70517

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: pkg/util/command_util.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func ResolveEnvironmentReplacementList(values, envs []string, isFilepath bool) (
7070
// "a\"b" -> "a"b"
7171
func ResolveEnvironmentReplacement(value string, envs []string, isFilepath bool) (string, error) {
7272
shlex := shell.NewLex(parser.DefaultEscapeToken)
73-
fp, _, err := shlex.ProcessWord(value, envs)
73+
fp, _, err := shlex.ProcessWord(value, shell.EnvsFromSlice(envs))
7474
// Check after replacement if value is a remote URL
7575
if !isFilepath || IsSrcRemoteFileURL(fp) {
7676
return fp, err

0 commit comments

Comments
 (0)