vendor: update hcl dependencies

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2025-04-14 12:55:59 +02:00
parent eb74b483bd
commit fb4417e14d
7 changed files with 104 additions and 65 deletions

View File

@ -170,6 +170,9 @@ var ElementFunc = function.New(&function.Spec{
return cty.DynamicPseudoType, errors.New("cannot use element function with an empty list")
}
index = index % len(etys)
if index < 0 {
index += len(etys)
}
return etys[index], nil
default:
return cty.DynamicPseudoType, fmt.Errorf("cannot read elements from %s", listTy.FriendlyName())