mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-10 13:37:08 +08:00
vendor: github.com/zclconf/go-cty v1.16.0
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
8
vendor/github.com/zclconf/go-cty/cty/convert/conversion.go
generated
vendored
8
vendor/github.com/zclconf/go-cty/cty/convert/conversion.go
generated
vendored
@ -171,12 +171,16 @@ func getConversionKnown(in cty.Type, out cty.Type, unsafe bool) conversion {
|
||||
}
|
||||
if out.IsCapsuleType() {
|
||||
if fn := out.CapsuleOps().ConversionTo; fn != nil {
|
||||
return conversionToCapsule(in, out, fn)
|
||||
if conv := conversionToCapsule(in, out, fn); conv != nil {
|
||||
return conv
|
||||
}
|
||||
}
|
||||
}
|
||||
if in.IsCapsuleType() {
|
||||
if fn := in.CapsuleOps().ConversionFrom; fn != nil {
|
||||
return conversionFromCapsule(in, out, fn)
|
||||
if conv := conversionFromCapsule(in, out, fn); conv != nil {
|
||||
return conv
|
||||
}
|
||||
}
|
||||
}
|
||||
// No conversion operation is available, then.
|
||||
|
Reference in New Issue
Block a user