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:
CrazyMax
2023-10-19 14:49:10 +02:00
parent ad674e2666
commit 34b9a629a0
157 changed files with 20123 additions and 5438 deletions

View File

@ -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})),
}
}