We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b729abf + dfd54bd commit e615afbCopy full SHA for e615afb
pkg/buildx/bake/buildflags/attests.go
@@ -130,6 +130,12 @@ func (a *Attest) UnmarshalText(text []byte) error {
130
return errors.Wrapf(err, "invalid value %s", field)
131
}
132
a.Disabled = disabled
133
+ case "enabled":
134
+ enabled, err := strconv.ParseBool(value)
135
+ if err != nil {
136
+ return errors.Wrapf(err, "invalid value %s", field)
137
+ }
138
+ a.Disabled = !enabled
139
default:
140
a.Attrs[key] = value
141
0 commit comments