pulumi/pkg/codegen/hcl2/model
Zaid Ajaj 3b9f5c09b7
[program-gen] Fix stack overflow when binding invoke that resolves to promise (#15463)
# Description


Fixes #15434 because using `ContainsPromises` doesn't account for
recursive object references where as `ContainsEventuals` does.

## Checklist

- [ ] I have run `make tidy` to update any new dependencies
- [x] I have run `make lint` to verify my code passes the lint check
  - [x] I have formatted my code using `gofumpt`

<!--- Please provide details if the checkbox below is to be left
unchecked. -->
- [ ] I have added tests that prove my fix is effective or that my
feature works
<!--- 
User-facing changes require a CHANGELOG entry.
-->
- [x] I have run `make changelog` and committed the
`changelog/pending/<file>` documenting my change
<!--
If the change(s) in this PR is a modification of an existing call to the
Pulumi Cloud,
then the service should honor older versions of the CLI where this
change would not exist.
You must then bump the API version in
/pkg/backend/httpstate/client/api.go, as well as add
it to the service.
-->
- [ ] Yes, there are changes in this PR that warrants bumping the Pulumi
Cloud API version
<!-- @Pulumi employees: If yes, you must submit corresponding changes in
the service repo. -->
2024-02-20 15:49:08 +00:00
..
format
pretty Enable perfsprint linter (#14813) 2023-12-12 12:19:42 +00:00
attribute.go
binder_expression.go Allow binding unsupported range and collection types in non-strict mode for pulumi convert 2023-07-12 19:13:57 +02:00
binder_expression_test.go
block.go
body.go
diagnostics.go
expression.go Enable perfsprint linter (#14813) 2023-12-12 12:19:42 +00:00
functions.go
print_test.go [program-gen/pcl] Avoid pretty printing large object graphs when encountering bind error in resource properties (#14864) 2023-12-20 01:20:42 +00:00
printer.go
scope.go Regen TypeScript examples 2023-06-07 10:54:25 +02:00
spec.md
traversable.go
type.go Fix stack overflow panic when pretty printing recursive types 2023-05-11 16:28:16 +02:00
type_collection.go Allow binding unsupported range and collection types in non-strict mode for pulumi convert 2023-07-12 19:13:57 +02:00
type_const.go Enable perfsprint linter (#14813) 2023-12-12 12:19:42 +00:00
type_enum.go Fix stack overflow panic when pretty printing recursive types 2023-05-11 16:28:16 +02:00
type_eventuals.go [program-gen] Fix stack overflow when binding invoke that resolves to promise (#15463) 2024-02-20 15:49:08 +00:00
type_list.go Fix stack overflow panic when pretty printing recursive types 2023-05-11 16:28:16 +02:00
type_map.go Fix stack overflow panic when pretty printing recursive types 2023-05-11 16:28:16 +02:00
type_none.go Fix stack overflow panic when pretty printing recursive types 2023-05-11 16:28:16 +02:00
type_object.go Use slice.Prealloc instead of make([]T, 0, ...) 2023-06-29 11:27:50 +01:00
type_opaque.go turn on the golangci-lint exhaustive linter (#15028) 2024-01-17 16:50:41 +00:00
type_opaque_test.go
type_output.go Fix stack overflow panic when pretty printing recursive types 2023-05-11 16:28:16 +02:00
type_promise.go Fix stack overflow panic when pretty printing recursive types 2023-05-11 16:28:16 +02:00
type_scope.go
type_set.go Fix stack overflow panic when pretty printing recursive types 2023-05-11 16:28:16 +02:00
type_test.go
type_tuple.go Fix stack overflow panic when pretty printing recursive types 2023-05-11 16:28:16 +02:00
type_union.go Use slice.Prealloc instead of make([]T, 0, ...) 2023-06-29 11:27:50 +01:00
type_union_test.go Fix stack overflow panic when pretty printing recursive types 2023-05-11 16:28:16 +02:00
utilities.go Use slice.Prealloc instead of make([]T, 0, ...) 2023-06-29 11:27:50 +01:00
visitor.go Use slice.Prealloc instead of make([]T, 0, ...) 2023-06-29 11:27:50 +01:00