mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-23 20:27:46 +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
|
k := "attest:" + attestType
|
||||||
|
if _, ok := out[k]; ok {
|
||||||
|
return nil, errors.Errorf("duplicate attestation field %s", attestType)
|
||||||
|
}
|
||||||
if enabled {
|
if enabled {
|
||||||
out[k] = &in
|
out[k] = &in
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user