mirror of https://github.com/docker/buildx.git
buildflags: warn on duplicate attest field
Signed-off-by: Justin Chadwell <me@jedevc.com>
This commit is contained in:
parent
df8e7d0a9a
commit
f992b77535
|
@ -29,6 +29,9 @@ func ParseAttests(in []string) (map[string]*string, error) {
|
|||
}
|
||||
|
||||
k := "attest:" + attestType
|
||||
if _, ok := out[k]; ok {
|
||||
return nil, errors.Errorf("duplicate attestation field %s", attestType)
|
||||
}
|
||||
if enabled {
|
||||
out[k] = &in
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue