mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-10 21:47:13 +08:00
buildflags: warn on duplicate attest field
Signed-off-by: Justin Chadwell <me@jedevc.com>
This commit is contained in:
@ -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 {
|
||||||
|
Reference in New Issue
Block a user