mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-23 04:07:45 +08:00
Merge pull request #1475 from jedevc/attest-warn-duplicate
buildflags: error on duplicate attest field
This commit is contained in:
commit
53d88a79ef
@ -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…
x
Reference in New Issue
Block a user