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.1
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
4
vendor/github.com/zclconf/go-cty/cty/path.go
generated
vendored
4
vendor/github.com/zclconf/go-cty/cty/path.go
generated
vendored
@ -225,7 +225,9 @@ func (s IndexStep) Apply(val Value) (Value, error) {
|
||||
return NilVal, errors.New("key value not number or string")
|
||||
}
|
||||
|
||||
has := val.HasIndex(s.Key)
|
||||
// This value needs to be stripped of marks to check True(), but Index will
|
||||
// apply the correct marks for the result.
|
||||
has, _ := val.HasIndex(s.Key).Unmark()
|
||||
if !has.IsKnown() {
|
||||
return UnknownVal(val.Type().ElementType()), nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user