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