pulumi/sdk/go/pulumi
Julien 1dd366951f
Ignore DependsOn for direct form invokes instead of raising an error (#18089)
When we introduced DependsOn for output form invokes in Go, we made it
an error to pass this option to direct form invokes. Unfortunately that
is not backwards compatible, and users for example pass the same set of
options to resources and invokes. Previously this worked without issue,
but now this can result in an error.

This also occurs in our SDKs. The Kubernetes SDK has resources that
internally call an invoke with the options of the resource.

The solution is to ignore DependsOn in this case, instead of making it
an error. This is what we did for Python and Typescript, [for
example](27cf193189/sdk/nodejs/runtime/invoke.ts (L88-L92)).

Fixes https://github.com/pulumi/pulumi/issues/18087
2024-12-20 16:40:43 +00:00
..
config Clean up uses of .Error() (#14965) 2023-12-20 15:54:06 +00:00
errors allow better grpc error messages from Go component providers (#17464) 2024-10-10 07:13:31 +00:00
generate Add StringMapMapMap to Go SDK (#17417) 2024-09-29 10:05:30 +00:00
internals Use EqualError/ErrorContains instead of Error (#14737) 2023-12-08 06:40:14 +00:00
provider Prepare golangci-lint upgrade (#17065) 2024-08-28 07:57:38 +00:00
alias.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
alias_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
asset.go [sdk/{go,dotnet] Unmarshal invalid assets. (#7579) 2021-07-21 13:40:36 -07:00
callback.go fix potential concurrent map write in Go transforms (#16444) 2024-06-24 09:35:52 +00:00
context.go Ignore DependsOn for direct form invokes instead of raising an error (#18089) 2024-12-20 16:40:43 +00:00
context_test.go Return when rejecting the InvokeOutput output on error (#18010) 2024-12-11 18:25:01 +00:00
internals.go sdk/go: Move Output implementation to internal 2023-07-25 18:13:35 -07:00
log.go chore: Update doc comments, coding style, fix lint 2022-10-13 13:50:49 -07:00
mocks.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
printf.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
printf_test.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
provider.go allow InputPropertyErrors from Calls (#17567) 2024-11-07 09:56:04 +00:00
provider_linked.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
provider_test.go Await output properties before closing the context (#15611) 2024-03-08 23:17:42 +00:00
resource.go [Go] Allow specifying dependencies for output invokes (#17791) 2024-12-10 13:08:57 +00:00
resource_set.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
resource_test.go Ignore DependsOn for direct form invokes instead of raising an error (#18089) 2024-12-20 16:40:43 +00:00
rpc.go unmarshal pointers correctly if destination type is any (#16914) 2024-08-19 14:43:31 +00:00
rpc_test.go Inherit `protect` from `parent`s in the Go SDK (#17936) 2024-12-05 17:14:46 +00:00
run.go Use int32 in Go interfaces that map to protobufs using int32 (#17068) 2024-08-28 13:45:17 +00:00
run_test.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
stack_reference.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
stack_reference_test.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
transform.go add Go support for invoke transforms (#16617) 2024-07-15 08:28:11 +00:00
transformation.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
type_conversions.go [codegen/go] Improve optional params in invoke 2022-02-01 11:44:40 -08:00
types.go Add some examples and caveats for the Go SDK (#17865) 2024-11-26 10:57:04 +00:00
types_builtins.go Add StringMapMapMap to Go SDK (#17417) 2024-09-29 10:05:30 +00:00
types_builtins_test.go Add StringMapMapMap to Go SDK (#17417) 2024-09-29 10:05:30 +00:00
types_contravariance_test.go Use slice.Prealloc instead of make([]T, 0, ...) 2023-06-29 11:27:50 +01:00
types_test.go Clean up uses of .Error() (#14965) 2023-12-20 15:54:06 +00:00
urnset.go Use slice.Prealloc instead of make([]T, 0, ...) 2023-06-29 11:27:50 +01:00