mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-11 05:57:08 +08:00
vendor: update hcl dependencies
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
3
vendor/github.com/zclconf/go-cty/cty/function/stdlib/collection.go
generated
vendored
3
vendor/github.com/zclconf/go-cty/cty/function/stdlib/collection.go
generated
vendored
@ -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())
|
||||
|
Reference in New Issue
Block a user