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 all: Assert => Assertf 2023-03-03 14:37:43 -08:00
pretty Enable perfsprint linter (#14813) 2023-12-12 12:19:42 +00:00
attribute.go Do not panic when PCL attribute type or PCL resource variable type isn't fully bound 2023-04-12 18:19:57 +02:00
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 ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
block.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
body.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
diagnostics.go Handle recursive types 2023-01-13 11:28:13 -08:00
expression.go Enable perfsprint linter (#14813) 2023-12-12 12:19:42 +00:00
functions.go Initial implementation of simplified invokes for dotnet and nodejs 2023-01-11 14:17:14 -08:00
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 [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
scope.go Regen TypeScript examples 2023-06-07 10:54:25 +02:00
spec.md Add an HCL2 static typechecker and semantic model. (#4087) 2020-03-18 09:28:57 -07:00
traversable.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
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 [codegen] simplify opaque types to string newtype (#9770) 2022-06-13 11:13:03 -07:00
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 Support map(any) in config/output types 2023-04-06 21:15:20 +01:00
type_set.go Fix stack overflow panic when pretty printing recursive types 2023-05-11 16:28:16 +02:00
type_test.go Allow case insensitive prop typecheck on traversal 2022-11-08 09:08:12 -08:00
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