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:
9
vendor/github.com/zclconf/go-cty/cty/value_init.go
generated
vendored
9
vendor/github.com/zclconf/go-cty/cty/value_init.go
generated
vendored
@ -5,8 +5,7 @@ import (
|
||||
"math/big"
|
||||
"reflect"
|
||||
|
||||
"golang.org/x/text/unicode/norm"
|
||||
|
||||
"github.com/zclconf/go-cty/cty/ctystrings"
|
||||
"github.com/zclconf/go-cty/cty/set"
|
||||
)
|
||||
|
||||
@ -107,7 +106,7 @@ func StringVal(v string) Value {
|
||||
// A return value from this function can be meaningfully compared byte-for-byte
|
||||
// with a Value.AsString result.
|
||||
func NormalizeString(s string) string {
|
||||
return norm.NFC.String(s)
|
||||
return ctystrings.Normalize(s)
|
||||
}
|
||||
|
||||
// ObjectVal returns a Value of an object type whose structure is defined
|
||||
@ -287,7 +286,7 @@ func SetVal(vals []Value) Value {
|
||||
rawList[i] = val.v
|
||||
}
|
||||
|
||||
rawVal := set.NewSetFromSlice(setRules{elementType}, rawList)
|
||||
rawVal := set.NewSetFromSlice(set.Rules[interface{}](setRules{elementType}), rawList)
|
||||
|
||||
return Value{
|
||||
ty: Set(elementType),
|
||||
@ -334,7 +333,7 @@ func SetValFromValueSet(s ValueSet) Value {
|
||||
func SetValEmpty(element Type) Value {
|
||||
return Value{
|
||||
ty: Set(element),
|
||||
v: set.NewSet(setRules{element}),
|
||||
v: set.NewSet(set.Rules[interface{}](setRules{element})),
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user