mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-09 21:17:09 +08:00
vendor: update github.com/zclconf/go-cty to v1.14.4
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
4
vendor/github.com/zclconf/go-cty/cty/function/stdlib/collection.go
generated
vendored
4
vendor/github.com/zclconf/go-cty/cty/function/stdlib/collection.go
generated
vendored
@ -1506,8 +1506,8 @@ func Keys(inputMap cty.Value) (cty.Value, error) {
|
||||
}
|
||||
|
||||
// Lookup performs a dynamic lookup into a map.
|
||||
// There are two required arguments, map and key, plus an optional default,
|
||||
// which is a value to return if no key is found in map.
|
||||
// There are three required arguments, inputMap and key, plus a defaultValue,
|
||||
// which is a value to return if the given key is not found in the inputMap.
|
||||
func Lookup(inputMap, key, defaultValue cty.Value) (cty.Value, error) {
|
||||
return LookupFunc.Call([]cty.Value{inputMap, key, defaultValue})
|
||||
}
|
||||
|
5
vendor/github.com/zclconf/go-cty/cty/function/stdlib/conversion.go
generated
vendored
5
vendor/github.com/zclconf/go-cty/cty/function/stdlib/conversion.go
generated
vendored
@ -30,8 +30,9 @@ func MakeToFunc(wantTy cty.Type) function.Function {
|
||||
// messages to be more appropriate for an explicit type
|
||||
// conversion, whereas the cty function system produces
|
||||
// messages aimed at _implicit_ type conversions.
|
||||
Type: cty.DynamicPseudoType,
|
||||
AllowNull: true,
|
||||
Type: cty.DynamicPseudoType,
|
||||
AllowNull: true,
|
||||
AllowDynamicType: true,
|
||||
},
|
||||
},
|
||||
Type: func(args []cty.Value) (cty.Type, error) {
|
||||
|
Reference in New Issue
Block a user