Merge pull request #1613 from tonistiigi/env-parsing-fix

buildctl: improve secret parsing
v0.8
Akihiro Suda 2020-08-02 22:13:54 +09:00 committed by GitHub
commit b1db6633bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ func parseSecret(value string) (*secretsprovider.Source, error) {
return nil, errors.Errorf("unexpected key '%s' in '%s'", key, field)
}
}
if typ == "env" {
if typ == "env" && fs.Env == "" {
fs.Env = fs.FilePath
fs.FilePath = ""
}