mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-09 21:17:09 +08:00
vendor: update github.com/hashicorp/hcl/v2 to v2.19.1
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
8
vendor/github.com/zclconf/go-cty/cty/convert/conversion_object.go
generated
vendored
8
vendor/github.com/zclconf/go-cty/cty/convert/conversion_object.go
generated
vendored
@ -80,13 +80,19 @@ func conversionObjectToObject(in, out cty.Type, unsafe bool) conversion {
|
||||
}
|
||||
}
|
||||
|
||||
if val.IsNull() {
|
||||
// Strip optional attributes out of the embedded type for null
|
||||
// values.
|
||||
val = cty.NullVal(val.Type().WithoutOptionalAttributesDeep())
|
||||
}
|
||||
|
||||
attrVals[name] = val
|
||||
}
|
||||
|
||||
for name := range outOptionals {
|
||||
if _, exists := attrVals[name]; !exists {
|
||||
wantTy := outAtys[name]
|
||||
attrVals[name] = cty.NullVal(wantTy)
|
||||
attrVals[name] = cty.NullVal(wantTy.WithoutOptionalAttributesDeep())
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user